|
@@ -10,7 +10,7 @@ import {
|
|
|
InputFiled,
|
|
|
UploadFiled,
|
|
|
RadioField,
|
|
|
- SelectField
|
|
|
+ SelectField,
|
|
|
} from '../fields';
|
|
|
import { PREFIX } from '../constants';
|
|
|
import { UnityAction } from '@/utils/utils';
|
|
@@ -99,7 +99,7 @@ const Component = (props: any) => {
|
|
|
console.log(exportJson);
|
|
|
// const sheet = exportJson.sheets[0];
|
|
|
let cell = [];
|
|
|
- exportJson.sheets.forEach(sheet => {
|
|
|
+ exportJson.sheets.forEach((sheet, index) => {
|
|
|
let titleCell = [];
|
|
|
sheet.celldata.forEach(item => {
|
|
|
if (item.r == 0) {
|
|
@@ -109,6 +109,7 @@ const Component = (props: any) => {
|
|
|
// 生成cid
|
|
|
item.v.cid = `${item.r}-${item.c}`;
|
|
|
});
|
|
|
+ sheet.order = index;
|
|
|
let tempCell = titleCell.map(item => {
|
|
|
let value = '';
|
|
|
if (item.v?.v) {
|
|
@@ -136,7 +137,7 @@ const Component = (props: any) => {
|
|
|
};
|
|
|
|
|
|
useEffect(() => {
|
|
|
- if(config.id != nodeConfig.id) {
|
|
|
+ if (config.id != nodeConfig.id) {
|
|
|
setNodeConfig({
|
|
|
...defaultConfig,
|
|
|
...config,
|