|
|
@ -117,7 +117,7 @@ |
|
|
|
{{ item.seriesDescription }} |
|
|
|
<span class="" v-if="item.laterality">({{ item.laterality }})</span> |
|
|
|
</p> |
|
|
|
<p class="imgName">{{ item.time }}</p> |
|
|
|
<p class="imgName">{{ item.time }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</draggable> |
|
|
@ -345,7 +345,7 @@ export default { |
|
|
|
packFlag: true, |
|
|
|
proFlag: true, |
|
|
|
loading: false, |
|
|
|
examineType: 2, // 项目树 |
|
|
|
examineType: 2, // 1时间树 2项目树 |
|
|
|
treeProps: { |
|
|
|
children: 'children', |
|
|
|
label: 'text' |
|
|
@ -479,53 +479,20 @@ export default { |
|
|
|
if (res.code === 0) { |
|
|
|
const data = res.data || [] |
|
|
|
for (let i = 0; i < data.length; i++) { |
|
|
|
const cur = data[i] |
|
|
|
const temp = data[i].children |
|
|
|
this.examDate = type === 1 ? data[0].id : '' |
|
|
|
this.examItemCode = type === 2 ? data[0].id : '' |
|
|
|
for (let j = 0; j < temp.length; j++) { |
|
|
|
if (type === 2) { |
|
|
|
temp[j].examTime = temp[j].examTime ? temp[j].examTime.substring(0, 11) : '' |
|
|
|
} else { |
|
|
|
temp[j].examDate = cur.id |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.allExamine = [] |
|
|
|
// if (res.data.length) { |
|
|
|
// for (let i = 0; i < data.length; i++) { |
|
|
|
// const cur = data[i] |
|
|
|
// const temp = data[i].children |
|
|
|
// if (type === 1) { |
|
|
|
// this.examDate = data[0].id |
|
|
|
// } else { |
|
|
|
// this.examItemCode = data[0].id |
|
|
|
// } |
|
|
|
// for (let j = 0; j < temp.length; j++) { |
|
|
|
// if (this.examineType === 1) { |
|
|
|
// temp[j].examDate = cur.id |
|
|
|
// } |
|
|
|
// } |
|
|
|
// this.defaultExpandedKeys = this.allExamine |
|
|
|
// } |
|
|
|
this.treeData = data || [] |
|
|
|
// this.queryExamine() |
|
|
|
// } |
|
|
|
// this.treeData = res.data || [] |
|
|
|
// this.examNoList = [] |
|
|
|
// if (this.treeData.length) { |
|
|
|
// this.examNoList.push(this.treeData[0].children[0].examNo) |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$refs.examineTree.setCurrentKey(this.treeData[0].children[0].rownows) |
|
|
|
// }) |
|
|
|
// for (let i = 0; i < this.treeData.length; i++) { |
|
|
|
// const temp = this.treeData[i].children |
|
|
|
// for (let j = 0; j < temp.length; j++) { |
|
|
|
// if (type === 1) { |
|
|
|
// temp[j].name = temp[j].examineItem || '' |
|
|
|
// } else { |
|
|
|
// temp[j].name = temp[j].examTime ? temp[j].examTime.substring(0, 11) : '' |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
this.treeData = data || [] |
|
|
|
this.queryExamine() |
|
|
|
// } |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg) |
|
|
|
} |
|
|
@ -596,8 +563,11 @@ export default { |
|
|
|
const params = { |
|
|
|
searchType: this.examineType, |
|
|
|
searchChild: this.searchChild, |
|
|
|
examDate: '2020-07-20', |
|
|
|
// examDate: this.examDate, |
|
|
|
// examNo: this.examNo, |
|
|
|
// examItemCode: this.examItemCode, |
|
|
|
// patientId: this.patientInfo.patientId, |
|
|
|
// patientId: '2553716', |
|
|
|
patientId: '2553716', |
|
|
|
eyeType: this.eyeType, |
|
|
|
fileType: this.fileType |
|
|
|