This commit is contained in:
qsh
2024-06-24 23:28:56 +08:00
parent 43b95e3a10
commit b6bd32430b
4 changed files with 20 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
</template>
<el-radio-group
v-model="form.usePhoneConfig"
:disabled="getConfig('usePhoneConfig').modifiable == 'false'"
:disabled="!getConfig('usePhoneConfig').modifiable"
>
<el-radio
v-for="(item, index) in getConfig('usePhoneConfig').options"

View File

@@ -60,6 +60,7 @@
v-model:tableObject="tableObject"
:tableColumns="allSchemas.tableColumns"
@get-list="getTableList"
@get-checked-columns="getCheckedColumns"
>
<el-table-column type="expand">
<template #default="{ row }">
@@ -104,7 +105,7 @@
</template>
</el-table-column>
<el-table-column
v-for="item in allSchemas.tableColumns"
v-for="item in showColumns"
:key="item.field"
:prop="item.field"
:label="item.label"
@@ -282,6 +283,13 @@ async function getCurdSchemas() {
}
}
const showColumns = ref([])
// 初始化表格
function getCheckedColumns(list) {
showColumns.value = list && list.length ? list : allSchemas.value.tableColumns
}
// 详情
function handleDetail(row) {
orderDetailDialog.value.open(row.clueId, row.signId)

View File

@@ -79,9 +79,10 @@
v-model:tableObject="tableObject"
:tableColumns="allSchemas.tableColumns"
@get-list="getTableList"
@get-checked-columns="getCheckedColumns"
>
<el-table-column
v-for="item in allSchemas.tableColumns"
v-for="item in showColumns"
:key="item.field"
:prop="item.field"
:label="item.label"
@@ -232,6 +233,13 @@ async function getCurdSchemas() {
}
}
const showColumns = ref([])
// 初始化表格
function getCheckedColumns(list) {
showColumns.value = list && list.length ? list : allSchemas.value.tableColumns
}
// 详情
function handleDetail(row) {
orderDetailDialog.value.open(row.clueId, row.signId)

View File

@@ -214,7 +214,7 @@ const showColumns = ref([])
// 初始化表格
function getCheckedColumns(list) {
showColumns.value = list
showColumns.value = list && list.length ? list : allSchemas.value.tableColumns
}
function resetQuery() {