主子表选择过滤当前表

This commit is contained in:
不做码农
2023-07-13 19:27:52 +08:00
parent 5e2232d7a1
commit 05b7b4d6db
+6 -1
View File
@@ -315,7 +315,12 @@
</span>
</template>
<el-select v-model="info.subTableName" filterable placeholder="请选择" @change="subSelectChange(this)">
<el-option v-for="(table, index) in tables" :key="index" :label="table.tableName + ':' + table.tableComment" :value="table.tableName">
<el-option
v-for="(table, index) in tables"
:disabled="table.tableName == info.tableName"
:key="index"
:label="table.tableName + ':' + table.tableComment"
:value="table.tableName">
</el-option>
</el-select>
</el-form-item>