修改提交

This commit is contained in:
曹辉 2023-05-04 10:09:54 +08:00
parent 851fdb9f4c
commit 8f62562256
2 changed files with 113 additions and 245 deletions

View File

@ -9,14 +9,18 @@
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
{{ queryParams.nurseStationName }} type
</el-button> class="stationbtn"
@click="ParamsStation(true)"
>{{ queryParams.nurseStationName }}</el-button>
</el-form-item> </el-form-item>
<el-form-item label="护理项目" prop="nurseItemId" label-width="100px"> <el-form-item label="护理项目" prop="nurseItemId" label-width="100px">
<el-button type class="stationbtn" @click="ParamsStationxm(true)"> <el-button
{{ queryParams.nurseItemName }} type
</el-button> class="stationbtn"
@click="ParamsStationxm(true)"
>{{ queryParams.nurseItemName }}</el-button>
</el-form-item> </el-form-item>
<el-form-item label="海报名称" prop="poserName"> <el-form-item label="海报名称" prop="poserName">
<el-input <el-input
@ -27,11 +31,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="海报所属模块" prop="moduleType"> <el-form-item label="海报所属模块" prop="moduleType">
<el-select <el-select v-model="queryParams.moduleType" placeholder="请选择" style="width: 208px">
v-model="queryParams.moduleType"
placeholder="请选择"
style="width: 208px"
>
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.value" :key="item.value"
@ -49,16 +49,8 @@
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
type="primary" <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
@ -70,8 +62,7 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['system:poser:add']" v-hasPermi="['system:poser:add']"
>新增</el-button >新增</el-button>
>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -82,8 +73,7 @@
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['system:poser:edit']" v-hasPermi="['system:poser:edit']"
>修改</el-button >修改</el-button>
>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -94,8 +84,7 @@
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['system:poser:remove']" v-hasPermi="['system:poser:remove']"
>删除</el-button >删除</el-button>
>
</el-col> </el-col>
<!-- <el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
@ -108,27 +97,12 @@
>导出</el-button >导出</el-button
> >
</el-col>--> </el-col>-->
<right-toolbar <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row> </el-row>
<el-table <el-table v-loading="loading" :data="poserList" @selection-change="handleSelectionChange">
v-loading="loading"
:data="poserList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column <el-table-column label="所属护理站" align="center" prop="nurseStationName" />
label="所属护理站" <el-table-column label="所属护理项目" align="center" prop="nurseItemName" />
align="center"
prop="nurseStationName"
/>
<el-table-column
label="所属护理项目"
align="center"
prop="nurseItemName"
/>
<el-table-column label="海报名称" align="center" prop="poserName" /> <el-table-column label="海报名称" align="center" prop="poserName" />
<el-table-column label="海报编号" align="center" prop="poserCode" /> <el-table-column label="海报编号" align="center" prop="poserCode" />
<el-table-column label="海报所属模块" align="center" prop="moduleType"> <el-table-column label="海报所属模块" align="center" prop="moduleType">
@ -153,11 +127,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="海报显示顺序" align="center" prop="poserSort" /> <el-table-column label="海报显示顺序" align="center" prop="poserSort" />
<el-table-column <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -165,16 +135,14 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['system:poser:edit']" v-hasPermi="['system:poser:edit']"
>修改</el-button >修改</el-button>
>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['system:poser:remove']" v-hasPermi="['system:poser:remove']"
>删除</el-button >删除</el-button>
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -193,19 +161,9 @@
:before-close="cancel" :before-close="cancel"
append-to-body append-to-body
> >
<el-form <el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
ref="form"
:model="form"
:rules="rules"
label-width="110px"
:inline="true"
>
<el-form-item label="海报名称" prop="poserName"> <el-form-item label="海报名称" prop="poserName">
<el-input <el-input v-model="form.poserName" placeholder="请输入海报名称" maxlength="50" />
v-model="form.poserName"
placeholder="请输入海报名称"
maxlength="50"
/>
</el-form-item> </el-form-item>
<el-form-item label="海报所属模块" prop="moduleType"> <el-form-item label="海报所属模块" prop="moduleType">
@ -254,8 +212,7 @@
color: #c0c4cc; color: #c0c4cc;
" "
v-if="form.nurseStationName == '请选择所属护理站'" v-if="form.nurseStationName == '请选择所属护理站'"
>{{ form.nurseStationName }}</el-button >{{ form.nurseStationName }}</el-button>
>
<el-button <el-button
type type
style=" style="
@ -269,8 +226,7 @@
@click="ParamsStation(false)" @click="ParamsStation(false)"
:disabled="isEditFlag" :disabled="isEditFlag"
v-else v-else
>{{ form.nurseStationName }}</el-button >{{ form.nurseStationName }}</el-button>
>
</template> </template>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -293,8 +249,7 @@
" "
@click="ParamsStationxm(false)" @click="ParamsStationxm(false)"
v-if="form.nurseItemName == '请选择所属护理项目'" v-if="form.nurseItemName == '请选择所属护理项目'"
>{{ form.nurseItemName }}</el-button >{{ form.nurseItemName }}</el-button>
>
<el-button <el-button
:disabled="isEditFlag" :disabled="isEditFlag"
type type
@ -308,16 +263,11 @@
" "
@click="ParamsStationxm(false)" @click="ParamsStationxm(false)"
v-else v-else
>{{ form.nurseItemName }}</el-button >{{ form.nurseItemName }}</el-button>
>
</template> </template>
</el-form-item> </el-form-item>
<!-- <el-form-item label="海报图片" prop="posterPictureUrl"> --> <!-- <el-form-item label="海报图片" prop="posterPictureUrl"> -->
<el-table <el-table label-width="50px" style="margin: 20px 0 30px" :data="form.posterPictureUrlLists">
label-width="50px"
style="margin-top: 20px"
:data="form.posterPictureUrlLists"
>
<el-table-column label="图片" align="center" width="300"> <el-table-column label="图片" align="center" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item <el-form-item
@ -382,25 +332,14 @@
}, },
]" ]"
> >
<el-input <el-input v-model="scope.row.jumpLink" placeholder="请输入跳转链接" style="widt h:250px"></el-input>
v-model="scope.row.jumpLink"
placeholder="请输入跳转链接"
style="widt h:250px"
></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="250"> <el-table-column label="操作" align="center" width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="addPictureUrl" <el-button size="mini" type="text" @click="addPictureUrl">新增</el-button>
>新增</el-button <el-button size="mini" type="text" @click="delPictureUrl(scope.row)">删除</el-button>
>
<el-button
size="mini"
type="text"
@click="delPictureUrl(scope.row)"
>删除</el-button
>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -445,42 +384,19 @@
append-to-body append-to-body
:before-close="clicknurseStationshow" :before-close="clicknurseStationshow"
> >
<el-form <el-form ref="form" :model="getListByUserquery" label-width="110px" :inline="true">
ref="form"
:model="getListByUserquery"
label-width="110px"
:inline="true"
>
<el-form-item label="护理站编码" prop="nurseStationCode"> <el-form-item label="护理站编码" prop="nurseStationCode">
<el-input <el-input v-model="getListByUserquery.nurseStationCode" placeholder="请输入护理站编码" />
v-model="getListByUserquery.nurseStationCode"
placeholder="请输入护理站编码"
/>
</el-form-item> </el-form-item>
<el-form-item label="护理站名称" prop="nurseStationName"> <el-form-item label="护理站名称" prop="nurseStationName">
<el-input <el-input v-model="getListByUserquery.nurseStationName" placeholder="请输入护理站名称" />
v-model="getListByUserquery.nurseStationName"
placeholder="请输入护理站名称"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button type="primary" icon="el-icon-search" size="mini" @click="info">搜索</el-button>
type="primary" <el-button icon="el-icon-refresh" size="mini" @click="stationcancel">重置</el-button>
icon="el-icon-search"
size="mini"
@click="info"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="stationcancel"
>重置</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table <el-table v-loading="loading" :data="nurseStationlist" @cell-dblclick="choicestationid">
v-loading="loading"
:data="nurseStationlist"
@cell-dblclick="choicestationid"
>
<el-table-column label="请选择" width="70" align="center"> <el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -499,21 +415,9 @@
></el-button> ></el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column property="nurseStationCode" label="护理站编码" align="center"></el-table-column>
property="nurseStationCode" <el-table-column property="nurseStationName" label="护理站名称" align="center"></el-table-column>
label="护理站编码" <el-table-column property="phone" label="联系电话" align="center"></el-table-column>
align="center"
></el-table-column>
<el-table-column
property="nurseStationName"
label="护理站名称"
align="center"
></el-table-column>
<el-table-column
property="phone"
label="联系电话"
align="center"
></el-table-column>
<el-table-column <el-table-column
property="address" property="address"
label="护理站地址" label="护理站地址"
@ -540,38 +444,17 @@
> >
<el-form :model="nurseItemquery" label-width="150px" :inline="true"> <el-form :model="nurseItemquery" label-width="150px" :inline="true">
<el-form-item label="护理项目编码" prop="nurseItemCode"> <el-form-item label="护理项目编码" prop="nurseItemCode">
<el-input <el-input v-model="nurseItemquery.nurseItemCode" placeholder="请输入护理项目编码" />
v-model="nurseItemquery.nurseItemCode"
placeholder="请输入护理项目编码"
/>
</el-form-item> </el-form-item>
<el-form-item label="护理项目名称" prop="nurseItemName"> <el-form-item label="护理项目名称" prop="nurseItemName">
<el-input <el-input v-model="nurseItemquery.nurseItemName" placeholder="请输入护理项目名称" />
v-model="nurseItemquery.nurseItemName"
placeholder="请输入护理项目名称"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button type="primary" icon="el-icon-search" size="mini" @click="nurseItemlistInfo">搜索</el-button>
type="primary" <el-button icon="el-icon-refresh" size="mini" @click="nurseItemlistcancel">重置</el-button>
icon="el-icon-search"
size="mini"
@click="nurseItemlistInfo"
>搜索</el-button
>
<el-button
icon="el-icon-refresh"
size="mini"
@click="nurseItemlistcancel"
>重置</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table <el-table v-loading="loading" :data="nurseItemlist" @cell-dblclick="choicenurseItem">
v-loading="loading"
:data="nurseItemlist"
@cell-dblclick="choicenurseItem"
>
<el-table-column label="请选择" width="70" align="center"> <el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -590,27 +473,11 @@
></el-button> ></el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="所属护理站" align="center" prop="nurseStationName" />
label="所属护理站"
align="center"
prop="nurseStationName"
/>
<!-- <el-table-column label="护理类型" align="center" prop="nurseTypeName" /> --> <!-- <el-table-column label="护理类型" align="center" prop="nurseTypeName" /> -->
<el-table-column <el-table-column label="护理项目编号" align="center" prop="nurseItemCode" />
label="护理项目编号" <el-table-column label="护理项目名称" align="center" prop="nurseItemName" />
align="center" <el-table-column label="护理项目分类名称" align="center" prop="nurseItemName" />
prop="nurseItemCode"
/>
<el-table-column
label="护理项目名称"
align="center"
prop="nurseItemName"
/>
<el-table-column
label="护理项目分类名称"
align="center"
prop="nurseItemName"
/>
<el-table-column label="创建时间" align="center" prop="createTime" /> <el-table-column label="创建时间" align="center" prop="createTime" />
<el-table-column label="创建人" align="center" prop="createBy" /> <el-table-column label="创建人" align="center" prop="createBy" />
</el-table> </el-table>
@ -635,7 +502,7 @@ import {
getListByUser, getListByUser,
updatePoser, updatePoser,
updatePicture, updatePicture,
selectPosterImageJump, selectPosterImageJump
} from "@/api/system/poser"; } from "@/api/system/poser";
import { list } from "@/api/system/nurseItem"; import { list } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue"; import stationAcatar from "../stationAvatar/index.vue";
@ -649,7 +516,7 @@ export default {
loading: true, loading: true,
getListByUserquery: { getListByUserquery: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10
}, },
nurseStationlist: [], nurseStationlist: [],
nurseStationshow: false, nurseStationshow: false,
@ -685,7 +552,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
nurseItemCode: null, nurseItemCode: null,
nurseItemName: null, nurseItemName: null
}, },
// //
queryParams: { queryParams: {
@ -702,7 +569,7 @@ export default {
moduleType: null, moduleType: null,
poserSort: null, poserSort: null,
jumpLink: null, jumpLink: null,
jumpType: null, jumpType: null
}, },
// //
form: { form: {
@ -716,55 +583,55 @@ export default {
nurseStationId: null, nurseStationId: null,
nurseStationName: "请选择所属护理站", nurseStationName: "请选择所属护理站",
nurseItemName: "请选择所属护理项目", nurseItemName: "请选择所属护理项目",
nurseItemId: null, nurseItemId: null
}, },
imgsurl: { pictureUrlList: [] }, imgsurl: { pictureUrlList: [] },
// //
rules: { rules: {
moduleType: [ moduleType: [
{ required: true, message: "请选择海报所属模块", trigger: "blur" }, { required: true, message: "请选择海报所属模块", trigger: "blur" }
], ],
poserName: [ poserName: [
{ required: true, message: "请输入海报名称", trigger: "blur" }, { required: true, message: "请输入海报名称", trigger: "blur" }
], ],
nurseStationId: [ nurseStationId: [
{ required: true, message: "请选择所属护理站", trigger: "blur" }, { required: true, message: "请选择所属护理站", trigger: "blur" }
], ],
posterIntroduce: [ posterIntroduce: [
{ required: true, message: "请输入海报简介", trigger: "blur" }, { required: true, message: "请输入海报简介", trigger: "blur" }
], ],
posterVideoUrl: [ posterVideoUrl: [
{ required: true, message: "请选择海报视频", trigger: "blur" }, { required: true, message: "请选择海报视频", trigger: "blur" }
], ],
poserSort: [ poserSort: [
{ required: true, message: "请输入海报顺序", trigger: "blur" }, { required: true, message: "请输入海报顺序", trigger: "blur" }
], ],
nurseItemId: [ nurseItemId: [
{ required: true, message: "请选择所属护理项目", trigger: "blur" }, { required: true, message: "请选择所属护理项目", trigger: "blur" }
], ]
}, },
options: [ options: [
{ {
value: "NURSE_AGENCY_MODULE", value: "NURSE_AGENCY_MODULE",
label: "护理机构模块", label: "护理机构模块"
}, },
{ {
value: "NURSE_ITEM_MODULE", value: "NURSE_ITEM_MODULE",
label: "护理项目模块", label: "护理项目模块"
}, },
{ {
value: "HEALTH_CONSUTION_MODULE", value: "HEALTH_CONSUTION_MODULE",
label: "健康咨询模块", label: "健康咨询模块"
}, },
{ {
value: "HOME_PAGE_MODULE", value: "HOME_PAGE_MODULE",
label: "首页模块", label: "首页模块"
}, },
{ {
value: "NURSE_AGENCY_INTRODUCE_MODULE", value: "NURSE_AGENCY_INTRODUCE_MODULE",
label: "护理机构轮播图", label: "护理机构轮播图"
}, }
], ],
objitem: [], objitem: [],
jumpTypes: [], jumpTypes: [],
@ -781,10 +648,10 @@ export default {
isShowUploadVideo: false, isShowUploadVideo: false,
// //
videoForm: { videoForm: {
showVideoPath: "", // showVideoPath: "" //
}, },
// //
deletNewImgs: [], deletNewImgs: []
}; };
}, },
created() { created() {
@ -799,7 +666,7 @@ export default {
}, },
// //
PosterImageJump() { PosterImageJump() {
selectPosterImageJump().then((res) => { selectPosterImageJump().then(res => {
this.jumpTypes = res.data; this.jumpTypes = res.data;
}); });
}, },
@ -810,15 +677,17 @@ export default {
if (this.form.posterPictureUrlLists.length == 1) { if (this.form.posterPictureUrlLists.length == 1) {
this.$message.error("最后一条不可删除"); this.$message.error("最后一条不可删除");
} else { } else {
this.form.posterPictureUrlLists = this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
this.form.posterPictureUrlLists.filter((e) => e.idd != item.idd); e => e.idd != item.idd
);
} }
} else if (!item.idd && item.id) { } else if (!item.idd && item.id) {
if (this.form.posterPictureUrlLists.length == 1) { if (this.form.posterPictureUrlLists.length == 1) {
this.$message.error("最后一条不可删除"); this.$message.error("最后一条不可删除");
} else { } else {
this.form.posterPictureUrlLists = this.form.posterPictureUrlLists = this.form.posterPictureUrlLists.filter(
this.form.posterPictureUrlLists.filter((e) => e.id != item.id); e => e.id != item.id
);
} }
} }
}, },
@ -830,7 +699,7 @@ export default {
jumpType: null, jumpType: null,
idd: this.idd, idd: this.idd,
jumpLink: null, jumpLink: null,
jumpDictId: null, jumpDictId: null
}; };
if (this.form.posterPictureUrlLists.length >= 5) { if (this.form.posterPictureUrlLists.length >= 5) {
this.$message.error("最多新增5条"); this.$message.error("最多新增5条");
@ -866,13 +735,13 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
nurseItemCode: null, nurseItemCode: null,
nurseItemName: null, nurseItemName: null
}; };
this.nurseItemlistInfo(); this.nurseItemlistInfo();
}, },
// //
nurseItemlistInfo() { nurseItemlistInfo() {
list(this.nurseItemquery).then((res) => { list(this.nurseItemquery).then(res => {
this.nurseItemlist = res.rows; this.nurseItemlist = res.rows;
this.nurseItemtotal = res.total; this.nurseItemtotal = res.total;
}); });
@ -907,7 +776,7 @@ export default {
}, },
//list //list
info() { info() {
getListByUser(this.getListByUserquery).then((res) => { getListByUser(this.getListByUserquery).then(res => {
this.nurseStationlist = res.rows; this.nurseStationlist = res.rows;
this.total4 = res.total; this.total4 = res.total;
}); });
@ -922,7 +791,7 @@ export default {
stationcancel() { stationcancel() {
this.getListByUserquery = { this.getListByUserquery = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10
}; };
this.info(); this.info();
}, },
@ -961,7 +830,7 @@ export default {
/** 查询泉医到家系统海报模块信息(包含咨询简介信息)列表 */ /** 查询泉医到家系统海报模块信息(包含咨询简介信息)列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listPoser(this.queryParams).then((response) => { listPoser(this.queryParams).then(response => {
this.poserList = response.rows; this.poserList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;
@ -971,12 +840,12 @@ export default {
cancel() { cancel() {
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if (this.form.posterPictureUrlLists) { if (this.form.posterPictureUrlLists) {
this.form.posterPictureUrlLists.forEach((e) => { this.form.posterPictureUrlLists.forEach(e => {
obj.pictureUrlList.push(e.posterPictureUrl); obj.pictureUrlList.push(e.posterPictureUrl);
}); });
} }
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
updatePicture({ pictureUrlList: this.deletNewImgs }).then((res) => { updatePicture({ pictureUrlList: this.deletNewImgs }).then(res => {
this.open = false; this.open = false;
}); });
} }
@ -996,8 +865,8 @@ export default {
jumpType: null, jumpType: null,
idd: this.idd, idd: this.idd,
jumpLink: null, jumpLink: null,
jumpDictId: null, jumpDictId: null
}, }
], ],
moduleType: null, moduleType: null,
id: null, id: null,
@ -1008,7 +877,7 @@ export default {
nurseStationName: "请选择所属护理站", nurseStationName: "请选择所属护理站",
nurseStationId: null, nurseStationId: null,
nurseItemName: "请选择所属护理项目", nurseItemName: "请选择所属护理项目",
nurseItemId: null, nurseItemId: null
}; };
this.deletNewImgs = []; this.deletNewImgs = [];
this.resetForm("form"); this.resetForm("form");
@ -1021,22 +890,22 @@ export default {
resetQuery() { resetQuery() {
this.nurseItemquery = { this.nurseItemquery = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10
}; };
this.stationid = ""; this.stationid = "";
this.nurseitemid = ""; this.nurseitemid = "";
this.queryParams = { this.queryParams = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10
}; };
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.nurseStationId); this.ids = selection.map(item => item.nurseStationId);
this.itemids = selection.map((item) => item.nurseItemId); this.itemids = selection.map(item => item.nurseItemId);
this.Types = selection.map((item) => item.moduleType); this.Types = selection.map(item => item.moduleType);
this.single = selection.length !== 1; this.single = selection.length !== 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
@ -1052,7 +921,7 @@ export default {
const id = row.nurseStationId || this.ids; const id = row.nurseStationId || this.ids;
const itemid = row.nurseItemId || this.itemids; const itemid = row.nurseItemId || this.itemids;
const type = row.moduleType || this.Types; const type = row.moduleType || this.Types;
getPoser(type, id, itemid).then((response) => { getPoser(type, id, itemid).then(response => {
this.form = response.data; this.form = response.data;
if (response.data.goodAttributeDetailsLists) { if (response.data.goodAttributeDetailsLists) {
this.goodDetailsLists = response.data.goodAttributeDetailsLists; this.goodDetailsLists = response.data.goodAttributeDetailsLists;
@ -1064,15 +933,15 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.posterPictureUrlLists.forEach((e) => { this.form.posterPictureUrlLists.forEach(e => {
if (!e.jumpType || e.jumpType == "") { if (!e.jumpType || e.jumpType == "") {
e.jumpDictId = null; e.jumpDictId = null;
} }
}); });
this.$refs["form"].validate((valid) => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
updatePoser(this.form).then((response) => { updatePoser(this.form).then(response => {
if (response.code == 200) { if (response.code == 200) {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
@ -1080,7 +949,7 @@ export default {
} }
}); });
} else { } else {
addPoser(this.form).then((response) => { addPoser(this.form).then(response => {
if (response.code == 200) { if (response.code == 200) {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
@ -1105,7 +974,7 @@ export default {
} }
this.$modal this.$modal
.confirm("是否确认删除?") .confirm("是否确认删除?")
.then(function () { .then(function() {
return delPoser(nurseStationIds, moduleTypes, nurseItemIds); return delPoser(nurseStationIds, moduleTypes, nurseItemIds);
}) })
.then(() => { .then(() => {
@ -1119,12 +988,12 @@ export default {
this.download( this.download(
"system/poser/export", "system/poser/export",
{ {
...this.queryParams, ...this.queryParams
}, },
`poser_${new Date().getTime()}.xlsx` `poser_${new Date().getTime()}.xlsx`
); );
}, }
}, }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -117,6 +117,7 @@ export default {
}; };
}, },
created() { created() {
console.log(this.tovideo);
this.uploadbtn = true; this.uploadbtn = true;
this.filedata.type = this.type; this.filedata.type = this.type;
this.items = this.item; this.items = this.item;
@ -127,7 +128,6 @@ export default {
watch: { watch: {
tovideo: { tovideo: {
handler(newimg, oldimg) { handler(newimg, oldimg) {
console.log(newimg, oldimg);
this.uploadbtn = true; this.uploadbtn = true;
this.videoForm.showVideoPath = baseurl + this.tovideo; this.videoForm.showVideoPath = baseurl + this.tovideo;
this.video.VideoPath = baseurl + this.tovideo; this.video.VideoPath = baseurl + this.tovideo;
@ -157,7 +157,6 @@ export default {
} }
}, },
loadJsonFromFile(file, fileList) { loadJsonFromFile(file, fileList) {
console.log(file);
const reader = new FileReader(); const reader = new FileReader();
this.previews.data = file.raw; this.previews.data = file.raw;
this.videoForm.showVideoPath = URL.createObjectURL(file.raw); this.videoForm.showVideoPath = URL.createObjectURL(file.raw);