02abb7b2 by lihua

禁用配置业务规则

1 parent 809e3c07
......@@ -204,7 +204,7 @@ const rowSelectable = (row, index) => {
if (props.tableInfo.selectable === false) {
return false
}
return row.selectable ?? true;
return props.tableInfo.selectableHandle ? props.tableInfo.selectableHandle(row) : (row.selectable ?? true);
};
......
......@@ -438,6 +438,10 @@ const tableInfo = ref({
id: "role-manage-table",
multiple: true,
fixedSelection: true,
selectable: true,
selectableHandle: (row) => {
return row?.isImportCreate != 'Y';
},
fields: [
{ label: "序号", type: "index", width: 56, align: "center" },
{ label: "字段名", field: "fieldName", width: 140 },
......@@ -688,7 +692,7 @@ const dataBaseTableInfo = ref({
}
});
},
disabled: scope.row.state == 0 ? true : false
disabled: (scope.row.isImportCreate == 'Y' || scope.row.state == 0) ? true : false
},
{
label: "编辑表结构", value: "edit", click: (scope) => {
......@@ -1375,7 +1379,7 @@ const getDataBaseTableData = async (params = {}) => {
dataBaseTableInfo.value.page.rows = res.data.totalRows;
dataBaseTableInfo.value.page.limit = res.data.pageSize
dataBaseTableInfo.value.page.curr = res.data.pageIndex
dataBaseTableInfo.value.data = res.data.records;
dataBaseTableInfo.value.data = res.data.records || [];
} else {
proxy.$ElMessage.error(res.msg);
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!