Browse Source

统计

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

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

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

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

@ -27,30 +27,12 @@
v-model="agencyIdArray"
style="width:480px"
:key="iscascaderShow"
:options="options"
:options="casOptions"
:props="optionProps"
@change="handleChange"
clearable></el-cascader>
</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>
<el-form-item label="统计类型"
:label-width="labelWidth">
@ -135,18 +117,18 @@ export default {
//
labelWidth: '70px',
options: [],
casOptions: [],
agencyIdArray: [],
customerList: [],
iscascaderShow: 0,
optionProps: {
multiple: true,
multiple: false,
value: 'agencyId',
label: 'agencyName',
children: 'subAgencyList',
// checkStrictly: true
checkStrictly: true
},
//
@ -263,7 +245,7 @@ export default {
handelChangeCustomer (index) {
this.customerName = this.customerList[index].customerName
this.getAgencylist()//
// debugger
this.treeParams.customerId = this.customerList[index].customerId
this.selBtnDisabled = false
this.$refs['agencyCTreeDialog'].loadData()
@ -310,11 +292,11 @@ export default {
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
++this.iscascaderShow
this.options = []
this.casOptions = []
this.agencyIdArray.length = []
this.tableParams.agencyId = ''
if (data) {
this.options.push(data)
this.casOptions.push(data)
}
} else {

Loading…
Cancel
Save