修改
This commit is contained in:
parent
526f3d8942
commit
3d59432230
@ -15,6 +15,15 @@ export function uploadFilefm(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 话术图片
|
||||||
|
export function uploadScriptInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/script/uploadScriptInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//海报视频上传
|
//海报视频上传
|
||||||
export function updatePoserHeads(data) {
|
export function updatePoserHeads(data) {
|
||||||
|
|||||||
@ -445,9 +445,9 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
<el-form-item label="病种名称" prop="departmentName" label-width="120">
|
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="querydisease.departmentName"
|
v-model="querydisease.diseaseTypeName"
|
||||||
placeholder="请输入病种名称"
|
placeholder="请输入病种名称"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@ -563,6 +563,8 @@ export default {
|
|||||||
querydisease: {
|
querydisease: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
diseaseTypeName:null,
|
||||||
|
departmentId:null,
|
||||||
},
|
},
|
||||||
listdisease: [],
|
listdisease: [],
|
||||||
diseasetotal: 0,
|
diseasetotal: 0,
|
||||||
@ -737,6 +739,8 @@ export default {
|
|||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
this.form.departmentId = row.departmentCode;
|
this.form.departmentId = row.departmentCode;
|
||||||
this.departmentName = row.departmentName;
|
this.departmentName = row.departmentName;
|
||||||
|
this.form.diseaseTypeId = '';
|
||||||
|
this.diseaseTypeName = '请选择病种';
|
||||||
console.log(this.departmentName, '0000')
|
console.log(this.departmentName, '0000')
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -503,9 +503,9 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
<el-form-item label="病种名称" prop="departmentName" label-width="120">
|
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="querydisease.departmentName"
|
v-model="querydisease.diseaseTypeName"
|
||||||
placeholder="请输入病种名称"
|
placeholder="请输入病种名称"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@ -642,6 +642,8 @@ export default {
|
|||||||
querydisease: {
|
querydisease: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
diseaseTypeName:null,
|
||||||
|
departmentId:null,
|
||||||
},
|
},
|
||||||
listdisease: [],
|
listdisease: [],
|
||||||
diseasetotal: 0,
|
diseasetotal: 0,
|
||||||
@ -938,6 +940,8 @@ export default {
|
|||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
this.form.departmentId = row.departmentCode;
|
this.form.departmentId = row.departmentCode;
|
||||||
this.departmentName = row.departmentName;
|
this.departmentName = row.departmentName;
|
||||||
|
this.form.diseaseTypeId = '';
|
||||||
|
this.diseaseTypeName = '请选择病种';
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -438,9 +438,9 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
<el-form-item label="病种名称" prop="departmentName" label-width="120">
|
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="querydisease.departmentName"
|
v-model="querydisease.diseaseTypeName"
|
||||||
placeholder="请输入病种名称"
|
placeholder="请输入病种名称"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@ -549,6 +549,8 @@ export default {
|
|||||||
querydisease: {
|
querydisease: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
diseaseTypeName:null,
|
||||||
|
departmentId:null,
|
||||||
},
|
},
|
||||||
listdisease: [],
|
listdisease: [],
|
||||||
diseasetotal: 0,
|
diseasetotal: 0,
|
||||||
@ -647,11 +649,7 @@ export default {
|
|||||||
scriptSort: null,
|
scriptSort: null,
|
||||||
scriptRemark: null,
|
scriptRemark: null,
|
||||||
},
|
},
|
||||||
queryDisease: {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
departmentId: null,
|
|
||||||
},
|
|
||||||
querydepartmen: {
|
querydepartmen: {
|
||||||
departmentName: "",
|
departmentName: "",
|
||||||
// pageNum: 1,
|
// pageNum: 1,
|
||||||
@ -778,6 +776,8 @@ export default {
|
|||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
this.form.departmentId = row.departmentCode;
|
this.form.departmentId = row.departmentCode;
|
||||||
this.departmentName = row.departmentName;
|
this.departmentName = row.departmentName;
|
||||||
|
this.form.diseaseTypeId = '';
|
||||||
|
this.diseaseTypeName = '请选择病种';
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -583,9 +583,9 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
<el-form-item label="病种名称" prop="departmentName" label-width="120">
|
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="querydisease.departmentName"
|
v-model="querydisease.diseaseTypeName"
|
||||||
placeholder="请输入病种名称"
|
placeholder="请输入病种名称"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@ -758,6 +758,8 @@ export default {
|
|||||||
querydisease: {
|
querydisease: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
diseaseTypeName:null,
|
||||||
|
departmentId:null,
|
||||||
},
|
},
|
||||||
listdisease: [],
|
listdisease: [],
|
||||||
diseasetotal: 0,
|
diseasetotal: 0,
|
||||||
@ -1096,6 +1098,8 @@ export default {
|
|||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
this.form.departmentId = row.departmentCode;
|
this.form.departmentId = row.departmentCode;
|
||||||
this.departmentName = row.departmentName;
|
this.departmentName = row.departmentName;
|
||||||
|
this.form.diseaseTypeId = '';
|
||||||
|
this.diseaseTypeName = '请选择病种';
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
// this.form.diseaseTypeId = null;
|
// this.form.diseaseTypeId = null;
|
||||||
// this.diseaseTypeName = '请选择科室';
|
// this.diseaseTypeName = '请选择科室';
|
||||||
@ -1128,7 +1132,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
resetdisease() {
|
resetdisease() {
|
||||||
querydisease = {
|
this.querydisease = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -384,9 +384,9 @@
|
|||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
<el-form-item label="病种名称" prop="departmentName" label-width="120">
|
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="querydisease.departmentName"
|
v-model="querydisease.diseaseTypeName"
|
||||||
placeholder="请输入病种名称"
|
placeholder="请输入病种名称"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@ -493,6 +493,8 @@ export default {
|
|||||||
querydisease: {
|
querydisease: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
diseaseTypeName:null,
|
||||||
|
departmentId:null,
|
||||||
},
|
},
|
||||||
listdisease: [],
|
listdisease: [],
|
||||||
diseasetotal: 0,
|
diseasetotal: 0,
|
||||||
@ -661,6 +663,8 @@ export default {
|
|||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
this.form.departmentId = row.departmentCode;
|
this.form.departmentId = row.departmentCode;
|
||||||
this.departmentName = row.departmentName;
|
this.departmentName = row.departmentName;
|
||||||
|
this.form.diseaseTypeId = '';
|
||||||
|
this.diseaseTypeName = '请选择病种';
|
||||||
this.innerVisibleshow = false;
|
this.innerVisibleshow = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -128,7 +128,8 @@ import {
|
|||||||
uploadTrainingCategoryPicture,
|
uploadTrainingCategoryPicture,
|
||||||
updatePoserHeads,
|
updatePoserHeads,
|
||||||
uploadUrl,
|
uploadUrl,
|
||||||
uploadFilefm
|
uploadFilefm,
|
||||||
|
uploadScriptInfo
|
||||||
} from "@/api/system/stationAvatar.js";
|
} from "@/api/system/stationAvatar.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -165,7 +166,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.types = this.type;
|
this.types = this.type;
|
||||||
console.log(this.types)
|
|
||||||
|
|
||||||
this.items = this.item;
|
this.items = this.item;
|
||||||
if (this.tovideo == null) {
|
if (this.tovideo == null) {
|
||||||
@ -173,7 +174,7 @@ export default {
|
|||||||
} else if (this.tovideo == "") {
|
} else if (this.tovideo == "") {
|
||||||
this.video.VideoPath = null;
|
this.video.VideoPath = null;
|
||||||
} else {
|
} else {
|
||||||
console.log(this.tovideo)
|
|
||||||
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
|
||||||
}
|
}
|
||||||
if (this.img == null) {
|
if (this.img == null) {
|
||||||
@ -249,7 +250,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 上传预处理
|
// 上传预处理
|
||||||
beforeUpload(file) {
|
beforeUpload(file) {
|
||||||
console.log(file)
|
|
||||||
if (this.types == "materialsVideoUrl") {
|
if (this.types == "materialsVideoUrl") {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
this.previews.data = file;
|
this.previews.data = file;
|
||||||
@ -383,6 +384,23 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// 话术图片
|
||||||
|
else if(this.types == "scriptUrl"){
|
||||||
|
let formDatanew = new FormData();
|
||||||
|
formDatanew.append("file", this.previews.data);
|
||||||
|
uploadScriptInfo(formDatanew).then(response => {
|
||||||
|
if (response.code == 200) {
|
||||||
|
this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
||||||
|
this.$emit("imgUrl", response.imgUrl);
|
||||||
|
this.openimg = false;
|
||||||
|
} else {
|
||||||
|
setTimeout(e => {
|
||||||
|
this.openimg = false;
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
else {
|
else {
|
||||||
updateNurseStationHeads(formData).then(response => {
|
updateNurseStationHeads(formData).then(response => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user