diff --git a/src/config/route.js b/src/config/route.js index d10ee03f..623b2783 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -285,6 +285,17 @@ const routes = [ "perms": ["operation"] }, "component": "opm/usecl" + }, + { + "name": "normal", + "path": "/opm/normal", + "meta": { + "title": "普通作业许可证", + "icon": "el-icon-menu", + "hidden": true, + "perms": ["operation"] + }, + "component": "opm/normal" } ] }, diff --git a/src/views/opm/clear.vue b/src/views/opm/clear.vue index 7750da4f..a257e686 100644 --- a/src/views/opm/clear.vue +++ b/src/views/opm/clear.vue @@ -662,7 +662,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/cooler.vue b/src/views/opm/cooler.vue index 58ac26f3..8005a0a9 100644 --- a/src/views/opm/cooler.vue +++ b/src/views/opm/cooler.vue @@ -660,7 +660,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/fire.vue b/src/views/opm/fire.vue index a2970eb3..6e6e48d2 100644 --- a/src/views/opm/fire.vue +++ b/src/views/opm/fire.vue @@ -673,7 +673,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/high.vue b/src/views/opm/high.vue index 96fd0f69..14d8abc5 100644 --- a/src/views/opm/high.vue +++ b/src/views/opm/high.vue @@ -499,7 +499,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/hoisting.vue b/src/views/opm/hoisting.vue index 567fa6d4..86324a90 100644 --- a/src/views/opm/hoisting.vue +++ b/src/views/opm/hoisting.vue @@ -498,7 +498,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/normal.vue b/src/views/opm/normal.vue new file mode 100644 index 00000000..4a71ff1c --- /dev/null +++ b/src/views/opm/normal.vue @@ -0,0 +1,689 @@ + + + diff --git a/src/views/opm/oplcate.vue b/src/views/opm/oplcate.vue index 965520ac..6f21cde9 100644 --- a/src/views/opm/oplcate.vue +++ b/src/views/opm/oplcate.vue @@ -20,14 +20,13 @@ - + + + diff --git a/src/views/opm/oplcate_form.vue b/src/views/opm/oplcate_form.vue index 10d5f3c2..b2f02b4b 100644 --- a/src/views/opm/oplcate_form.vue +++ b/src/views/opm/oplcate_form.vue @@ -26,8 +26,12 @@ - + + + + + { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/soil.vue b/src/views/opm/soil.vue index 8e27bad2..945acd79 100644 --- a/src/views/opm/soil.vue +++ b/src/views/opm/soil.vue @@ -499,7 +499,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/space.vue b/src/views/opm/space.vue index 17671cc1..3bf50afa 100644 --- a/src/views/opm/space.vue +++ b/src/views/opm/space.vue @@ -676,7 +676,7 @@ }, //作业部门 getDept() { - this.$API.system.dept.list.req({page: 0}).then((res) => { + this.$API.system.dept.list.req({page: 0, type__in:'dept,rparty'}).then((res) => { this.deptoptions = genTree(res); }); }, diff --git a/src/views/opm/usecl.vue b/src/views/opm/usecl.vue index 46739b45..e1b56524 100644 --- a/src/views/opm/usecl.vue +++ b/src/views/opm/usecl.vue @@ -78,6 +78,7 @@ label: 'label', // value: 'value', // emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值 + checkStrictly: true }" clearable /> @@ -571,7 +572,7 @@ export default { }, //作业部门 getDept() { - this.$API.system.dept.list.req({ page: 0 }).then((res) => { + this.$API.system.dept.list.req({ page: 0, type__in:'dept,rparty' }).then((res) => { this.deptoptions = genTree(res); }); },