Commit 5fb77375 authored by zhangwenshuai's avatar zhangwenshuai

temp

parent d3d5555e
/* eslint-disable no-case-declarations */ /* eslint-disable no-case-declarations */
// 判断是Android 或 iOS // 判断是Android 或 iOS
import {emptyModel} from "@/submodule/components/apolloTable/component/base/_utils/setFormatter";
const platform = (function checkPlatForm() { const platform = (function checkPlatForm() {
// const u = window.navigator.userAgent; // const u = window.navigator.userAgent;
// const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端 // const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端
...@@ -372,9 +374,17 @@ const changTableDynamicValue = ({ behavior, originValue }: any) => { ...@@ -372,9 +374,17 @@ const changTableDynamicValue = ({ behavior, originValue }: any) => {
cellValueList: [], cellValueList: [],
}); });
} else { } else {
let cell = emptyModel;
if (Array.isArray(extraData[t])) {
if (extraData[t].length > 0) {
cell = extraData[t];
}
} else if (extraData[t]) {
cell = [extraData[t]];
}
result.push({ result.push({
columnCode: t, columnCode: t,
cellValueList: Array.isArray(extraData[t]) ? extraData[t] : [extraData[t]], cellValueList: cell,
}); });
} }
}); });
......
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