cl
2024-01-19 e0fac38b26845f25de479783e0c76cf12a5311e0
提交 | 用户 | 时间
71e81e 1 /**
2  * 添加或者修改页面
3  */
4 var EquipmentMaintainContentTaskInfoDlg = {
5     data: {
6         id: "",
7         maintainContentCode: "",
8         maintainContentName: "",
9         maintainContentType: "",
10         maintainContent: "",
11         spareField1: "",
12         spareField2: "",
13         maintainResult: "",
14         maintainRecord: "",
15         remarks: "",
16         taskNo: ""
17     }
18 };
19
20 layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
21     var $ = layui.jquery;
22     var $ax = layui.ax;
23     var form = layui.form;
24     var admin = layui.admin;
25
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     form.on('submit(btnSubmit)', function (data) {
59         var ajax = new $ax(Feng.ctxPath + "/equipmentMaintainContentTask/addItem", function (data) {
60             Feng.success("添加成功!");
61             window.location.href = Feng.ctxPath + '/equipmentMaintainContentTask'
62         }, function (data) {
63             Feng.error("添加失败!" + data.responseJSON.message)
64         });
65         ajax.set(data.field);
66         ajax.start();
67
68         return false;
69     });
70
71     $('#cancel').click(function(){
72         window.location.href = Feng.ctxPath + '/equipmentMaintainContentTask'
73     });
74
75
76 });