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