|
@ -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 { |
|
|