Browse Source

统计

preview
jiangyy 4 years ago
parent
commit
260ddcd0a9
  1. 4
      epmet-oper-web/src/views/components/CTreeDialogCheckBox.vue
  2. 32
      epmet-oper-web/src/views/modules/dataExport/operStatic.vue

4
epmet-oper-web/src/views/components/CTreeDialogCheckBox.vue

@ -20,9 +20,9 @@
</li> </li>
</ul> </ul>
</div> </div>
<button type="button" <el-button type="button"
class="choose" class="choose"
@click="handleSelect">选择</button> @click="handleSelect">选择</el-button>
</div> </div>
<el-dialog :title="title" <el-dialog :title="title"
lock-scroll lock-scroll

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

@ -27,30 +27,12 @@
v-model="agencyIdArray" v-model="agencyIdArray"
style="width:480px" style="width:480px"
:key="iscascaderShow" :key="iscascaderShow"
:options="options" :options="casOptions"
:props="optionProps" :props="optionProps"
@change="handleChange" @change="handleChange"
clearable></el-cascader> clearable></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="组织"
:label-width="labelWidth">
<c-tree-dialog-single style="width:200px;float:left"
ref="agencyCTreeDialog"
:params="treeParams"
:placeholder="'组织'"
:type="'primary'"
:title="'选择组织'"
:url="agencyUrl"
:defaultExpandAll="false"
:defaultOnlyLeaf="false"
:autoLoad="false"
:selBtnDisabled="selBtnDisabled"
@handleOk="handleAgencyOk"
@handleClear="handleAgencyClear">
</c-tree-dialog-single>
</el-form-item>
<div> <div>
<el-form-item label="统计类型" <el-form-item label="统计类型"
:label-width="labelWidth"> :label-width="labelWidth">
@ -135,18 +117,18 @@ export default {
// //
labelWidth: '70px', labelWidth: '70px',
options: [], casOptions: [],
agencyIdArray: [], agencyIdArray: [],
customerList: [], customerList: [],
iscascaderShow: 0, iscascaderShow: 0,
optionProps: { optionProps: {
multiple: true, multiple: false,
value: 'agencyId', value: 'agencyId',
label: 'agencyName', label: 'agencyName',
children: 'subAgencyList', children: 'subAgencyList',
// checkStrictly: true checkStrictly: true
}, },
// //
@ -263,7 +245,7 @@ export default {
handelChangeCustomer (index) { handelChangeCustomer (index) {
this.customerName = this.customerList[index].customerName this.customerName = this.customerList[index].customerName
this.getAgencylist()// this.getAgencylist()//
// debugger
this.treeParams.customerId = this.customerList[index].customerId this.treeParams.customerId = this.customerList[index].customerId
this.selBtnDisabled = false this.selBtnDisabled = false
this.$refs['agencyCTreeDialog'].loadData() this.$refs['agencyCTreeDialog'].loadData()
@ -310,11 +292,11 @@ export default {
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.iscascaderShow
this.options = [] this.casOptions = []
this.agencyIdArray.length = [] this.agencyIdArray.length = []
this.tableParams.agencyId = '' this.tableParams.agencyId = ''
if (data) { if (data) {
this.options.push(data) this.casOptions.push(data)
} }
} else { } else {

Loading…
Cancel
Save