/**
|
* 用户详情对话框(可用于添加和修改对话框)
|
*/
|
var GasStationOilPriceInfo = {
|
userInfoData: {}
|
};
|
/**
|
* 关闭此对话框
|
*/
|
GasStationOilPriceInfo.close = function () {
|
parent.layer.close(window.parent.GasStationOilPrice.layerIndex);
|
};
|
|
|
|
/**
|
* 提交修改
|
*/
|
GasStationOilPriceInfo.editSubmit = function () {
|
const labelOne = $('#labelOne').val();
|
const labelTwo = $('#labelTwo').val();
|
const dieselOil10Price = $('#dieselOil10Price').val();
|
const dieselOil0Price = $('#dieselOil0Price').val();
|
const gasoline92Price = $('#gasoline92Price').val();
|
const gasoline95Price = $('#gasoline95Price').val();
|
const gasoline98Price = $('#gasoline98Price').val();
|
const effectivePeriod = $('#effectivePeriod').val();
|
const icon = $('#icon').val();
|
|
//提交信息
|
var ajax = new $ax(Feng.ctxPath + "/salesPromotion/editGasStationOilPrice", function (data) {
|
if(data.code == 200){
|
Feng.success("编辑成功!");
|
window.parent.GasStationOilPrice.table.refresh();
|
GasStationOilPriceInfo.close();
|
}else{
|
Feng.error(data.msg);
|
}
|
}, function (data) {
|
Feng.error("编辑失败!" + data.responseJSON.message + "!");
|
});
|
ajax.set({
|
id: $("#id").val(),
|
labelOne: labelOne,
|
labelTwo: labelTwo,
|
dieselOil10Price: dieselOil10Price,
|
dieselOil0Price: dieselOil0Price,
|
gasoline92Price: gasoline92Price,
|
gasoline95Price: gasoline95Price,
|
gasoline98Price: gasoline98Price,
|
icon: icon,
|
effectivePeriod: effectivePeriod == null ? '' : effectivePeriod.toString()
|
});
|
ajax.start();
|
};
|
|
|
|
$(function () {
|
var effectivePeriod_ = $('#effectivePeriod_').val();
|
var arr = effectivePeriod_.split(";");
|
$('#effectivePeriod').selectpicker('val', arr);
|
$('#effectivePeriod .selectpicker').selectpicker('refresh');
|
|
// 初始化icon上传
|
var iconUp = new $WebUpload("icon");
|
iconUp.setUploadBarId("progressBar");
|
iconUp.init();
|
});
|