From 8bed60b691d4f1d8f43afae37d72f8462d1672c5 Mon Sep 17 00:00:00 2001 From: xiaobai <857694115@qq.com> Date: Tue, 27 Jul 2021 15:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/instrument.js | 2 +- src/views/bjd/dj_input.vue | 10 +- src/views/bjd/dj_list.vue | 2 +- src/views/bjd/dt_list.vue | 2 +- src/views/bjd/jj_input.vue | 10 +- src/views/bjd/jj_list.vue | 2 +- src/views/bjd/zf_list.vue | 2 +- src/views/bjd/zj_input.vue | 10 +- src/views/dic/category.vue | 366 ++++++++++++++--------- src/views/tool/quartz.vue | 2 +- src/views/ysjl/1000/dj/sy/sysy.vue | 4 +- src/views/ysjl/1000/dj/wb/gywb.vue | 4 +- src/views/ysjl/2000/2100/zbg/dj/edit.vue | 2 +- src/views/ysjl/2000/2100/zbg/nd/edit.vue | 4 +- src/views/ysjl/7000/jj/edit.vue | 4 +- src/views/ysjl/8000/dj/edit.vue | 2 +- src/views/zjd/zjbg_list.vue | 4 +- src/views/zjd/zjd_list.vue | 2 +- 18 files changed, 266 insertions(+), 168 deletions(-) diff --git a/src/api/instrument.js b/src/api/instrument.js index 4df3ce4..14879e1 100644 --- a/src/api/instrument.js +++ b/src/api/instrument.js @@ -30,7 +30,7 @@ export function del(params) { export function getDepartmentStatistical() { return api({ - url: '/instrument/getDepartmentStatistical', + url: '/instrument/statistic/getDepartmentStatistical', method: 'get' }) } diff --git a/src/views/bjd/dj_input.vue b/src/views/bjd/dj_input.vue index 635621e..1627a98 100644 --- a/src/views/bjd/dj_input.vue +++ b/src/views/bjd/dj_input.vue @@ -2297,15 +2297,15 @@ export default { } this.bjd.jianyanleibie = 'DJ' this.bjd.totalNum = this.tableData.length - let url = '' + let type = '' if (this.formState === 'create' || this.formState === 'newBuild') { - url = 'bjd/saveBjd' + type = 'post' } else { - url = 'bjd/updateBjd' + type = 'put' } this.apibjd({ - url: url, - method: 'post', + url: '/bjd', + method: type, data: { bjd: this.bjd, paramList: this.tableData, diff --git a/src/views/bjd/dj_list.vue b/src/views/bjd/dj_list.vue index cf022da..acd40ce 100644 --- a/src/views/bjd/dj_list.vue +++ b/src/views/bjd/dj_list.vue @@ -355,7 +355,7 @@ export default { type: 'warning' }).then(() => { this.apibjd({ - url: '/bjd/delBjd', + url: '/bjd', method: 'delete', params: { bjdIds: this.ids.join(',') } }).then(data => { diff --git a/src/views/bjd/dt_list.vue b/src/views/bjd/dt_list.vue index 88bd23f..5efb8da 100644 --- a/src/views/bjd/dt_list.vue +++ b/src/views/bjd/dt_list.vue @@ -318,7 +318,7 @@ export default { type: 'warning' }).then(() => { this.apibjd({ - url: '/bjd/delBjd', + url: '/bjd', method: 'delete', params: { bjdIds: this.multipleSelection.map(rw => { diff --git a/src/views/bjd/jj_input.vue b/src/views/bjd/jj_input.vue index 589dda8..5d92f45 100644 --- a/src/views/bjd/jj_input.vue +++ b/src/views/bjd/jj_input.vue @@ -1502,15 +1502,15 @@ export default { if (this.bjd.ziliaozhonglei === '' || this.bjd.ziliaozhonglei === undefined || this.bjd.ziliaozhonglei === null) { this.bjd.ziliaozhonglei = '3' } - let url = '' + let type = '' if (this.formState === 'create' || this.formState === 'newBuild') { - url = 'bjd/saveBjd' + type = 'post' } else { - url = 'bjd/updateBjd' + type = 'put' } this.apibjd({ - url: url, - method: 'post', + url: '/bjd', + method: type, data: { bjd: this.bjd, paramList: this.tableData, diff --git a/src/views/bjd/jj_list.vue b/src/views/bjd/jj_list.vue index 4b2e303..778b116 100644 --- a/src/views/bjd/jj_list.vue +++ b/src/views/bjd/jj_list.vue @@ -369,7 +369,7 @@ export default { type: 'warning' }).then(() => { this.apibjd({ - url: '/bjd/delBjd', + url: '/bjd', method: 'delete', params: { bjdIds: this.multipleSelection.map(rw => { diff --git a/src/views/bjd/zf_list.vue b/src/views/bjd/zf_list.vue index afd45e9..fcb5c84 100644 --- a/src/views/bjd/zf_list.vue +++ b/src/views/bjd/zf_list.vue @@ -184,7 +184,7 @@ export default { type: 'warning' }).then(() => { this.apibjd({ - url: '/bjd/delBjd', + url: '/bjd', method: 'delete', params: { bjdIds: this.ids } }).then(data => { diff --git a/src/views/bjd/zj_input.vue b/src/views/bjd/zj_input.vue index c551271..b5cab2f 100644 --- a/src/views/bjd/zj_input.vue +++ b/src/views/bjd/zj_input.vue @@ -924,15 +924,15 @@ export default { } } this.bjd.totalNum = this.tableData.length - let url = '' + let type = '' if (this.formState === 'newBuild') { - url = 'bjd/saveBjd' + type = 'post' } else { - url = 'bjd/updateBjd' + type = 'put' } this.apibjd({ - url: url, - method: 'post', + url: '/bjd', + method: type, data: { bjd: this.bjd, paramList: this.tableData, diff --git a/src/views/dic/category.vue b/src/views/dic/category.vue index 5abca87..84bffee 100644 --- a/src/views/dic/category.vue +++ b/src/views/dic/category.vue @@ -6,15 +6,39 @@