From 5b38b79616e211962877609216cdf2ea12024cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Mon, 6 Mar 2023 10:28:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/groupQrCodeInfo/index.vue | 268 ++++++++------------- 1 file changed, 96 insertions(+), 172 deletions(-) diff --git a/src/views/system/groupQrCodeInfo/index.vue b/src/views/system/groupQrCodeInfo/index.vue index e7cddc7..265d1c8 100644 --- a/src/views/system/groupQrCodeInfo/index.vue +++ b/src/views/system/groupQrCodeInfo/index.vue @@ -25,31 +25,18 @@ /> - + - + > - 搜索 - 重置 + 搜索 + 重置 @@ -62,8 +49,7 @@ size="mini" @click="handleAdd" v-hasPermi="['system:groupQrCodeInfo:add']" - >新增 + >新增 修改 + >修改 删除 + >删除 - + --> + - + - + @@ -178,7 +149,7 @@ - + - + > {{ form.nurseStationName }} + >{{ form.nurseStationName }} {{ form.nurseStationName }} + >{{ form.nurseStationName }} @@ -248,7 +212,7 @@ v-model.number="form.groupSort" placeholder="请输入群二维码展示顺序" oninput="value=value.replace(/[^\d]/g,'')" - maxLength="5" + maxlength="5" /> @@ -273,7 +237,7 @@ prop="groupQrCodeInfoDTOList[0].groupName" > - + - + > {{ item.nurseStationName }} + >{{ item.nurseStationName }} {{ item.nurseStationName }} + >{{ item.nurseStationName }} @@ -376,42 +333,19 @@ append-to-body :before-close="clicknurseStationshow" > - + - + - + - 搜索 - 重置 + 搜索 + 重置 - + - - - + + + { + getListByUser(this.getListByUserquery).then(res => { this.nurseStationlist = res.rows; this.total4 = res.total; }); @@ -664,14 +588,14 @@ export default { imgUrl(imgUrl) { console.log(this.form); // this.$set(this.form,"groupQrCodeInfoDTOList",[]) - this.form.groupQrCodeInfoDTOList.forEach((e) => { + this.form.groupQrCodeInfoDTOList.forEach(e => { this.$set(e, "groupQrCodeUrl", imgUrl); }); }, /** 查询在线客服列表 */ getList() { this.loading = true; - listGroupQrCodeInfo(this.queryParams).then((response) => { + listGroupQrCodeInfo(this.queryParams).then(response => { this.groupQrCodeInfoList = response.rows; this.total = response.total; this.loading = false; @@ -685,18 +609,18 @@ export default { obj.pictureUrlList.push(this.form.groupQrCodeUrl); } console.log(obj); - updatePicture(obj).then((res) => { + updatePicture(obj).then(res => { this.editopen = false; }); } if (this.open) { var obj = { pictureUrlList: [] }; if (this.form.groupQrCodeInfoDTOList) { - this.form.groupQrCodeInfoDTOList.forEach((e) => { + this.form.groupQrCodeInfoDTOList.forEach(e => { obj.pictureUrlList.push(e.groupQrCodeUrl); }); } - updatePicture(obj).then((res) => { + updatePicture(obj).then(res => { this.open = false; }); this.imgsurl = { pictureUrlList: [] }; @@ -715,9 +639,9 @@ export default { groupQrCodeUrl: null, customerServiceType: null, groupSort: null, - nurseStationName: "请选择所属护理站", - }, - ], + nurseStationName: "请选择所属护理站" + } + ] }; this.resetForm("form"); }, @@ -733,7 +657,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map((item) => item.id); + this.ids = selection.map(item => item.id); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -748,9 +672,9 @@ export default { groupSort: null, customerServiceType: null, nurseStationName: "请选择所属护理站", - groupQrCodeUrl: null, - }, - ], + groupQrCodeUrl: null + } + ] }; this.open = true; @@ -761,7 +685,7 @@ export default { // this.form.nurseStationId = response.data.nurseStationId; this.reset(); const id = row.id || this.ids; - getGroupQrCodeInfo(id).then((response) => { + getGroupQrCodeInfo(id).then(response => { console.log(response.data); this.form = response.data; @@ -775,14 +699,14 @@ export default { }, /** 提交按钮 */ submitForm() { - this.$refs["form"].validate((valid) => { + this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { - updateGroupQrCodeInfo(this.form).then((response) => { + updateGroupQrCodeInfo(this.form).then(response => { if (this.form.groupQrCodeUrl != this.imgone) { var obj = { pictureUrlList: [] }; obj.pictureUrlList.push(this.imgone); - updatePicture(obj).then((res) => {}); + updatePicture(obj).then(res => {}); } this.$modal.msgSuccess("修改成功"); @@ -790,7 +714,7 @@ export default { this.getList(); }); } else { - addGroupQrCodeInfo(this.form).then((response) => { + addGroupQrCodeInfo(this.form).then(response => { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); @@ -804,7 +728,7 @@ export default { const ids = row.id || this.ids; this.$modal .confirm('是否确认删除在线客服编号为"' + ids + '"的数据项?') - .then(function () { + .then(function() { return delGroupQrCodeInfo(ids); }) .then(() => { @@ -818,11 +742,11 @@ export default { this.download( "system/groupQrCodeInfo/export", { - ...this.queryParams, + ...this.queryParams }, `groupQrCodeInfo_${new Date().getTime()}.xlsx` ); - }, - }, + } + } };