Merge remote-tracking branch 'origin/build' into build

This commit is contained in:
aixianling
2023-09-06 16:46:17 +08:00
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}" <span class="shortcut" v-for="(item,i) in timeCheck" :key="i" :class="{active:type==i}"
@click="timeChange(i)" v-text="item"/> @click="timeChange(i)" v-text="item"/>
<el-cascader ref="cascader2" clearable v-model="deptList" :options="deptOptions" placeholder="所属部门" size="small" <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> </el-row>
</template> </template>
</ai-title> </ai-title>
@@ -106,7 +106,7 @@ export default {
return { return {
defaultProps: { defaultProps: {
label: 'name', label: 'name',
value: 'id', value: 'fullId',
checkStrictly: true, checkStrictly: true,
}, },
deptOptions: [], deptOptions: [],
@@ -361,9 +361,9 @@ export default {
} }
}, },
deptSelect(val) { deptSelect(val) {
this.deptList = val if(!val) {
this.$refs.cascader2.dropDownVisible = false;
this.getStatistics() this.getStatistics()
}
}, },
timeChange(index) { timeChange(index) {
this.type = index this.type = index

View File

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