画像编辑修改

This commit is contained in:
shidongli 2024-06-25 18:08:24 +08:00
parent ad7aeb38bd
commit be5fb84433
3 changed files with 84 additions and 76 deletions

View File

@ -16,11 +16,11 @@ export function getAllNodeByPatient(query) {
params: query params: query
}) })
} }
// 根据节点id提取参数列表 // 根据节点id提取参数右侧列表
export function getParams(query) { export function groupingValue(query) {
return request({ return request({
url: '/system/specialDiseaseNode/getParams', url: '/manage/labelfieldcontent/groupingValue',
method: 'get', method: 'get',
params: query params: query
}) })

View File

@ -4,14 +4,14 @@
<div class="timelist"> <div class="timelist">
<div class="left" ref="box"> <div class="left" ref="box">
<div class="name">画像分组</div> <div class="name">画像分组</div>
<div> <!-- <div>
<el-input <el-input
v-model="name" v-model="name"
placeholder="请输入画像分组" placeholder="请输入画像分组"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</div> </div> -->
<!-- <div class="listitem"> <!-- <div class="listitem">
<div <div
:class="itemname == null ? 'allactive' : 'all'" :class="itemname == null ? 'allactive' : 'all'"
@ -27,7 +27,7 @@
:key="index" :key="index"
@click="bottomclickevent(ulitem)" @click="bottomclickevent(ulitem)"
> >
<div :class="taskid == ulitem.taskPartitionDictId? 'allactive' : 'all'"> <div :class="taskid == ulitem.taskPartitionDictId ? 'allactive' : 'all'">
{{ ulitem.taskPartitionDictName }} {{ ulitem.taskPartitionDictName }}
</div> </div>
<!-- <span class="count">{{ ulitem.countNum }}</span> --> <!-- <span class="count">{{ ulitem.countNum }}</span> -->
@ -112,14 +112,15 @@
label-width="100px" label-width="100px"
:rules="rules" :rules="rules"
> >
<!-- {{item}} -->
<el-form-item <el-form-item
:label="ite.paramName"
v-for="(ite, ind) in item" v-for="(ite, ind) in item"
:label="ite.fieldName"
:key="ind" :key="ind"
> >
<el-input <el-input
class="textarea" class="textarea"
v-model="ite.paramValue" v-model="ite.fieldValue"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -160,17 +161,18 @@
</template> </template>
<script> <script>
import { getAllNodeByPatient, getParams, inserList,groupingContent } from '@/api/manage/Portraitedit' import { getAllNodeByPatient, groupingValue, inserList, groupingContent } from '@/api/manage/Portraitedit'
export default { export default {
name: "Portraitedit", name: "Portraitedit1",
data() { data() {
return { return {
name:null, name: null,
taskid: 0, taskid: 0,
count:'', count: '',
DepartmentoList: [], DepartmentoList: [],
// //
querydepartmen: { querydepartmen: {
// patientId: this.$route.query.patientId,
taskPartitionDictName: "", taskPartitionDictName: "",
}, },
itemid: null, itemid: null,
@ -184,7 +186,8 @@ export default {
patientId: '', patientId: '',
}, },
querytParams: { querytParams: {
id: '', taskPartitionDictId: '',
// signPatientManageRouteNodeId: '',
patientId: this.$route.query.patientId, patientId: this.$route.query.patientId,
}, },
rules: { rules: {
@ -208,7 +211,7 @@ export default {
}; };
}, },
created() { created() {
this.Departmentlist() // this.Departmentlist()
console.log(this.$route.query, 'this.$route.query') console.log(this.$route.query, 'this.$route.query')
this.qurelist.patientId = this.$route.query.patientId this.qurelist.patientId = this.$route.query.patientId
this.getAllNodeBy() this.getAllNodeBy()
@ -226,13 +229,13 @@ export default {
methods: { methods: {
// //
Departmentlist() { // Departmentlist() {
this.loading = true; // this.loading = true;
groupingContent(this.querydepartmen).then(response => { // groupingContent(this.querydepartmen).then(response => {
this.DepartmentoList = response.data; // this.DepartmentoList = response.data;
this.loading = false; // this.loading = false;
}); // });
}, // },
// //
getAllNodeBy() { getAllNodeBy() {
const loading = this.$loading({ const loading = this.$loading({
@ -243,13 +246,15 @@ export default {
}); });
this.getAllNodeByPatientlist = [] this.getAllNodeByPatientlist = []
if (this.$route.query) { if (this.$route.query) {
this.qurelist.patientId=15 groupingContent(this.querydepartmen).then(response => {
getAllNodeByPatient(this.qurelist).then(res => { this.DepartmentoList = response.data;
// this.getAllNodeByPatientlist = res.data
loading.close(); loading.close();
this.getAllNodeByPatientlist = this.handleData(res.data, 'routeNodeDay', 'routeNodeName')
// console.log(this.getAllNodeByPatientlist, 'this.getAllNodeByPatientlist') this.loading = false;
}) }).catch(() => {
loading.close();
});
} else { } else {
loading.close(); loading.close();
this.getAllNodeByPatientlist.push({ this.getAllNodeByPatientlist.push({
@ -304,22 +309,28 @@ export default {
}); });
return newList; return newList;
}, },
getParams() {
this.querytParams={
id: 730,
patientId: this.$route.query.patientId,
} bottomclickevent(ulitem) {
getParams(this.querytParams).then(res => { console.log(ulitem, '9999')
res.data.forEach(e => { this.taskid = ulitem.taskPartitionDictId
e.forEach(el => { // this.querytParams.signPatientManageRouteNodeId = ulitem.taskPartitionDictId
el.patientId = this.$route.query.patientId this.querytParams.taskPartitionDictId = ulitem.taskPartitionDictId
el.patientName = this.$route.query.patientName this.loading = true;
el.sn = Number(el.sn) this.getParams()
}) },
}) //
this.moban = JSON.parse(JSON.stringify(res.data)) getParams() {
this.getParamslistData = res.data groupingValue(this.querytParams).then(res => {
console.log(res, 'res')
// res.data.forEach(e => {
// e.forEach(el => {
// el.patientId = this.$route.query.patientId
// el.patientName = this.$route.query.patientName
// el.sn = Number(el.sn)
// })
// })
this.moban = JSON.parse(JSON.stringify(res))
this.getParamslistData = res
console.log(this.getParamslistData, '009090') console.log(this.getParamslistData, '009090')
}) })
@ -328,22 +339,23 @@ export default {
// //
TemporaryStorage() { TemporaryStorage() {
var emptyItems = [] var emptyItems = []
emptyItems = this.getParamslistData.flat().filter(f => f.paramValue == "") emptyItems = this.getParamslistData.flat().filter(f => f.fieldValue == "")
this.getParamslistData.forEach(e => { console.log(this.getParamslistData,'this.getParamslistData')
e.forEach(el => { // this.getParamslistData.forEach(e => {
el.routeId = this.itemdata.routeId // e.forEach(el => {
el.routeName = this.itemdata.routeName // el.routeId = this.itemdata.routeId
el.routeNodeId = this.querytParams.id // el.routeName = this.itemdata.routeName
el.routeNodeName = this.itemdata.routeNodeName // el.routeNodeId = this.querytParams.id
el.taskPartitionCode = this.itemdata.taskPartitionCode // el.routeNodeName = this.itemdata.routeNodeName
el.taskPartitionDictId = this.itemdata.taskPartitionDictId // el.taskPartitionCode = this.itemdata.taskPartitionCode
el.taskPartitionDictName = this.itemdata.taskPartitionDictName // el.taskPartitionDictId = this.itemdata.taskPartitionDictId
el.taskTypeCode = this.itemdata.taskTypeCode // el.taskPartitionDictName = this.itemdata.taskPartitionDictName
el.taskTypeId = this.itemdata.taskTypeId // el.taskTypeCode = this.itemdata.taskTypeCode
el.taskTypeName = this.itemdata.taskTypeName // el.taskTypeId = this.itemdata.taskTypeId
}) // el.taskTypeName = this.itemdata.taskTypeName
}) // })
// return // })
return
if (emptyItems && emptyItems.length > 0) { if (emptyItems && emptyItems.length > 0) {
this.$modal.msgError("请填写完整,再进行提交"); this.$modal.msgError("请填写完整,再进行提交");
} else { } else {
@ -372,23 +384,20 @@ export default {
}) })
} }
}, },
bottomclickevent(ulitem) {
console.log(ulitem, '9999')
this.taskid = ulitem.taskPartitionDictId
this.loading = true;
// this.getList()
},
additem(index) { additem(index) {
this.moban[0].forEach(e => { this.moban[0].forEach(e => {
e.paramValue = "" e.fieldValue = ""
e.id = ""
e.portraitSn=''
// e.id = ""
}) })
const newVal = JSON.parse(JSON.stringify(this.moban[0])) const newVal = JSON.parse(JSON.stringify(this.moban[0]))
// const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0])) // const newVal = JSON.parse(JSON.stringify(this.getParamslistData[0]))
newVal.forEach(i => { // newVal.forEach(i => {
// i.sn = this.getParamslistData.length +1 // // i.sn = this.getParamslistData.length +1
i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1 // i.sn = this.getParamslistData[this.getParamslistData.length - 1][0].sn + 1
}) // })
this.getParamslistData.push(newVal) this.getParamslistData.push(newVal)
}, },
delitem(index, item) { delitem(index, item) {
@ -585,4 +594,3 @@ export default {
transform: translateY(-2%); transform: translateY(-2%);
} }
</style> </style>

View File

@ -272,7 +272,7 @@ export default {
this.$router.push({ this.$router.push({
path: "/patient/Portraitedit", path: "/patient/Portraitedit",
query: { query: {
patientId: row.patientId, patientId: row.id,
cardNo: row.cardNo, cardNo: row.cardNo,
patientName: row.patientName, patientName: row.patientName,
patientPhone: row.patientPhone, patientPhone: row.patientPhone,