centaline-data-driven 1.1.19 → 1.1.20

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,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -157,9 +157,7 @@ const api = {
157
157
 
158
158
  // 执行js
159
159
  if (data.clientActionType === Enum.ClientActionType.ExcuteScript && data.content) {
160
- if (!formData) {
161
- eval(data.content);
162
- }
160
+ eval(data.content);
163
161
  }
164
162
 
165
163
  //关闭tab页
@@ -6,7 +6,6 @@ import Vue from 'vue';
6
6
  const box = function (source, callBack) {
7
7
  var self = this;
8
8
  var init = function (data) {
9
- debugger;
10
9
  var rtn = {
11
10
  get options() {
12
11
  return source.selectItems1;
@@ -233,7 +233,18 @@ const LibFunction = {
233
233
  var router = source.actionRouters.find((v1) => {
234
234
  return v1.key === field.fieldName1;
235
235
  });
236
- item = File(field, source.medias, router, source.parameterAction);
236
+ var files = [];
237
+ source.medias.forEach((v, index) => {
238
+ if (v.GroupID) {
239
+ if (v.GroupID == field.fieldName1) {
240
+ files.push(v);
241
+ }
242
+ }
243
+ else {
244
+ files.push(v);
245
+ }
246
+ })
247
+ item = File(field, files, router, source.parameterAction);
237
248
  item.is = 'ct-file';
238
249
  break;
239
250
  case Enum.ControlType.PasswordTextBox://密码