yuanjia-form-pro-standard 1.1.6-beta9.8 → 1.1.6-beta9.9

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/designer.es.js CHANGED
@@ -34,6 +34,7 @@ var __publicField = (obj, key, value2) => {
34
34
  return value2;
35
35
  };
36
36
  import require$$0$1, { openBlock, createElementBlock, normalizeClass as normalizeClass$1, createElementVNode, toDisplayString, createCommentVNode, reactive, inject, getCurrentInstance, onUnmounted, computed, ref as ref$1, onDeactivated, isRef, watch, provide, onMounted, nextTick, onActivated, unref, isVNode, defineComponent, createVNode, onBeforeUnmount, watchEffect, mergeProps, Transition, Teleport, withDirectives, vShow, Fragment, onBeforeUpdate, Comment, createTextVNode, resolveComponent, createBlock, withCtx, renderList, renderSlot, withModifiers, resolveDynamicComponent, normalizeStyle as normalizeStyle$1, resolveDirective, createSlots, h as h$1, render as render$1 } from "vue";
37
+ import { ElMessage } from "element-plus";
37
38
  import * as ElementPlusIconsVue from "@element-plus/icons-vue";
38
39
  import { Loading as Loading$1, User, Document, EditPen, View, Download, Upload, Edit, UploadFilled, ArrowDown, ArrowRight, Delete, Minus, Plus, InfoFilled, Search as Search$1, CirclePlus, ArrowUp, Bottom, Top, Back, Right, BottomLeft, TopRight, DCaret, Platform, CaretLeft, CaretRight } from "@element-plus/icons-vue";
39
40
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -10251,6 +10252,80 @@ var i18n$1 = {
10251
10252
  }
10252
10253
  }
10253
10254
  };
10255
+ const service = axios$1.create({
10256
+ timeout: 6e4
10257
+ });
10258
+ service.interceptors.request.use(function(config2) {
10259
+ let xmurl = "192.168.20.235:8007";
10260
+ let cyurl = "192.168.20.234:5010";
10261
+ let cyurl2 = "192.168.20.234:5000";
10262
+ if (config2.url.indexOf("/api") === 0) {
10263
+ if (window.location.origin.indexOf(cyurl) !== -1) {
10264
+ config2.url = `http://${cyurl}` + config2.url;
10265
+ } else if (window.location.origin.indexOf(cyurl2) !== -1) {
10266
+ config2.url = `http://${cyurl2}` + config2.url;
10267
+ } else {
10268
+ config2.url = {}.VITE_BASE_API + config2.url;
10269
+ }
10270
+ }
10271
+ if (config2.url.indexOf("/xm") === 0) {
10272
+ if (window.location.origin.indexOf(xmurl) !== -1) {
10273
+ config2.url = `http://${xmurl}` + config2.url.replace("/xm", "");
10274
+ } else {
10275
+ config2.url = {}.VITE_BASE_F_API + config2.url.replace("/xm", "");
10276
+ }
10277
+ }
10278
+ if (config2.data) {
10279
+ for (const Key in config2.data) {
10280
+ if (config2.data[Key] === "") {
10281
+ delete config2.data[Key];
10282
+ }
10283
+ }
10284
+ }
10285
+ const token = almLocalStorage.getItem("token");
10286
+ const rToken = almLocalStorage.getItem("rToken");
10287
+ almLocalStorage.getItem("tokenTime");
10288
+ if (token !== null)
10289
+ config2.headers["Authorization"] = "Bearer " + token;
10290
+ if (rToken) {
10291
+ config2.headers["X-Authorization"] = "Bearer " + rToken;
10292
+ }
10293
+ return config2;
10294
+ }, function(error2) {
10295
+ return Promise.reject(error2);
10296
+ });
10297
+ service.interceptors.response.use(function(response) {
10298
+ var _a2;
10299
+ const code2 = (_a2 = response.data) == null ? void 0 : _a2.StatusCode;
10300
+ let token = response.headers["access-token"];
10301
+ let rToken = response.headers["x-access-token"];
10302
+ if (token && rToken) {
10303
+ almLocalStorage.setItem("token", token);
10304
+ almLocalStorage.setItem("tokenTime", {}, almLocalStorage.getItem("oldTokenTime"));
10305
+ almLocalStorage.setItem("rToken", rToken);
10306
+ }
10307
+ if (code2 === 200) {
10308
+ return response;
10309
+ } else if (code2) {
10310
+ if (response.data.Errors || response.data.Data) {
10311
+ ElMessage({
10312
+ message: response.data.Errors || response.data.Data,
10313
+ type: "warning"
10314
+ });
10315
+ }
10316
+ return Promise.reject(response.data);
10317
+ } else {
10318
+ return response;
10319
+ }
10320
+ }, function(error2) {
10321
+ if (!axios$1.isCancel(error2)) {
10322
+ ElMessage({
10323
+ message: error2.message || error2.Errors,
10324
+ type: "warning"
10325
+ });
10326
+ }
10327
+ return Promise.reject(error2);
10328
+ });
10254
10329
  function isNull(value2) {
10255
10330
  return value2 === null || value2 === void 0;
10256
10331
  }
@@ -10863,15 +10938,7 @@ async function runDataSourceRequest(dataSource2, DSV2, VFR2, isSandbox2, $messag
10863
10938
  let requestConfig = buildRequestConfig(dataSource2, DSV2, VFR2, isSandbox2, formConfig2);
10864
10939
  if (!requestConfig)
10865
10940
  return null;
10866
- const token = almLocalStorage.getItem("token");
10867
- const rToken = almLocalStorage.getItem("rToken");
10868
- const tokenTime = almLocalStorage.getItem("tokenTime");
10869
- if (token !== null)
10870
- requestConfig.headers["Authorization"] = "Bearer " + token;
10871
- if (!tokenTime && rToken) {
10872
- requestConfig.headers["X-Authorization"] = "Bearer " + rToken;
10873
- }
10874
- let result = await axios$1.request(requestConfig);
10941
+ let result = await service.request(requestConfig);
10875
10942
  let dhFn = new Function("result", "isSandbox", "DSV", "VFR", dataSource2.dataHandlerCode);
10876
10943
  return dhFn.call(null, result, isSandbox2, DSV2, VFR2);
10877
10944
  } catch (err) {
@@ -10979,17 +11046,10 @@ async function fetchChildFormSchema(childFormKey) {
10979
11046
  const requestPromise = (async () => {
10980
11047
  var _a2;
10981
11048
  try {
10982
- const token = almLocalStorage.getItem("token");
10983
- const rToken = almLocalStorage.getItem("rToken");
10984
- const tokenTime = almLocalStorage.getItem("tokenTime");
10985
- const headers = {};
10986
- if (token !== null)
10987
- headers["Authorization"] = "Bearer " + token;
10988
- if (!tokenTime && rToken)
10989
- headers["X-Authorization"] = "Bearer " + rToken;
10990
11049
  const url = commonGETUrlTranslation("formset/formset_construct_detail", { data_id: childFormKey });
10991
- const res = await axios$1.get(url, { headers });
10992
- const { schema = [] } = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || {};
11050
+ const res = await service.get(url);
11051
+ const data2 = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data) || {};
11052
+ const { schema = [] } = data2;
10993
11053
  childFormSchemaCache.set(childFormKey, schema);
10994
11054
  return schema;
10995
11055
  } catch (error2) {
@@ -11277,20 +11337,10 @@ const _sfc_main$5g = {
11277
11337
  });
11278
11338
  },
11279
11339
  mounted() {
11280
- const token = almLocalStorage.getItem("token");
11281
- const rToken = almLocalStorage.getItem("rToken");
11282
- const tokenTime = almLocalStorage.getItem("tokenTime");
11283
- let headers = {};
11284
- if (token !== null)
11285
- headers["Authorization"] = "Bearer " + token;
11286
- if (!tokenTime && rToken) {
11287
- headers["X-Authorization"] = "Bearer " + rToken;
11288
- }
11289
- this.headers = headers;
11290
11340
  const url = commonGETUrlTranslation("formset/formset_construct_manage", { PageIndex: 1, PageSize: 100 });
11291
- axios$1.get(url, { headers }).then((res) => {
11292
- var _a2, _b2;
11293
- this.childFormList = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items;
11341
+ service.get(url).then((res) => {
11342
+ var _a2, _b2, _c2;
11343
+ this.childFormList = ((_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) || ((_c2 = res == null ? void 0 : res.data) == null ? void 0 : _c2.Items) || (res == null ? void 0 : res.data);
11294
11344
  }).catch((error2) => {
11295
11345
  this.$message.error(this.i18nt("designer.hint.loadFormTemplateFailed") + ":" + error2);
11296
11346
  });
@@ -11402,13 +11452,13 @@ const _sfc_main$5g = {
11402
11452
  },
11403
11453
  loadChildForm(id2) {
11404
11454
  const url = commonGETUrlTranslation("formset/formset_construct_detail", { data_id: id2 });
11405
- axios$1.get(url, { headers: this.headers }).then((res) => {
11455
+ service.get(url).then((res) => {
11406
11456
  this.$confirm(this.i18nt("designer.hint.loadChildFormHint"), this.i18nt("render.hint.prompt"), {
11407
11457
  confirmButtonText: this.i18nt("render.hint.confirm"),
11408
11458
  cancelButtonText: this.i18nt("render.hint.cancel")
11409
11459
  }).then(() => {
11410
11460
  var _a2;
11411
- const configWrapper = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data;
11461
+ const configWrapper = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data);
11412
11462
  const json = {};
11413
11463
  json.formConfig = configWrapper.config;
11414
11464
  json.widgetList = configWrapper.schema;
@@ -11435,14 +11485,15 @@ const _sfc_main$5g = {
11435
11485
  this.$message.success(this.i18nt("designer.hint.loadFormTemplateSuccess"));
11436
11486
  return;
11437
11487
  }
11438
- axios$1.get(jsonUrl).then((res) => {
11488
+ service.get(jsonUrl).then((res) => {
11439
11489
  let modifiedFlag = false;
11440
- if (typeof res.data === "string") {
11441
- console.log(this.designer, JSON.parse(res.data), "json1");
11442
- modifiedFlag = this.designer.loadFormJson(JSON.parse(res.data));
11443
- } else if (res.data.constructor === Object) {
11444
- console.log(this.designer, res.data, "json2");
11445
- modifiedFlag = this.designer.loadFormJson(res.data);
11490
+ const data2 = res == null ? void 0 : res.data;
11491
+ if (typeof data2 === "string") {
11492
+ console.log(this.designer, JSON.parse(data2), "json1");
11493
+ modifiedFlag = this.designer.loadFormJson(JSON.parse(data2));
11494
+ } else if (data2 && data2.constructor === Object) {
11495
+ console.log(this.designer, data2, "json2");
11496
+ modifiedFlag = this.designer.loadFormJson(data2);
11446
11497
  }
11447
11498
  if (modifiedFlag) {
11448
11499
  this.designer.emitHistoryChange();
@@ -11999,7 +12050,7 @@ function _sfc_render$5e(_ctx, _cache, $props, $setup, $data, $options) {
11999
12050
  _: 1
12000
12051
  });
12001
12052
  }
12002
- var WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5g, [["render", _sfc_render$5e], ["__scopeId", "data-v-9255e958"]]);
12053
+ var WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5g, [["render", _sfc_render$5e], ["__scopeId", "data-v-1c6be41c"]]);
12003
12054
  var emitter = {
12004
12055
  data() {
12005
12056
  return {
@@ -12895,21 +12946,12 @@ const _sfc_main$5c = {
12895
12946
  this.historyList = [];
12896
12947
  return;
12897
12948
  }
12898
- const token = almLocalStorage.getItem("token");
12899
- const rToken = almLocalStorage.getItem("rToken");
12900
- const tokenTime = almLocalStorage.getItem("tokenTime");
12901
- const headers = {};
12902
- if (token !== null)
12903
- headers["Authorization"] = "Bearer " + token;
12904
- if (!tokenTime && rToken) {
12905
- headers["X-Authorization"] = "Bearer " + rToken;
12906
- }
12907
12949
  const params = {
12908
12950
  biz_meta_id: bizMetaId
12909
12951
  };
12910
12952
  params.clue_id = (_b2 = (_a2 = this.formConfig) == null ? void 0 : _a2.v_form_params) == null ? void 0 : _b2.CrmClueId;
12911
12953
  const url = commonGETUrlTranslation("case_module/biz_metadata_history_value", params);
12912
- const response = await axios$1.get(url, { headers });
12954
+ const response = await service.get(url);
12913
12955
  if (((_c2 = response == null ? void 0 : response.data) == null ? void 0 : _c2.Succeeded) && Array.isArray((_d2 = response == null ? void 0 : response.data) == null ? void 0 : _d2.Data)) {
12914
12956
  this.historyList = this.filterHistoryList(response.data.Data);
12915
12957
  } else {
@@ -13369,7 +13411,7 @@ function _sfc_render$5b(_ctx, _cache, $props, $setup, $data, $options) {
13369
13411
  ], 64)) : createCommentVNode("", true)
13370
13412
  ], 2);
13371
13413
  }
13372
- var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5c, [["render", _sfc_render$5b], ["__scopeId", "data-v-2c42715a"]]);
13414
+ var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5c, [["render", _sfc_render$5b], ["__scopeId", "data-v-c66a6430"]]);
13373
13415
  var __glob_0_11$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13374
13416
  __proto__: null,
13375
13417
  "default": FormItemWrapper
@@ -39111,8 +39153,8 @@ function indentString(state, cols) {
39111
39153
  function getIndentation(context, pos) {
39112
39154
  if (context instanceof EditorState)
39113
39155
  context = new IndentContext(context);
39114
- for (let service of context.state.facet(indentService)) {
39115
- let result = service(context, pos);
39156
+ for (let service2 of context.state.facet(indentService)) {
39157
+ let result = service2(context, pos);
39116
39158
  if (result !== void 0)
39117
39159
  return result;
39118
39160
  }
@@ -39350,8 +39392,8 @@ function isUnfinished(node) {
39350
39392
  return ch2 && ch2.to == node.to && ch2.type.isError;
39351
39393
  }
39352
39394
  function foldable(state, lineStart, lineEnd) {
39353
- for (let service of state.facet(foldService)) {
39354
- let result = service(state, lineStart, lineEnd);
39395
+ for (let service2 of state.facet(foldService)) {
39396
+ let result = service2(state, lineStart, lineEnd);
39355
39397
  if (result)
39356
39398
  return result;
39357
39399
  }
@@ -152541,7 +152583,7 @@ async function getOSSConfigWithCache$1() {
152541
152583
  if (pendingOSSRequest$1) {
152542
152584
  return await pendingOSSRequest$1;
152543
152585
  }
152544
- pendingOSSRequest$1 = axios$1.post(`https://data.yuanjia101.com/api/SmallTools/PutObjectSignPolicy`).then((res) => {
152586
+ pendingOSSRequest$1 = axios.post(`https://data.yuanjia101.com/api/SmallTools/PutObjectSignPolicy`).then((res) => {
152545
152587
  const config2 = {
152546
152588
  key_id: res.data.accessKeyId,
152547
152589
  base64policy: res.data.policy,
@@ -152671,15 +152713,6 @@ const _sfc_main$50 = {
152671
152713
  return;
152672
152714
  try {
152673
152715
  this.loading = true;
152674
- const token = almLocalStorage.getItem("token");
152675
- const rToken = almLocalStorage.getItem("rToken");
152676
- const tokenTime = almLocalStorage.getItem("tokenTime");
152677
- const headers = {};
152678
- if (token !== null)
152679
- headers["Authorization"] = "Bearer " + token;
152680
- if (!tokenTime && rToken) {
152681
- headers["X-Authorization"] = "Bearer " + rToken;
152682
- }
152683
152716
  const clueId = (_b2 = (_a2 = this.formConfig) == null ? void 0 : _a2.v_form_params) == null ? void 0 : _b2.CrmClueId;
152684
152717
  if (!clueId) {
152685
152718
  console.warn("\u7535\u5B50\u5377\u5B97\uFF1A\u672A\u627E\u5230\u7EBF\u7D22ID");
@@ -152691,7 +152724,7 @@ const _sfc_main$50 = {
152691
152724
  clue_id: clueId
152692
152725
  };
152693
152726
  const url = commonGETUrlTranslation("case_module/get_electronic_case_form", params);
152694
- const response = await axios$1.get(url, { headers });
152727
+ const response = await service.get(url);
152695
152728
  if (((_c2 = response == null ? void 0 : response.data) == null ? void 0 : _c2.Succeeded) && ((_d2 = response == null ? void 0 : response.data) == null ? void 0 : _d2.Data)) {
152696
152729
  const data2 = response.data.Data;
152697
152730
  this.responseData = data2;
@@ -153144,20 +153177,13 @@ const _sfc_main$50 = {
153144
153177
  }
153145
153178
  ]
153146
153179
  };
153147
- const token = almLocalStorage.getItem("token");
153148
- const rToken = almLocalStorage.getItem("rToken");
153149
- const tokenTime = almLocalStorage.getItem("tokenTime");
153150
- const headers = {
153151
- "Content-Type": "application/json"
153152
- };
153153
- if (token !== null)
153154
- headers["Authorization"] = "Bearer " + token;
153155
- if (!tokenTime && rToken) {
153156
- headers["X-Authorization"] = "Bearer " + rToken;
153157
- }
153158
153180
  const url = commonGETUrlTranslation("formset/concrete_save", {});
153159
153181
  const postUrl = url.split("?")[0];
153160
- const response = await axios$1.post(postUrl, params, { headers });
153182
+ const response = await service.post(postUrl, params, {
153183
+ headers: {
153184
+ "Content-Type": "application/json"
153185
+ }
153186
+ });
153161
153187
  if ((_m2 = response == null ? void 0 : response.data) == null ? void 0 : _m2.Succeeded) {
153162
153188
  (_o2 = (_n2 = this.$message) == null ? void 0 : _n2.success) == null ? void 0 : _o2.call(_n2, "\u4FDD\u5B58\u6210\u529F");
153163
153189
  this.closeUpload();
@@ -153960,7 +153986,7 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
153960
153986
  _: 1
153961
153987
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
153962
153988
  }
153963
- var electronicCaseWidget = /* @__PURE__ */ _export_sfc(_sfc_main$50, [["render", _sfc_render$50], ["__scopeId", "data-v-737c2fd3"]]);
153989
+ var electronicCaseWidget = /* @__PURE__ */ _export_sfc(_sfc_main$50, [["render", _sfc_render$50], ["__scopeId", "data-v-74910f82"]]);
153964
153990
  var __glob_0_9$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
153965
153991
  __proto__: null,
153966
153992
  "default": electronicCaseWidget
@@ -156889,21 +156915,14 @@ async function getOSSConfigWithCache() {
156889
156915
  if (pendingOSSRequest) {
156890
156916
  return await pendingOSSRequest;
156891
156917
  }
156892
- const token = almLocalStorage.getItem("token");
156893
- const rToken = almLocalStorage.getItem("rToken");
156894
- const tokenTime = almLocalStorage.getItem("tokenTime");
156895
- const headers = {};
156896
- if (token !== null)
156897
- headers["Authorization"] = "Bearer " + token;
156898
- if (!tokenTime && rToken) {
156899
- headers["X-Authorization"] = "Bearer " + rToken;
156900
- }
156901
156918
  const url = commonGETApiTranslation("api/SysFile/OssSign");
156902
- pendingOSSRequest = axios$1.get(url, { headers }).then((res) => {
156919
+ pendingOSSRequest = service.get(url).then((res) => {
156920
+ var _a2;
156921
+ const data2 = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data);
156903
156922
  const config2 = {
156904
156923
  key_id: "LTAIFRkpHKDTK5dv",
156905
- base64policy: res.data.Data.policy,
156906
- signature: res.data.Data.signature
156924
+ base64policy: data2.policy,
156925
+ signature: data2.signature
156907
156926
  };
156908
156927
  return config2;
156909
156928
  }).catch((error2) => {
@@ -157324,7 +157343,7 @@ function _sfc_render$4W(_ctx, _cache, $props, $setup, $data, $options) {
157324
157343
  _: 1
157325
157344
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
157326
157345
  }
157327
- var pictureUploadWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4W, [["render", _sfc_render$4W], ["__scopeId", "data-v-15438873"]]);
157346
+ var pictureUploadWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4W, [["render", _sfc_render$4W], ["__scopeId", "data-v-4d90aaae"]]);
157328
157347
  var __glob_0_16$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
157329
157348
  __proto__: null,
157330
157349
  "default": pictureUploadWidget
@@ -169457,15 +169476,6 @@ const _sfc_main$4R = {
169457
169476
  remoteQuery(query) {
169458
169477
  let that = this;
169459
169478
  almLocalStorage.removeItem("formId");
169460
- let header = {};
169461
- const token = almLocalStorage.getItem("token");
169462
- const rToken = almLocalStorage.getItem("rToken");
169463
- const tokenTime = almLocalStorage.getItem("tokenTime");
169464
- if (token !== null)
169465
- header["Authorization"] = "Bearer " + token;
169466
- if (!tokenTime && rToken) {
169467
- header["X-Authorization"] = "Bearer " + rToken;
169468
- }
169469
169479
  if (query !== "") {
169470
169480
  this.loading = true;
169471
169481
  let url = "";
@@ -169483,12 +169493,11 @@ const _sfc_main$4R = {
169483
169493
  });
169484
169494
  const request_url = commonGETUrlTranslation("formset/formset_construct_manage");
169485
169495
  if (url.requestMethod == "post") {
169486
- axios[url.requestMethod](request_url, {
169496
+ service.post(request_url, {
169487
169497
  keywords: query
169488
- }, {
169489
- headers: header
169490
169498
  }).then((result) => {
169491
- let requestData = result.data.Data.Items || result.data.Data || [];
169499
+ var _a2, _b2, _c2, _d2;
169500
+ let requestData = ((_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) || ((_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.Data) || ((_d2 = result == null ? void 0 : result.data) == null ? void 0 : _d2.Items) || (result == null ? void 0 : result.data) || [];
169492
169501
  requestData.forEach((dtem) => {
169493
169502
  dtem.label = dtem[url.labelKey];
169494
169503
  dtem.value = dtem[url.valueKey];
@@ -169496,10 +169505,9 @@ const _sfc_main$4R = {
169496
169505
  that.field.options.optionItems = requestData;
169497
169506
  });
169498
169507
  } else {
169499
- axios[url.requestMethod](`${url.requestURL}?keywords=${query}`, {
169500
- headers: header
169501
- }).then((result) => {
169502
- let requestData = result.data.Data.Items || result.data.Data || [];
169508
+ service.get(`${url.requestURL}?keywords=${query}`).then((result) => {
169509
+ var _a2, _b2, _c2, _d2;
169510
+ let requestData = ((_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) || ((_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.Data) || ((_d2 = result == null ? void 0 : result.data) == null ? void 0 : _d2.Items) || (result == null ? void 0 : result.data) || [];
169503
169511
  requestData.forEach((dtem) => {
169504
169512
  dtem.label = dtem[url.labelKey];
169505
169513
  dtem.value = dtem[url.valueKey];
@@ -169601,7 +169609,7 @@ function _sfc_render$4R(_ctx, _cache, $props, $setup, $data, $options) {
169601
169609
  _: 1
169602
169610
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
169603
169611
  }
169604
- var selectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4R, [["render", _sfc_render$4R], ["__scopeId", "data-v-0b5ebede"]]);
169612
+ var selectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4R, [["render", _sfc_render$4R], ["__scopeId", "data-v-7a5c89b7"]]);
169605
169613
  var __glob_0_20$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
169606
169614
  __proto__: null,
169607
169615
  "default": selectWidget
@@ -172432,21 +172440,12 @@ const _sfc_main$4D = {
172432
172440
  async init() {
172433
172441
  var _a2;
172434
172442
  try {
172435
- const token = almLocalStorage.getItem("token");
172436
- const rToken = almLocalStorage.getItem("rToken");
172437
- const tokenTime = almLocalStorage.getItem("tokenTime");
172438
- let headers = {};
172439
- if (token !== null)
172440
- headers["Authorization"] = "Bearer " + token;
172441
- if (!tokenTime && rToken) {
172442
- headers["X-Authorization"] = "Bearer " + rToken;
172443
- }
172444
- this.headers = headers;
172445
172443
  const url = commonGETUrlTranslation("formset/formset_construct_detail", {
172446
172444
  data_id: this.widget.options.childFormKey
172447
172445
  });
172448
- const res = await axios.get(url, { headers });
172449
- const { config: config2 = {}, schema = {} } = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data;
172446
+ const res = await service.get(url);
172447
+ const data2 = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data) || {};
172448
+ const { config: config2 = {}, schema = {} } = data2;
172450
172449
  this.widgetList = schema;
172451
172450
  this.callSetHidden();
172452
172451
  this.initLayoutProps();
@@ -172614,7 +172613,7 @@ function _sfc_render$4D(_ctx, _cache, $props, $setup, $data, $options) {
172614
172613
  [vShow, $options.isParentWidget($props.widget) && !$props.widget.options.hidden]
172615
172614
  ]);
172616
172615
  }
172617
- var childFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4D, [["render", _sfc_render$4D], ["__scopeId", "data-v-03bc21d6"]]);
172616
+ var childFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4D, [["render", _sfc_render$4D], ["__scopeId", "data-v-563fbfe9"]]);
172618
172617
  var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
172619
172618
  __proto__: null,
172620
172619
  "default": childFormItem
@@ -180397,17 +180396,8 @@ const _sfc_main$4l = {
180397
180396
  },
180398
180397
  async initDataSourceList() {
180399
180398
  try {
180400
- const token = almLocalStorage.getItem("token");
180401
- const rToken = almLocalStorage.getItem("rToken");
180402
- const tokenTime = almLocalStorage.getItem("tokenTime");
180403
- let headers = {};
180404
- if (token !== null)
180405
- headers["Authorization"] = "Bearer " + token;
180406
- if (!tokenTime && rToken) {
180407
- headers["X-Authorization"] = "Bearer " + rToken;
180408
- }
180409
180399
  const url = commonGETUrlTranslation("formset/data_source_manage", { is_all: 1 });
180410
- return axios$1.get(url, { headers });
180400
+ return service.get(url);
180411
180401
  } catch (error2) {
180412
180402
  console.error(error2);
180413
180403
  }
@@ -180434,9 +180424,8 @@ const _sfc_main$4l = {
180434
180424
  try {
180435
180425
  const res = await processChildForms(newFormJsonObj.widgetList);
180436
180426
  this.buildFormModel(res);
180437
- console.log(res, "res");
180438
180427
  const source2 = await this.initDataSourceList();
180439
- this.$store.commit("setDataSourceList", ((_a2 = source2 == null ? void 0 : source2.data) == null ? void 0 : _a2.Data) || []);
180428
+ this.$store.commit("setDataSourceList", ((_a2 = source2 == null ? void 0 : source2.data) == null ? void 0 : _a2.Data) || (source2 == null ? void 0 : source2.data) || []);
180440
180429
  this.formJsonObj["formConfig"] = newFormJsonObj.formConfig;
180441
180430
  this.formJsonObj["widgetList"] = res;
180442
180431
  this.insertCustomStyleAndScriptNode();
@@ -180917,21 +180906,12 @@ const _sfc_main$4l = {
180917
180906
  this.previewHistoryList = [];
180918
180907
  return;
180919
180908
  }
180920
- const token = almLocalStorage.getItem("token");
180921
- const rToken = almLocalStorage.getItem("rToken");
180922
- const tokenTime = almLocalStorage.getItem("tokenTime");
180923
- const headers = {};
180924
- if (token !== null)
180925
- headers["Authorization"] = "Bearer " + token;
180926
- if (!tokenTime && rToken) {
180927
- headers["X-Authorization"] = "Bearer " + rToken;
180928
- }
180929
180909
  const params = {
180930
180910
  biz_meta_id: bizMetaId
180931
180911
  };
180932
180912
  params.clue_id = 760262393454661;
180933
180913
  const url = commonGETUrlTranslation("case_module/biz_metadata_history_value", params);
180934
- const response = await axios$1.get(url, { headers });
180914
+ const response = await service.get(url);
180935
180915
  if (((_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.Succeeded) && Array.isArray((_b2 = response == null ? void 0 : response.data) == null ? void 0 : _b2.Data)) {
180936
180916
  this.previewHistoryList = this.filterHistoryList(response.data.Data);
180937
180917
  } else {
@@ -181985,7 +181965,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
181985
181965
  [_directive_loading, $data.formLoading]
181986
181966
  ]);
181987
181967
  }
181988
- var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-d55c19a2"]]);
181968
+ var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-664b88a2"]]);
181989
181969
  var ace$2 = { exports: {} };
181990
181970
  (function(module, exports) {
181991
181971
  (function() {
@@ -215625,16 +215605,6 @@ const _sfc_main$46 = {
215625
215605
  };
215626
215606
  },
215627
215607
  mounted() {
215628
- const token = almLocalStorage.getItem("token");
215629
- const rToken = almLocalStorage.getItem("rToken");
215630
- const tokenTime = almLocalStorage.getItem("tokenTime");
215631
- let headers = {};
215632
- if (token !== null)
215633
- headers["Authorization"] = "Bearer " + token;
215634
- if (!tokenTime && rToken) {
215635
- headers["X-Authorization"] = "Bearer " + rToken;
215636
- }
215637
- this.headers = headers;
215638
215608
  },
215639
215609
  methods: {
215640
215610
  loadFormList(keywords2 = "") {
@@ -215644,9 +215614,10 @@ const _sfc_main$46 = {
215644
215614
  }
215645
215615
  const url = commonGETUrlTranslation("formset/formset_construct_manage", params);
215646
215616
  this.loading = true;
215647
- axios$1.get(url, { headers: this.headers }).then((res) => {
215648
- var _a2, _b2, _c2;
215649
- this.optionList = ((_c2 = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) == null ? void 0 : _c2.map((item) => ({
215617
+ service.get(url).then((res) => {
215618
+ var _a2, _b2;
215619
+ const data2 = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data);
215620
+ this.optionList = ((_b2 = data2 == null ? void 0 : data2.Items) == null ? void 0 : _b2.map((item) => ({
215650
215621
  label: `${item == null ? void 0 : item.name} - ${item == null ? void 0 : item.id}`,
215651
215622
  value: item == null ? void 0 : item.id,
215652
215623
  name: item == null ? void 0 : item.name
@@ -219513,23 +219484,17 @@ const _sfc_main$3f = {
219513
219484
  const that = this;
219514
219485
  clearTimeout(this.timeout);
219515
219486
  this.timeout = setTimeout(() => {
219516
- const token = almLocalStorage.getItem("token");
219517
- const rToken = almLocalStorage.getItem("rToken");
219518
- const tokenTime = almLocalStorage.getItem("tokenTime");
219519
- let header = {};
219520
- if (token !== null)
219521
- header["Authorization"] = "Bearer " + token;
219522
- if (!tokenTime && rToken) {
219523
- header["X-Authorization"] = "Bearer " + rToken;
219524
- }
219487
+ almLocalStorage.getItem("token");
219488
+ almLocalStorage.getItem("rToken");
219489
+ almLocalStorage.getItem("tokenTime");
219525
219490
  const url = commonGETUrlTranslation("formset/form_type_search", { form_type: that.selectedWidget.type, keywords: queryString });
219526
- axios$1.get(url, {
219527
- headers: header
219528
- }).then((res) => {
219529
- res.data.Data.forEach((element) => {
219491
+ service.get(url).then((res) => {
219492
+ var _a2;
219493
+ const data2 = ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data) || [];
219494
+ data2.forEach((element) => {
219530
219495
  element.value = `${element.id} ${element.name}`;
219531
219496
  });
219532
- cb2(res.data.Data);
219497
+ cb2(data2);
219533
219498
  });
219534
219499
  }, 300);
219535
219500
  },
@@ -237261,18 +237226,9 @@ const _sfc_main$7 = {
237261
237226
  async initDataSourceList() {
237262
237227
  var _a2;
237263
237228
  try {
237264
- const token = almLocalStorage.getItem("token");
237265
- const rToken = almLocalStorage.getItem("rToken");
237266
- const tokenTime = almLocalStorage.getItem("tokenTime");
237267
- let headers = {};
237268
- if (token !== null)
237269
- headers["Authorization"] = "Bearer " + token;
237270
- if (!tokenTime && rToken) {
237271
- headers["X-Authorization"] = "Bearer " + rToken;
237272
- }
237273
237229
  const url = commonGETUrlTranslation("formset/data_source_manage", { is_all: 1 });
237274
- const res = await axios$1.get(url, { headers });
237275
- this.$store.commit("setDataSourceList", ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || []);
237230
+ const res = await service.get(url);
237231
+ this.$store.commit("setDataSourceList", ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) || (res == null ? void 0 : res.data) || []);
237276
237232
  } catch (error2) {
237277
237233
  console.error(error2);
237278
237234
  }
@@ -237316,8 +237272,9 @@ const _sfc_main$7 = {
237316
237272
  if (!this.caseName) {
237317
237273
  return;
237318
237274
  }
237319
- axios$1.get(MOCK_CASE_URL + this.caseName + ".txt").then((res) => {
237320
- if (!!res.data.code) {
237275
+ service.get(MOCK_CASE_URL + this.caseName + ".txt").then((res) => {
237276
+ var _a2;
237277
+ if (!!((_a2 = res.data) == null ? void 0 : _a2.code)) {
237321
237278
  this.$message.error(this.i18nt("designer.hint.sampleLoadedFail"));
237322
237279
  return;
237323
237280
  }
@@ -237352,7 +237309,7 @@ const _sfc_main$7 = {
237352
237309
  return;
237353
237310
  }
237354
237311
  let headers = this.fieldListApi.headers || {};
237355
- axios$1.get(this.fieldListApi.URL, { "headers": headers }).then((res) => {
237312
+ service.get(this.fieldListApi.URL, { "headers": headers }).then((res) => {
237356
237313
  let labelKey = this.fieldListApi.labelKey || "label";
237357
237314
  let nameKey = this.fieldListApi.nameKey || "name";
237358
237315
  let resDataName = this.fieldListApi.resultDataName || "";
@@ -237729,7 +237686,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
237729
237686
  _: 3
237730
237687
  });
237731
237688
  }
237732
- var VFormDesigner = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-4373eb13"]]);
237689
+ var VFormDesigner = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-6872152a"]]);
237733
237690
  var vuedraggable_umd = { exports: {} };
237734
237691
  (function(module, exports) {
237735
237692
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -241303,13 +241260,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
241303
241260
  if (typeof window !== "undefined") {
241304
241261
  let loadSvg = function() {
241305
241262
  var body = document.body;
241306
- var svgDom = document.getElementById("__svg__icons__dom__1769069345142__");
241263
+ var svgDom = document.getElementById("__svg__icons__dom__1769137161347__");
241307
241264
  if (!svgDom) {
241308
241265
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
241309
241266
  svgDom.style.position = "absolute";
241310
241267
  svgDom.style.width = "0";
241311
241268
  svgDom.style.height = "0";
241312
- svgDom.id = "__svg__icons__dom__1769069345142__";
241269
+ svgDom.id = "__svg__icons__dom__1769137161347__";
241313
241270
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
241314
241271
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
241315
241272
  }
@@ -242357,15 +242314,6 @@ const _sfc_main$3 = {
242357
242314
  remoteQuery(query) {
242358
242315
  let that = this;
242359
242316
  almLocalStorage.removeItem("formId");
242360
- let header = {};
242361
- const token = almLocalStorage.getItem("token");
242362
- const rToken = almLocalStorage.getItem("rToken");
242363
- const tokenTime = almLocalStorage.getItem("tokenTime");
242364
- if (token !== null)
242365
- header["Authorization"] = "Bearer " + token;
242366
- if (!tokenTime && rToken) {
242367
- header["X-Authorization"] = "Bearer " + rToken;
242368
- }
242369
242317
  if (query !== "") {
242370
242318
  this.loading = true;
242371
242319
  let url = "";
@@ -242383,12 +242331,11 @@ const _sfc_main$3 = {
242383
242331
  });
242384
242332
  const request_url = commonGETUrlTranslation("formset/formset_construct_manage");
242385
242333
  if (url.requestMethod == "post") {
242386
- axios$1[url.requestMethod](request_url, {
242334
+ service.post(request_url, {
242387
242335
  keywords: query
242388
- }, {
242389
- headers: header
242390
242336
  }).then((result) => {
242391
- let requestData = result.data.Data.Items || result.data.Data || [];
242337
+ var _a2, _b2, _c2, _d2;
242338
+ let requestData = ((_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) || ((_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.Data) || ((_d2 = result == null ? void 0 : result.data) == null ? void 0 : _d2.Items) || (result == null ? void 0 : result.data) || [];
242392
242339
  requestData.forEach((dtem) => {
242393
242340
  dtem.label = dtem[url.labelKey];
242394
242341
  dtem.value = dtem[url.valueKey];
@@ -242396,10 +242343,9 @@ const _sfc_main$3 = {
242396
242343
  that.field.options.optionItems = requestData;
242397
242344
  });
242398
242345
  } else {
242399
- axios$1[url.requestMethod](`${url.requestURL}?keywords=${query}`, {
242400
- headers: header
242401
- }).then((result) => {
242402
- let requestData = result.data.Data.Items || result.data.Data || [];
242346
+ service.get(`${url.requestURL}?keywords=${query}`).then((result) => {
242347
+ var _a2, _b2, _c2, _d2;
242348
+ let requestData = ((_b2 = (_a2 = result == null ? void 0 : result.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) || ((_c2 = result == null ? void 0 : result.data) == null ? void 0 : _c2.Data) || ((_d2 = result == null ? void 0 : result.data) == null ? void 0 : _d2.Items) || (result == null ? void 0 : result.data) || [];
242403
242349
  requestData.forEach((dtem) => {
242404
242350
  dtem.label = dtem[url.labelKey];
242405
242351
  dtem.value = dtem[url.valueKey];
@@ -242505,7 +242451,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
242505
242451
  __: [2]
242506
242452
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
242507
242453
  }
242508
- var SelectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-318ec61e"]]);
242454
+ var SelectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-4d9318fb"]]);
242509
242455
  var DIYtableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
242510
242456
  const _sfc_main$2 = {
242511
242457
  name: "DIYtable-widget",