项目文档菜单与列表是否适用字段联动
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0e0b5c2c4c
commit
c46ca18a42
|
@ -278,6 +278,7 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
|
:disabled="!scope.row.TrialFileRecord"
|
||||||
v-if="isManage && !viewStatus && hasEdit"
|
v-if="isManage && !viewStatus && hasEdit"
|
||||||
v-model="scope.row.IsAuthorizedView"
|
v-model="scope.row.IsAuthorizedView"
|
||||||
@change="(val) => auth(false, scope.row, val)"
|
@change="(val) => auth(false, scope.row, val)"
|
||||||
|
@ -769,7 +770,7 @@ export default {
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
},
|
},
|
||||||
rowData: {
|
'rowData.IsEnable': {
|
||||||
handler() {
|
handler() {
|
||||||
this.DATA = Object.assign({}, this.rowData)
|
this.DATA = Object.assign({}, this.rowData)
|
||||||
},
|
},
|
||||||
|
|
|
@ -273,6 +273,12 @@ export default {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
let res = await setAuthorizedView(data)
|
let res = await setAuthorizedView(data)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
if (res.IsSuccess) {
|
||||||
|
this.$emit('update:rowData', {})
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$emit('update:rowData', item)
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
item.IsEnable = !item.IsEnable
|
item.IsEnable = !item.IsEnable
|
||||||
|
|
|
@ -766,7 +766,7 @@ export default {
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
},
|
},
|
||||||
rowData: {
|
'rowData.IsEnable': {
|
||||||
handler() {
|
handler() {
|
||||||
this.DATA = Object.assign({}, this.rowData)
|
this.DATA = Object.assign({}, this.rowData)
|
||||||
},
|
},
|
||||||
|
|
|
@ -722,7 +722,7 @@ export default {
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
},
|
},
|
||||||
rowData: {
|
'rowData.IsEnable': {
|
||||||
handler() {
|
handler() {
|
||||||
this.DATA = Object.assign({}, this.rowData)
|
this.DATA = Object.assign({}, this.rowData)
|
||||||
},
|
},
|
||||||
|
|
|
@ -865,7 +865,7 @@ export default {
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true,
|
||||||
},
|
},
|
||||||
rowData: {
|
'rowData.IsEnable': {
|
||||||
handler() {
|
handler() {
|
||||||
this.DATA = Object.assign({}, this.rowData)
|
this.DATA = Object.assign({}, this.rowData)
|
||||||
},
|
},
|
||||||
|
|
|
@ -198,6 +198,7 @@
|
||||||
</box-content>
|
</box-content>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
const otherId = 'ef84e9cb-f1a6-49d7-b6da-34be2c12abd5'
|
||||||
import { getTrialDoctorList } from '@/api/dictionary'
|
import { getTrialDoctorList } from '@/api/dictionary'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import BoxContent from '@/components/BoxContent'
|
import BoxContent from '@/components/BoxContent'
|
||||||
|
@ -238,6 +239,7 @@ export default {
|
||||||
reviewerId: null,
|
reviewerId: null,
|
||||||
isAll: false,
|
isAll: false,
|
||||||
preview_visible: false,
|
preview_visible: false,
|
||||||
|
otherId,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue