调整工程结构
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(',')
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user