From 8f625622562f675b7184e2184257b8fbdeb30be1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Thu, 4 May 2023 10:09:54 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/poser/index.vue | 355 +++++++---------------
src/views/system/trainingAvatar/index.vue | 3 +-
2 files changed, 113 insertions(+), 245 deletions(-)
diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue
index 7ebb705..6aad69d 100644
--- a/src/views/system/poser/index.vue
+++ b/src/views/system/poser/index.vue
@@ -9,14 +9,18 @@
label-width="110px"
>
-
- {{ queryParams.nurseStationName }}
-
+ {{ queryParams.nurseStationName }}
-
- {{ queryParams.nurseItemName }}
-
+ {{ queryParams.nurseItemName }}
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -70,8 +62,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:poser:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+
-
+
-
-
+
+
{{
- scope.row.moduleType == "NURSE_AGENCY_MODULE" ? "护理机构模块" : ""
+ scope.row.moduleType == "NURSE_AGENCY_MODULE" ? "护理机构模块" : ""
}}
{{
- scope.row.moduleType == "NURSE_ITEM_MODULE" ? "护理项目模块" : ""
+ scope.row.moduleType == "NURSE_ITEM_MODULE" ? "护理项目模块" : ""
}}
{{
- scope.row.moduleType == "HEALTH_CONSUTION_MODULE"
- ? "健康咨询模块"
- : ""
+ scope.row.moduleType == "HEALTH_CONSUTION_MODULE"
+ ? "健康咨询模块"
+ : ""
}}
{{ scope.row.moduleType == "HOME_PAGE_MODULE" ? "首页模块" : "" }}
{{
- scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE"
- ? "护理机构轮播图"
- : ""
+ scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE"
+ ? "护理机构轮播图"
+ : ""
}}
-
+
修改
+ >修改
删除
+ >删除
@@ -193,19 +161,9 @@
:before-close="cancel"
append-to-body
>
-
+
-
+
@@ -254,8 +212,7 @@
color: #c0c4cc;
"
v-if="form.nurseStationName == '请选择所属护理站'"
- >{{ form.nurseStationName }}
+ >{{ form.nurseStationName }}
{{ form.nurseStationName }}
+ >{{ form.nurseStationName }}
{{ form.nurseItemName }}
+ >{{ form.nurseItemName }}
{{ form.nurseItemName }}
+ >{{ form.nurseItemName }}
-
+
-
+
- 新增
- 删除
+ 新增
+ 删除
@@ -445,42 +384,19 @@
append-to-body
:before-close="clicknurseStationshow"
>
-
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
-
-
+
+
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
+
-
-
-
+
+
+
@@ -635,7 +502,7 @@ import {
getListByUser,
updatePoser,
updatePicture,
- selectPosterImageJump,
+ selectPosterImageJump
} from "@/api/system/poser";
import { list } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue";
@@ -649,7 +516,7 @@ export default {
loading: true,
getListByUserquery: {
pageNum: 1,
- pageSize: 10,
+ pageSize: 10
},
nurseStationlist: [],
nurseStationshow: false,
@@ -685,7 +552,7 @@ export default {
pageNum: 1,
pageSize: 10,
nurseItemCode: null,
- nurseItemName: null,
+ nurseItemName: null
},
// 查询参数
queryParams: {
@@ -702,7 +569,7 @@ export default {
moduleType: null,
poserSort: null,
jumpLink: null,
- jumpType: null,
+ jumpType: null
},
// 表单参数
form: {
@@ -716,55 +583,55 @@ export default {
nurseStationId: null,
nurseStationName: "请选择所属护理站",
nurseItemName: "请选择所属护理项目",
- nurseItemId: null,
+ nurseItemId: null
},
imgsurl: { pictureUrlList: [] },
// 表单校验
rules: {
moduleType: [
- { required: true, message: "请选择海报所属模块", trigger: "blur" },
+ { required: true, message: "请选择海报所属模块", trigger: "blur" }
],
poserName: [
- { required: true, message: "请输入海报名称", trigger: "blur" },
+ { required: true, message: "请输入海报名称", trigger: "blur" }
],
nurseStationId: [
- { required: true, message: "请选择所属护理站", trigger: "blur" },
+ { required: true, message: "请选择所属护理站", trigger: "blur" }
],
posterIntroduce: [
- { required: true, message: "请输入海报简介", trigger: "blur" },
+ { required: true, message: "请输入海报简介", trigger: "blur" }
],
posterVideoUrl: [
- { required: true, message: "请选择海报视频", trigger: "blur" },
+ { required: true, message: "请选择海报视频", trigger: "blur" }
],
poserSort: [
- { required: true, message: "请输入海报顺序", trigger: "blur" },
+ { required: true, message: "请输入海报顺序", trigger: "blur" }
],
nurseItemId: [
- { required: true, message: "请选择所属护理项目", trigger: "blur" },
- ],
+ { required: true, message: "请选择所属护理项目", trigger: "blur" }
+ ]
},
options: [
{
value: "NURSE_AGENCY_MODULE",
- label: "护理机构模块",
+ label: "护理机构模块"
},
{
value: "NURSE_ITEM_MODULE",
- label: "护理项目模块",
+ label: "护理项目模块"
},
{
value: "HEALTH_CONSUTION_MODULE",
- label: "健康咨询模块",
+ label: "健康咨询模块"
},
{
value: "HOME_PAGE_MODULE",
- label: "首页模块",
+ label: "首页模块"
},
{
value: "NURSE_AGENCY_INTRODUCE_MODULE",
- label: "护理机构轮播图",
- },
+ label: "护理机构轮播图"
+ }
],
objitem: [],
jumpTypes: [],
@@ -781,10 +648,10 @@ export default {
isShowUploadVideo: false,
//显示上传按钮
videoForm: {
- showVideoPath: "", //回显的变量
+ showVideoPath: "" //回显的变量
},
// 存储新上传的图片数组
- deletNewImgs: [],
+ deletNewImgs: []
};
},
created() {
@@ -799,7 +666,7 @@ export default {
},
//类型字典
PosterImageJump() {
- selectPosterImageJump().then((res) => {
+ selectPosterImageJump().then(res => {
this.jumpTypes = res.data;
});
},
@@ -810,15 +677,17 @@ export default {
if (this.form.posterPictureUrlLists.length == 1) {
this.$message.error("最后一条不可删除");
} else {
- this.form.posterPictureUrlLists =
- this.form.posterPictureUrlLists.filter((e) => e.idd != item.idd);
+ this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
+ e => e.idd != item.idd
+ );
}
} else if (!item.idd && item.id) {
if (this.form.posterPictureUrlLists.length == 1) {
this.$message.error("最后一条不可删除");
} else {
- this.form.posterPictureUrlLists =
- this.form.posterPictureUrlLists.filter((e) => e.id != item.id);
+ this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
+ e => e.id != item.id
+ );
}
}
},
@@ -830,7 +699,7 @@ export default {
jumpType: null,
idd: this.idd,
jumpLink: null,
- jumpDictId: null,
+ jumpDictId: null
};
if (this.form.posterPictureUrlLists.length >= 5) {
this.$message.error("最多新增5条");
@@ -866,13 +735,13 @@ export default {
pageNum: 1,
pageSize: 10,
nurseItemCode: null,
- nurseItemName: null,
+ nurseItemName: null
};
this.nurseItemlistInfo();
},
//搜索
nurseItemlistInfo() {
- list(this.nurseItemquery).then((res) => {
+ list(this.nurseItemquery).then(res => {
this.nurseItemlist = res.rows;
this.nurseItemtotal = res.total;
});
@@ -907,7 +776,7 @@ export default {
},
//护理站list
info() {
- getListByUser(this.getListByUserquery).then((res) => {
+ getListByUser(this.getListByUserquery).then(res => {
this.nurseStationlist = res.rows;
this.total4 = res.total;
});
@@ -922,7 +791,7 @@ export default {
stationcancel() {
this.getListByUserquery = {
pageNum: 1,
- pageSize: 10,
+ pageSize: 10
};
this.info();
},
@@ -961,7 +830,7 @@ export default {
/** 查询泉医到家系统海报模块信息(包含咨询简介信息)列表 */
getList() {
this.loading = true;
- listPoser(this.queryParams).then((response) => {
+ listPoser(this.queryParams).then(response => {
this.poserList = response.rows;
this.total = response.total;
this.loading = false;
@@ -971,12 +840,12 @@ export default {
cancel() {
var obj = { pictureUrlList: [] };
if (this.form.posterPictureUrlLists) {
- this.form.posterPictureUrlLists.forEach((e) => {
+ this.form.posterPictureUrlLists.forEach(e => {
obj.pictureUrlList.push(e.posterPictureUrl);
});
}
if (obj.pictureUrlList.length > 0) {
- updatePicture({ pictureUrlList: this.deletNewImgs }).then((res) => {
+ updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
this.open = false;
});
}
@@ -996,8 +865,8 @@ export default {
jumpType: null,
idd: this.idd,
jumpLink: null,
- jumpDictId: null,
- },
+ jumpDictId: null
+ }
],
moduleType: null,
id: null,
@@ -1008,7 +877,7 @@ export default {
nurseStationName: "请选择所属护理站",
nurseStationId: null,
nurseItemName: "请选择所属护理项目",
- nurseItemId: null,
+ nurseItemId: null
};
this.deletNewImgs = [];
this.resetForm("form");
@@ -1021,22 +890,22 @@ export default {
resetQuery() {
this.nurseItemquery = {
pageNum: 1,
- pageSize: 10,
+ pageSize: 10
};
this.stationid = "";
this.nurseitemid = "";
this.queryParams = {
pageNum: 1,
- pageSize: 10,
+ pageSize: 10
};
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.nurseStationId);
- this.itemids = selection.map((item) => item.nurseItemId);
- this.Types = selection.map((item) => item.moduleType);
+ this.ids = selection.map(item => item.nurseStationId);
+ this.itemids = selection.map(item => item.nurseItemId);
+ this.Types = selection.map(item => item.moduleType);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -1052,7 +921,7 @@ export default {
const id = row.nurseStationId || this.ids;
const itemid = row.nurseItemId || this.itemids;
const type = row.moduleType || this.Types;
- getPoser(type, id, itemid).then((response) => {
+ getPoser(type, id, itemid).then(response => {
this.form = response.data;
if (response.data.goodAttributeDetailsLists) {
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
@@ -1064,15 +933,15 @@ export default {
},
/** 提交按钮 */
submitForm() {
- this.form.posterPictureUrlLists.forEach((e) => {
+ this.form.posterPictureUrlLists.forEach(e => {
if (!e.jumpType || e.jumpType == "") {
e.jumpDictId = null;
}
});
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
- updatePoser(this.form).then((response) => {
+ updatePoser(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("修改成功");
this.open = false;
@@ -1080,7 +949,7 @@ export default {
}
});
} else {
- addPoser(this.form).then((response) => {
+ addPoser(this.form).then(response => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.open = false;
@@ -1105,7 +974,7 @@ export default {
}
this.$modal
.confirm("是否确认删除?")
- .then(function () {
+ .then(function() {
return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
})
.then(() => {
@@ -1119,12 +988,12 @@ export default {
this.download(
"system/poser/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`poser_${new Date().getTime()}.xlsx`
);
- },
- },
+ }
+ }
};