mooho-base-admin-plus 0.4.16 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mooho-base-admin-plus.min.esm.js +45 -26
- package/dist/mooho-base-admin-plus.min.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/api/application.js +34 -18
- package/src/api/customModel.js +2 -2
- package/src/components/workflow/flow-chart.vue +2 -2
- package/src/mixins/page.js +4 -1
- package/src/pages/template/processPage.vue +2 -2
- package/src/styles/css/default.css +7 -2
package/package.json
CHANGED
package/src/api/application.js
CHANGED
|
@@ -3,25 +3,41 @@ import request from '../libs/request';
|
|
|
3
3
|
const res = 'Application';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
|
-
submit(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
submit(applicationType, model) {
|
|
7
|
+
if (applicationType.isCustom) {
|
|
8
|
+
return request({
|
|
9
|
+
url: `api/${res}/submit`,
|
|
10
|
+
method: 'post',
|
|
11
|
+
data: {
|
|
12
|
+
applicationTypeID: applicationType.id,
|
|
13
|
+
model
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
return request({
|
|
18
|
+
url: `api/${applicationType.model}/submit`,
|
|
19
|
+
method: 'post',
|
|
20
|
+
data: model
|
|
21
|
+
});
|
|
22
|
+
}
|
|
15
23
|
},
|
|
16
|
-
save(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
save(applicationType, model) {
|
|
25
|
+
if (applicationType.isCustom) {
|
|
26
|
+
return request({
|
|
27
|
+
url: `api/${res}/save`,
|
|
28
|
+
method: 'post',
|
|
29
|
+
data: {
|
|
30
|
+
applicationTypeID: applicationType.id,
|
|
31
|
+
model
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
return request({
|
|
36
|
+
url: `api/${applicationType.model}/save`,
|
|
37
|
+
method: 'post',
|
|
38
|
+
data: model
|
|
39
|
+
});
|
|
40
|
+
}
|
|
25
41
|
},
|
|
26
42
|
cancel(id) {
|
|
27
43
|
return request({
|
package/src/api/customModel.js
CHANGED
|
@@ -158,14 +158,14 @@ export default {
|
|
|
158
158
|
data.groupColumn = JSON.parse(tableView.groupColumn);
|
|
159
159
|
data.groupMethod = JSON.parse(tableView.groupMethod);
|
|
160
160
|
|
|
161
|
-
await request({
|
|
161
|
+
result = await request({
|
|
162
162
|
url: `api/${res}/group`,
|
|
163
163
|
method: 'post',
|
|
164
164
|
responseType: 'blob',
|
|
165
165
|
data
|
|
166
166
|
});
|
|
167
167
|
} else {
|
|
168
|
-
await request({
|
|
168
|
+
result = await request({
|
|
169
169
|
url: `api/${res}/query`,
|
|
170
170
|
method: 'post',
|
|
171
171
|
responseType: 'blob',
|
package/src/mixins/page.js
CHANGED
|
@@ -439,7 +439,7 @@ export default {
|
|
|
439
439
|
let data = this.parseData(model, expression);
|
|
440
440
|
|
|
441
441
|
if (data == null) {
|
|
442
|
-
result +=
|
|
442
|
+
result += expression;
|
|
443
443
|
} else if (isNaN(data)) {
|
|
444
444
|
result += "'" + String(data) + "'";
|
|
445
445
|
} else {
|
|
@@ -501,6 +501,9 @@ export default {
|
|
|
501
501
|
data = '';
|
|
502
502
|
}
|
|
503
503
|
let value = setting.condition[i].value;
|
|
504
|
+
if (value == null) {
|
|
505
|
+
value = '';
|
|
506
|
+
}
|
|
504
507
|
let operator = setting.condition[i].operator;
|
|
505
508
|
let result = false;
|
|
506
509
|
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
this.confirm('Front_Msg_Sure_To_Submit', async () => {
|
|
191
|
-
await applicationApi.submit(this.page.
|
|
191
|
+
await applicationApi.submit(this.page.applicationType, data);
|
|
192
192
|
|
|
193
193
|
this.success('Front_Msg_Success', () => {
|
|
194
194
|
this.$refs.table.loadData();
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
this.confirm('Front_Msg_Sure_To_Save', async () => {
|
|
210
|
-
let res = await applicationApi.save(this.page.
|
|
210
|
+
let res = await applicationApi.save(this.page.applicationType, data);
|
|
211
211
|
|
|
212
212
|
this.success('Front_Msg_Success', () => {
|
|
213
213
|
this.$refs.table.loadData();
|
|
@@ -223,10 +223,15 @@
|
|
|
223
223
|
margin-top: 4px;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
.filter .ivu-col {
|
|
227
|
+
margin-top: 0px;
|
|
228
|
+
margin-bottom: 4px;
|
|
229
|
+
}
|
|
230
|
+
|
|
226
231
|
.filter .ivu-form-item-label {
|
|
227
232
|
float: left;
|
|
228
|
-
line-height:
|
|
229
|
-
padding:
|
|
233
|
+
line-height: 24px;
|
|
234
|
+
padding: 0px 12px 0px 0;
|
|
230
235
|
}
|
|
231
236
|
|
|
232
237
|
.filter .ivu-form-item {
|