diff --git a/epmet-oper-web/.env.development b/epmet-oper-web/.env.development
index a386e44..7ebfcb6 100644
--- a/epmet-oper-web/.env.development
+++ b/epmet-oper-web/.env.development
@@ -1,5 +1,5 @@
NODE_ENV=development
-# VUE_APP_API_SERVER = http://192.168.1.130:8080/api
-VUE_APP_API_SERVER = http://10.10.10.98:8080/api
+VUE_APP_API_SERVER = http://192.168.1.130:8080/api
+# VUE_APP_API_SERVER = http://10.10.10.98:8080/api
# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api
VUE_APP_NODE_ENV=dev
\ No newline at end of file
diff --git a/epmet-oper-web/public/index.html b/epmet-oper-web/public/index.html
index c9509c0..cbfaa17 100644
--- a/epmet-oper-web/public/index.html
+++ b/epmet-oper-web/public/index.html
@@ -33,8 +33,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
-
-
+
+
<% } %>
diff --git a/epmet-oper-web/src/js/ajax.js b/epmet-oper-web/src/js/ajax.js
index bc512c9..a6d28f3 100644
--- a/epmet-oper-web/src/js/ajax.js
+++ b/epmet-oper-web/src/js/ajax.js
@@ -251,11 +251,11 @@ export default {
if (data.code == 0) {
//业务成功
if (typeof cb_su === 'function') {
- cb_su(data.data, data.msg)
+ cb_su(data.data, data.msg + ":" + data.internalMsg)
}
} else {
//业务失败
- if (typeof cb_err === 'function') cb_err(data.msg, data.data)
+ if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data.data)
}
} else {
if (typeof cb_err === 'function') cb_err(res)
@@ -270,7 +270,13 @@ export default {
}
})
},
- post2 (url, data, cb_su, cb_err) {
+ post2 (url, data, cb_su, cb_err, headers) {
+ var h = {}
+ if (headers && JSON.stringify(headers) != '{}') {
+ h = {
+ headers,
+ }
+ }
//var data = qs.stringify(paramas);
axios
.post(processUrl(url), data)
@@ -278,20 +284,12 @@ export default {
if (res) {
if (res.status === 200) {
var data = res.data
- if (data.sysresultcode === 'success') {
- //业务成功
- if (typeof cb_su === 'function') {
- cb_su(data.data, data.rspMsg)
- }
- } else if (data.sysresultcode === 'fail') {
- //业务失败
- if (typeof cb_err === 'function') cb_err(data.rspMsg, data.data)
- }
+ cb_su(data, data.msg + ":" + data.internalMsg)
} else {
- if (typeof cb_err === 'function') cb_err(res)
+ if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data)
}
} else {
- if (typeof cb_err === 'function') cb_err(res)
+ if (typeof cb_err === 'function') cb_err(data.msg + ":" + data.internalMsg, data)
}
})
.catch((err) => {
diff --git a/epmet-oper-web/src/js/columns/code/commitCode.js b/epmet-oper-web/src/js/columns/code/commitCode.js
index de49c6a..8136b57 100644
--- a/epmet-oper-web/src/js/columns/code/commitCode.js
+++ b/epmet-oper-web/src/js/columns/code/commitCode.js
@@ -140,12 +140,12 @@ export default {
],
form: [
{
- key: 'customerId',
- title: '客户',
- type: 'select',
+ key: 'clientType',
+ title: '类型',
+ type: 'radio',
rule: [{
required: true,
- message: '请选择客户',
+ message: '请选择类型',
trigger: 'blur'
}],
display: ['formA', 'formU', 'table', 'model'],
@@ -154,12 +154,12 @@ export default {
width: 100
},
{
- key: 'clientType',
- title: '类型',
- type: 'radio',
+ key: 'customerId',
+ title: '客户',
+ type: 'select',
rule: [{
required: true,
- message: '请选择类型',
+ message: '请选择客户',
trigger: 'blur'
}],
display: ['formA', 'formU', 'table', 'model'],
diff --git a/epmet-oper-web/src/views/modules/code/CommitForm.vue b/epmet-oper-web/src/views/modules/code/CommitForm.vue
index e8bf7af..6f178c6 100644
--- a/epmet-oper-web/src/views/modules/code/CommitForm.vue
+++ b/epmet-oper-web/src/views/modules/code/CommitForm.vue
@@ -1,59 +1,68 @@
-
-
+
+
+
-
-
-
-
- 获取配置
+
+
+
+
+ 获取配置
-
+
-
-
+
+
diff --git a/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue b/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue
index 4a6e6c4..5b8802a 100644
--- a/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue
+++ b/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue
@@ -372,7 +372,7 @@ export default {
},
submitDataForm4 () {
let dataForm = this.dataForm4
- dataForm.customerId = this.dataForm4.customerId
+ dataForm.customerId = this.customerId
dataForm.agencyId = this.dataForm4.agencyId
dataForm.mobile = this.dataForm4.mobile.toString()
console.log(dataForm)