diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue
index e163718..ad005f8 100644
--- a/src/views/system/poser/index.vue
+++ b/src/views/system/poser/index.vue
@@ -10,16 +10,12 @@
>
- {{
- queryParams.nurseStationName
- }}
+ {{ queryParams.nurseStationName }}
- {{
- queryParams.nurseItemName
- }}
+ {{ queryParams.nurseItemName }}
@@ -31,7 +27,11 @@
/>
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -62,7 +70,8 @@
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"
+ ? "护理机构轮播图"
+ : ""
}}
-
+
修改
+ >修改
删除
+ >删除
@@ -161,9 +193,19 @@
:before-close="cancel"
append-to-body
>
-
+
-
+
@@ -212,7 +254,8 @@
color: #c0c4cc;
"
v-if="form.nurseStationName == '请选择所属护理站'"
- >{{ form.nurseStationName }}
+ >{{ form.nurseStationName }}
{{ form.nurseStationName }}
+ >{{ form.nurseStationName }}
{{ form.nurseItemName }}
+ >{{ form.nurseItemName }}
{{ form.nurseItemName }}
+ >{{ form.nurseItemName }}
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- 新增
- 删除
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增
+ 删除
+
+
+
+
-
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
-
-
+
+
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
+
-
-
-
+
+
+
@@ -467,7 +635,7 @@ import {
getListByUser,
updatePoser,
updatePicture,
- selectPosterImageJump
+ selectPosterImageJump,
} from "@/api/system/poser";
import { list } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue";
@@ -481,7 +649,7 @@ export default {
loading: true,
getListByUserquery: {
pageNum: 1,
- pageSize: 10
+ pageSize: 10,
},
nurseStationlist: [],
nurseStationshow: false,
@@ -517,7 +685,7 @@ export default {
pageNum: 1,
pageSize: 10,
nurseItemCode: null,
- nurseItemName: null
+ nurseItemName: null,
},
// 查询参数
queryParams: {
@@ -534,7 +702,7 @@ export default {
moduleType: null,
poserSort: null,
jumpLink: null,
- jumpType: null
+ jumpType: null,
},
// 表单参数
form: {
@@ -548,55 +716,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: [],
@@ -613,10 +781,10 @@ export default {
isShowUploadVideo: false,
//显示上传按钮
videoForm: {
- showVideoPath: "" //回显的变量
+ showVideoPath: "", //回显的变量
},
// 存储新上传的图片数组
- deletNewImgs: []
+ deletNewImgs: [],
};
},
created() {
@@ -631,27 +799,26 @@ export default {
},
//类型字典
PosterImageJump() {
- selectPosterImageJump().then(res => {
+ selectPosterImageJump().then((res) => {
this.jumpTypes = res.data;
});
},
//删除海报图片列表
delPictureUrl(item) {
+ console.log(item);
if (item.idd && !item.id) {
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);
}
}
},
@@ -663,7 +830,7 @@ export default {
jumpType: null,
idd: this.idd,
jumpLink: null,
- jumpDictId: null
+ jumpDictId: null,
};
if (this.form.posterPictureUrlLists.length >= 5) {
this.$message.error("最多新增5条");
@@ -699,13 +866,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;
});
@@ -740,7 +907,7 @@ export default {
},
//护理站list
info() {
- getListByUser(this.getListByUserquery).then(res => {
+ getListByUser(this.getListByUserquery).then((res) => {
this.nurseStationlist = res.rows;
this.total4 = res.total;
});
@@ -755,7 +922,7 @@ export default {
stationcancel() {
this.getListByUserquery = {
pageNum: 1,
- pageSize: 10
+ pageSize: 10,
};
this.info();
},
@@ -794,7 +961,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;
@@ -804,12 +971,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;
});
}
@@ -829,8 +996,8 @@ export default {
jumpType: null,
idd: this.idd,
jumpLink: null,
- jumpDictId: null
- }
+ jumpDictId: null,
+ },
],
moduleType: null,
id: null,
@@ -841,7 +1008,7 @@ export default {
nurseStationName: "请选择所属护理站",
nurseStationId: null,
nurseItemName: "请选择所属护理项目",
- nurseItemId: null
+ nurseItemId: null,
};
this.deletNewImgs = [];
this.resetForm("form");
@@ -854,22 +1021,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;
},
@@ -885,7 +1052,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;
@@ -897,15 +1064,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) => {
// var obj = { pictureUrlList: [] };
// if (this.form.posterPictureUrlLists) {
// this.form.posterPictureUrlLists.forEach((e) => {
@@ -920,7 +1087,7 @@ export default {
this.getList();
});
} else {
- addPoser(this.form).then(response => {
+ addPoser(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
@@ -943,7 +1110,7 @@ export default {
}
this.$modal
.confirm("是否确认删除?")
- .then(function() {
+ .then(function () {
return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
})
.then(() => {
@@ -957,12 +1124,12 @@ export default {
this.download(
"system/poser/export",
{
- ...this.queryParams
+ ...this.queryParams,
},
`poser_${new Date().getTime()}.xlsx`
);
- }
- }
+ },
+ },
};