调整
This commit is contained in:
@ -629,7 +629,7 @@ const submit = () => {
|
||||
bklx = "02";
|
||||
}
|
||||
let params = { ...listQuery.value, bklx: bklx };
|
||||
params.bkfj = params.bkfj ? params.bkfj.join(",") : "";
|
||||
params.bkfj = params.bkfj ? JSON.stringify(params.bkfj) : "";
|
||||
params.bkdxList = params.bkdxList ? params.bkdxList : [];
|
||||
params.bkdxList.forEach((item) => {
|
||||
if (Array.isArray(item.fjZp)) {
|
||||
@ -769,7 +769,18 @@ const changeXzqh = (val) => {
|
||||
// 根据id获取详情
|
||||
const getDataById = (id) => {
|
||||
qcckGet({}, "/mosty-gsxt/tbGsxtBk/selectVoById/" + id).then((res) => {
|
||||
res.bkfj = res.ossList || [];
|
||||
// 兼容处理:优先使用 ossList,为空则解析 bkfj JSON 字符串
|
||||
if (res.ossList && res.ossList.length > 0) {
|
||||
res.bkfj = res.ossList;
|
||||
} else if (res.bkfj) {
|
||||
try {
|
||||
res.bkfj = JSON.parse(res.bkfj);
|
||||
} catch (e) {
|
||||
res.bkfj = [];
|
||||
}
|
||||
} else {
|
||||
res.bkfj = [];
|
||||
}
|
||||
listQuery.value = res || {};
|
||||
dataOrge.value = res;
|
||||
if (res.bkqyList) {
|
||||
|
||||
Reference in New Issue
Block a user