修复座驾保存问题
This commit is contained in:
@@ -39,6 +39,10 @@ export function dateFormat (date, fmt) {
|
|||||||
|
|
||||||
export function buildSelectOption(id, defVal, array) {
|
export function buildSelectOption(id, defVal, array) {
|
||||||
let $select = $(id);
|
let $select = $(id);
|
||||||
|
let children = $select.children();
|
||||||
|
if (!children || children.length <= 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for(let i in array) {
|
for(let i in array) {
|
||||||
let obj = array[i];
|
let obj = array[i];
|
||||||
let selected = false;
|
let selected = false;
|
||||||
|
@@ -1098,7 +1098,7 @@ export default {
|
|||||||
data: newSerializeStr,
|
data: newSerializeStr,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
if (json.success == 'true') {
|
if (json.code == 200) {
|
||||||
$("#carGoodsModal").modal('hide');
|
$("#carGoodsModal").modal('hide');
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
Reference in New Issue
Block a user