xbot
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user