|
@@ -94,7 +94,7 @@
|
|
|
v-model="scope.row.value"
|
|
|
active-value="1"
|
|
|
inactive-value="0"
|
|
|
- :disabled="state.textTable.data.length < 2"
|
|
|
+ :disabled="$util.isValue(mainKeyCpt) && (mainKeyCpt != scope.row.key)"
|
|
|
/>
|
|
|
</template>
|
|
|
<template #minGram-column-value="{scope}">
|
|
@@ -284,6 +284,15 @@ const handleChangeFcq = (val) => {
|
|
|
}, 100)
|
|
|
}
|
|
|
}
|
|
|
+const mainKeyCpt = computed(() => {
|
|
|
+ let k = ''
|
|
|
+ state.textTable.data.forEach(v => {
|
|
|
+ if (v.value == '1') {
|
|
|
+ k = v.key
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return k
|
|
|
+})
|
|
|
watch(() => state.form.searchShow, (n) => {
|
|
|
if (n == 1) {
|
|
|
state.form.fieldType = 'keyword'
|