From d41c1d99bfe6d6def89802b8ca98b6a1503d8d1c Mon Sep 17 00:00:00 2001 From: xu_lw Date: Mon, 26 Aug 2019 10:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B7=A5=E7=A8=8B=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/pub/buiconfig-add-or-update.vue | 12 +++---- .../src/views/modules/pub/buiconfig.vue | 14 ++++---- .../modules/pub/buidct-add-or-update.vue | 34 +++++++++---------- .../modules/pub/buihlp-add-or-update.vue | 22 ++++++------ 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/console-web/src/views/modules/pub/buiconfig-add-or-update.vue b/console-web/src/views/modules/pub/buiconfig-add-or-update.vue index f11481c9..1a4c9b28 100755 --- a/console-web/src/views/modules/pub/buiconfig-add-or-update.vue +++ b/console-web/src/views/modules/pub/buiconfig-add-or-update.vue @@ -69,15 +69,15 @@ this.$refs['dataForm'].resetFields() if (this.dataForm.id) { this.$http({ - url: this.$http.adornUrl(`/bui/buiconfig/info.do?id=${this.dataForm.id}`), + url: this.$http.adornUrl(`/buipubbpc1/buiConfigQuery.do?id=${this.dataForm.id}`), method: 'get', params: this.$http.adornParams() }).then(({data}) => { if (isGDASucc(data)) { - this.dataForm.param_key = data.buiconfig.param_key - this.dataForm.param_value = data.buiconfig.param_value - this.dataForm.status = data.buiconfig.status - this.dataForm.remark = data.buiconfig.remark + this.dataForm.param_key = data.data.param_key + this.dataForm.param_value = data.data.param_value + this.dataForm.status = data.data.status + this.dataForm.remark = data.data.remark } }) } @@ -88,7 +88,7 @@ this.$refs['dataForm'].validate((valid) => { if (valid) { this.$http({ - url: this.$http.adornUrl(`/bui/buiconfig/${!this.dataForm.id ? 'add.do' : 'update.do'}`), + url: this.$http.adornUrl(`/buipubbpc1/buiConfig${!this.dataForm.id ? 'Add' : 'Update'}.do`), method: 'post', data: this.$http.adornData({ 'id': this.dataForm.id || undefined, diff --git a/console-web/src/views/modules/pub/buiconfig.vue b/console-web/src/views/modules/pub/buiconfig.vue index 7a6438d8..e809b04d 100755 --- a/console-web/src/views/modules/pub/buiconfig.vue +++ b/console-web/src/views/modules/pub/buiconfig.vue @@ -104,9 +104,9 @@ AddOrUpdate }, activated () { - getDictValue('status').then(response => { - this.statusOptions = response.data.rows - }) + // getDictValue('status').then(response => { + // this.statusOptions = response.data.rows + // }) this.getDataList() }, methods: { @@ -129,7 +129,7 @@ getDataList () { this.dataListLoading = true this.$http({ - url: this.$http.adornUrl('/bui/buiconfig/list.do'), + url: this.$http.adornUrl('/buipubbpc1/buiConfigList.do'), method: 'get', params: this.$http.adornParams({ 'page_no': this.pageIndex, @@ -139,8 +139,8 @@ }) }).then(({data}) => { if (isGDASucc(data)) { - if (data.list) { - this.dataList = data.list + if (data.data) { + this.dataList = data.data this.totalPage = parseInt(data.tot_rec_num) } else { this.dataList = [] @@ -187,7 +187,7 @@ type: 'warning' }).then(() => { this.$http({ - url: this.$http.adornUrl('/bui/buiconfig/delete.do'), + url: this.$http.adornUrl('/buipubbpc1/buiConfigDelete.do'), method: 'post', data: this.$http.adornData({ 'ids': ids.join(',') diff --git a/console-web/src/views/modules/pub/buidct-add-or-update.vue b/console-web/src/views/modules/pub/buidct-add-or-update.vue index 4fb952e6..22da9a66 100755 --- a/console-web/src/views/modules/pub/buidct-add-or-update.vue +++ b/console-web/src/views/modules/pub/buidct-add-or-update.vue @@ -176,23 +176,23 @@ params: this.$http.adornParams() }).then(({data}) => { if (isGDASucc(data)) { - this.dataForm.dct_nm = data.buidct.dct_nm - this.dataForm.dct_len = data.buidct.dct_len - this.dataForm.dct_typ = data.buidct.dct_typ - this.dataForm.dct_cnm = data.buidct.dct_cnm - this.dataForm.dct_decimal = data.buidct.dct_decimal - this.dataForm.dct_sign = data.buidct.dct_sign - this.dataForm.dct_format = data.buidct.dct_format - this.dataForm.dct_func = data.buidct.dct_func - this.dataForm.data_typ = data.buidct.data_typ - this.dataForm.dct_mod = data.buidct.dct_mod - this.dataForm.dct_desc = data.buidct.dct_desc - this.dataForm.req_id = data.buidct.req_id - this.dataForm.tm_smp = data.buidct.tm_smp - this.dataForm.nod_id = data.buidct.nod_id - this.dataForm.upd_oper = data.buidct.upd_oper - this.dataForm.upd_desc = data.buidct.upd_desc - this.dataForm.fldhlp = data.buidct.fldhlp + this.dataForm.dct_nm = data.data.dct_nm + this.dataForm.dct_len = data.data.dct_len + this.dataForm.dct_typ = data.data.dct_typ + this.dataForm.dct_cnm = data.data.dct_cnm + this.dataForm.dct_decimal = data.data.dct_decimal + this.dataForm.dct_sign = data.data.dct_sign + this.dataForm.dct_format = data.data.dct_format + this.dataForm.dct_func = data.data.dct_func + this.dataForm.data_typ = data.data.data_typ + this.dataForm.dct_mod = data.data.dct_mod + this.dataForm.dct_desc = data.data.dct_desc + this.dataForm.req_id = data.data.req_id + this.dataForm.tm_smp = data.data.tm_smp + this.dataForm.nod_id = data.data.nod_id + this.dataForm.upd_oper = data.data.upd_oper + this.dataForm.upd_desc = data.data.upd_desc + this.dataForm.fldhlp = data.data.fldhlp } }) } diff --git a/console-web/src/views/modules/pub/buihlp-add-or-update.vue b/console-web/src/views/modules/pub/buihlp-add-or-update.vue index e838901c..951d17bb 100755 --- a/console-web/src/views/modules/pub/buihlp-add-or-update.vue +++ b/console-web/src/views/modules/pub/buihlp-add-or-update.vue @@ -108,17 +108,17 @@ params: this.$http.adornParams() }).then(({data}) => { if (isGDASucc(data)) { - this.dataForm.fld_order = data.buihlp.fld_order - this.dataForm.fld_nm = data.buihlp.fld_nm - this.dataForm.fld_val = data.buihlp.fld_val - this.dataForm.fld_exp = data.buihlp.fld_exp - this.dataForm.fld_typ = data.buihlp.fld_typ - this.dataForm.fld_exp_desc = data.buihlp.fld_exp_desc - this.dataForm.tm_smp = data.buihlp.tm_smp - this.dataForm.req_id = data.buihlp.req_id - this.dataForm.nod_id = data.buihlp.nod_id - this.dataForm.upd_oper = data.buihlp.upd_oper - this.dataForm.upd_desc = data.buihlp.upd_desc + this.dataForm.fld_order = data.data.fld_order + this.dataForm.fld_nm = data.data.fld_nm + this.dataForm.fld_val = data.data.fld_val + this.dataForm.fld_exp = data.data.fld_exp + this.dataForm.fld_typ = data.data.fld_typ + this.dataForm.fld_exp_desc = data.data.fld_exp_desc + this.dataForm.tm_smp = data.data.tm_smp + this.dataForm.req_id = data.data.req_id + this.dataForm.nod_id = data.data.nod_id + this.dataForm.upd_oper = data.data.upd_oper + this.dataForm.upd_desc = data.data.upd_desc } }) }