提交 | 用户 | 时间
|
1ac2bc
|
1 |
/** |
懒 |
2 |
* 添加或者修改页面 |
|
3 |
*/ |
|
4 |
var ProcdefInfoDlg = { |
|
5 |
data: { |
|
6 |
rev: "", |
|
7 |
category: "", |
|
8 |
name: "", |
|
9 |
key: "", |
|
10 |
version: "", |
|
11 |
deploymentId: "", |
|
12 |
resourceName: "", |
|
13 |
dgrmResourceName: "", |
|
14 |
description: "", |
|
15 |
hasStartFormKey: "", |
|
16 |
hasGraphicalNotation: "", |
|
17 |
suspensionState: "", |
|
18 |
tenantId: "", |
|
19 |
engineVersion: "" |
|
20 |
} |
|
21 |
}; |
|
22 |
|
|
23 |
layui.use(['form', 'admin', 'ax', 'upload'], function () { |
|
24 |
var $ = layui.jquery; |
|
25 |
var $ax = layui.ax; |
|
26 |
var form = layui.form; |
|
27 |
var admin = layui.admin; |
|
28 |
var upload = layui.upload; |
|
29 |
|
|
30 |
//上传文件 |
|
31 |
upload.render({ |
|
32 |
elem: '#fileBtn' |
|
33 |
, url: Feng.ctxPath + '/process/addItem' |
|
34 |
, accept: 'file' |
|
35 |
, auto: false |
|
36 |
, bindAction: '#submit' |
|
37 |
, before: function (obj) { |
|
38 |
obj.preview(function (index, file, result) { |
|
39 |
$("#fileNameTip").html(file.name); |
|
40 |
}); |
|
41 |
} |
|
42 |
, done: function (res) { |
|
43 |
Feng.success(res.message); |
|
44 |
admin.putTempData('formOk', true); |
|
45 |
admin.closeThisDialog(); |
|
46 |
} |
|
47 |
, error: function () { |
|
48 |
Feng.error("上传图片失败!"); |
|
49 |
} |
|
50 |
}); |
|
51 |
|
|
52 |
}); |