Commit d96cfe11 by 宋祥

Merge remote-tracking branch 'origin/dev' into dev

parents cd31faac 2d000bb4
...@@ -146,20 +146,18 @@ module.exports = { ...@@ -146,20 +146,18 @@ module.exports = {
inInfo.set('inqu_status-0-depositDate',this.datapicker) inInfo.set('inqu_status-0-depositDate',this.datapicker)
IPLAT.EiCommunicator.send('HGSC007', 'getByProcessSumWt', inInfo, { IPLAT.EiCommunicator.send('HGSC007', 'getByProcessSumWt', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
if(undefined != res.extAttr.result[0]){ _this.getByProcessSumWtList = [];
if(res.extAttr.result.length){
_this.getByProcessSumWtList = res.extAttr.result[0] _this.getByProcessSumWtList = res.extAttr.result[0]
}else { }else{
_this.getByProcessSumWtList.push({ _this.getByProcessSumWtList.push({
dayWeight:0, dayWeight:0,
monthWeight:0, monthWeight:0,
yearWeight:0, yearWeight:0,
}) })
} }
}, },
onFail: function (err) { onFail: function (err) {}
}
}, },
{async: false} {async: false}
); );
...@@ -172,7 +170,14 @@ module.exports = { ...@@ -172,7 +170,14 @@ module.exports = {
inInfo.set('inqu_status-0-depositDate',this.dataPicker) inInfo.set('inqu_status-0-depositDate',this.dataPicker)
IPLAT.EiCommunicator.send('HGSC007', 'queryBySunWt', inInfo, { IPLAT.EiCommunicator.send('HGSC007', 'queryBySunWt', inInfo, {
onSuccess: function (res) { onSuccess: function (res) {
_this.queryBySunWtList = res.blocks.result.extAttr.processNameList console.log(res,'显示的数据')
if(res.extAttr.result.length){
_this.queryBySunWtList = res.extAttr.result
}else{
_this.queryBySunWtList =[]
}
_this.$forceUpdate();
}, },
onFail: function (err) { onFail: function (err) {
} }
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
v-for="(colVal,i) in columns" v-for="(colVal,i) in columns"
:key="i"
:prop="colVal.value" :prop="colVal.value"
:align="colVal.align" :align="colVal.align"
:label="colVal.label" :label="colVal.label"
...@@ -95,7 +96,7 @@ module.exports = { ...@@ -95,7 +96,7 @@ module.exports = {
label: '进度(%)', label: '进度(%)',
align: 'center', align: 'center',
value: 'schedule', value: 'schedule',
width:'40' width:'80'
} }
] ]
}; };
......
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