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