|
@@ -73,7 +73,7 @@
|
|
|
<span v-else>{{ getTypeLabel(row.rule) }}</span>
|
|
|
</template>
|
|
|
<template #data="{ row }">
|
|
|
- <el-input v-if="row.isEdit" v-model="row.data" placeholder="请输入数据" />
|
|
|
+ <el-input v-if="row.isEdit" v-model="row.data" placeholder="请输入数据" :disabled="row.rule !== 1 && row.rule !== 6" />
|
|
|
<span v-else>{{ row.data }}</span>
|
|
|
</template>
|
|
|
<template #isAutoIncrement="{ row }">
|
|
@@ -130,7 +130,14 @@
|
|
|
quick-sort
|
|
|
@row-drop="sortFormDropTap"
|
|
|
@row-sort="rowSortFormTap"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template #type="{ row }">
|
|
|
+ <span>{{ getTypeLabel(row.rule) }}</span>
|
|
|
+ </template>
|
|
|
+ <template #isAutoIncrement="{ row }">
|
|
|
+ <el-checkbox v-if="row?.rule === 6" v-model="row.isAutoIncrement" :disabled="true" :true-value="1" :false-value="0" />
|
|
|
+ </template>
|
|
|
+ </hc-table>
|
|
|
<template #footer>
|
|
|
<el-button hc-btn @click="sortFormClose">取消</el-button>
|
|
|
<el-button
|
|
@@ -362,7 +369,7 @@ const tableSortFormColumn = ref([
|
|
|
{ key: 'type', name: '规则' },
|
|
|
{ key: 'data', name: '数据填充' },
|
|
|
{ key: 'isAutoIncrement', name: '是否自增' },
|
|
|
- { key: 'action', name: '操作' },
|
|
|
+
|
|
|
])
|
|
|
const sortFormClick = () => {
|
|
|
sortFormShow.value = true
|