jiangyy 4 years ago
parent
commit
68f0444225
  1. 4
      epmet-oper-web/src/js/columns/dataReport/operStatic.js
  2. 16
      epmet-oper-web/src/views/modules/dataExport/operStatic.vue
  3. 14
      epmet-oper-web/src/views/modules/workPc/guidance/guidanceList.vue

4
epmet-oper-web/src/js/columns/dataReport/operStatic.js

@ -13,13 +13,13 @@ export default [
width: width width: width
}, },
{ {
key: 'resiCount', key: 'residentCount',
title: '居民数', title: '居民数',
display: ['formA', 'formU', 'table', 'model'], display: ['formA', 'formU', 'table', 'model'],
width: width width: width
}, },
{ {
key: 'partyCount', key: 'partyMemberCount',
title: '党员数', title: '党员数',
display: ['formA', 'formU', 'table', 'model'], display: ['formA', 'formU', 'table', 'model'],
width: width width: width

16
epmet-oper-web/src/views/modules/dataExport/operStatic.vue

@ -232,9 +232,14 @@ export default {
}, },
handleEndTimeChange (item) { handleEndTimeChange (item) {
const endTimeArray = util.dateFormatter(item, 'date').split('-') if (item) {
this.tableParams.endTime = endTimeArray[0] + endTimeArray[1] + endTimeArray[2] const endTimeArray = util.dateFormatter(item, 'date').split('-')
this.endTime = endTimeArray[0] + '年' + endTimeArray[1] + '月' + endTimeArray[2] + '日' this.tableParams.endTime = endTimeArray[0] + endTimeArray[1] + endTimeArray[2]
this.endTime = endTimeArray[0] + '年' + endTimeArray[1] + '月' + endTimeArray[2] + '日'
} else {
this.tableParams.endTime = ''
this.endTimeShow = ''
}
}, },
handleTimeChange (time) { handleTimeChange (time) {
@ -289,6 +294,11 @@ export default {
return false return false
} }
if (this.tableParams.type === 'end' && !this.tableParams.endTime) {
this.$message.info("请选择结束日期")
return false
}
this.tableParams.agencyId = this.agencyIdArray[this.agencyIdArray.length - 1] this.tableParams.agencyId = this.agencyIdArray[this.agencyIdArray.length - 1]
return true return true

14
epmet-oper-web/src/views/modules/workPc/guidance/guidanceList.vue

@ -10,8 +10,9 @@
<div> <div>
<el-form-item label="所属组织" <el-form-item label="所属组织"
:label-width="labelWidth"> :label-width="labelWidth">
<el-cascader v-model="tableParams.agencyId" <el-cascader v-model="agencyIdArray"
style="width:480px" style="width:480px"
:key="iscascaderShow"
:options="options" :options="options"
:props="optionProps" :props="optionProps"
clearable></el-cascader> clearable></el-cascader>
@ -103,6 +104,8 @@ export default {
}, },
options: [], options: [],
agencyIdArray: [],
iscascaderShow: 0,
categoryList: [], categoryList: [],
@ -210,8 +213,10 @@ export default {
} }
}, },
loadData () { loadData () {
if (this.tableParams.agencyId.length > 0) { if (this.agencyIdArray.length > 0) {
this.tableParams.agencyId = this.tableParams.agencyId[this.tableParams.agencyId.length - 1] this.tableParams.agencyId = this.agencyIdArray[this.agencyIdArray.length - 1]
} else {
this.tableParams.agencyId = ''
} }
this.$refs.table.loadData() this.$refs.table.loadData()
@ -273,7 +278,10 @@ export default {
const params = {} const params = {}
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
++this.iscascaderShow
this.options = [] this.options = []
this.agencyIdArray.length = []
this.options.push(data) this.options.push(data)
} else { } else {

Loading…
Cancel
Save