|
@@ -304,7 +304,7 @@
|
|
|
<el-form-item label="企微公司" prop="corpId">
|
|
<el-form-item label="企微公司" prop="corpId">
|
|
|
<el-select v-model="synform.corpId" placeholder="企微公司" >
|
|
<el-select v-model="synform.corpId" placeholder="企微公司" >
|
|
|
<el-option
|
|
<el-option
|
|
|
- v-for="dict in myQwCompanyList"
|
|
|
|
|
|
|
+ v-for="dict in qwCompanyList"
|
|
|
:key="dict.dictValue"
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
:value="dict.dictValue"
|
|
@@ -323,7 +323,7 @@
|
|
|
<el-form-item label="企微公司" prop="corpId">
|
|
<el-form-item label="企微公司" prop="corpId">
|
|
|
<el-select v-model="synNameform.corpId" placeholder="企微公司" >
|
|
<el-select v-model="synNameform.corpId" placeholder="企微公司" >
|
|
|
<el-option
|
|
<el-option
|
|
|
- v-for="dict in myQwCompanyList"
|
|
|
|
|
|
|
+ v-for="dict in qwCompanyList"
|
|
|
:key="dict.dictValue"
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
:value="dict.dictValue"
|
|
@@ -476,7 +476,7 @@
|
|
|
<el-form-item label="企微主体" prop="corpId">
|
|
<el-form-item label="企微主体" prop="corpId">
|
|
|
<el-select v-model="formBindCompany.corpId" placeholder="企微主体" size="small">
|
|
<el-select v-model="formBindCompany.corpId" placeholder="企微主体" size="small">
|
|
|
<el-option
|
|
<el-option
|
|
|
- v-for="dict in myQwCompanyList"
|
|
|
|
|
|
|
+ v-for="dict in qwCompanyList"
|
|
|
:key="dict.dictValue"
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
:value="dict.dictValue"
|
|
@@ -678,12 +678,12 @@ import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import {bindQwUser, addQwUser, getQwUserByIds,addQwUserName} from '@/api/qw/user';
|
|
import {bindQwUser, addQwUser, getQwUserByIds,addQwUserName} from '@/api/qw/user';
|
|
|
import { syncDept } from '@/api/qw/qwDept';
|
|
import { syncDept } from '@/api/qw/qwDept';
|
|
|
-import {getMyQwCompanyList } from "@/api/qw/user";
|
|
|
|
|
import selectUser from "@/views/company/components/selectQwUser.vue";
|
|
import selectUser from "@/views/company/components/selectQwUser.vue";
|
|
|
import { getConfigByKey } from "@/api/company/companyConfig";
|
|
import { getConfigByKey } from "@/api/company/companyConfig";
|
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
|
import selectDoctor from "@/views/qw/user/selectDoctor.vue";
|
|
import selectDoctor from "@/views/qw/user/selectDoctor.vue";
|
|
|
import { getCompanyList } from '@/api/company/company'
|
|
import { getCompanyList } from '@/api/company/company'
|
|
|
|
|
+import { getQwCompanyList } from '../../../api/qw/user'
|
|
|
export default {
|
|
export default {
|
|
|
name: "User",
|
|
name: "User",
|
|
|
components: {selectDoctor, Treeselect ,selectUser},
|
|
components: {selectDoctor, Treeselect ,selectUser},
|
|
@@ -707,7 +707,7 @@ export default {
|
|
|
loading: false,
|
|
loading: false,
|
|
|
qwUserList:[],
|
|
qwUserList:[],
|
|
|
qwUserId:[],
|
|
qwUserId:[],
|
|
|
- myQwCompanyList:[],
|
|
|
|
|
|
|
+ qwCompanyList:[],
|
|
|
qwUser:[],
|
|
qwUser:[],
|
|
|
user:{
|
|
user:{
|
|
|
open:false,
|
|
open:false,
|
|
@@ -921,8 +921,8 @@ export default {
|
|
|
getCitysAreaList().then(res=>{
|
|
getCitysAreaList().then(res=>{
|
|
|
this.citysAreaList=res.data;
|
|
this.citysAreaList=res.data;
|
|
|
})
|
|
})
|
|
|
- getMyQwCompanyList().then(response => {
|
|
|
|
|
- this.myQwCompanyList = response.data;
|
|
|
|
|
|
|
+ getQwCompanyList().then(response => {
|
|
|
|
|
+ this.qwCompanyList = response.data;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -1168,6 +1168,7 @@ export default {
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
this.title = "添加员工";
|
|
this.title = "添加员工";
|
|
|
this.form.password = this.form1.loginPassword;
|
|
this.form.password = this.form1.loginPassword;
|
|
|
|
|
+ this.form.companyId = this.companyIdOpen.companyId;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -1276,6 +1277,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("修改成功");
|
|
this.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
|
|
+ this.companyIdOpen.open=false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -1284,6 +1286,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
if (response.code === 200) {
|
|
|
this.msgSuccess("新增成功");
|
|
this.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
|
|
+ this.companyIdOpen.open=false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|