This commit is contained in:
linfso 2024-05-07 17:16:30 +08:00
parent 2427909ca8
commit 3b6ec7323f
3 changed files with 21 additions and 19 deletions

View File

@ -434,6 +434,7 @@ export default {
},
onSiteCodeChange(){
if(this.form.userId==null){
console.log(this.form.ownerSiteCode)
getNewEmpCode(this.form.ownerSiteCode).then(response => {
this.form.empCode=response.data;
});

View File

@ -269,7 +269,7 @@
import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus } from "@/api/system/role";
import { treeselect as menuTreeselect, roleMenuTreeselect,treeselectByDomainId } from "@/api/system/menu";
import { treeselect as deptTreeselect, roleDeptTreeselect } from "@/api/system/dept";
import { listSysDomain } from "@/api/system/domain";
// import { listSysDomain } from "@/api/system/domain";
export default {
name: "Role",
@ -361,24 +361,24 @@ export default {
};
},
created() {
this.initDomainList();
// this.initDomainList();
this.getList();
},
methods: {
initDomainList() {
this.loading = true;
let qParams = {
pageNum: 1,
pageSize: 10000,
}
listSysDomain(qParams).then(response => {
// this.domainIdsOptions.push({value:0,label:"全部"})
response.rows.forEach(item =>{
var optItem={value:item.id,label:item.name};
this.domainIdsOptions.push(optItem)
});
});
},
// initDomainList() {
// this.loading = true;
// let qParams = {
// pageNum: 1,
// pageSize: 10000,
// }
// listSysDomain(qParams).then(response => {
// // this.domainIdsOptions.push({value:0,label:"全部"})
// response.rows.forEach(item =>{
// var optItem={value:item.id,label:item.name};
// this.domainIdsOptions.push(optItem)
// });
// });
// },
/** 查询角色列表 */
getList() {
this.loading = true;

View File

@ -33,7 +33,7 @@
</template>
</el-table-column>
</el-table>
<pagination v-show="total>0" :total="total" :page.sync="pageNum" :limit.sync="pageSize" />
<el-form label-width="100px">
@ -109,9 +109,10 @@ export default {
},
/** 关闭按钮 */
close() {
const obj = { path: "/system/user" };
// const obj = { path: "/system/user" };
const obj = { path: "/v6NnAn/userMgnt" };
this.$tab.closeOpenPage(obj);
},
},
};
</script>
</script>