Commit 21e9cd39 authored by 涂伟's avatar 涂伟

fix: '1.内置字段判断逻辑优化2.表配置选项保存逻辑优化'

parent 9faf6988
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
......@@ -533,6 +533,12 @@ const TableView = props => {
const newData = [...dataSource];
const item = newData[index];
newData.splice(index, 1, { ...item, ...row });
// 内置字段同步更改
if (index < defaultData.length) {
const newDefaultData = [...defaultData];
newDefaultData.splice(index, 1, { ...item, ...row });
setDefaultData(newDefaultData);
}
setDataSource(newData);
};
// 是否显示默认字段
......
......@@ -64,6 +64,7 @@ import PreviewModal from './PreviewModal';
import EditTypeModal from './EditTypeModal';
import eventImg from '@/assets/images/workOptions/事件.png';
import caseImg from '@/assets/images/workOptions/工单.png';
// import caseImg from '@/assets/images/workOptions/工单发起选中.png';
const { Option } = Select;
const AddModal = props => {
......@@ -523,6 +524,7 @@ const AddModal = props => {
if (obj.CreateMode === 0 || 1) {
obj.CreateMode = obj.CreateMode.toString();
}
obj.CreateMode = value
if (editable != true) {
obj.Editable = false;
} else {
......@@ -1220,6 +1222,7 @@ const AddModal = props => {
const chooseFlowOk = prop => {
setEventFlowId(prop);
setEditTypeModal(false)
};
const pickFiled = fileds => {
......
......@@ -37,7 +37,6 @@ const EditTypeModal = props => {
if (selectedRowKeys.length) {
callBackSubmit(selectedRowKeys.toString());
}
onCancel();
};
const columns = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment