This commit is contained in:
曹辉 2023-03-29 15:06:36 +08:00
parent 6cc2964f69
commit d30fad7d78
2 changed files with 41 additions and 28 deletions

View File

@ -71,4 +71,11 @@ export function delPoser(nurseStationId, moduleType, nurseItemId) {
url: `/system/poser/deletePoserInfo?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseItemId=${nurseItemId}`,
method: 'delete'
})
}
export function selectPosterImageJump() {
return request({
url: '/system/poser/selectPosterImageJump',
method: 'GET',
})
}

View File

@ -174,7 +174,7 @@
<el-dialog
:title="!isEditFlag ? '添加海报模块信息' : '修改海报模块信息'"
:visible.sync="open"
width="1100px"
width="1200px"
:before-close="cancel"
append-to-body
>
@ -300,13 +300,19 @@
<el-select v-model="scope.row.jumpType" placeholder="请选择" style="width: 208px">
<el-option
v-for="item in jumpTypes"
:key="item.value"
:label="item.label"
:value="item.value"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
@click.native="taptypes(scope.row,item)"
></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="图片跳转链接" align="center" width="300">
<template slot-scope="scope">
<el-input v-model="scope.row.jumpLink" placeholder="请输入跳转链接" style="widt h:250px"></el-input>
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="250">
<template slot-scope="scope">
<el-button size="mini" type="text" @click="addPictureUrl">新增</el-button>
@ -473,7 +479,8 @@ import {
getListByUser,
getListBy,
updatePoser,
updatePicture
updatePicture,
selectPosterImageJump
} from "@/api/system/poser";
import { list } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue";
@ -518,6 +525,7 @@ export default {
poserList: [],
//
deletNewImgs: [],
jumpTypes: [],
objitem: [],
nurseItemList: [],
//
@ -607,20 +615,6 @@ export default {
// },
],
imgsurl: { pictureUrlList: [] },
jumpTypes: [
{
value: "NEW_PEOPLE_WELFARE",
label: "新人福利"
},
{
value: "HOME_PAGE",
label: "首页"
},
{
value: "SHOPPING",
label: "商城"
}
],
//
stationid: "",
imgone: "",
@ -641,8 +635,18 @@ export default {
created() {
this.videourl = baseurl + "/system/station/updateNurseStationHeads";
this.info();
this.PosterImageJump();
},
methods: {
taptypes(row, e) {
row.jumpDictId = e.dictCode;
},
//
PosterImageJump() {
selectPosterImageJump().then(res => {
this.jumpTypes = res.data;
});
},
nurseStationidchange(e) {
this.nurseItemquery.nurseStationId = e;
this.queryParams.nurseItemName = "";
@ -651,7 +655,6 @@ export default {
},
//
delPictureUrl(item) {
console.log(item);
if (item.idd && !item.id) {
if (this.form.posterPictureUrlLists.length == 1) {
this.$message.error("最后一条不可删除");
@ -674,9 +677,11 @@ export default {
addPictureUrl() {
this.idd++;
var obj = {
posterPictureUrl: "",
jumpType: "",
idd: this.idd
posterPictureUrl: null,
jumpType: null,
idd: this.idd,
jumpLink: null,
jumpDictId: null
};
if (this.form.posterPictureUrlLists.length >= 5) {
this.$message.error("最多新增5条");
@ -836,7 +841,6 @@ export default {
obj.pictureUrlList.push(e.posterPictureUrl);
});
}
console.log(this.deletNewImgs);
if (obj.pictureUrlList.length > 0) {
updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
this.open = false;
@ -853,16 +857,18 @@ export default {
this.form = {
posterPictureUrlLists: [
{
posterPictureUrl: "",
jumpType: "",
idd: this.idd
posterPictureUrl: null,
jumpType: null,
idd: this.idd,
jumpLink: null,
jumpDictId: null
}
],
moduleType: null,
id: null,
poserName: null,
posterPictureUrl: null,
posterVideoUrl: null,
posterVideoUrl2: null,
poserSort: null,
nurseStationName: "请选择所属护理站",
nurseStationId: null,