修改
This commit is contained in:
parent
5b9acc7051
commit
1fcc9836d8
@ -59,9 +59,9 @@ export function updatePoser(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除泉医到家系统海报模块信息(包含咨询简介信息)
|
// 删除泉医到家系统海报模块信息(包含咨询简介信息)
|
||||||
export function delPoser(id) {
|
export function delPoser(nurseStationId,moduleType,nurseItemId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/poser/' + id,
|
url: `/system/poser/deletePoserInfo?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseItemId=${nurseItemId}`,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -287,6 +287,7 @@ export default {
|
|||||||
ids: [],
|
ids: [],
|
||||||
// 非单个禁用
|
// 非单个禁用
|
||||||
single: true,
|
single: true,
|
||||||
|
imgone:"",
|
||||||
// 非多个禁用
|
// 非多个禁用
|
||||||
multiple: true,
|
multiple: true,
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
@ -318,6 +319,7 @@ export default {
|
|||||||
},
|
},
|
||||||
idd: 0,
|
idd: 0,
|
||||||
classifyPictureUrl: null,
|
classifyPictureUrl: null,
|
||||||
|
imgsurl: { pictureUrlList: [] },
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
nurseClassifyInfoList: {
|
nurseClassifyInfoList: {
|
||||||
@ -418,8 +420,8 @@ export default {
|
|||||||
cancel() {
|
cancel() {
|
||||||
if (this.editopen) {
|
if (this.editopen) {
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
|
if (this.form.classifyPictureUrl != this.imgone) {
|
||||||
obj.pictureUrlList.push(this.classifyPictureUrl);
|
obj.pictureUrlList.push(this.form.classifyPictureUrl);
|
||||||
}
|
}
|
||||||
updatePicture(obj).then((res) => {
|
updatePicture(obj).then((res) => {
|
||||||
this.editopen = false;
|
this.editopen = false;
|
||||||
@ -493,6 +495,7 @@ export default {
|
|||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getInfo(id).then((response) => {
|
getInfo(id).then((response) => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.imgone = this.form.classifyPictureUrl;
|
||||||
this.classifyPictureUrl = response.data.classifyPictureUrl;
|
this.classifyPictureUrl = response.data.classifyPictureUrl;
|
||||||
this.editopen = true;
|
this.editopen = true;
|
||||||
this.title = "修改护理项目分类信息";
|
this.title = "修改护理项目分类信息";
|
||||||
@ -506,9 +509,9 @@ export default {
|
|||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateInfo(this.form).then((response) => {
|
updateInfo(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
if (this.form.classifyPictureUrl != this.classifyPictureUrl) {
|
if (this.form.classifyPictureUrl != this.imgone) {
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
obj.pictureUrlList.push(this.classifyPictureUrl);
|
obj.pictureUrlList.push(this.imgone);
|
||||||
updatePicture(obj).then((res) => {});
|
updatePicture(obj).then((res) => {});
|
||||||
}
|
}
|
||||||
this.editopen = false;
|
this.editopen = false;
|
||||||
|
|||||||
@ -215,6 +215,7 @@
|
|||||||
placeholder="请输入资讯图文内容"
|
placeholder="请输入资讯图文内容"
|
||||||
style="width: 80%; margin-left: 18%; margin-top: -5%"
|
style="width: 80%; margin-left: 18%; margin-top: -5%"
|
||||||
v-model="form.informationContent"
|
v-model="form.informationContent"
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -438,17 +439,17 @@ export default {
|
|||||||
message: "请输入显示顺序",
|
message: "请输入显示顺序",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
informationContent: [
|
|
||||||
{ required: true, message: "请输入资讯图文内容", trigger: "blur" },
|
|
||||||
],
|
|
||||||
// informationContent: [
|
// informationContent: [
|
||||||
// {
|
// { required: true, message: "请输入资讯图文内容", trigger: "blur" },
|
||||||
// required: true,
|
|
||||||
// message: "请输入资讯图文内容",
|
|
||||||
// trigger: "blur",
|
|
||||||
// message: "",
|
|
||||||
// },
|
|
||||||
// ],
|
// ],
|
||||||
|
informationContent: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入资讯图文内容",
|
||||||
|
trigger: "blur",
|
||||||
|
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
infolist: [],
|
infolist: [],
|
||||||
imgone: "",
|
imgone: "",
|
||||||
|
|||||||
@ -607,6 +607,8 @@ export default {
|
|||||||
imgs: { pictureUrlList: [] },
|
imgs: { pictureUrlList: [] },
|
||||||
// 选中数组
|
// 选中数组
|
||||||
ids: [],
|
ids: [],
|
||||||
|
nurseItemIds: [],
|
||||||
|
moduleTypes: [],
|
||||||
itemids: [],
|
itemids: [],
|
||||||
Types: [],
|
Types: [],
|
||||||
idd: 9999999,
|
idd: 9999999,
|
||||||
@ -681,9 +683,12 @@ export default {
|
|||||||
posterIntroduce: [
|
posterIntroduce: [
|
||||||
{ required: true, message: "请输入海报简介", trigger: "blur" },
|
{ required: true, message: "请输入海报简介", trigger: "blur" },
|
||||||
],
|
],
|
||||||
posterPictureUrl: [
|
"posterPictureUrlLists.posterPictureUrl": [
|
||||||
{ required: true, message: "请选择海报图片", trigger: "blur" },
|
{ required: true, message: "请选择海报图片", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
"posterPictureUrlLists.jumpType":[
|
||||||
|
{ required: true, message: "请选择图片跳转标识", trigger: "blur" },
|
||||||
|
],
|
||||||
posterVideoUrl: [
|
posterVideoUrl: [
|
||||||
{ required: true, message: "请选择海报视频", trigger: "blur" },
|
{ required: true, message: "请选择海报视频", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -1018,7 +1023,11 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const ids = row.id || this.ids;
|
console.log(row)
|
||||||
|
const ids = row. id || this. ids;
|
||||||
|
const nurseStationIds = row.nurseStationId || this.nurseStationIds;
|
||||||
|
const moduleTypes = row.moduleType||this.moduleTypes;
|
||||||
|
const nurseItemIds =row.nurseItemId||this.nurseItemIds;
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm(
|
.confirm(
|
||||||
'是否确认删除泉医到家系统海报模块信息(包含咨询简介信息)编号为"' +
|
'是否确认删除泉医到家系统海报模块信息(包含咨询简介信息)编号为"' +
|
||||||
@ -1026,7 +1035,7 @@ export default {
|
|||||||
'"的数据项?'
|
'"的数据项?'
|
||||||
)
|
)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return delPoser(ids);
|
return delPoser(nurseStationIds,moduleTypes,nurseItemIds);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
@ -232,7 +232,7 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属护理站" required v-else>
|
<el-form-item label="所属护理站" required v-else>
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
@ -249,7 +249,7 @@
|
|||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="护理项目分类" required>
|
<el-form-item label="护理项目分类" >
|
||||||
<template>
|
<template>
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
|
|||||||
@ -137,8 +137,14 @@ export default {
|
|||||||
idd: 1,
|
idd: 1,
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
"nurseStationItem.nurseItemName": [
|
// nurseStationId: [
|
||||||
{ required: true, message: "护理项目名称不能为空", trigger: "blur" },
|
// { required: true, message: "所属护理站不能为空", trigger: "blur" },
|
||||||
|
// ],
|
||||||
|
"nurseStationItem.classifyName":[
|
||||||
|
{ required: true, message: "护理项目分类不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
"nurseStationItem.nurseStationName":[
|
||||||
|
{ required: true, message: "护理项目分类不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
"nurseStationItem.nurseItemContent": [
|
"nurseStationItem.nurseItemContent": [
|
||||||
{ required: true, message: "项目内容简介不能为空", trigger: "blur" },
|
{ required: true, message: "项目内容简介不能为空", trigger: "blur" },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user