画像编辑 *

This commit is contained in:
shidongli 2024-07-16 11:01:17 +08:00
parent 438c51db3a
commit 84e331ba27

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="header"> <div class="headeredit">
<div class="topheader"> <div class="topheadertop">
<div class="user"> <div class="user">
<img <img
class="headsculpture" class="headsculpture"
@ -16,12 +16,17 @@
/> />
<div class="name"> <div class="name">
{{ this.$route.query.patientName }} {{ this.$route.query.patientName }}
</div> </div>
<div class="gender"> <div class="gender">
性别 性别
{{ this.$route.query.sex == "MALE" ? "男" : this.$route.query.sex == "FEMALE" ? "女" : "" }} {{
this.$route.query.sex == "MALE"
? "男"
: this.$route.query.sex == "FEMALE"
? "女"
: ""
}}
</div> </div>
<div class="gender"> <div class="gender">
年龄 年龄
@ -32,18 +37,12 @@
{{ this.$route.query.birthDate }} {{ this.$route.query.birthDate }}
</div> </div>
<div class="gender"> <div class="gender">
医院{{this.$route.query.hospitalAgencyName}} 医院{{ this.$route.query.hospitalAgencyName }}
</div> </div>
<div class="gender"> <div class="gender">诊断{{ this.$route.query.mainDiagnosis }}</div>
诊断{{this.$route.query.mainDiagnosis}}
</div>
</div> </div>
</div> </div>
<div class="list"> <div class="list">
<div class="timelist"> <div class="timelist">
<div class="left" ref="box"> <div class="left" ref="box">
<div class="name">画像分组</div> <div class="name">画像分组</div>
@ -78,7 +77,9 @@
{{ ulitem.taskTypeName {{ ulitem.taskTypeName
}}<span class="spanitme" v-if="ulitem.taskTypeName">-</span }}<span class="spanitme" v-if="ulitem.taskTypeName">-</span
>{{ ulitem.taskPartitionDictName }} >{{ ulitem.taskPartitionDictName }}
<span class="count" v-if="ulitem.fieldSort">{{ulitem.fieldSort}}</span> <span class="count" v-if="ulitem.fieldSort">{{
ulitem.fieldSort
}}</span>
</div> </div>
</div> </div>
</div> </div>
@ -107,8 +108,13 @@
<el-form-item <el-form-item
v-for="(cItem, cIndex) in bitem.groupingValues" v-for="(cItem, cIndex) in bitem.groupingValues"
:key="cIndex" :key="cIndex"
:label="cItem.fieldName"
> >
<template slot="label">
<span style="color: red" v-if="cItem.sign == 1"
>*</span
>
{{ cItem.fieldName }}
</template>
<el-input v-model="cItem.fieldValue"></el-input> <el-input v-model="cItem.fieldValue"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -165,7 +171,8 @@ export default {
taskPartitionDictId: '', taskPartitionDictId: '',
patientId: this.$route.query.patientId, patientId: this.$route.query.patientId,
}, },
rules: {}, rules: {
},
updata: { updata: {
specialDiseaseRouteId: '', specialDiseaseRouteId: '',
suitRange: '', suitRange: '',
@ -236,22 +243,26 @@ export default {
// //
TemporaryStorage() { TemporaryStorage() {
// console.log(this.getParamslistData,'this.getParamslistData')
var emptyItems = [] var emptyItems = []
var form = { var form = {
labelFieldAndPartitionDictList: [] labelFieldAndPartitionDictList: []
} }
form.labelFieldAndPartitionDictList = this.getParamslistData form.labelFieldAndPartitionDictList = this.getParamslistData
// emptyItems = form.groupingValues.flat().filter(f => f.fieldValue == "" || !f.fieldValue) // var dataempty = []
console.log(form, 'this.form') // dataempty = JSON.parse(JSON.stringify(form.labelFieldAndPartitionDictList))
// console.log(emptyItems, 'emptyItems') // dataempty.forEach(e => {
// return // e.portraitSnVOList.forEach(el=>{
// emptyItems.push(el.groupingValues)
// })
// if (emptyItems && emptyItems.length > 0) { // })
// this.$modal.msgError(","); // var data = []
// data = emptyItems.flat().filter(f => f.sign == 1 && f.fieldValue == "")
// console.log(data,'data')
// if (data && data.length > 0) {
// this.$modal.msgError(",");
// } else { // } else {
this.$confirm('是否确认提交?', '提示', { this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -280,8 +291,8 @@ export default {
}, },
additem(aindex, bindex) { additem(aindex, bindex) {
const newVal = JSON.parse(JSON.stringify(this.moban[aindex].portraitSnVOList[0])) const newVal = JSON.parse(JSON.stringify(this.moban[aindex].portraitSnVOList[0]))
console.log(newVal,'newVal') console.log(newVal, 'newVal')
console.log(newVal,'newValnew') console.log(newVal, 'newValnew')
newVal.groupingValues.forEach(e => { newVal.groupingValues.forEach(e => {
@ -289,7 +300,7 @@ export default {
e.portraitSn = '' e.portraitSn = ''
}); });
newVal.portraitSn='' newVal.portraitSn = ''
this.getParamslistData[aindex].portraitSnVOList.push(newVal) this.getParamslistData[aindex].portraitSnVOList.push(newVal)
@ -380,13 +391,13 @@ export default {
} }
} }
} }
.header { .headeredit {
// background-color: #f2f4f5; // background-color: #f2f4f5;
// padding-top: 10px; // padding-top: 10px;
height: calc(100vh - 84px); height: calc(100vh - 84px);
padding: 0px 10px 10px 0px; padding: 0px 10px 10px 0px;
// height: calc(100vh - 46px); // height: calc(100vh - 46px);
.topheader{ .topheadertop {
width: 99%; width: 99%;
height: 80px; height: 80px;
margin: 0 auto; margin: 0 auto;
@ -413,7 +424,6 @@ export default {
} }
} }
} }
} }
.list { .list {
margin: 0 auto; margin: 0 auto;