修改
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({
|
||||
url: '/system/poser/' + id,
|
||||
url: `/system/poser/getModuleType?moduleType=${moduleType}&nurseStationId=${nurseStationId}&nurseltemId=${nurseltemId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@ -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 = "修改泉医到家系统海报模块信息(包含咨询简介信息)";
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user