主子表选择过滤当前表

This commit is contained in:
不做码农 2023-07-13 14:29:32 +08:00
parent 5e2232d7a1
commit 05b7b4d6db

View File

@ -315,7 +315,12 @@
</span> </span>
</template> </template>
<el-select v-model="info.subTableName" filterable placeholder="请选择" @change="subSelectChange(this)"> <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-option>
</el-select> </el-select>
</el-form-item> </el-form-item>