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}"
|
<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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user