|
@@ -393,15 +393,18 @@ export default {
|
|
|
created() {
|
|
created() {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.getTaskStatus();
|
|
this.getTaskStatus();
|
|
|
- listDrillDictionaryBranch({orgId: this.$store.getters.orgId}).then(res => {
|
|
|
|
|
- let { code, rows, msg } = res
|
|
|
|
|
- if (code == 200) {
|
|
|
|
|
- console.log("res:"+res)
|
|
|
|
|
- if (rows.length === 0){
|
|
|
|
|
- this.$modal.alert("本网点还未编制预案,请及时到网页端网点预案管理菜单维护");
|
|
|
|
|
|
|
+ if (this.$store.getters.orgType == 4)
|
|
|
|
|
+ {
|
|
|
|
|
+ listDrillDictionaryBranch({orgId: this.$store.getters.orgId}).then(res => {
|
|
|
|
|
+ let { code, rows, msg } = res
|
|
|
|
|
+ if (code == 200) {
|
|
|
|
|
+ console.log("res:"+res)
|
|
|
|
|
+ if (rows.length === 0){
|
|
|
|
|
+ this.$modal.alert("本网点还未编制预案,请及时到网页端网点预案管理菜单维护");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
beforeRouteEnter(to,from,next){
|
|
beforeRouteEnter(to,from,next){
|
|
|
console.log(from,'to')
|
|
console.log(from,'to')
|