Commit a4ec823f by 抽刀断水

调整模块组件操作逻辑和回显转化字段

parent 46b42e41
...@@ -105,12 +105,11 @@ ...@@ -105,12 +105,11 @@
<!--日期框 日期时间--> <!--日期框 日期时间-->
<el-date-picker <el-date-picker
v-model="formData[item.id]" v-model="formData[item.id]"
type="datetime" type="date"
align="right" align="right"
:picker-options="item.pickerOptions" :picker-options="item.pickerOptions"
unlink-panels suffix-icon="el-icon-time"
suffix-icon="el-icon-date" value-format="yyyy-MM-dd"
value-format="yyyy-MM-dd HH:mm:ss"
v-else-if="item.type == 'datetime'" v-else-if="item.type == 'datetime'"
> >
</el-date-picker> </el-date-picker>
...@@ -818,6 +817,8 @@ ...@@ -818,6 +817,8 @@
:width="pageBs == 'zdxxgl' || pageBs == 'gzrygl' ? '460' : '200'" :width="pageBs == 'zdxxgl' || pageBs == 'gzrygl' ? '460' : '200'"
:fixed="pageBs == 'rySp' ? 'right' : false" :fixed="pageBs == 'rySp' ? 'right' : false"
v-if=" v-if="
pageBs == 'wfqdzczl' ||
pageBs == 'xywspdzczl' ||
!( !(
pageBs == 'gnsyrz' || pageBs == 'gnsyrz' ||
pageBs == 'jdcxsGl' || pageBs == 'jdcxsGl' ||
...@@ -839,9 +840,13 @@ ...@@ -839,9 +840,13 @@
pageBs == 'wscdajtj' || pageBs == 'wscdajtj' ||
pageBs == 'jszls' || pageBs == 'jszls' ||
pageBs == 'queryCheckBj' || pageBs == 'queryCheckBj' ||
pageBs == 'xywspdzczl' ||
pageBs != 'queryZj' ||
pageBs != 'queryZj' || pageBs != 'queryZj' ||
pageBs != 'queryWl' || pageBs != 'queryWl' ||
pageBs != 'queryDx' pageBs != 'queryDx' ||
pageBs != 'wfqdzczl' ||
pageBs == 'wfzdzczl'
) )
" "
> >
...@@ -866,7 +871,9 @@ ...@@ -866,7 +871,9 @@
pageBs == 'xywspdzczl' || pageBs == 'xywspdzczl' ||
pageBs == 'sqqxgl' || pageBs == 'sqqxgl' ||
pageBs == 'yjrwGl' || pageBs == 'yjrwGl' ||
pageBs == 'wfzdzczl' pageBs == 'wfzdzczl' ||
pageBs == 'wfqdzczl'
) )
" "
>修改</span >修改</span
...@@ -1010,7 +1017,7 @@ ...@@ -1010,7 +1017,7 @@
style="margin-right: 16px" style="margin-right: 16px"
v-if=" v-if="
(pageBs == 'wsqfbdzczl' || pageBs == 'wfqdzczl') && (pageBs == 'wsqfbdzczl' || pageBs == 'wfqdzczl') &&
(scope.row.spsftg == '0' || scope.row.spsftg == '3') (scope.row.spsftg == '未通过' || scope.row.spsftg == '草稿')
" "
>提请审批</span >提请审批</span
> >
...@@ -1325,6 +1332,7 @@ export default { ...@@ -1325,6 +1332,7 @@ export default {
default: () => [], default: () => [],
}, },
cxFormData: Object, cxFormData: Object,
transformFormTable: Object,
cxUrl: String, cxUrl: String,
header: String, header: String,
pageFlag: String, pageFlag: String,
...@@ -1919,6 +1927,12 @@ export default { ...@@ -1919,6 +1927,12 @@ export default {
} }
}); });
self.tableData = response.data.rows; self.tableData = response.data.rows;
for (let t in self.transformFormTable){
self.tableData.map(res=>{
res[t] = self.transformFormTable[t][res[t]]
})
}
self.tableDataLength = response.data.total; self.tableDataLength = response.data.total;
self.tPage = Math.ceil(response.data.total / self.page_size); self.tPage = Math.ceil(response.data.total / self.page_size);
self.talbeBhgCount = response.data.bhgCount; self.talbeBhgCount = response.data.bhgCount;
...@@ -2050,6 +2064,9 @@ export default { ...@@ -2050,6 +2064,9 @@ export default {
.Content .el-date-editor--daterange.el-input__inner { .Content .el-date-editor--daterange.el-input__inner {
width: 100% !important; width: 100% !important;
} }
.el-icon-date:before {
content: "\e78e" !important;
}
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
@import "../assets/styles/rightContent.scss"; @import "../assets/styles/rightContent.scss";
......
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