选取职务名称出现全选 #1753

切换导航模式,导致菜单栏丢失 #1763
This commit is contained in:
zhangdaiscott 2020-09-29 11:27:45 +08:00
parent af928f1fbf
commit b76e3338bf
2 changed files with 8 additions and 2 deletions

View File

@ -209,6 +209,11 @@
immediate: true,
deep: true,
handler(val) {
//update--begin--autor:scott-----date:20200927------for选取职务名称出现全选 #1753-----
if(this.innerValue){
this.innerValue.length=0;
}
//update--end--autor:scott-----date:20200927------for选取职务名称出现全选 #1753-----
this.selectedTable.dataSource = val.map(key => {
for (let data of this.dataSource) {
if (data[this.rowKey] === key) {
@ -308,6 +313,8 @@
//update--begin--autor:wangshuai-----date:20200722------forJSelectBizComponent组件切换页数值问题------
this.selectedTable.dataSource.splice(this.selectedTable.dataSource.indexOf(record), 1)
this.innerValue.splice(this.innerValue.indexOf(record[this.valueKey]), 1)
console.log("this.selectedRowKeys:",this.selectedRowKeys)
console.log("this.selectedTable.dataSource:",this.selectedTable.dataSource)
//update--begin--autor:wangshuai-----date:20200722------forJSelectBizComponent组件切换页数值问题------
},

View File

@ -13,7 +13,6 @@
>
<side-menu
mode="inline"
v-if="device === 'mobile'"
:menus="menus"
@menuSelect="menuSelect"
:theme="navTheme"
@ -22,7 +21,7 @@
</a-drawer>
<side-menu
v-if="device === 'desktop'"
v-else
mode="inline"
:menus="menus"
@menuSelect="myMenuSelect"