Browse Source

详情关闭按钮重新打开按钮显示问题

intex_online20250327
张立 3 weeks ago
parent
commit
b000c384c2
  1. 6
      src/components/Detail/src/Detail.vue

6
src/components/Detail/src/Detail.vue

@ -227,6 +227,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import DetailTable from '@/components/DetailTable/src/DetailTable.vue'
import { SearchTable } from '@/components/SearchTable'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import { cloneDeep } from 'lodash-es'
const { wsCache } = useCache()
defineOptions({ name: 'Detail' })
@ -898,6 +899,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
const buttondata = (row) => {
let detailButtonEdit: any = []
let detailButtonDelete: any = []
let detailButtonButtondataTable: any = cloneDeep(buttondataTable.value)
if (props.detailButtonIsShowEdit) {
//
detailButtonEdit = [
@ -917,7 +919,7 @@ const buttondata = (row) => {
]
}
if (props.buttondataTable.length > 0) {
buttondataTable.value.forEach(item => {
detailButtonButtondataTable.forEach(item => {
if (item.field) {
item.hide = row[item.field]=='1'? false : true
}
@ -929,7 +931,7 @@ const buttondata = (row) => {
return [
...detailButtonEdit,
...detailButtonDelete,
...buttondataTable.value
...detailButtonButtondataTable
]
}
const updateList =async ()=>{

Loading…
Cancel
Save