This commit is contained in:
闫晓茹 2023-03-02 10:57:39 +08:00
parent 8d67cac8d6
commit 7aa0c098eb

View File

@ -318,7 +318,7 @@
<template> <template>
<el-button <el-button
type type
@click="ParamsStation(false)" @click="ParamsStation(true)"
style=" style="
width: 225px; width: 225px;
text-align: left; text-align: left;
@ -341,7 +341,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
" "
@click="ParamsStation(false)" @click="ParamsStation(true)"
v-else v-else
>{{ item.nurseStationName }}</el-button >{{ item.nurseStationName }}</el-button
> >
@ -527,7 +527,7 @@ export default {
groupSort: null, groupSort: null,
}, },
nurseStationshow: false, nurseStationshow: false,
stationidIndex:'', stationidIndex: "",
editopen: false, editopen: false,
imgsurl: { pictureUrlList: [] }, imgsurl: { pictureUrlList: [] },
imgone: "", imgone: "",
@ -613,18 +613,20 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
// = // =
choicestationid(item) { choicestationid(item) {
this.stationidIndex = item.id this.stationidIndex = item.id;
if (this.editopen) { if (this.editopen) {
this.form.nurseStationName = item.nurseStationName; this.form.nurseStationName = item.nurseStationName;
this.form.nurseStationId = item.id; this.form.nurseStationId = item.id;
} } else if (this.open) {
else if (this.open) { // this.form.groupQrCodeInfoDTOList[0].nurseStationId = item.id;
this.form.groupQrCodeInfoDTOList[0].nurseStationId = item.id;
this.form.groupQrCodeInfoDTOList[0].nurseStationName = this.form.groupQrCodeInfoDTOList[0].nurseStationName =
item.nurseStationName; item.nurseStationName;
this.form.nurseStationId = item.id;
} }
this.nurseStationshow = false; this.nurseStationshow = false;
this.stationcancel(); this.stationcancel();
}, },
@ -641,12 +643,11 @@ export default {
this.nurseStationshow = false; this.nurseStationshow = false;
}, },
// //
ParamsStation() { ParamsStation(item) {
console.log(item,this.form.nurseStationId,'打印this.queryParams.nurseStationId')
this.info(); this.info();
// console.log( this.form.nurseStationId,' this.nurseStationId') this.stationidIndex = this.form.nurseStationId ;
this.stationidIndex = this.form.nurseStationId;
this.nurseStationshow = true; this.nurseStationshow = true;
}, },
//list //list
info() { info() {
@ -656,17 +657,16 @@ export default {
}); });
}, },
// //
setUpdateImgUrl(e){ setUpdateImgUrl(e) {
this.form.groupQrCodeUrl= e; this.form.groupQrCodeUrl = e;
console.log(this.form); console.log(this.form);
}, },
imgUrl(imgUrl) { imgUrl(imgUrl) {
console.log(this.form) console.log(this.form);
// this.$set(this.form,"groupQrCodeInfoDTOList",[]) // this.$set(this.form,"groupQrCodeInfoDTOList",[])
this.form.groupQrCodeInfoDTOList.forEach((e) => { this.form.groupQrCodeInfoDTOList.forEach((e) => {
this.$set(e, "groupQrCodeUrl", imgUrl); this.$set(e, "groupQrCodeUrl", imgUrl);
}); });
}, },
/** 查询在线客服列表 */ /** 查询在线客服列表 */
getList() { getList() {
@ -758,17 +758,17 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
// this.form.nurseStationId = response.data.nurseStationId; // this.form.nurseStationId = response.data.nurseStationId;
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getGroupQrCodeInfo(id).then((response) => { getGroupQrCodeInfo(id).then((response) => {
console.log(response.data) console.log(response.data);
this.form = response.data; this.form = response.data;
// this.form.nurseStationName = item.nurseStationName; // this.form.nurseStationName = item.nurseStationName;
// this.form.nurseStationId = item.id; // this.form.nurseStationId = item.id;
this.imgone = this.form.groupQrCodeUrl; this.imgone = this.form.groupQrCodeUrl;
this.editopen = true; this.editopen = true;
this.title = "修改在线客服"; this.title = "修改在线客服";
}); });