20240912_adapter_z
wangwei 11 months ago
parent 059fcc6cd8
commit 77ade51f3c

@ -167,7 +167,7 @@
</pagination> </pagination>
</el-card> </el-card>
<el-card> <el-card>
<div>{{this.rowData.workplaceName}}-用户列表</div> <div>{{workplaceName}}-用户列表</div>
<el-form :inline="true" :model="userQuery" class="query-form" size="mini" <el-form :inline="true" :model="userQuery" class="query-form" size="mini"
style="margin-top: 30px;margin-bottom: 10px" style="margin-top: 30px;margin-bottom: 10px"
@ -576,7 +576,8 @@ export default {
subData: {}, subData: {},
groupData: null, groupData: null,
total: 0, total: 0,
userTotal: 0 userTotal: 0,
workplaceName: '用户'
} }
}, },
computed: { computed: {
@ -659,15 +660,16 @@ export default {
this.$message.error('请完善必填信息') this.$message.error('请完善必填信息')
} else { } else {
addWorkplace(this.formData).then(res => { addWorkplace(this.formData).then(res => {
console.log("res",res)
if (res.code != 20000) { if (res.code != 20000) {
return this.$message.error('新增错误') return this.$message.error('新增错误')
} }
this.addWorkplaceDialogVisible = false this.addWorkplaceDialogVisible = false
this.$message.success(res.data) this.$message.success("新增成功")
this.query.code = this.groupData.code // this.query.code = this.groupData.code
if (this.query.code == 1001) { // if (this.query.code == 1001) {
this.query.code = null // this.query.code = null
} // }
this.getList() this.getList()
}).catch(() => { }).catch(() => {
@ -796,6 +798,7 @@ export default {
}, },
handCurrentChange(row) { handCurrentChange(row) {
this.rowData = row this.rowData = row
this.workplaceName = row.workplaceName
this.userQuery.workplaceCode = row.workplaceId this.userQuery.workplaceCode = row.workplaceId
this.getUserBindWork(this.userQuery) this.getUserBindWork(this.userQuery)
}, },

Loading…
Cancel
Save