|
|
@ -81,7 +81,19 @@ |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 99"> |
|
|
|
<treeSelect v-model="scope.row.od" :only-read="onlyRead" :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" /> |
|
|
|
<treeSelect |
|
|
|
v-model="scope.row.od" |
|
|
|
:only-read="onlyRead" |
|
|
|
: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> |
|
|
@ -138,7 +150,19 @@ |
|
|
|
/> |
|
|
|
</span> |
|
|
|
<span v-if="scope.row.sort === 99"> |
|
|
|
<treeSelect v-model="scope.row.os" :only-read="onlyRead" :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" /> |
|
|
|
<treeSelect |
|
|
|
v-model="scope.row.os" |
|
|
|
:only-read="onlyRead" |
|
|
|
: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> |
|
|
@ -385,7 +409,7 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.userData = JSON.parse(window.localStorage.getItem('qg-userData')) |
|
|
|
this.userData = this.$store.state.currentUser |
|
|
|
this.doctorId = this.userData.id |
|
|
|
this.getforeList().then(() => { |
|
|
|
this.queryOptions() |
|
|
@ -787,7 +811,8 @@ export default { |
|
|
|
queryTree(type) { |
|
|
|
const baseUrl = window.SITE_CONFIG['apiURL'] + '/treetag/findTree' |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
axios.defaults.headers.common['token'] = Cookies.get('xa-token') || '' |
|
|
|
const employeeId = this.$store.state.currentUser.employeeId |
|
|
|
axios.defaults.headers.common['token'] = Cookies.get('xa-token' + employeeId) || '' |
|
|
|
axios.get(baseUrl, { |
|
|
|
params: { |
|
|
|
doctorId: this.doctorId, |
|
|
|