This commit is contained in:
liuye
2023-09-06 16:43:12 +08:00
parent 7a67f0ebac
commit 587b472194
2 changed files with 9 additions and 9 deletions

View File

@@ -34,7 +34,7 @@
<span class="shortcut" v-for="(item,i) in timeCheck" :key="i" :class="{active:type==i}"
@click="timeChange(i)" v-text="item"/>
<el-cascader ref="cascader2" clearable v-model="deptList" :options="deptOptions" placeholder="所属部门" size="small"
:props="defaultProps" :show-all-levels="false" @change="deptSelect"></el-cascader>
:props="defaultProps" :show-all-levels="false" @visible-change="deptSelect"></el-cascader>
</el-row>
</template>
</ai-title>
@@ -106,7 +106,7 @@ export default {
return {
defaultProps: {
label: 'name',
value: 'id',
value: 'fullId',
checkStrictly: true,
},
deptOptions: [],
@@ -361,9 +361,9 @@ export default {
}
},
deptSelect(val) {
this.deptList = val
this.$refs.cascader2.dropDownVisible = false;
this.getStatistics()
if(!val) {
this.getStatistics()
}
},
timeChange(index) {
this.type = index

View File

@@ -110,7 +110,7 @@ export default {
return {
defaultProps: {
label: 'name',
value: 'id',
value: 'fullId',
checkStrictly: true,
},
deptOptions: [],
@@ -365,9 +365,9 @@ export default {
}
},
deptSelect(val) {
this.deptList = val
this.isTypeInit = false
this.getStatistics()
if(!val) {
this.getStatistics()
}
},
timeChange(index) {
this.type = index