admin
2024-01-10 7f291910791bdb9a545dc12ef36c3c359cfa4e59
提交 | 用户 | 时间
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     var ajax = new $ax(Feng.ctxPath + "/equipmentMaintainContentTask/detail?id=" + Feng.getUrlParam("id"));
59     var result = ajax.start();
60     form.val('equipmentMaintainContentTaskForm', result.data);
61
62     //表单提交事件
63     form.on('submit(btnSubmit)', function (data) {
64         var ajax = new $ax(Feng.ctxPath + "/equipmentMaintainContentTask/editItem", function (data) {
65             Feng.success("更新成功!");
66             window.location.href = Feng.ctxPath + '/equipmentMaintainContentTask'
67         }, function (data) {
68             Feng.error("更新失败!" + data.responseJSON.message)
69         });
70         ajax.set(data.field);
71         ajax.start();
72
73         return false;
74     });
75
76     $('#cancel').click(function(){
77         window.location.href = Feng.ctxPath + '/equipmentMaintainContentTask'
78     });
79
80 });