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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.16",
4
+ "version": "0.4.19",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -3,25 +3,41 @@ import request from '../libs/request';
3
3
  const res = 'Application';
4
4
 
5
5
  export default {
6
- submit(applicationTypeID, model) {
7
- return request({
8
- url: `api/${res}/submit`,
9
- method: 'post',
10
- data: {
11
- applicationTypeID,
12
- model
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(applicationTypeID, model) {
17
- return request({
18
- url: `api/${res}/save`,
19
- method: 'post',
20
- data: {
21
- applicationTypeID,
22
- model
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({
@@ -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',
@@ -688,8 +688,8 @@
688
688
  },
689
689
  // 鼠标移动
690
690
  mousemove(e) {
691
- this.current.x = e.layerX;
692
- this.current.y = e.layerY;
691
+ this.current.x = e.offsetX;
692
+ this.current.y = e.offsetY;
693
693
  //this.$forceUpdate();
694
694
 
695
695
  if (this.isMoving) {
@@ -439,7 +439,7 @@ export default {
439
439
  let data = this.parseData(model, expression);
440
440
 
441
441
  if (data == null) {
442
- result += 'null';
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.applicationTypeID, data);
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.applicationTypeID, data);
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: 6px;
229
- padding: 10px 12px 10px 0;
233
+ line-height: 24px;
234
+ padding: 0px 12px 0px 0;
230
235
  }
231
236
 
232
237
  .filter .ivu-form-item {