修改
This commit is contained in:
parent
efd259ade4
commit
5bce1c6023
@ -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'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 = "修改泉医到家系统海报模块信息(包含咨询简介信息)";
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user