修改
This commit is contained in:
parent
175dad837a
commit
c7d530830a
@ -8,13 +8,31 @@
|
||||
v-show="showSearch"
|
||||
label-width="110px"
|
||||
>
|
||||
<el-form-item label="护理站名称" prop="nurseStationId">
|
||||
<el-form-item
|
||||
label="护理站名称"
|
||||
prop="nurseStationId"
|
||||
label-width="100px"
|
||||
>
|
||||
<el-select
|
||||
v-model="queryParams.nurseStationId"
|
||||
placeholder="请选择护理站"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in nurseStationlist"
|
||||
:key="item.id"
|
||||
:label="item.nurseStationName"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="护理站名称" prop="nurseStationId">
|
||||
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
||||
queryParams.nurseStationName
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="护理项目" prop="nurseItemId" label-width="100px">
|
||||
<el-button type="" class="stationbtn" @click="ParamsStationxm(true)">{{
|
||||
<el-button type="" class="stationbtn" @click="ParamsStationitem(true)">{{
|
||||
queryParams.nurseItemName
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
@ -28,10 +46,10 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="海报所属模块" prop="moduleType">
|
||||
<el-select
|
||||
clearable
|
||||
v-model="queryParams.moduleType"
|
||||
placeholder="请选择"
|
||||
style="width: 208px"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
@ -595,12 +613,15 @@ import {
|
||||
delPoser,
|
||||
addPoser,
|
||||
getListByUser,
|
||||
getListBy,
|
||||
updatePoser,
|
||||
updatePicture,
|
||||
} from "@/api/system/poser";
|
||||
import { list } from "@/api/system/nurseItem";
|
||||
// import { getListByUser } from "@/api/system/userlist.js";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
import editor from "@/components/Editor";
|
||||
|
||||
export default {
|
||||
name: "Poser",
|
||||
components: { stationAcatar, editor },
|
||||
@ -622,6 +643,7 @@ export default {
|
||||
itemids: [],
|
||||
Types: [],
|
||||
idd: 9999999,
|
||||
handstationlist: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
@ -759,9 +781,32 @@ export default {
|
||||
created() {
|
||||
this.videourl = baseurl + "/system/station/updateNurseStationHeads";
|
||||
this.getList();
|
||||
this.info();
|
||||
this.nurseItemlistInfo();
|
||||
// this.infos();
|
||||
|
||||
},
|
||||
methods: {
|
||||
// infos() {
|
||||
// var queryFor = {
|
||||
// pageNum: 1,
|
||||
// pageSize: 9999,
|
||||
// };
|
||||
// getListByUser(queryFor).then((res) => {
|
||||
// this.handstationlist = res.rows;
|
||||
// this.queryParams.nurseStationId = res.rows[0].id;
|
||||
// this.getListlb();
|
||||
// });
|
||||
// },
|
||||
// /** 查询护理站护理项目列表 */
|
||||
// getListlb() {
|
||||
// this.loading = true;
|
||||
// list(this.queryParams).then((response) => {
|
||||
// this.nurseItemList = response.rows;
|
||||
// this.total = response.total;
|
||||
// this.loading = false;
|
||||
// });
|
||||
// },
|
||||
//删除海报图片列表
|
||||
delPictureUrl(item) {
|
||||
console.log(item);
|
||||
@ -832,6 +877,7 @@ export default {
|
||||
list(this.nurseItemquery).then((res) => {
|
||||
this.nurseItemlist = res.rows;
|
||||
this.nurseItemtotal = res.total;
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
//所属护理站页面
|
||||
@ -856,15 +902,35 @@ export default {
|
||||
} else {
|
||||
this.nurseitemid = this.form.nurseItemId;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.$modal.msgError("请先选择所属护理站");
|
||||
}
|
||||
|
||||
},
|
||||
ParamsStationitem(item){
|
||||
if (this.queryParams.nurseStationId) {
|
||||
this.nurseItemlistInfo();
|
||||
// this.homenumber = item;
|
||||
this.nurseItemshow = true;
|
||||
if (this.homenumber) {
|
||||
this.nurseitemid = this.queryParams.nurseItemId;
|
||||
} else {
|
||||
this.nurseitemid = this.form.nurseItemId;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.$modal.msgError("请先选择所属护理站");
|
||||
}
|
||||
} ,
|
||||
//护理站list
|
||||
info() {
|
||||
getListByUser(this.getListByUserquery).then((res) => {
|
||||
getListBy(this.queryParams).then((res) => {
|
||||
this.nurseStationlist = res.rows;
|
||||
this.total4 = res.total;
|
||||
console.log(this.nurseStationlist)
|
||||
// this.total4 = res.total;
|
||||
this.queryParams.nurseStationId = res.rows[0].id;
|
||||
// this.getList();
|
||||
});
|
||||
},
|
||||
//打开护理站列表
|
||||
@ -872,6 +938,7 @@ export default {
|
||||
this.stationcancel();
|
||||
this.stationid = this.form.nurseStationId;
|
||||
this.nurseStationshow = true;
|
||||
|
||||
},
|
||||
//护理站重置
|
||||
stationcancel() {
|
||||
@ -966,7 +1033,7 @@ export default {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
};
|
||||
this.stationid = "";
|
||||
// this.stationid = "";
|
||||
this.nurseitemid = "";
|
||||
this.queryParams = {
|
||||
pageNum: 1,
|
||||
@ -1021,6 +1088,9 @@ export default {
|
||||
this.form.poserSort = parseInt(this.form.poserSort);
|
||||
}
|
||||
addPoser(this.form).then((response) => {
|
||||
if (this.form.poserSort) {
|
||||
this.form.poserSort = parseInt(this.form.poserSort);
|
||||
}
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user