Browse Source

fix:修改参数

shibei_master
123456 3 years ago
parent
commit
577630fc39
  1. 10
      src/views/modules/plugins/stats/factagencyuserhousedaily.vue

10
src/views/modules/plugins/stats/factagencyuserhousedaily.vue

@ -18,7 +18,7 @@
>
</el-option>
</el-select> -->
<el-cascader ref="cascaderUnit" v-model.trim="dataForm.objectId" :options="optionsA" :props="{ checkStrictly: true, expandTrigger: 'hover', emitPath: false,children:'children',label:'objectName',value:'objectId'}" popper-class="cascader-block">
<el-cascader ref="cascaderUnit" v-model.trim="dataForm.agencyId" :options="optionsA" :props="{ checkStrictly: true, expandTrigger: 'hover', emitPath: false,children:'children',label:'objectName',value:'objectId'}" popper-class="cascader-block">
<template slot-scope="{ node, data }">
<div @click="cascaderClick(data)">
<!-- <span class="block"></span> -->
@ -198,8 +198,8 @@ export default {
})
},
cascaderClick (nodeData) {
this.dataForm.objectId = nodeData.objectId;
this.dataForm.objectType = nodeData.objectType
this.dataForm.agencyId = nodeData.objectId;
this.dataForm.level = nodeData.objectType
this.$refs.cascaderUnit.checkedValue = nodeData.objectId;
this.$refs.cascaderUnit.computePresentText();
this.$refs.cascaderUnit.toggleDropDownVisible(false);
@ -217,8 +217,8 @@ export default {
// this.optionsA = res.data
// console.log(this.optionsA);
this.optionsA.push(res.data)
this.dataForm.objectId = res.data.objectId
this.dataForm.objectType = res.data.objectType
this.dataForm.agencyId = res.data.objectId
this.dataForm.level = res.data.objectType
}
})
.catch(() => {

Loading…
Cancel
Save