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({
url: '/system/poser/' + id,
url: `/system/poser/getModuleType?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseltemId=${nurseltemId}`,
method: 'get'
})
}

View File

@ -27,12 +27,19 @@
/>
</el-form-item>
<el-form-item label="海报所属模块" prop="moduleType">
<el-input
<el-select
v-model="queryParams.moduleType"
placeholder="请输入海报所属模块"
clearable
@keyup.enter.native="handleQuery"
/>
placeholder="请选择"
style="width: 208px"
>
<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 label="海报编号" prop="poserCode">
<el-input
@ -593,6 +600,8 @@ export default {
imgs: { pictureUrlList: [] },
//
ids: [],
itemids: [],
Types: [],
idd: 9999999,
//
single: true,
@ -732,47 +741,6 @@ export default {
this.nurseItemlistInfo();
},
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) {
if (item.idd && !item.id) {
@ -853,15 +821,18 @@ export default {
},
//
ParamsStationxm(item) {
this.nurseItemlistInfo();
this.homenumber = item;
this.nurseItemshow = true;
if (this.homenumber) {
this.nurseitemid = this.queryParams.nurseItemId;
if (this.nurseItemquery.nurseStationId) {
this.nurseItemlistInfo();
this.homenumber = item;
this.nurseItemshow = true;
if (this.homenumber) {
this.nurseitemid = this.queryParams.nurseItemId;
} else {
this.nurseitemid = this.form.nurseItemId;
}
} else {
this.nurseitemid = this.form.nurseItemId;
this.$modal.msgError("请先选择所属护理站");
}
console.log(this.queryParams);
},
//list
info() {
@ -931,6 +902,7 @@ export default {
if (this.imgs.pictureUrlList.length > 0) {
updatePicture(this.imgs).then((res) => {});
}
this.nurseItemquery.nurseStationId = null;
this.imgs = { pictureUrlList: [] };
this.open = false;
this.reset();
@ -979,7 +951,10 @@ export default {
},
//
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.multiple = !selection.length;
},
@ -992,12 +967,15 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
getPoser(id).then((response) => {
const id = row.nurseStationId || this.ids;
const itemid = row.nurseStationId || this.ids;
const type = row.moduleType || this.Types;
getPoser(type, id, itemid).then((response) => {
this.form = response.data;
if (response.data.goodAttributeDetailsLists) {
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
}
this.nurseItemquery.nurseStationId = response.data.nurseStationId;
this.open = true;
this.title = "修改泉医到家系统海报模块信息(包含咨询简介信息)";
});