Merge remote-tracking branch 'origin/dev'
This commit is contained in:
commit
ff0cbbb040
@ -68,3 +68,10 @@ export function updatePicture(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateShelfStatus(id, shelfStatus) {
|
||||
return request({
|
||||
url: `/system/stationItem/updateShelfStatus?id=${id}&shelfStatus=${shelfStatus}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
@ -59,9 +59,18 @@ export function updatePoser(data) {
|
||||
}
|
||||
|
||||
// 删除泉医到家系统海报模块信息(包含咨询简介信息)
|
||||
export function delPoser(nurseStationId,moduleType,nurseItemId) {
|
||||
export function delPoser(nurseStationId, moduleType, nurseItemId) {
|
||||
return request({
|
||||
url: `/system/poser/deletePoserInfo?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseItemId=${nurseItemId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function selectPosterImageJump() {
|
||||
return request({
|
||||
url: '/system/poser/selectPosterImageJump',
|
||||
method: 'GET',
|
||||
})
|
||||
}
|
||||
@ -157,7 +157,7 @@
|
||||
<el-dialog
|
||||
:title="!isEditFlag ? '添加海报模块信息' : '修改海报模块信息'"
|
||||
:visible.sync="open"
|
||||
width="1100px"
|
||||
width="1200px"
|
||||
:before-close="cancel"
|
||||
append-to-body
|
||||
>
|
||||
@ -266,7 +266,6 @@
|
||||
>{{ form.nurseItemName }}</el-button>
|
||||
</template>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="海报图片" prop="posterPictureUrl">
|
||||
<el-table label-width="50px" style="margin-top: 20px" :data="form.posterPictureUrlLists">
|
||||
<el-table-column label="图片" align="center" width="300">
|
||||
@ -281,16 +280,27 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="图片跳转标识" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.jumpType" placeholder="请选择" style="width: 208px">
|
||||
<el-select
|
||||
v-model="scope.row.jumpType"
|
||||
placeholder="请选择"
|
||||
style="width: 208px"
|
||||
clearable
|
||||
>
|
||||
<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>
|
||||
@ -456,7 +466,8 @@ import {
|
||||
addPoser,
|
||||
getListByUser,
|
||||
updatePoser,
|
||||
updatePicture
|
||||
updatePicture,
|
||||
selectPosterImageJump
|
||||
} from "@/api/system/poser";
|
||||
import { list } from "@/api/system/nurseItem";
|
||||
import stationAcatar from "../stationAvatar/index.vue";
|
||||
@ -587,22 +598,8 @@ export default {
|
||||
label: "护理机构轮播图"
|
||||
}
|
||||
],
|
||||
|
||||
objitem: [],
|
||||
jumpTypes: [
|
||||
{
|
||||
value: "NEW_PEOPLE_WELFARE",
|
||||
label: "新人福利"
|
||||
},
|
||||
{
|
||||
value: "HOME_PAGE",
|
||||
label: "首页"
|
||||
},
|
||||
{
|
||||
value: "SHOPPING",
|
||||
label: "商城"
|
||||
}
|
||||
],
|
||||
jumpTypes: [],
|
||||
//页面链接
|
||||
stationid: "",
|
||||
imgone: [],
|
||||
@ -626,11 +623,20 @@ export default {
|
||||
this.videourl = baseurl + "/system/station/updateNurseStationHeads";
|
||||
this.getList();
|
||||
this.nurseItemlistInfo();
|
||||
this.PosterImageJump();
|
||||
},
|
||||
methods: {
|
||||
taptypes(row, e) {
|
||||
row.jumpDictId = e.dictCode;
|
||||
},
|
||||
//类型字典
|
||||
PosterImageJump() {
|
||||
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("最后一条不可删除");
|
||||
@ -653,9 +659,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条");
|
||||
@ -674,7 +682,6 @@ export default {
|
||||
},
|
||||
//选中护理项目
|
||||
choicenurseItem(e) {
|
||||
console.log(e)
|
||||
this.nurseitemid = e.id;
|
||||
if (this.homenumber) {
|
||||
this.queryParams.nurseItemName = e.nurseItemName;
|
||||
@ -705,8 +712,8 @@ export default {
|
||||
},
|
||||
//所属护理站页面
|
||||
ParamsStation(item) {
|
||||
this.queryParams.nurseItemName="";
|
||||
this.form.nurseItemName="请选择所属护理项目";
|
||||
this.queryParams.nurseItemName = "";
|
||||
this.form.nurseItemName = "请选择所属护理项目";
|
||||
this.info();
|
||||
this.nurseStationshow = true;
|
||||
this.homenumber = item;
|
||||
@ -718,7 +725,6 @@ export default {
|
||||
},
|
||||
//所属护理项目页面
|
||||
ParamsStationxm(item) {
|
||||
console.log(item)
|
||||
if (this.nurseItemquery.nurseStationId) {
|
||||
this.nurseItemlistInfo();
|
||||
this.homenumber = item;
|
||||
@ -815,19 +821,22 @@ export default {
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.nurseItemquery.nurseStationId = null;
|
||||
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,
|
||||
@ -888,6 +897,11 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.form.posterPictureUrlLists.forEach(e => {
|
||||
if (!e.jumpType || e.jumpType == "") {
|
||||
e.jumpDictId = null;
|
||||
}
|
||||
});
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
v-show="showSearch"
|
||||
label-width="110px"
|
||||
>
|
||||
<el-form-item label="护理站名称" prop="nurseStationId" >
|
||||
<el-form-item label="护理站名称" prop="nurseStationId">
|
||||
<el-button type class="stationbtn" @click="ParamsStation(true)">
|
||||
{{
|
||||
queryParams.nurseStationName
|
||||
@ -108,6 +108,16 @@
|
||||
<el-table-column label="护理项目编号" align="center" prop="nurseItemCode" />
|
||||
<el-table-column label="护理项目名称" align="center" prop="nurseItemName" />
|
||||
<el-table-column label="护理项目分类名称" align="center" prop="classifyName" />
|
||||
<el-table-column label="上架状态" align="center" prop="whetherShelf">
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.shelfStatus"
|
||||
active-color="#13ce66"
|
||||
inactive-color="#ff4949"
|
||||
@change="upwhetherShelf(scope.row)"
|
||||
></el-switch>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||
<el-table-column label="创建人" align="center" prop="createBy" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
|
||||
@ -10,6 +10,7 @@ import {
|
||||
addNurseItem,
|
||||
updateNurseItem,
|
||||
updatePicture,
|
||||
updateShelfStatus
|
||||
} from "@/api/system/nurseItem";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import { getListByUser } from "@/api/system/userlist.js";
|
||||
@ -196,6 +197,23 @@ export default {
|
||||
this.classifylistInfo();
|
||||
},
|
||||
methods: {
|
||||
//点击上架
|
||||
upwhetherShelf(row) {
|
||||
let shelfStatus = null
|
||||
if (row.shelfStatus == false) {
|
||||
shelfStatus = 'NOT_SHELF'
|
||||
} else if (row.shelfStatus == true) {
|
||||
shelfStatus = 'SHELF'
|
||||
}
|
||||
updateShelfStatus(row.id, shelfStatus).then((res) => {
|
||||
if (row.shelfStatus == false) {
|
||||
this.$modal.msgSuccess("已修改上架状态为未上架");
|
||||
} else {
|
||||
this.$modal.msgSuccess("已修改上架状态为上架");
|
||||
}
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
//// //护理项目list
|
||||
//打开遮罩层
|
||||
clickClassifyshow() {
|
||||
@ -374,6 +392,13 @@ export default {
|
||||
getList() {
|
||||
this.loading = true;
|
||||
list(this.queryParams).then((response) => {
|
||||
response.rows.forEach(e => {
|
||||
if (e.shelfStatus == 'SHELF') {
|
||||
e.shelfStatus = true
|
||||
} else {
|
||||
e.shelfStatus = false
|
||||
}
|
||||
})
|
||||
this.nurseItemList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user