修改自定义数据

master
夜笙歌 4 months ago
parent 68f15adb50
commit 3d143954c8

@ -23,7 +23,7 @@ export function getSimulateData(query) {
isMsg:true, isMsg:true,
url: '/base/customData/list', url: '/base/customData/list',
method: 'get', method: 'get',
params: {customType: 1, ...query} params: query
}) })
} }

@ -8,8 +8,8 @@ let screenData = (e) => {
} }
} }
export function mixData(params) { export function mixData(params,customType=1) {
getSimulateData({customCode: params?.e || ''}).then(val => { getSimulateData({customCode: params?.e || '',customType}).then(val => {
if (val && val.rows.length > 0 && val.rows[0].isFlag === 0) { if (val && val.rows.length > 0 && val.rows[0].isFlag === 0) {
let data = JSON.parse(val.rows[0].customData); let data = JSON.parse(val.rows[0].customData);
(params?.f || (() => { (params?.f || (() => {

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save