|
|
@ -4,12 +4,7 @@ |
|
|
|
ref="multipleTable" |
|
|
|
:data="tableData" |
|
|
|
style="margin: 8px 8px 0 0" |
|
|
|
@select="selection" |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
type="selection" |
|
|
|
width="55" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
label="OD" |
|
|
@ -17,10 +12,24 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<span v-if="scope.row.sort === 1"> |
|
|
|
<span style="margin-right: 16px">结膜:充血</span><treeSelect |
|
|
|
v-model="scope.row.od" |
|
|
|
<p style="margin:0 16px 6px 0">结膜:充血</p> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jiemCxOd" |
|
|
|
:props="treeProps" |
|
|
|
style="display: inline-block;" |
|
|
|
:options="scope.row.data" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 2"> |
|
|
|
<p style="margin:0 16px 6px 0">结膜:分泌物</p> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jiemFmwOd" |
|
|
|
:props="treeProps" |
|
|
|
style="display: inline-block;width: 60%" |
|
|
|
style="display: inline-block;" |
|
|
|
:options="scope.row.data" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
@ -31,12 +40,137 @@ |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 2"> |
|
|
|
<span style="margin-right: 16px">结膜:分泌物</span><treeSelect |
|
|
|
v-model="scope.row.od" |
|
|
|
<span v-if="scope.row.name === '眼睑' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yanjOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '泪器' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.leiqOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '角膜' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jiaomOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '前房' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.qianfOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '虹膜' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.hongmOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '瞳孔' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.tongkOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '晶状体' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jingztOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '睫状体' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jieztOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '眼位' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yanwOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
style="display: inline-block;width: 60%" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '眼眶' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yankOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
@ -46,37 +180,35 @@ |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 99"> |
|
|
|
<treeSelect v-model="scope.row.od" :options="scope.row.data" :props="treeProps" :multiple="true" :filterable="true" :check-strictly="true" :default-expand-all="true" @handleNode="handleNode(scope.$index,'od', $event)" @add="addTree(scope.row, $event)" @remove="removeTree" /> |
|
|
|
<span v-if="scope.row.name === '眼球运动' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yanqydOd" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'od', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="!scope.row.sort && !scope.row.id">{{ scope.row.name }}</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
class="move" |
|
|
|
align="center" |
|
|
|
width="120" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="!isPrint"> |
|
|
|
<p @click="moveHandle(scope.$index,1, scope.row)"><i class="el-icon-back" /></p> |
|
|
|
<p style="margin-top: 5px" @click="moveHandle(scope.$index,2, scope.row)"><i class="el-icon-back" style="transform: rotateY(180deg)" /></p> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
align="center" |
|
|
|
label="OS" |
|
|
|
width="300" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<span v-if="scope.row.sort === 1"> |
|
|
|
<span style="margin-right: 16px">结膜:充血</span><treeSelect |
|
|
|
v-model="scope.row.os" |
|
|
|
v-model="dataForm.jiemCxOs" |
|
|
|
:props="treeProps" |
|
|
|
style="display: inline-block;width: 60%" |
|
|
|
style="display: inline-block;" |
|
|
|
:options="scope.row.data" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
@ -88,10 +220,10 @@ |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 2"> |
|
|
|
<span style="margin-right: 16px">结膜:分泌物</span><treeSelect |
|
|
|
v-model="scope.row.os" |
|
|
|
<p style="margin:0 16px 6px 0">结膜:分泌物</p><treeSelect |
|
|
|
v-model="dataForm.jiemFmwOs" |
|
|
|
:props="treeProps" |
|
|
|
style="display: inline-block;width: 60%" |
|
|
|
style="display: inline-block;" |
|
|
|
:options="scope.row.data" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
@ -102,9 +234,175 @@ |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 99"> |
|
|
|
<treeSelect v-model="scope.row.os" :options="scope.row.data" :props="treeProps" :multiple="true" :filterable="true" :check-strictly="true" :default-expand-all="true" @handleNode="handleNode(scope.$index,'os', $event)" @add="addTree(scope.row, $event)" @remove="removeTree" /> |
|
|
|
<span v-if="scope.row.name === '眼睑' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yanjOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '泪器' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.leiqOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '角膜' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jiaomOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '前房' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.qianfOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '虹膜' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.hongmOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '瞳孔' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.tongkOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '晶状体' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jingztOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '睫状体' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.jieztOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '眼位' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yanwOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '眼眶' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yankOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.name === '眼球运动' && scope.row.id"> |
|
|
|
<treeSelect |
|
|
|
v-model="dataForm.yanqydOs" |
|
|
|
:options="scope.row.data" |
|
|
|
:props="treeProps" |
|
|
|
:multiple="true" |
|
|
|
:filterable="true" |
|
|
|
:check-strictly="true" |
|
|
|
:default-expand-all="true" |
|
|
|
@handleNode="handleNode(scope.$index,'os', $event)" |
|
|
|
@add="addTree(scope.row, $event)" |
|
|
|
@remove="removeTree" |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<!-- <span v-if="scope.row.sort === 99">--> |
|
|
|
<!-- <treeSelect--> |
|
|
|
<!-- v-model="scope.row.os"--> |
|
|
|
<!-- --> |
|
|
|
<!-- :options="scope.row.data"--> |
|
|
|
<!-- :props="treeProps"--> |
|
|
|
<!-- :multiple="true"--> |
|
|
|
<!-- :filterable="true"--> |
|
|
|
<!-- :check-strictly="true"--> |
|
|
|
<!-- :default-expand-all="true"--> |
|
|
|
<!-- @handleNode="handleNode(scope.$index,'os', $event)"--> |
|
|
|
<!-- @add="addTree(scope.row, $event)"--> |
|
|
|
<!-- @remove="removeTree"--> |
|
|
|
<!-- />--> |
|
|
|
<!-- </span>--> |
|
|
|
<span v-if="!scope.row.sort && !scope.row.id">{{ scope.row.name }}</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -114,34 +412,212 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import treeSelect from '@/components/360View/itemSelect' |
|
|
|
import axios from 'axios' |
|
|
|
import Cookies from 'js-cookie' |
|
|
|
export default { |
|
|
|
name: 'ForeForm', |
|
|
|
components: { |
|
|
|
treeSelect |
|
|
|
}, |
|
|
|
props: { |
|
|
|
tableData: { |
|
|
|
type: Array, |
|
|
|
default: () => [] |
|
|
|
dataForm: { |
|
|
|
type: Object |
|
|
|
}, |
|
|
|
isPrint: { |
|
|
|
type: Boolean, |
|
|
|
default: false |
|
|
|
isSearch: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
userData: {}, |
|
|
|
doctorId: '', |
|
|
|
treeProps: { |
|
|
|
value: 'id', |
|
|
|
label: 'name', |
|
|
|
children: 'child' |
|
|
|
} |
|
|
|
}, |
|
|
|
tableData: [ |
|
|
|
{ |
|
|
|
name: '眼睑' |
|
|
|
}, { |
|
|
|
name: '眼睑', |
|
|
|
sort: 99, |
|
|
|
id: 1, |
|
|
|
type: 'anion', |
|
|
|
od: 'yanjOd', |
|
|
|
os: 'yanjOs' |
|
|
|
}, { |
|
|
|
name: '结膜' |
|
|
|
}, { |
|
|
|
name: '结膜', |
|
|
|
id: 2, |
|
|
|
sort: 1, |
|
|
|
type: 'jimmy', |
|
|
|
od: 'jiemCxOd', |
|
|
|
os: 'jiemCxOs' |
|
|
|
}, { |
|
|
|
name: '结膜', |
|
|
|
id: 3, |
|
|
|
sort: 2, |
|
|
|
type: 'jimmy', |
|
|
|
od: 'jiemFmwOd', |
|
|
|
os: 'jiemFmwOs' |
|
|
|
}, { |
|
|
|
name: '泪器' |
|
|
|
}, { |
|
|
|
name: '泪器', |
|
|
|
sort: 99, |
|
|
|
id: 4, |
|
|
|
type: 'liq', |
|
|
|
od: 'leiqOd', |
|
|
|
os: 'leiqOs' |
|
|
|
}, { |
|
|
|
name: '角膜' |
|
|
|
}, { |
|
|
|
name: '角膜', |
|
|
|
sort: 99, |
|
|
|
id: 5, |
|
|
|
type: 'Giacomo', |
|
|
|
od: 'jiaomOd', |
|
|
|
os: 'jiaomOs' |
|
|
|
}, { |
|
|
|
name: '前房' |
|
|
|
}, { |
|
|
|
name: '前房', |
|
|
|
sort: 99, |
|
|
|
id: 6, |
|
|
|
type: 'Jianfeng', |
|
|
|
od: 'qianfOd', |
|
|
|
os: 'qianfOs' |
|
|
|
}, { |
|
|
|
name: '虹膜' |
|
|
|
}, { |
|
|
|
name: '虹膜', |
|
|
|
sort: 99, |
|
|
|
id: 7, |
|
|
|
type: 'mongo', |
|
|
|
od: 'hongmOd', |
|
|
|
os: 'hongmOs' |
|
|
|
}, { |
|
|
|
name: '瞳孔' |
|
|
|
}, { |
|
|
|
name: '瞳孔', |
|
|
|
sort: 99, |
|
|
|
id: 8, |
|
|
|
type: 'tonguing', |
|
|
|
od: 'tongkOd', |
|
|
|
os: 'tongkOs' |
|
|
|
}, { |
|
|
|
name: '晶状体' |
|
|
|
}, { |
|
|
|
name: '晶状体', |
|
|
|
sort: 99, |
|
|
|
id: 9, |
|
|
|
type: 'jingling', |
|
|
|
od: 'jingztOd', |
|
|
|
os: 'jingztOs' |
|
|
|
}, { |
|
|
|
name: '睫状体' |
|
|
|
}, { |
|
|
|
name: '睫状体', |
|
|
|
sort: 99, |
|
|
|
id: 10, |
|
|
|
type: 'jingles', |
|
|
|
od: 'jieztOd', |
|
|
|
os: 'jieztOs' |
|
|
|
}, { |
|
|
|
name: '眼位' |
|
|
|
}, { |
|
|
|
name: '眼位', |
|
|
|
sort: 99, |
|
|
|
id: 11, |
|
|
|
type: 'yawn', |
|
|
|
od: 'yanwOd', |
|
|
|
os: 'yanwOs' |
|
|
|
}, { |
|
|
|
name: '眼眶' |
|
|
|
}, { |
|
|
|
name: '眼眶', |
|
|
|
sort: 99, |
|
|
|
id: 12, |
|
|
|
type: 'yanking', |
|
|
|
od: 'yankOd', |
|
|
|
os: 'yankOs' |
|
|
|
}, { |
|
|
|
name: '眼球运动' |
|
|
|
}, { |
|
|
|
name: '眼球运动', |
|
|
|
sort: 99, |
|
|
|
id: 13, |
|
|
|
type: 'yang', |
|
|
|
od: 'yanqydOd', |
|
|
|
os: 'yanqydOs' |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.userData = JSON.parse(window.localStorage.getItem('qg-userData')) |
|
|
|
this.doctorId = this.userData.id |
|
|
|
this.queryOptions() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSelectionChange(val) { |
|
|
|
this.$emit('handleSelectionChange', val) |
|
|
|
}, |
|
|
|
// 封装查询单个下拉选择树 |
|
|
|
queryTree(type) { |
|
|
|
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || '' |
|
|
|
axios.get(baseUrl, { |
|
|
|
params: { |
|
|
|
doctorId: this.doctorId, |
|
|
|
type: type, |
|
|
|
platform: this.isSearch |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res.data.code === 0) { |
|
|
|
const data = res.data |
|
|
|
resolve(data.data) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(error => { |
|
|
|
reject(error) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
queryOptions() { |
|
|
|
const treeList = [] |
|
|
|
this.tableData.forEach(item => { |
|
|
|
item.flag = false |
|
|
|
if (item.type) { |
|
|
|
const p = this.queryTree(item.type) |
|
|
|
treeList.push(p) |
|
|
|
} |
|
|
|
}) |
|
|
|
Promise.all(treeList).then((result) => { |
|
|
|
if (result.length) { |
|
|
|
result.forEach(item => { |
|
|
|
item.forEach(row => { |
|
|
|
this.tableData.forEach((e, index) => { |
|
|
|
if (e.type === row.type) { |
|
|
|
e.data = item |
|
|
|
const sort = e.sort |
|
|
|
if (sort === 1 || sort === 2 || sort === 99) { |
|
|
|
e.sort = '' |
|
|
|
this.$nextTick(() => { |
|
|
|
e.sort = sort |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 移动 |
|
|
|
moveHandle(index, type, row) { |
|
|
|
if (type === 1) { |
|
|
|