服务包配置和用户添加科室
This commit is contained in:
parent
b8d5456e62
commit
f61b11cea4
@ -18,6 +18,15 @@ export function selectUserAgencyleft(query) {
|
||||
|
||||
})
|
||||
}
|
||||
export function selectUserDepartment(query) {
|
||||
return request({
|
||||
url: '/system/user/selectUserDepartment',
|
||||
method: 'get',
|
||||
params: query
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
export function selectUserAgency(userName) {
|
||||
return request({
|
||||
url: `/system/user/selectUserBelongAgency?userName=${userName}`,
|
||||
@ -25,6 +34,14 @@ export function selectUserAgency(userName) {
|
||||
|
||||
})
|
||||
}
|
||||
export function getBelongDepartment(userName) {
|
||||
return request({
|
||||
url: `/system/user/getBelongDepartment?userName=${userName}`,
|
||||
method: 'get',
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
// /system/user/selectUserAgency 这个是右边的接口,传值不变
|
||||
// 查询用户详细
|
||||
export function getUser(userId) {
|
||||
@ -46,8 +63,15 @@ export function addUser(data) {
|
||||
// 修改用户
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
method: 'put',
|
||||
url: '/system/user/editAgency',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
export function editDepartment(data) {
|
||||
return request({
|
||||
url: '/system/user/editDepartment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
@ -225,8 +225,9 @@
|
||||
label="服务频次"
|
||||
align="center"
|
||||
prop="serviceWayFrequencyList"
|
||||
:key="keyTable"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<template slot-scope="scope">
|
||||
<!-- <div
|
||||
v-for="(itemx, index) in scope.row.serviceWayFrequencyList"
|
||||
:key="index"
|
||||
@ -235,9 +236,9 @@
|
||||
<el-select
|
||||
size="mini"
|
||||
@click="getSuppliers()"
|
||||
@change="blurInputs(scope.row.serviceFrequencyText)"
|
||||
@change="blurInputs()"
|
||||
|
||||
v-model="scope.row.serviceFrequencyText"
|
||||
v-model="scope.row.valuePlusMax"
|
||||
clearable
|
||||
placeholder="请选择"
|
||||
>
|
||||
@ -251,27 +252,21 @@
|
||||
</el-select>
|
||||
</div>
|
||||
<div v-if="scope.row.serviceWayFrequencyList[0].serviceFrequencyType == 'DIGIT'">
|
||||
|
||||
<!-- itemx.serviceFrequencyStart +
|
||||
'~' +
|
||||
itemx.serviceFrequencyEnd
|
||||
-->
|
||||
<!-- 对吗我看看 -->
|
||||
<el-select
|
||||
size="mini"
|
||||
@click="getSuppliers()"
|
||||
@change="blurInput(scope.row.serviceFrequencyText)"
|
||||
@change="blurInputs(scope.row.valuePlusMax)"
|
||||
|
||||
v-model="scope.row.serviceFrequencyText"
|
||||
v-model="scope.row.valuePlusMax"
|
||||
clearable
|
||||
placeholder="请选择"
|
||||
>
|
||||
<!-- @change="blurInput(itemx)" -->
|
||||
<!-- 你看一下 整理一下代码 label里面就是展示的值 value是选中的 因为你这的value是拼接的 所以上面的v-mode里面存的就是拼劲明白了我自己改改 -->
|
||||
|
||||
<!-- label里面就是展示的值 value是选中的 value是拼接的 这里处理一下为null的情况 为null咋显示呀以后应该不会有null 是必填的 那就先不用管了好-->
|
||||
<el-option
|
||||
v-for="item in scope.row.serviceWayFrequencyList"
|
||||
:key="item.id"
|
||||
:label=" JSON.parse(item.serviceFrequencyStart) +
|
||||
:label="JSON.parse(item.serviceFrequencyStart) +
|
||||
'~' +
|
||||
JSON.parse(item.serviceFrequencyEnd)"
|
||||
:value="
|
||||
@ -454,7 +449,6 @@ export default {
|
||||
list: [],
|
||||
serviceFrequencyStart: "",
|
||||
serviceFrequencyEnd: "",
|
||||
serviceFrequencyText: "",
|
||||
serviceFrequencyType: "",
|
||||
// disabled: "",
|
||||
titles: "",
|
||||
@ -512,6 +506,12 @@ export default {
|
||||
serviceFrequencyType: [
|
||||
{ required: true, message: "请选中服务频次", trigger: "blur" },
|
||||
],
|
||||
// serviceFrequencyStart:[
|
||||
// { required: true, message: "请输入起始值", trigger: "blur" },
|
||||
// ],
|
||||
// serviceFrequencyEnd:[
|
||||
// { required: true, message: "请输入结束值", trigger: "blur" },
|
||||
// ],
|
||||
},
|
||||
itemname: null,
|
||||
querydepartmen: {
|
||||
@ -521,6 +521,8 @@ export default {
|
||||
disabledb: false,
|
||||
disableda: false,
|
||||
valuePlus:'',
|
||||
serviceFrequencyText:'',
|
||||
keyTable:'',
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@ -538,11 +540,13 @@ export default {
|
||||
console.log(e);
|
||||
},
|
||||
blurInput(val) {
|
||||
console.log(val, "555");
|
||||
// this.servicewaycontentList.serviceFrequencyText=val
|
||||
|
||||
},
|
||||
blurInputs(val) {
|
||||
console.log(val, "666");
|
||||
this.form.id = val;
|
||||
blurInputs() {
|
||||
this.keyTable = Math.random()
|
||||
// console.log(val, "666");
|
||||
// this.form.id = val;
|
||||
},
|
||||
textlist(e) {
|
||||
if (e == true) {
|
||||
@ -631,9 +635,30 @@ export default {
|
||||
this.loading = true;
|
||||
listServicewaycontent(this.queryParams).then((response) => {
|
||||
this.servicewaycontentList = response.rows;
|
||||
// this.serviceFrequencyText= this.servicewaycontentList[0].serviceFrequencyText
|
||||
console.log(this.servicewaycontentList,'****')
|
||||
// if(e.serviceWayFrequencyList[0].serviceFrequencyType == 'TEXT'){
|
||||
this.servicewaycontentList.forEach((e) => {
|
||||
this.serviceFrequencyType = e.serviceFrequencyType;
|
||||
e.valuePlusMax = e.serviceWayFrequencyList[0].id
|
||||
});
|
||||
|
||||
// }
|
||||
// if(e.serviceWayFrequencyList[0].serviceFrequencyType == 'DIGIT'){
|
||||
// e.serviceFrequencyText = JSON.parse(e.serviceWayFrequencyList[0].serviceFrequencyStart) +
|
||||
// '~' +
|
||||
// JSON.parse(e.serviceWayFrequencyList[0].serviceFrequencyEnd)
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
// e.serviceWayFrequencyList[0].forEach(el=>{
|
||||
// console.log(el)
|
||||
// // this.serviceFrequencyText = el.serviceFrequencyText;
|
||||
|
||||
// })
|
||||
// this.serviceFrequencyText= this.servicewaycontentList[0].serviceFrequencyText
|
||||
|
||||
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
@ -692,20 +717,12 @@ export default {
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
console.log(row,'99999');
|
||||
this.reset();
|
||||
// const id = row.id
|
||||
|
||||
// --------------
|
||||
if(!this.form.id){
|
||||
row.serviceWayFrequencyList.forEach((e) => {
|
||||
this.form.id = e.id;
|
||||
});
|
||||
}
|
||||
|
||||
getServicewaycontent(this.form.id).then((response) => {
|
||||
getServicewaycontent(row.valuePlusMax).then((response) => {
|
||||
this.form = response.data;
|
||||
this.form.id = response.data.serviceFrequencyId;
|
||||
// this.form.id = response.data.serviceFrequencyId;
|
||||
// ----------
|
||||
|
||||
if (response.data.serviceFrequencyType == "DIGIT") {
|
||||
|
||||
@ -254,11 +254,19 @@
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
icon="el-icon-mobile"
|
||||
@click="handleinnerVisibleshow(scope.row)"
|
||||
v-hasPermi="['system:user:edit']"
|
||||
>设置机构</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-star-on"
|
||||
@click="handleinnerVisibleshowdep(scope.row)"
|
||||
v-hasPermi="['system:user:edit']"
|
||||
>设置科室</el-button
|
||||
>
|
||||
|
||||
<el-button
|
||||
size="mini"
|
||||
@ -559,10 +567,9 @@
|
||||
ref="multipleTable"
|
||||
:data="tableData1"
|
||||
height="300"
|
||||
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
@selection-change="handleSelectionChangen"
|
||||
@selection-change="handleSelectionChangenleft"
|
||||
class="el-table-dialog"
|
||||
row-key="id"
|
||||
>
|
||||
@ -661,7 +668,146 @@
|
||||
:data="datalist">
|
||||
</el-transfer> -->
|
||||
</el-dialog>
|
||||
<!-- 设置科室 -->
|
||||
<el-dialog
|
||||
:title="title"
|
||||
:visible.sync="innerVisibleshowdep"
|
||||
width="1200px"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="10">
|
||||
<div class="table-title">
|
||||
<span v-if="departmentNum">可设置科室:{{ departmentNum }}条</span>
|
||||
<span v-else>可设置科室:0条</span>
|
||||
</div>
|
||||
<div style="margin-top: 3%">
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="formmatdep"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form-item
|
||||
label="科室名称"
|
||||
prop="departmentName"
|
||||
label-width="120"
|
||||
>
|
||||
<el-input
|
||||
v-model="formmatdep.departmentName"
|
||||
placeholder="请输入科室名称"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="infodep"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="addresetQuerylistdep"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<!-- 穿梭框左边 -->
|
||||
<el-table
|
||||
ref="multipleTabledep"
|
||||
:data="tableDatadep1"
|
||||
height="300"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
@selection-change="handleSelectionChangendep"
|
||||
class="el-table-dialog"
|
||||
row-key="id"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column type="index" label="序号" align="center">
|
||||
</el-table-column> -->
|
||||
|
||||
<el-table-column label="机构名称" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<span>{{ row.departmentName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机构编码" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<span>{{ row.departmentCode }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
:total="totalagdep"
|
||||
:page.sync="formmatdep.pageNum"
|
||||
:limit.sync="formmatdep.pageSize"
|
||||
@pagination="infodep"
|
||||
/>
|
||||
</el-col>
|
||||
<el-col :span="4" class="el-btn-dialog">
|
||||
<el-button
|
||||
@click="leftcontentdep"
|
||||
type="primary"
|
||||
:disabled="nowSelectRightDatadep.length ? false : true"
|
||||
icon="el-icon-arrow-left"
|
||||
style="margin-left: 0; margin-top: 10px"
|
||||
></el-button>
|
||||
<el-button
|
||||
@click="rightcontentdep()"
|
||||
type="primary"
|
||||
:disabled="nowSelectDatadep.length ? false : true"
|
||||
icon="el-icon-arrow-right"
|
||||
></el-button>
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<div class="table-title">
|
||||
<span v-if="departmentNums != ''"
|
||||
>已设置科室:{{ departmentNums }}条</span
|
||||
>
|
||||
<span v-else>已设置科室:0条</span>
|
||||
</div>
|
||||
<!-- 穿梭框右边 -->
|
||||
<div style="margin-top: 5%">
|
||||
<el-table
|
||||
ref="multipleTablesdep"
|
||||
:data="tableDatadep2"
|
||||
max-height="300"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%"
|
||||
@selection-change="handleSelectionChangenrightdep"
|
||||
row-key="id"
|
||||
class="el-table-dialog"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
<!-- <el-table-column type="index" label="序号" align="center">
|
||||
</el-table-column> -->
|
||||
|
||||
<el-table-column label="机构名称" align="center" width="110">
|
||||
<template slot-scope="{ row }">
|
||||
<span>{{ row.departmentName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机构编码" align="center">
|
||||
<template slot-scope="{ row }">
|
||||
<span>{{ row.departmentCode }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
<!-- 用户导入对话框 -->
|
||||
<el-dialog
|
||||
:title="upload.title"
|
||||
@ -713,10 +859,13 @@ import {
|
||||
delUser,
|
||||
addUser,
|
||||
updateUser,
|
||||
editDepartment,
|
||||
resetUserPwd,
|
||||
selectUserAgency,
|
||||
changeUserStatus,
|
||||
selectUserAgencyleft,
|
||||
selectUserDepartment,
|
||||
getBelongDepartment,
|
||||
} from "@/api/system/user";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { treeselect } from "@/api/system/dept";
|
||||
@ -733,18 +882,33 @@ export default {
|
||||
formmat: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
agencyName: '',
|
||||
userId: '',
|
||||
agencyName: "",
|
||||
userId: "",
|
||||
},
|
||||
formmatdep: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
departmentName: "",
|
||||
userId: "",
|
||||
},
|
||||
|
||||
totalag2: 0,
|
||||
totalagdep: 0,
|
||||
|
||||
agencyNum: "",
|
||||
belongAgencyNum: "",
|
||||
departmentNum: "",
|
||||
departmentNums: "",
|
||||
tableDatadep1: [],
|
||||
tableDatadep2: [],
|
||||
tableData1: [],
|
||||
tableData2: [],
|
||||
nowSelectDatadep: [], // 左边选中列表数据
|
||||
nowSelectRightDatadep: [], // 右边选中列表数据
|
||||
nowSelectRightData: [],
|
||||
nowSelectData: [], // 左边选中列表数据
|
||||
nowSelectRightData: [], // 右边选中列表数据
|
||||
innerVisibleshow: false,
|
||||
innerVisibleshowdep: false,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -811,6 +975,16 @@ export default {
|
||||
agencyId: "",
|
||||
userName: "",
|
||||
},
|
||||
formlistdep: {
|
||||
userId: "",
|
||||
departmentId: "",
|
||||
userName: "",
|
||||
},
|
||||
formlistdeps: {
|
||||
userId: "",
|
||||
departmentId: "",
|
||||
userName: "",
|
||||
},
|
||||
formlists: {
|
||||
userId: "",
|
||||
agencyId: "",
|
||||
@ -882,29 +1056,54 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 左边选中事件
|
||||
handleSelectionChangen(selection) {
|
||||
// console.log(selection, "56");
|
||||
// this.abc=selection
|
||||
// console.log(data,"9");
|
||||
// this.selection=[]
|
||||
if (selection.length >1) {
|
||||
this.$refs.multipleTable.clearSelection(); // 清空所有选择
|
||||
this.$refs.multipleTable.toggleRowSelection(selection.pop()); // 设置选择项
|
||||
|
||||
// // 科室左边选中事件
|
||||
handleSelectionChangendep(selection) {
|
||||
if (selection.length > 1) {
|
||||
this.$refs.multipleTabledep.clearselection(); // 清空所有选择
|
||||
this.$refs.multipleTabledep.toggleRowSelection(selection.pop()); // 设置选择项
|
||||
}
|
||||
this.nowSelectDatadep = selection;
|
||||
this.formlistdep.departmentId = selection[0].departmentId;
|
||||
console.log(this.formlistdep, " this.formlistdep");
|
||||
},
|
||||
// // 科室右边选中事件
|
||||
handleSelectionChangenrightdep(selection) {
|
||||
console.log(selection, "56888");
|
||||
if (selection.length > 1) {
|
||||
this.$refs.multipleTablesdep.clearselection(); // 清空所有选择
|
||||
this.$refs.multipleTablesdep.toggleRowSelection(selection.pop()); // 设置选择项
|
||||
}
|
||||
this.nowSelectRightDatadep = selection;
|
||||
// this.nowSelectData=[]
|
||||
},
|
||||
addresetQuerylist() {
|
||||
this.formmat.agencyName = "";
|
||||
this.info();
|
||||
},
|
||||
addresetQuerylistdep() {
|
||||
this.formmatdep.departmentName = "";
|
||||
this.infodep();
|
||||
},
|
||||
// 左边选中事件
|
||||
handleSelectionChangenleft(selection) {
|
||||
this.$nextTick(() => {
|
||||
console.log(
|
||||
this.$refs.multipleTable.clearSelection,
|
||||
"555555555888888888"
|
||||
);
|
||||
if (selection.length > 1) {
|
||||
this.$refs.multipleTable.clearSelection(); // 清空所有选择
|
||||
this.$refs.multipleTable.toggleRowSelection(selection.pop()); // 设置选择项
|
||||
}
|
||||
});
|
||||
|
||||
this.nowSelectData = selection;
|
||||
// if( this.formlist.agencyId){
|
||||
this.formlist.agencyId = selection[0].agencyId;
|
||||
// this.nowSelectRightData=[]
|
||||
// this.formlist.agencyCode = selection[0].agencyCode;
|
||||
|
||||
// console.log(this.formlist.agencyId, "99999999");
|
||||
// console.log(selection, "7474");
|
||||
|
||||
|
||||
|
||||
// }
|
||||
},
|
||||
|
||||
// 右边选中事件
|
||||
handleSelectionChangenright(selection) {
|
||||
console.log(selection, "56888");
|
||||
@ -919,10 +1118,37 @@ export default {
|
||||
this.formmat.agencyName = "";
|
||||
this.info();
|
||||
},
|
||||
// 点击去右边
|
||||
// 科室点击去右边
|
||||
rightcontentdep() {
|
||||
// console.log("78798",this.abc);
|
||||
console.log(this.tableDatadep2, "85");
|
||||
if (this.tableDatadep2.length == 1) {
|
||||
this.$message.error("只能选择一个科室");
|
||||
} else {
|
||||
editDepartment(this.formlistdep).then((response) => {
|
||||
if (response.code == 200) {
|
||||
this.infodep();
|
||||
this.infodep2();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// 科室点击去左边
|
||||
leftcontentdep() {
|
||||
console.log(this.formlistdeps, "4578");
|
||||
this.formlistdeps.departmentId = "";
|
||||
editDepartment(this.formlistdeps).then((response) => {
|
||||
if (response.code == 200) {
|
||||
console.log(response.code);
|
||||
this.infodep();
|
||||
this.infodep2();
|
||||
}
|
||||
});
|
||||
},
|
||||
// 机构点击去右边
|
||||
rightcontent() {
|
||||
// console.log("78798",this.abc);
|
||||
console.log(this.tableData2,'85')
|
||||
console.log(this.tableData2, "85");
|
||||
if (this.tableData2.length == 1) {
|
||||
this.$message.error("只能选择一个机构");
|
||||
} else {
|
||||
@ -934,12 +1160,13 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 点击去左边
|
||||
leftcontent() {
|
||||
console.log(this.formlists,'4578')
|
||||
console.log(this.formlists, "4578");
|
||||
updateUser(this.formlists).then((response) => {
|
||||
if (response.code == 200) {
|
||||
console.log(response.code)
|
||||
console.log(response.code);
|
||||
this.info();
|
||||
this.info2();
|
||||
}
|
||||
@ -1039,6 +1266,7 @@ export default {
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
console.log(selection);
|
||||
this.ids = selection.map((item) => item.userId);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
@ -1068,25 +1296,42 @@ export default {
|
||||
this.form.password = this.initPassword;
|
||||
});
|
||||
},
|
||||
infodep() {
|
||||
console.log(this.formmatdep);
|
||||
selectUserDepartment(this.formmatdep).then((res) => {
|
||||
this.tableDatadep1 = res.rows;
|
||||
if (res.rows.length > 0) {
|
||||
this.departmentNum = res.rows[0].departmentNum;
|
||||
} else {
|
||||
this.departmentNum = 0;
|
||||
}
|
||||
this.totalagdep = res.total;
|
||||
});
|
||||
},
|
||||
// 机构
|
||||
info() {
|
||||
console.log(this.formmat);
|
||||
selectUserAgencyleft(this.formmat).then((res) => {
|
||||
// console.log(res)
|
||||
// if(res.rows){
|
||||
// this.tableData1 = res.rows;
|
||||
// }else{
|
||||
// this.tableData1 =[]
|
||||
|
||||
// }
|
||||
this.tableData1 = res.rows;
|
||||
if (res.rows.length > 0) {
|
||||
this.agencyNum = res.rows[0].agencyNum;
|
||||
}else{
|
||||
this.agencyNum=0
|
||||
} else {
|
||||
this.agencyNum = 0;
|
||||
}
|
||||
this.totalag = res.total;
|
||||
});
|
||||
},
|
||||
infodep2() {
|
||||
getBelongDepartment(this.userName).then((res) => {
|
||||
this.tableDatadep2 = res.rows;
|
||||
if (res.rows.length > 0) {
|
||||
this.departmentNums = res.rows[0].departmentNum;
|
||||
} else {
|
||||
this.departmentNums = 0;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
info2() {
|
||||
selectUserAgency(this.userName).then((res) => {
|
||||
// console.log(res,"/////////");
|
||||
@ -1094,9 +1339,8 @@ export default {
|
||||
this.tableData2 = res.rows;
|
||||
if (res.rows.length > 0) {
|
||||
this.belongAgencyNum = res.rows[0].agencyNum;
|
||||
}else{
|
||||
this.belongAgencyNum=0
|
||||
|
||||
} else {
|
||||
this.belongAgencyNum = 0;
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -1122,6 +1366,32 @@ export default {
|
||||
// this.belongAgencyNum = res.data.belongAgencyNum;
|
||||
// });
|
||||
},
|
||||
handleinnerVisibleshowdep(row) {
|
||||
this.reset();
|
||||
console.log(row);
|
||||
this.title = "设置科室";
|
||||
selectUserAgency(row.userName).then((res) => {
|
||||
this.tableData2 = res.rows;
|
||||
// console.log(this.tableData2,'55899999')
|
||||
|
||||
if (this.tableData2.length < 1) {
|
||||
this.$message.error("当前无科室,请先设置机构");
|
||||
} else {
|
||||
this.innerVisibleshowdep = true;
|
||||
this.userName = row.userName;
|
||||
this.formlistdep.userId = row.userId;
|
||||
this.formlistdep.userName = row.userName;
|
||||
console.log(this.formlistdep, "this.formlistdep");
|
||||
|
||||
this.formlistdeps.userId = row.userId;
|
||||
this.formlistdeps.userName = row.userName;
|
||||
this.formmatdep.userName = row.userName;
|
||||
// console.log(this.formmat.userId, "898");
|
||||
this.infodep();
|
||||
this.infodep2();
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user