修复座驾保存问题
This commit is contained in:
@@ -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;
|
||||
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user