This commit is contained in:
闫晓茹 2023-02-20 16:12:05 +08:00
parent 864d55ae31
commit 0d44d736d6
2 changed files with 30 additions and 20 deletions

View File

@ -9,7 +9,7 @@
label-width="110px"
>
<el-form-item label="护理站名称" prop="nurseStationId">
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
queryParams.nurseStationName
}}</el-button>
</el-form-item>
@ -146,7 +146,11 @@
: ""
}}
{{ scope.row.moduleType == "HOME_PAGE_MODULE" ? "首页模块" : "" }}
{{ scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE" ? "护理机构简介模块" : "" }}
{{
scope.row.moduleType == "NURSE_AGENCY_INTRODUCE_MODULE"
? "护理机构简介模块"
: ""
}}
</template>
</el-table-column>
<el-table-column label="海报显示顺序" align="center" prop="poserSort" />
@ -184,7 +188,7 @@
/>
<!-- 添加或修改泉医到家系统海报模块信息包含咨询简介信息对话框 -->
<el-dialog
:title="title"
:title="!isEditFlag ? '添加海报模块信息' : '修改海报模块信息'"
:visible.sync="open"
width="1100px"
:before-close="cancel"
@ -204,12 +208,13 @@
maxlength="50"
/>
</el-form-item>
<el-form-item label="海报所属模块" prop="moduleType">
<el-select
v-model="form.moduleType"
placeholder="请选择"
style="width: 208px"
:disabled="isEditFlag"
>
<el-option
v-for="item in options"
@ -240,6 +245,7 @@
<el-button
type=""
@click="ParamsStation(false)"
:disabled="isEditFlag"
style="
width: 208px;
text-align: left;
@ -263,6 +269,7 @@
white-space: nowrap;
"
@click="ParamsStation(false)"
:disabled="isEditFlag"
v-else
>{{ form.nurseStationName }}</el-button
>
@ -271,10 +278,12 @@
<el-form-item
label="所属护理项目"
prop="nurseItemId"
v-if="form.moduleType == 'NURSE_ITEM_MODULE'"
>
<template>
<el-button
:disabled="isEditFlag"
type=""
style="
width: 208px;
@ -290,6 +299,7 @@
>{{ form.nurseItemName }}</el-button
>
<el-button
:disabled="isEditFlag"
type=""
style="
width: 208px;
@ -305,7 +315,7 @@
>
</template></el-form-item
>
<el-form-item label="海报图片" prop="posterPictureUrl">
<el-table
label-width="50px"
@ -607,7 +617,7 @@ export default {
imgs: { pictureUrlList: [] },
//
ids: [],
nurseItemIds: [],
nurseItemIds: [],
moduleTypes: [],
itemids: [],
Types: [],
@ -628,8 +638,8 @@ export default {
//
poserList: [],
nurseItemList: [],
//
title: "",
//
isEditFlag: false,
//
open: false,
nurseItemquery: {
@ -683,11 +693,11 @@ export default {
posterIntroduce: [
{ required: true, message: "请输入海报简介", trigger: "blur" },
],
"posterPictureUrlLists.posterPictureUrl": [
posterPictureUrl: [
{ required: true, message: "请选择图片", trigger: "blur" },
],
"posterPictureUrlLists.jumpType":[
{ required: true, message: "请选择图片跳转标识", trigger: "blur" },
jumpType: [
{ required: true, message: "请选择图片跳转标识", trigger: "blur" },
],
posterVideoUrl: [
{ required: true, message: "请选择海报视频", trigger: "blur" },
@ -982,7 +992,7 @@ export default {
handleAdd() {
this.reset();
this.open = true;
this.title = "添加海报模块信息";
this.isEditFlag = false;
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -997,14 +1007,14 @@ export default {
}
this.nurseItemquery.nurseStationId = response.data.nurseStationId;
this.open = true;
this.title = "修改海报模块信息";
this.isEditFlag = true;
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
if (valid) {
this.form.poserSort=parseInt(this.form.poserSort)
this.form.poserSort = parseInt(this.form.poserSort);
if (this.form.id != null) {
updatePoser(this.form).then((response) => {
var obj = { pictureUrlList: [] };
@ -1024,11 +1034,11 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
console.log(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;
const moduleTypes = row.moduleType || this.moduleTypes;
const nurseItemIds = row.nurseItemId || this.nurseItemIds;
this.$modal
.confirm(
'是否确认删除泉医到家系统海报模块信息(包含咨询简介信息)编号为"' +
@ -1036,7 +1046,7 @@ export default {
'"的数据项?'
)
.then(function () {
return delPoser(nurseStationIds,moduleTypes,nurseItemIds);
return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
})
.then(() => {
this.getList();

View File

@ -198,7 +198,7 @@
label-width="130px"
:inline="true"
>
<el-form-item label="所属护理站" required v-if="addxg == 'add'">
<el-form-item label="所属护理站" prop="nurseStationId" v-if="addxg == 'add'">
<template>
<el-button
type=""