From d96b98e731328527be00f4ac17cf717e21928d85 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Sun, 25 Jul 2021 17:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common.js | 4 +- src/api/template.js | 10 +- src/components/drawerDialog/index.vue | 344 +++++++++++++++++--------- src/store/modules/user.js | 8 +- src/views/bjd/dj_list.vue | 33 ++- src/views/flow/template.vue | 54 ++-- src/views/monitor/log_info.vue | 14 +- src/views/preview/hzd.vue | 11 + src/views/user/permission.vue | 13 +- src/views/user/role.vue | 2 +- src/views/user/user.vue | 2 +- 11 files changed, 315 insertions(+), 180 deletions(-) create mode 100644 src/views/preview/hzd.vue diff --git a/src/api/common.js b/src/api/common.js index ba92a53..320e2b7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -115,7 +115,7 @@ export function cancelRenwuFn(params) { } export function initData(params) { return api({ - url: '/role/listRole', + url: '/role/list', method: 'get', params: params, paramsSerializer: function(data) { @@ -129,4 +129,4 @@ export function getDepartmentTreeList(params) { method: 'get', params }) -} +} diff --git a/src/api/template.js b/src/api/template.js index abd9b0a..9314a13 100644 --- a/src/api/template.js +++ b/src/api/template.js @@ -13,7 +13,10 @@ export default { return api({ url: '/templateSetting', method: 'delete', - params: qs.stringify(params) + params, + paramsSerializer: function(params) { + return qs.stringify(params, { indices: false }) + } }) }, deleteSettingFn: (params) => { @@ -21,7 +24,10 @@ export default { return api({ url: '/templateSetting', method: 'delete', - params: qs.stringify(params) + params, + paramsSerializer: function(params) { + return qs.stringify(params, { indices: false }) + } }) } } diff --git a/src/components/drawerDialog/index.vue b/src/components/drawerDialog/index.vue index 2833bc2..c52d780 100644 --- a/src/components/drawerDialog/index.vue +++ b/src/components/drawerDialog/index.vue @@ -4,7 +4,7 @@ title="编辑模板" :visible.sync="drawer" size="90%" - show- + :before-close="(done) => { $emit('closeTemplateDrawer') }" @open="open" >
@@ -112,6 +112,8 @@ v-model="sbpzLevelStatus" active-color="#13ce66" inactive-color="#ff4949" + active-text="类别品种" + inactive-text="所有品种" @change="getSbpzList" /> @@ -198,7 +200,7 @@ 保存修改 - + 取消
@@ -207,7 +209,7 @@
-

模板详情

+ 模板详情 - + + + + + + + @@ -277,19 +306,6 @@
- - - - @@ -328,7 +344,7 @@
-

模板详情

+ 模板详情
- - + + + - + 普通模式 @@ -434,97 +459,155 @@ 确 定 - - + + + + + + + + + DN模式 + + + KV模式 + + + + + + + {{ item }} + + + + + + + - - + + + - + 检验项目 - + 目录页 - - - - DN模式 - - - KV模式 - - 取 消 @@ -535,7 +618,7 @@ diff --git a/src/views/user/permission.vue b/src/views/user/permission.vue index 38045d9..a5685a3 100644 --- a/src/views/user/permission.vue +++ b/src/views/user/permission.vue @@ -79,7 +79,7 @@
- + @@ -358,8 +358,9 @@ export default { this.dialogStatus = 'create' this.showTempPermissionForm(true) }, - copyMenu($index) { - this.loadFromData(this.list[$index]) + copyMenu($index, row) { + const data = row.pid ? this.list.filter(tempRow => tempRow.id === row.pid)[0].children.filter(tempRow => tempRow.id === row.id)[0] : this.list[$index] + this.loadFromData(data) this.dialogStatus = 'create' this.showTempPermissionForm(false) }, @@ -411,7 +412,7 @@ export default { const pid = this.iconUpdate() if (pid) { this.api({ - url: '/permission/addPermission', + url: '/permission', method: 'post', data: this.tempPermission }).then(() => { @@ -431,8 +432,8 @@ export default { const pid = this.iconUpdate() if (pid) { this.api({ - url: '/permission/updatePermission', - method: 'post', + url: '/permission', + method: 'put', data: this.tempPermission }).then(() => { this.$message.success('更新成功。') diff --git a/src/views/user/role.vue b/src/views/user/role.vue index 91555a4..7374a7c 100644 --- a/src/views/user/role.vue +++ b/src/views/user/role.vue @@ -232,7 +232,7 @@ export default { getList() { // 查询列表 this.api({ - url: '/role/listRole', + url: '/role/list', method: 'get', params: this.listQuery }).then(data => { diff --git a/src/views/user/user.vue b/src/views/user/user.vue index 192f23d..38a16f2 100644 --- a/src/views/user/user.vue +++ b/src/views/user/user.vue @@ -268,7 +268,7 @@ export default { methods: { getAllRoles() { this.api({ - url: '/role/getAllRoles', + url: '/role/all', method: 'get' }).then((data) => { this.roles = data