修复座驾保存问题

This commit is contained in:
liaozetao
2024-04-16 16:20:36 +08:00
parent 7b9c36ea23
commit 65972cce7d
2 changed files with 5 additions and 1 deletions

View File

@@ -39,6 +39,10 @@ export function dateFormat (date, fmt) {
export function buildSelectOption(id, defVal, array) {
let $select = $(id);
let children = $select.children();
if (!children || children.length <= 0) {
return;
}
for(let i in array) {
let obj = array[i];
let selected = false;

View File

@@ -1098,7 +1098,7 @@ export default {
data: newSerializeStr,
dataType: "json",
success: function (json) {
if (json.success == 'true') {
if (json.code == 200) {
$("#carGoodsModal").modal('hide');
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');