项目文档菜单与列表是否适用字段联动
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-03-17 16:38:14 +08:00
parent 0e0b5c2c4c
commit c46ca18a42
6 changed files with 13 additions and 4 deletions

View File

@ -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)
}, },

View File

@ -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

View File

@ -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)
}, },

View File

@ -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)
}, },

View File

@ -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)
}, },

View File

@ -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: {