02abb7b2 by lihua

禁用配置业务规则

1 parent 809e3c07
...@@ -204,7 +204,7 @@ const rowSelectable = (row, index) => { ...@@ -204,7 +204,7 @@ const rowSelectable = (row, index) => {
204 if (props.tableInfo.selectable === false) { 204 if (props.tableInfo.selectable === false) {
205 return false 205 return false
206 } 206 }
207 return row.selectable ?? true; 207 return props.tableInfo.selectableHandle ? props.tableInfo.selectableHandle(row) : (row.selectable ?? true);
208 }; 208 };
209 209
210 210
......
...@@ -438,6 +438,10 @@ const tableInfo = ref({ ...@@ -438,6 +438,10 @@ const tableInfo = ref({
438 id: "role-manage-table", 438 id: "role-manage-table",
439 multiple: true, 439 multiple: true,
440 fixedSelection: true, 440 fixedSelection: true,
441 selectable: true,
442 selectableHandle: (row) => {
443 return row?.isImportCreate != 'Y';
444 },
441 fields: [ 445 fields: [
442 { label: "序号", type: "index", width: 56, align: "center" }, 446 { label: "序号", type: "index", width: 56, align: "center" },
443 { label: "字段名", field: "fieldName", width: 140 }, 447 { label: "字段名", field: "fieldName", width: 140 },
...@@ -688,7 +692,7 @@ const dataBaseTableInfo = ref({ ...@@ -688,7 +692,7 @@ const dataBaseTableInfo = ref({
688 } 692 }
689 }); 693 });
690 }, 694 },
691 disabled: scope.row.state == 0 ? true : false 695 disabled: (scope.row.isImportCreate == 'Y' || scope.row.state == 0) ? true : false
692 }, 696 },
693 { 697 {
694 label: "编辑表结构", value: "edit", click: (scope) => { 698 label: "编辑表结构", value: "edit", click: (scope) => {
...@@ -1375,7 +1379,7 @@ const getDataBaseTableData = async (params = {}) => { ...@@ -1375,7 +1379,7 @@ const getDataBaseTableData = async (params = {}) => {
1375 dataBaseTableInfo.value.page.rows = res.data.totalRows; 1379 dataBaseTableInfo.value.page.rows = res.data.totalRows;
1376 dataBaseTableInfo.value.page.limit = res.data.pageSize 1380 dataBaseTableInfo.value.page.limit = res.data.pageSize
1377 dataBaseTableInfo.value.page.curr = res.data.pageIndex 1381 dataBaseTableInfo.value.page.curr = res.data.pageIndex
1378 dataBaseTableInfo.value.data = res.data.records; 1382 dataBaseTableInfo.value.data = res.data.records || [];
1379 } else { 1383 } else {
1380 proxy.$ElMessage.error(res.msg); 1384 proxy.$ElMessage.error(res.msg);
1381 } 1385 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!