This commit is contained in:
曹辉 2023-02-16 11:02:11 +08:00
parent efd259ade4
commit 5bce1c6023
2 changed files with 37 additions and 58 deletions

View File

@ -25,9 +25,10 @@ export function listInfo(query) {
}) })
} }
// 查询泉医到家系统海报模块信息(包含咨询简介信息)详细 // 查询泉医到家系统海报模块信息(包含咨询简介信息)详细
export function getPoser(id) {
export function getPoser(moduleType, nurseStationId, nurseltemId) {
return request({ return request({
url: '/system/poser/' + id, url: `/system/poser/getModuleType?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseltemId=${nurseltemId}`,
method: 'get' method: 'get'
}) })
} }

View File

@ -27,12 +27,19 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="海报所属模块" prop="moduleType"> <el-form-item label="海报所属模块" prop="moduleType">
<el-input <el-select
v-model="queryParams.moduleType" v-model="queryParams.moduleType"
placeholder="请输入海报所属模块" placeholder="请选择"
clearable style="width: 208px"
@keyup.enter.native="handleQuery" >
/> <el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="海报编号" prop="poserCode"> <el-form-item label="海报编号" prop="poserCode">
<el-input <el-input
@ -593,6 +600,8 @@ export default {
imgs: { pictureUrlList: [] }, imgs: { pictureUrlList: [] },
// //
ids: [], ids: [],
itemids: [],
Types: [],
idd: 9999999, idd: 9999999,
// //
single: true, single: true,
@ -732,47 +741,6 @@ export default {
this.nurseItemlistInfo(); this.nurseItemlistInfo();
}, },
methods: { methods: {
//
beforeUploadVideo(file) {
var fileSize = file.size / 1024 / 1024 < 50; // 50
if (
[
"video/mp4",
"video/ogg",
"video/flv",
"video/avi",
"video/wmv",
"video/rmvb",
"video/mov",
].indexOf(file.type) == -1 //
) {
this.$modal.msgError("请上传正确的视频格式");
return false;
}
if (!fileSize) {
this.$modal.msgError("视频大小不能超过50MB");
return false;
}
this.isShowUploadVideo = false;
},
//
uploadVideoProcess(event, file, fileList) {
//data
this.videoFlag = true;
this.videoUploadPercent = file.percentage.toFixed(0) * 1;
},
//
handleVideoSuccess(res, file) {
this.isShowUploadVideo = true;
this.videoFlag = false;
this.videoUploadPercent = 0;
//
if (res.success == true) {
this.videoForm.showVideoPath = res.data.url; //
} else {
this.$message.error("上传失败!");
}
},
// //
delPictureUrl(item) { delPictureUrl(item) {
if (item.idd && !item.id) { if (item.idd && !item.id) {
@ -853,15 +821,18 @@ export default {
}, },
// //
ParamsStationxm(item) { ParamsStationxm(item) {
this.nurseItemlistInfo(); if (this.nurseItemquery.nurseStationId) {
this.homenumber = item; this.nurseItemlistInfo();
this.nurseItemshow = true; this.homenumber = item;
if (this.homenumber) { this.nurseItemshow = true;
this.nurseitemid = this.queryParams.nurseItemId; if (this.homenumber) {
this.nurseitemid = this.queryParams.nurseItemId;
} else {
this.nurseitemid = this.form.nurseItemId;
}
} else { } else {
this.nurseitemid = this.form.nurseItemId; this.$modal.msgError("请先选择所属护理站");
} }
console.log(this.queryParams);
}, },
//list //list
info() { info() {
@ -931,6 +902,7 @@ export default {
if (this.imgs.pictureUrlList.length > 0) { if (this.imgs.pictureUrlList.length > 0) {
updatePicture(this.imgs).then((res) => {}); updatePicture(this.imgs).then((res) => {});
} }
this.nurseItemquery.nurseStationId = null;
this.imgs = { pictureUrlList: [] }; this.imgs = { pictureUrlList: [] };
this.open = false; this.open = false;
this.reset(); this.reset();
@ -979,7 +951,10 @@ export default {
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id); console.log(selection);
this.ids = selection.map((item) => item.nurseStationId);
this.itemids = selection.map((item) => item.nurseItemId);
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;
}, },
@ -992,12 +967,15 @@ export default {
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.nurseStationId || this.ids;
getPoser(id).then((response) => { const itemid = row.nurseStationId || this.ids;
const type = row.moduleType || this.Types;
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;
} }
this.nurseItemquery.nurseStationId = response.data.nurseStationId;
this.open = true; this.open = true;
this.title = "修改泉医到家系统海报模块信息(包含咨询简介信息)"; this.title = "修改泉医到家系统海报模块信息(包含咨询简介信息)";
}); });