yuanjia-form-pro-standard 1.1.6-beta6.1 → 1.1.6-beta6.2
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 +33 -25
- package/designer.style.css +1 -1
- package/designer.umd.js +2 -2
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -175154,9 +175154,10 @@ const _sfc_main$4l = {
|
|
|
175154
175154
|
data() {
|
|
175155
175155
|
return {
|
|
175156
175156
|
previewData: [],
|
|
175157
|
-
previewHistoryPopoverVisible:
|
|
175158
|
-
previewHistoryLoading:
|
|
175159
|
-
previewHistoryList:
|
|
175157
|
+
previewHistoryPopoverVisible: false,
|
|
175158
|
+
previewHistoryLoading: false,
|
|
175159
|
+
previewHistoryList: [],
|
|
175160
|
+
currentPreviewHistoryBizMetaId: null,
|
|
175160
175161
|
formJsonObj: this.formJson,
|
|
175161
175162
|
formDataModel: {},
|
|
175162
175163
|
widgetRefList: {},
|
|
@@ -176130,23 +176131,25 @@ const _sfc_main$4l = {
|
|
|
176130
176131
|
return;
|
|
176131
176132
|
}
|
|
176132
176133
|
const bizMetaId = item.biz_meta_id;
|
|
176133
|
-
if (this.previewHistoryPopoverVisible
|
|
176134
|
-
this
|
|
176134
|
+
if (this.previewHistoryPopoverVisible && this.currentPreviewHistoryBizMetaId === bizMetaId) {
|
|
176135
|
+
this.previewHistoryPopoverVisible = false;
|
|
176136
|
+
this.currentPreviewHistoryBizMetaId = null;
|
|
176135
176137
|
return;
|
|
176136
176138
|
}
|
|
176137
|
-
this
|
|
176139
|
+
this.currentPreviewHistoryBizMetaId = bizMetaId;
|
|
176140
|
+
this.previewHistoryPopoverVisible = true;
|
|
176138
176141
|
await this.loadPreviewHistoryRecord(bizMetaId);
|
|
176139
176142
|
},
|
|
176140
176143
|
async loadPreviewHistoryRecord(bizMetaId) {
|
|
176141
176144
|
var _a2, _b2, _c2, _d2, _e;
|
|
176142
|
-
if (this.previewHistoryLoading
|
|
176145
|
+
if (this.previewHistoryLoading) {
|
|
176143
176146
|
return;
|
|
176144
176147
|
}
|
|
176145
176148
|
try {
|
|
176146
|
-
this
|
|
176147
|
-
this
|
|
176149
|
+
this.previewHistoryLoading = true;
|
|
176150
|
+
this.previewHistoryList = [];
|
|
176148
176151
|
if (!bizMetaId) {
|
|
176149
|
-
this
|
|
176152
|
+
this.previewHistoryList = [];
|
|
176150
176153
|
return;
|
|
176151
176154
|
}
|
|
176152
176155
|
const token = almLocalStorage.getItem("token");
|
|
@@ -176165,15 +176168,15 @@ const _sfc_main$4l = {
|
|
|
176165
176168
|
const url = commonGETUrlTranslation("case_module/biz_metadata_history_value", params);
|
|
176166
176169
|
const response = await axios$1.get(url, { headers });
|
|
176167
176170
|
if (((_d2 = response == null ? void 0 : response.data) == null ? void 0 : _d2.Succeeded) && Array.isArray((_e = response == null ? void 0 : response.data) == null ? void 0 : _e.Data)) {
|
|
176168
|
-
this
|
|
176171
|
+
this.previewHistoryList = response.data.Data;
|
|
176169
176172
|
} else {
|
|
176170
|
-
this
|
|
176173
|
+
this.previewHistoryList = [];
|
|
176171
176174
|
}
|
|
176172
176175
|
} catch (error2) {
|
|
176173
176176
|
console.error("\u83B7\u53D6\u5386\u53F2\u8BB0\u5F55\u5931\u8D25:", error2);
|
|
176174
|
-
this
|
|
176177
|
+
this.previewHistoryList = [];
|
|
176175
176178
|
} finally {
|
|
176176
|
-
this
|
|
176179
|
+
this.previewHistoryLoading = false;
|
|
176177
176180
|
}
|
|
176178
176181
|
},
|
|
176179
176182
|
hasParentLogic(item) {
|
|
@@ -176951,8 +176954,13 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
176951
176954
|
}, [
|
|
176952
176955
|
$props.enableHistoryView && item.biz_meta_id ? (openBlock(), createBlock(_component_el_popover, {
|
|
176953
176956
|
key: 0,
|
|
176954
|
-
visible: $data.previewHistoryPopoverVisible
|
|
176955
|
-
"onUpdate:visible":
|
|
176957
|
+
visible: $data.previewHistoryPopoverVisible && $data.currentPreviewHistoryBizMetaId === item.biz_meta_id,
|
|
176958
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = (val) => {
|
|
176959
|
+
if (!val) {
|
|
176960
|
+
$data.previewHistoryPopoverVisible = false;
|
|
176961
|
+
$data.currentPreviewHistoryBizMetaId = null;
|
|
176962
|
+
}
|
|
176963
|
+
}),
|
|
176956
176964
|
placement: "top-start",
|
|
176957
176965
|
width: 400,
|
|
176958
176966
|
trigger: "manual",
|
|
@@ -176966,17 +176974,17 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
176966
176974
|
]),
|
|
176967
176975
|
default: withCtx(() => [
|
|
176968
176976
|
createElementVNode("div", _hoisted_4$g, [
|
|
176969
|
-
_cache[
|
|
176970
|
-
$data.previewHistoryLoading
|
|
176977
|
+
_cache[3] || (_cache[3] = createElementVNode("div", { class: "history-header" }, "\u5386\u53F2\u8BB0\u5F55", -1)),
|
|
176978
|
+
$data.previewHistoryLoading ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
176971
176979
|
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
176972
176980
|
default: withCtx(() => [
|
|
176973
176981
|
createVNode(_component_Loading)
|
|
176974
176982
|
]),
|
|
176975
176983
|
_: 1
|
|
176976
176984
|
}),
|
|
176977
|
-
_cache[
|
|
176978
|
-
])) : !$data.previewHistoryList
|
|
176979
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($data.previewHistoryList
|
|
176985
|
+
_cache[2] || (_cache[2] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
|
|
176986
|
+
])) : !$data.previewHistoryList || $data.previewHistoryList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$b, "\u6682\u65E0\u5386\u53F2\u8BB0\u5F55")) : (openBlock(), createElementBlock("div", _hoisted_7$9, [
|
|
176987
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.previewHistoryList, (historyItem, historyIndex) => {
|
|
176980
176988
|
return openBlock(), createElementBlock("div", {
|
|
176981
176989
|
key: historyIndex,
|
|
176982
176990
|
class: "history-item"
|
|
@@ -177003,7 +177011,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177003
177011
|
])
|
|
177004
177012
|
]),
|
|
177005
177013
|
_: 2
|
|
177006
|
-
}, 1032, ["visible"
|
|
177014
|
+
}, 1032, ["visible"])) : (openBlock(), createElementBlock("div", _hoisted_14$3, toDisplayString(item == null ? void 0 : item.name), 1)),
|
|
177007
177015
|
Array.isArray(item.value) ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
177008
177016
|
item.type === "file-upload" || item.type === "picture-upload" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.value, (file) => {
|
|
177009
177017
|
return openBlock(), createElementBlock(Fragment, {
|
|
@@ -177048,7 +177056,7 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177048
177056
|
[_directive_loading, $data.formLoading]
|
|
177049
177057
|
]);
|
|
177050
177058
|
}
|
|
177051
|
-
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-
|
|
177059
|
+
var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-f49d4bec"]]);
|
|
177052
177060
|
var ace$2 = { exports: {} };
|
|
177053
177061
|
(function(module, exports) {
|
|
177054
177062
|
(function() {
|
|
@@ -236413,13 +236421,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
236413
236421
|
if (typeof window !== "undefined") {
|
|
236414
236422
|
let loadSvg = function() {
|
|
236415
236423
|
var body = document.body;
|
|
236416
|
-
var svgDom = document.getElementById("
|
|
236424
|
+
var svgDom = document.getElementById("__svg__icons__dom__1767770539178__");
|
|
236417
236425
|
if (!svgDom) {
|
|
236418
236426
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
236419
236427
|
svgDom.style.position = "absolute";
|
|
236420
236428
|
svgDom.style.width = "0";
|
|
236421
236429
|
svgDom.style.height = "0";
|
|
236422
|
-
svgDom.id = "
|
|
236430
|
+
svgDom.id = "__svg__icons__dom__1767770539178__";
|
|
236423
236431
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
236424
236432
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
236425
236433
|
}
|