yantian yue
2023-10-18 f4a3430eb6b6800d4ef7330293dd8fb834eee196
提交 | 用户 | 时间
4779be 1 /**
2  * 添加或者修改页面
3  */
4 var KanbanConfInfoDlg = {
5     data: {
6         id: "",
7         pageCode: "",
8         ipAddress: "",
9         macAddress: "",
10         workshopCode: "",
11         workshopName: "",
12         lineCode: "",
13         lineName: "",
14         locationCode: "",
15         locationName: "",
16         warehouseCode: "",
17         warehouseName: ""
18     }
19 };
20
21 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
22     var $ = layui.jquery;
23     var $ax = layui.ax;
24     var form = layui.form;
25     var admin = layui.admin;
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61     //表单提交事件
62     form.on('submit(btnSubmit)', function (data) {
63         var ajax = new $ax(Feng.ctxPath + "/kanbanConf/addItem", function (data) {
64             Feng.success("添加成功!");
65             window.location.href = Feng.ctxPath + '/kanbanConf'
66         }, function (data) {
67             Feng.error("添加失败!" + data.responseJSON.message)
68         });
69         ajax.set(data.field);
70         ajax.start();
71
72         return false;
73     });
74
75     $('#cancel').click(function(){
76         window.location.href = Feng.ctxPath + '/kanbanConf'
77     });
78
79 });