Commit ee972b48 authored by 邓学云's avatar 邓学云

数据结构修改后

parent a4ba73c8
...@@ -448,19 +448,19 @@ export default { ...@@ -448,19 +448,19 @@ export default {
getDetails(value){ getDetails(value){
getEditDetails({GUID:value}).then(res => { getEditDetails({GUID:value}).then(res => {
this.$nextTick(() => { this.$nextTick(() => {
if(res.LIMIT_MEMBER_GROUP_GUID){ if(res.data.LIMIT_MEMBER_GROUP_GUID){
res.LIMIT_MEMBER_GROUP_GUID=res.LIMIT_MEMBER_GROUP_GUID.split(',') res.data.LIMIT_MEMBER_GROUP_GUID=res.data.LIMIT_MEMBER_GROUP_GUID.split(',')
} }
console.log(res) console.log(res)
this.modalForm.setFieldsValue(res) this.modalForm.setFieldsValue(res.data)
if(res.SELECT_AREA.length>0){ if(res.data.SELECT_AREA.length>0){
// setTimeout(() => { // setTimeout(() => {
// this.expand([res.PROVINCES,res.SELECT_AREA],{}) // this.expand([res.PROVINCES,res.SELECT_AREA],{})
// },1000) // },1000)
this.modalTree.checkedKeys=res.SELECT_AREA.split(','); this.modalTree.checkedKeys=res.data.SELECT_AREA.split(',');
} }
this.tableData=res.BRANCHES_INFO; this.tableData=res.data.BRANCHES_INFO;
res.BRANCHES_INFO.forEach(item => { res.data.BRANCHES_INFO.forEach(item => {
this.selectedRowKeys.push(item.CODE) this.selectedRowKeys.push(item.CODE)
}) })
}) })
...@@ -570,17 +570,17 @@ export default { ...@@ -570,17 +570,17 @@ export default {
isLeaf:false, isLeaf:false,
children:[] children:[]
}] }]
for(let item in res){ for(let item in res.data){
res[item].key=res[item].GUID; res.data[item].key=res.data[item].GUID;
res[item].title=res[item].NAME; res.data[item].title=res.data[item].NAME;
res[item].isLeaf=false; res.data[item].isLeaf=false;
res[item].CITY.map(function(item){ res.data[item].CITY.map(function(item){
item.key=item.GUID; item.key=item.GUID;
item.title=item.NAME; item.title=item.NAME;
item.isLeaf=true; item.isLeaf=true;
}) })
res[item].children=res[item].CITY; res.data[item].children=res.data[item].CITY;
this.modalTree.treeData[0].children.push(res[item]) this.modalTree.treeData[0].children.push(res.data[item])
} }
this.modalTree.treeData=[...this.modalTree.treeData] this.modalTree.treeData=[...this.modalTree.treeData]
}).catch(err => { }).catch(err => {
......
...@@ -303,7 +303,7 @@ export default { ...@@ -303,7 +303,7 @@ export default {
this.handOk=0; this.handOk=0;
// 获取编辑详情 // 获取编辑详情
getTemplateDetails({GUID:value.GUID}).then(res => { getTemplateDetails({GUID:value.GUID}).then(res => {
this.modalForm.setFieldsValue(res) this.modalForm.setFieldsValue(res.data)
}).catch(err => { }).catch(err => {
}) })
......
...@@ -570,14 +570,14 @@ ...@@ -570,14 +570,14 @@
}; };
getDCDetails(id).then(res => { getDCDetails(id).then(res => {
this.$nextTick(() => { this.$nextTick(() => {
this.addressProvince=res.data[0].RECIVER_PROVINCE; this.addressProvince=res.data.RECIVER_PROVINCE;
this.addressCity=res.data[0].RECIVER_CITY; this.addressCity=res.data.RECIVER_CITY;
this.addressRegion=res.data[0].RECIVER_REGION; this.addressRegion=res.data.RECIVER_REGION;
res.data[0].WORK_TIME_START=this.timeGet(res.data[0].WORK_TIME)[0] res.data.WORK_TIME_START=this.timeGet(res.data.WORK_TIME)[0]
res.data[0].WORK_TIME_END=this.timeGet(res.data[0].WORK_TIME)[1] res.data.WORK_TIME_END=this.timeGet(res.data.WORK_TIME)[1]
res.data[0].DELIVERY_TIME_START=this.timeGet(res.data[0].DELIVERY_TIME)[0] res.data.DELIVERY_TIME_START=this.timeGet(res.data.DELIVERY_TIME)[0]
res.data[0].DELIVERY_TIME_END=this.timeGet(res.data[0].DELIVERY_TIME)[1] res.data.DELIVERY_TIME_END=this.timeGet(res.data.DELIVERY_TIME)[1]
this.form.setFieldsValue(res.data[0]) this.form.setFieldsValue(res.data)
}) })
}).catch(err => { }).catch(err => {
......
...@@ -794,31 +794,31 @@ ...@@ -794,31 +794,31 @@
var id=this.$route.query.GUID; var id=this.$route.query.GUID;
getStoreDetails(id).then(res => { getStoreDetails(id).then(res => {
this.$nextTick(() => { this.$nextTick(() => {
this.addressProvince=res.data[0].RECIVER_PROVINCE; this.addressProvince=res.data.RECIVER_PROVINCE;
this.addressCity=res.data[0].RECIVER_CITY; this.addressCity=res.data.RECIVER_CITY;
this.addressRegion=res.data[0].RECIVER_REGION; this.addressRegion=res.data.RECIVER_REGION;
res.data[0].WORK_TIME_START=this.timeGet(res.data[0].WORK_TIME)[0] res.data.WORK_TIME_START=this.timeGet(res.data.WORK_TIME)[0]
res.data[0].WORK_TIME_END=this.timeGet(res.data[0].WORK_TIME)[1] res.data.WORK_TIME_END=this.timeGet(res.data.WORK_TIME)[1]
res.data[0].DELIVERY_TIME_START=this.timeGet(res.data[0].DELIVERY_TIME)[0] res.data.DELIVERY_TIME_START=this.timeGet(res.data.DELIVERY_TIME)[0]
res.data[0].DELIVERY_TIME_END=this.timeGet(res.data[0].DELIVERY_TIME)[1] res.data.DELIVERY_TIME_END=this.timeGet(res.data.DELIVERY_TIME)[1]
if(res.data[0].LICENCE_IMAGE_PATH){ if(res.data.LICENCE_IMAGE_PATH){
this.fileList.push({ this.fileList.push({
uid:'-1', uid:'-1',
name:'test.png', name:'test.png',
status:'done', status:'done',
url:res.data[0].LICENCE_IMAGE_PATH, url:res.data.LICENCE_IMAGE_PATH,
}) })
} }
if(res.data[0].BRANCH_IMAGE_PATH){ if(res.data.BRANCH_IMAGE_PATH){
this.BranchfileList.push({ this.BranchfileList.push({
uid:'-1', uid:'-1',
name:'test.png', name:'test.png',
status:'done', status:'done',
url:res.data[0].BRANCH_IMAGE_PATH, url:res.data.BRANCH_IMAGE_PATH,
}) })
} }
console.log(res.data[0]) console.log(res.data)
this.form.setFieldsValue(res.data[0]) this.form.setFieldsValue(res.data)
}) })
}).catch(err => { }).catch(err => {
......
...@@ -493,7 +493,7 @@ export default { ...@@ -493,7 +493,7 @@ export default {
this.handOk=0; this.handOk=0;
getEvaluateDetails(value.GUID).then(res => { getEvaluateDetails(value.GUID).then(res => {
this.$nextTick(() => { this.$nextTick(() => {
this.modalForm.setFieldsValue(res) this.modalForm.setFieldsValue(res.data)
}) })
// this.queryParam1=Object.assign({}, res); // this.queryParam1=Object.assign({}, res);
}).catch(err => { }).catch(err => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment