Commit 223374ac by 姜雷

Merge branch 'test' into 'master'

Test See merge request !18
parents 6938ce2c aa9402c7
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</el-pagination> </el-pagination>
</div> </div>
<drag-dialog class="wxAuthDialog" title="修改" :visible.sync="dialogEditVisible" :before-close="resetEditDialog" width="70%"> <drag-dialog class="wxAuthDialog" title="修改" :visible.sync="dialogEditVisible" :before-close="resetEditDialog" width="70%">
<el-transfer v-loading="loading" v-model="selected.userId" filterable :filter-method="filterMethod" filter-placeholder="请输入姓名" :props="{ key: 'userId', label: 'name'}" :titles="['未被选中列', '已被选中列']" :data="authUserList"> <el-transfer :key="transferId" v-loading="loading" v-model="selected.userId" filterable :filter-method="filterMethod" filter-placeholder="请输入姓名/科室/电话" :props="{ key: 'userId', label: 'name'}" :titles="['未被选中列', '已被选中列']" :data="allAuthList">
<div slot-scope="{ option }"> <div slot-scope="{ option }">
<span class="auth-name">{{ option.name }}</span> <span class="auth-name">{{ option.name }}</span>
<span class="auth-department">{{ option.department }}</span> <span class="auth-department">{{ option.department }}</span>
...@@ -61,6 +61,7 @@ export default { ...@@ -61,6 +61,7 @@ export default {
filters: { filters: {
name: '', name: '',
}, },
transferId: '',
}; };
}, },
computed: { computed: {
...@@ -68,9 +69,8 @@ export default { ...@@ -68,9 +69,8 @@ export default {
...mapGetters('system/wxAuth', ['list', 'pagination']), ...mapGetters('system/wxAuth', ['list', 'pagination']),
allAuthList() { allAuthList() {
return this.authUserList.map(item => ({ return this.authUserList.map(item => ({
key: item.userId, ...item,
label: item.name, query: item.name + item.department + item.cellphone,
disabled: false,
})); }));
}, },
}, },
...@@ -87,6 +87,7 @@ export default { ...@@ -87,6 +87,7 @@ export default {
}; };
}, },
showUserAuth(data) { showUserAuth(data) {
this.transferId = data.row.id;
fetchAuthUserList({ fetchAuthUserList({
id: data.row.id, id: data.row.id,
}) })
...@@ -103,7 +104,7 @@ export default { ...@@ -103,7 +104,7 @@ export default {
}); });
}, },
filterMethod(query, list) { filterMethod(query, list) {
return list.name.indexOf(query) > -1; return list.query.indexOf(query) > -1;
}, },
updateAuth() { updateAuth() {
const entity = { const entity = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment