cl
2024-01-19 e0fac38b26845f25de479783e0c76cf12a5311e0
提交 | 用户 | 时间
71e81e 1 /**
2  * 添加或者修改页面
3  */
4 var CollectionParamConfInfoDlg = {
5     data: {
6         id: "",
7         paramCode: "",
8         productionLine: "",
9         locationCode: "",
10         equipmentNo: "",
11         dataType: "",
12         unit: "",
13         paramUpper: "",
14         paramLower: "",
15         paramCentral: "",
16         spareField1: "",
17         spareField2: "",
18         remarks: "",
19         createUser: "",
20         createTime: "",
21         updateUser: "",
22         productCode: "",
23         gatherAddress: "",
24         gatherSequence: "",
25         paramName: "",
26         updateTime: ""
27     }
28 };
29
30 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
31     var $ = layui.jquery;
32     var $ax = layui.ax;
33     var form = layui.form;
34     var admin = layui.admin;
35
36     //表单提交事件
37     form.on('submit(btnSubmit)', function (data) {
38         var ajax = new $ax(Feng.ctxPath + "/collectionParamConf/addItem", function (data) {
39             Feng.success("添加成功!");
40             window.location.href = Feng.ctxPath + '/collectionParamConf'
41
42         }, function (data) {
43             Feng.error("添加失败!" + data.responseJSON.message)
44         });
45         ajax.set(data.field);
46         ajax.start();
47
48         return false;
49     });
50
51     $('#cancel').click(function(){
52         window.location.href = Feng.ctxPath + '/collectionParamConf'
53     });
54
55
56 });