agilebuilder-ui 1.1.65-tmp29 → 1.1.65-tmp30
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/index.full.min.js +137 -133
- package/dist/style.css +43 -43
- package/es/style.css +1134 -1134
- package/es/super-grid/src/apis.mjs +2 -1
- package/es/super-grid/src/dynamic-input.vue.mjs +5 -5
- package/es/super-grid/src/group-column.vue.mjs +6 -6
- package/es/super-grid/src/normal-column-content.vue.mjs +23 -20
- package/es/super-grid/src/normal-column.vue.mjs +12 -12
- package/es/super-grid/src/super-grid.vue.mjs +2 -2
- package/lib/style.css +1125 -1125
- package/lib/super-grid/src/apis.cjs +2 -1
- package/lib/super-grid/src/dynamic-input.vue.cjs +2 -2
- package/lib/super-grid/src/group-column.vue.cjs +3 -3
- package/lib/super-grid/src/normal-column-content.vue.cjs +7 -4
- package/lib/super-grid/src/normal-column.vue.cjs +10 -10
- package/lib/super-grid/src/super-grid.vue.cjs +2 -2
- package/package.json +2 -2
package/dist/index.full.min.js
CHANGED
|
@@ -2687,8 +2687,8 @@
|
|
|
2687
2687
|
this.selectResult = this.removeRow(this.selectResult, t2), this.selectResult && 0 !== this.selectResult.length || this.$refs.deparmentTree && this.$refs.deparmentTree.setCheckedKeys([]);
|
|
2688
2688
|
} }, emits: ["result"] }, _hoisted_1$1L = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "100%", display: "inline-block !important" } }, _hoisted_2$18 = ["title"], _hoisted_3$R = { key: 1, style: { height: "100%", overflow: "hidden" } }, _hoisted_4$C = { style: { "text-align": "left", "font-size": "16px" } }, _hoisted_5$s = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
|
|
2689
2689
|
function _sfc_render$1t(e2, t2, o, n, i2, a) {
|
|
2690
|
-
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-autocomplete"), r = Vue.resolveComponent("el-header"), u = Vue.resolveComponent("Menu"), c = Vue.resolveComponent("Tickets"), d = Vue.resolveComponent("Calendar"), p = Vue.resolveComponent("el-icon"), m = Vue.resolveComponent("el-tree"), h2 = Vue.resolveComponent("EmptyState"), g = Vue.resolveComponent("user-result"), f = Vue.resolveComponent("el-main"), A = Vue.resolveComponent("el-container"), y = Vue.resolveComponent("el-aside"),
|
|
2691
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(A, { style: { height: "395px" } }, { default: Vue.withCtx(() => [Vue.createVNode(y, { width: "350px" }, { default: Vue.withCtx(() => [Vue.createVNode(A, { style: { height: "390px" } }, { default: Vue.withCtx(() => [Vue.createVNode(r, { style: { "text-align": "right", "font-size": "12px", height: "35px" } }, { default: Vue.withCtx(() => [Vue.createVNode(s, { modelValue: i2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentTreeInline.pleaseEnterDepartmentName"), class: "inline-input inline-input-custom", size: "default", onSelect: e2.handleSelect, onKeyup: Vue.withKeys(e2.clickSearch, ["enter"]) }, { append: Vue.withCtx(() => [Vue.createVNode(l, { icon: i2.ElIconSearch, size: "default", onClick: e2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), Vue.createVNode(f, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [i2.searchValue ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [i2.canShowOrgTree ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1L, [Vue.createVNode(m, { ref: "deparmentTree", "filter-node-method": a.filterNode, load: e2.loadNode, props: i2.defaultProps, "show-checkbox": true, "check-strictly": "", lazy: "", "node-key": "id", onCheck: e2.handleCheckNode, onCheckChange: a.handleCheckChange, onNodeExpand: a.handleNodeExpand, onNodeClick: a.handleNodeClick }, { default: Vue.withCtx(({ node: e3, data: t3 }) => [Vue.createElementVNode("span", null, [Vue.createVNode(p, null, { default: Vue.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (Vue.openBlock(), Vue.createBlock(u, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (Vue.openBlock(), Vue.createBlock(c, { key: 1 })) : (Vue.openBlock(), Vue.createBlock(d, { key: 2 }))]), _: 2 }, 1024), Vue.createElementVNode("span", { title: e3.label }, Vue.toDisplayString(e3.label), 9, _hoisted_2$18)])]), _: 1 }, 8, ["filter-node-method", "load", "props", "onCheck", "onCheckChange", "onNodeExpand", "onNodeClick"])])) : (Vue.openBlock(), Vue.createBlock(h2, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), i2.searchValue && i2.searchValue.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3$R, [Vue.createVNode(g, { "grid-data": i2.searchResult, height: o.height, "is-search-result": true, multiple: true, "select-result": i2.selectResult, onAddUser: a.selectUser }, null, 8, ["grid-data", "height", "select-result", "onAddUser"])])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 })]), _: 1 }), Vue.createVNode(A, null, { default: Vue.withCtx(() => [Vue.createVNode(f, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_4$C, Vue.toDisplayString(e2.$t("departmentTreeInline.selectedDept")) + ":", 1), Vue.createElementVNode("div", _hoisted_5$s, [Vue.withDirectives(Vue.createVNode(g, { "grid-data": i2.selectResult, height: o.height, "is-search-result": false, multiple: true, onRemoveUser: a.removeUser }, null, 8, ["grid-data", "height", "onRemoveUser"]), [[
|
|
2690
|
+
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-autocomplete"), r = Vue.resolveComponent("el-header"), u = Vue.resolveComponent("Menu"), c = Vue.resolveComponent("Tickets"), d = Vue.resolveComponent("Calendar"), p = Vue.resolveComponent("el-icon"), m = Vue.resolveComponent("el-tree"), h2 = Vue.resolveComponent("EmptyState"), g = Vue.resolveComponent("user-result"), f = Vue.resolveComponent("el-main"), A = Vue.resolveComponent("el-container"), y = Vue.resolveComponent("el-aside"), C = Vue.resolveDirective("loading");
|
|
2691
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(A, { style: { height: "395px" } }, { default: Vue.withCtx(() => [Vue.createVNode(y, { width: "350px" }, { default: Vue.withCtx(() => [Vue.createVNode(A, { style: { height: "390px" } }, { default: Vue.withCtx(() => [Vue.createVNode(r, { style: { "text-align": "right", "font-size": "12px", height: "35px" } }, { default: Vue.withCtx(() => [Vue.createVNode(s, { modelValue: i2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentTreeInline.pleaseEnterDepartmentName"), class: "inline-input inline-input-custom", size: "default", onSelect: e2.handleSelect, onKeyup: Vue.withKeys(e2.clickSearch, ["enter"]) }, { append: Vue.withCtx(() => [Vue.createVNode(l, { icon: i2.ElIconSearch, size: "default", onClick: e2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), Vue.createVNode(f, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [i2.searchValue ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [i2.canShowOrgTree ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1L, [Vue.createVNode(m, { ref: "deparmentTree", "filter-node-method": a.filterNode, load: e2.loadNode, props: i2.defaultProps, "show-checkbox": true, "check-strictly": "", lazy: "", "node-key": "id", onCheck: e2.handleCheckNode, onCheckChange: a.handleCheckChange, onNodeExpand: a.handleNodeExpand, onNodeClick: a.handleNodeClick }, { default: Vue.withCtx(({ node: e3, data: t3 }) => [Vue.createElementVNode("span", null, [Vue.createVNode(p, null, { default: Vue.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (Vue.openBlock(), Vue.createBlock(u, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (Vue.openBlock(), Vue.createBlock(c, { key: 1 })) : (Vue.openBlock(), Vue.createBlock(d, { key: 2 }))]), _: 2 }, 1024), Vue.createElementVNode("span", { title: e3.label }, Vue.toDisplayString(e3.label), 9, _hoisted_2$18)])]), _: 1 }, 8, ["filter-node-method", "load", "props", "onCheck", "onCheckChange", "onNodeExpand", "onNodeClick"])])) : (Vue.openBlock(), Vue.createBlock(h2, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), i2.searchValue && i2.searchValue.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3$R, [Vue.createVNode(g, { "grid-data": i2.searchResult, height: o.height, "is-search-result": true, multiple: true, "select-result": i2.selectResult, onAddUser: a.selectUser }, null, 8, ["grid-data", "height", "select-result", "onAddUser"])])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 })]), _: 1 }), Vue.createVNode(A, null, { default: Vue.withCtx(() => [Vue.createVNode(f, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_4$C, Vue.toDisplayString(e2.$t("departmentTreeInline.selectedDept")) + ":", 1), Vue.createElementVNode("div", _hoisted_5$s, [Vue.withDirectives(Vue.createVNode(g, { "grid-data": i2.selectResult, height: o.height, "is-search-result": false, multiple: true, onRemoveUser: a.removeUser }, null, 8, ["grid-data", "height", "onRemoveUser"]), [[C, i2.isloading]])])]), _: 1 })]), _: 1 })]), _: 1 })]);
|
|
2692
2692
|
}
|
|
2693
2693
|
const InlineDepartmentMultiTree = _export_sfc(_sfc_main$2j, [["render", _sfc_render$1t]]), departmentSingleTreeInline_vue_vue_type_style_index_0_lang = "", _sfc_main$2i = { data: () => ({ filterText: "", defaultProps: { id: "id", label: "showName", children: "childDepartments", isLeaf: "leaf" }, searchParam: { searchValue: null, treeType: "DEPARTMENT_TREE", departmentInfo: null }, count: 0, containBranch: false, tenantNodeId: -1, allSearchNodeIds: [], allExpandNodeIds: [], isClickNode: false, restaurants: [], searchValue: null, searchStoreKey: "searchDepartment", selectNodeInfo: null, tenantInfo: {}, searchResult: [], memoryCacheKey: "DEPARTMENT_MEMORY_KEY", memoryCacheData: [], ElIconSearch: ElementPlusIconsVue.Search, canShowOrgTree: false, initTreeFlag: false }), name: "InlineDepartmentSingleTree", components: { UserResult: UserResult$1, EmptyState: _sfc_main$2k }, props: { departmentInfo: { type: Array, default: null }, height: { type: String, default: "300px" }, selectDepartmentInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "id" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" } }, computed: {}, watch: { filterText(e2) {
|
|
2694
2694
|
e2 || (this.searchValue = e2, this.departmentInfo && this.departmentInfo.length > 0 ? this.loadPointDepartments() : this.loadDepartment(this.tenantNodeId));
|
|
@@ -2906,18 +2906,18 @@
|
|
|
2906
2906
|
});
|
|
2907
2907
|
}
|
|
2908
2908
|
function A(e3, t3, n2) {
|
|
2909
|
-
o.multiple && (t3 ?
|
|
2909
|
+
o.multiple && (t3 ? C(e3) : w(e3));
|
|
2910
2910
|
}
|
|
2911
2911
|
function y(e3, t3, n2, i3) {
|
|
2912
2912
|
!o.multiple && e3.nodeType && "DEPARTMENT" === e3.nodeType && (c.value = [e3]);
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function C(e3) {
|
|
2915
2915
|
if (e3.nodeType && "DEPARTMENT" === e3.nodeType) {
|
|
2916
2916
|
const t3 = c.value.filter((t4) => t4.nodeId === e3.nodeId);
|
|
2917
2917
|
t3 && 0 !== t3.length || c.value.push(JSON.parse(JSON.stringify(e3)));
|
|
2918
2918
|
}
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2920
|
+
function w(e3) {
|
|
2921
2921
|
const t3 = c.value.findIndex((t4) => t4.nodeId === e3.nodeId);
|
|
2922
2922
|
c.value.splice(t3, 1), h2.value = false;
|
|
2923
2923
|
}
|
|
@@ -2926,11 +2926,11 @@
|
|
|
2926
2926
|
if (e3) {
|
|
2927
2927
|
const e4 = u.value.map((e5) => e5.nodeId);
|
|
2928
2928
|
a.value.setCheckedKeys(e4, false), u.value.forEach((e5) => {
|
|
2929
|
-
|
|
2929
|
+
C(e5);
|
|
2930
2930
|
});
|
|
2931
2931
|
} else
|
|
2932
2932
|
u.value.forEach((e4) => {
|
|
2933
|
-
|
|
2933
|
+
w(e4);
|
|
2934
2934
|
}), a.value.setCheckedKeys([], false);
|
|
2935
2935
|
}
|
|
2936
2936
|
function v(e3) {
|
|
@@ -2952,7 +2952,7 @@
|
|
|
2952
2952
|
o2.nodeId !== e3.nodeId && t4.push(o2.nodeId);
|
|
2953
2953
|
}), a.value.setCheckedKeys(t4, true);
|
|
2954
2954
|
}
|
|
2955
|
-
|
|
2955
|
+
w(e3);
|
|
2956
2956
|
}
|
|
2957
2957
|
function k() {
|
|
2958
2958
|
if (o.multiple) {
|
|
@@ -2991,11 +2991,11 @@
|
|
|
2991
2991
|
t3 = t3 - 110 - 60 - 60 - 60, e3.style.height = t3 + "px", e3.style.minHeight = "300px";
|
|
2992
2992
|
}();
|
|
2993
2993
|
}), (t3, o2) => {
|
|
2994
|
-
const n2 = Vue.resolveComponent("el-checkbox"), i3 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), s2 = Vue.resolveComponent("el-col"), f2 = Vue.resolveComponent("el-row"),
|
|
2995
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(
|
|
2994
|
+
const n2 = Vue.resolveComponent("el-checkbox"), i3 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), s2 = Vue.resolveComponent("el-col"), f2 = Vue.resolveComponent("el-row"), C2 = Vue.resolveComponent("el-card"), w2 = Vue.resolveComponent("el-empty"), E = Vue.resolveComponent("el-tree"), D = Vue.resolveComponent("el-button");
|
|
2995
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(C2, { class: "card-content", style: { height: "50px" } }, { default: Vue.withCtx(() => [Vue.createVNode(f2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(s2, { style: { width: "100%" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$1H, [Vue.createElementVNode("div", _hoisted_2$14, [e2.multiple ? (Vue.openBlock(), Vue.createBlock(n2, { key: 0, modelValue: Vue.unref(h2), "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Vue.isRef(h2) ? h2.value = e3 : h2 = e3), label: t3.$t("departmentTreeInline.allCheck"), value: "all", onChange: V }, null, 8, ["modelValue", "label"])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_3$N, [Vue.createVNode(l2, { modelValue: Vue.unref(g).searchValue, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => Vue.unref(g).searchValue = e3), placeholder: t3.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: x, onKeyup: Vue.withKeys(x, ["enter"]), onBlur: x, clearable: "" }, { suffix: Vue.withCtx(() => [Vue.createVNode(i3, { onClick: x }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), Vue.unref(r) ? (Vue.openBlock(), Vue.createBlock(C2, { key: 0, class: "card-content" }, { default: Vue.withCtx(() => [Vue.createVNode(f2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(s2, { class: "item-label dept-path" }, { default: Vue.withCtx(() => [Vue.createVNode(_sfc_main$2g, { tenantName: Vue.unref(r), clickDepts: Vue.unref(d), onClickBreadcrumb: b }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(C2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: Vue.withCtx(() => [Vue.unref(u).length ? (Vue.openBlock(), Vue.createBlock(E, { key: 1, ref_key: "orgTreeRef", ref: a, data: Vue.unref(u), "show-checkbox": e2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": Vue.unref(p), onCheckChange: A, onNodeClick: y }, { default: Vue.withCtx(({ node: e3, data: t4 }) => [Vue.createElementVNode("div", _hoisted_4$A, [Vue.createElementVNode("div", _hoisted_5$q, [Vue.createTextVNode(Vue.toDisplayString(t4.showName) + " ", 1), Vue.createElementVNode("span", _hoisted_6$h, Vue.toDisplayString(Vue.unref(getShowDeptNamePath)(t4.showName, t4)), 1)]), t4.leaf ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 0, class: "item-side", onClick: (e4) => {
|
|
2996
2996
|
return o3 = t4, d.value.push(o3), void v(o3);
|
|
2997
2997
|
var o3;
|
|
2998
|
-
} }, [Vue.createVNode(i3, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 })], 8, _hoisted_7$c))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (Vue.openBlock(), Vue.createBlock(
|
|
2998
|
+
} }, [Vue.createVNode(i3, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 })], 8, _hoisted_7$c))])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (Vue.openBlock(), Vue.createBlock(w2, { key: 0, image: Vue.unref(noMessageImage) }, null, 8, ["image"]))]), _: 1 }), Vue.createVNode(C2, { class: "card-footer" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_8$b, [Vue.createElementVNode("div", { class: "select-result", onClick: I }, [e2.multiple ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, onClick: I }, [Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_9$a, [Vue.createTextVNode(Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfo", { num: Vue.unref(c).length })) + " ", 1), Vue.createElementVNode("span", _hoisted_10$9, [Vue.createVNode(i3, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowUpBold))]), _: 1 })])])) : Vue.createCommentVNode("", true)])) : Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_11$7, [Vue.createTextVNode(Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(Vue.unref(c)[0].showName), 1), "-1" !== Vue.unref(c)[0].parentNodeId && Vue.unref(getDeptNamePath)(Vue.unref(c)[0]) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_12$6, "(" + Vue.toDisplayString(Vue.unref(getDeptNamePath)(Vue.unref(c)[0])) + ")", 1)) : Vue.createCommentVNode("", true)])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_13$5, [Vue.createVNode(D, { size: "large", type: "primary", onClick: k }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), Vue.createVNode(_sfc_main$2f, { ref_key: "deptResultRef", ref: m, selectDepts: Vue.unref(c), onRemoveDept: S }, null, 8, ["selectDepts"])]);
|
|
2999
2999
|
};
|
|
3000
3000
|
} }), _hoisted_1$1G = { style: { "text-align": "center" } }, __default__$9 = { name: "DepartmentTreeMobile" }, _sfc_main$2d = Vue.defineComponent({ ...__default__$9, props: { multiple: {}, departmentInfo: {}, selectDepartmentInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: t2 }) {
|
|
3001
3001
|
const o = t2;
|
|
@@ -4655,7 +4655,8 @@
|
|
|
4655
4655
|
var _a;
|
|
4656
4656
|
return false !== parseSubTableActionCondition(e2, t2, o, (_a = e2.options.actionPermission) == null ? void 0 : _a.deleteCondition) || (window.$vueApp.config.globalProperties.$message({ showClose: true, message: getI18n().t("superGrid.rowCanntDeleteTip"), type: "warning" }), false);
|
|
4657
4657
|
}, getSelections() {
|
|
4658
|
-
|
|
4658
|
+
if (this.$refs && this.$refs.superGrid)
|
|
4659
|
+
return this.$refs.superGrid.getSelectionRows();
|
|
4659
4660
|
} }, apisMixin = { data: () => ({ toolbarFieldParam: null, showSearch: false, isMobile: isMobileBrowser(), baseURL: "", currentPage: 1, pageSize: 10, code: "", pageCode: "", jumpPageSetting: null, isShowPageDialog: false, gridData: [], subTableData: [], searchForm: [], options: {}, lineEdit: null, loaded: false, configureObj: {}, additionalParamMap: {}, basicInfo: {}, dynamicColumnInfo: {}, $dataTypeMap: {}, mainDefaultValueColumns: [], dynamicServiceName: "", isHasDynamic: false, isMulitiSelect: false, sql: false, restoreCurrentRowTimer: null }), methods: { ...apis$2 } }, _sfc_main$26 = { components: { ElIconDelete: ElementPlusIconsVue.Delete }, name: "ViewImageDialog", props: { fileList: { type: Array, default: function() {
|
|
4660
4661
|
return [];
|
|
4661
4662
|
} }, downloadable: { type: Boolean, default: function() {
|
|
@@ -5001,7 +5002,7 @@
|
|
|
5001
5002
|
let m;
|
|
5002
5003
|
p.value = !c.value && d && "remote" === d.filterType && d.type && "dataTable" === d.type, o.valueSetOptions, p.value, o.controlConfig;
|
|
5003
5004
|
let h2 = Vue.ref(o.options);
|
|
5004
|
-
c.value ||
|
|
5005
|
+
c.value || C(null, true);
|
|
5005
5006
|
const g = Vue.ref(false);
|
|
5006
5007
|
Vue.onMounted(() => {
|
|
5007
5008
|
const e3 = new ClipboardJs("#" + s, { text: function() {
|
|
@@ -5033,7 +5034,7 @@
|
|
|
5033
5034
|
return void ((e4) => {
|
|
5034
5035
|
if (a.value = e4, (d == null ? void 0 : d.type) && "dataTable" === d.type && o.valueSetOptions && o.valueSetOptions.length > 0)
|
|
5035
5036
|
if (null == e4 || "" === e4)
|
|
5036
|
-
|
|
5037
|
+
w();
|
|
5037
5038
|
else {
|
|
5038
5039
|
const t4 = f(e4, h2.value);
|
|
5039
5040
|
t4 && o.valueSetOptions.forEach((e5) => {
|
|
@@ -5080,7 +5081,7 @@
|
|
|
5080
5081
|
i2("setCellValueWithProp", t4, null);
|
|
5081
5082
|
}
|
|
5082
5083
|
} else
|
|
5083
|
-
|
|
5084
|
+
w();
|
|
5084
5085
|
}();
|
|
5085
5086
|
const e4 = a.value && a.value.length > 0 ? a.value.join(",") : null;
|
|
5086
5087
|
n2 && i2("cellEvent", "input", e4), i2("update:modelValue", e4), i2("setCellValue", o.prop, e4, "change");
|
|
@@ -5090,7 +5091,7 @@
|
|
|
5090
5091
|
function y({ value: e3, sourceColumnName: t3, targetColumnName: n2, options: a2, selectedItem: l2 }) {
|
|
5091
5092
|
n2 && (n2 === o.prop ? i2("setCellValue", n2, e3, "input") : i2("setCellValueWithProp", n2, e3));
|
|
5092
5093
|
}
|
|
5093
|
-
function
|
|
5094
|
+
function C(e3, t3) {
|
|
5094
5095
|
var _a;
|
|
5095
5096
|
if (!(d == null ? void 0 : d.type) || "dataTable" !== (d == null ? void 0 : d.type))
|
|
5096
5097
|
return;
|
|
@@ -5111,19 +5112,19 @@
|
|
|
5111
5112
|
});
|
|
5112
5113
|
}
|
|
5113
5114
|
}
|
|
5114
|
-
function
|
|
5115
|
+
function w() {
|
|
5115
5116
|
o.valueSetOptions && o.valueSetOptions.forEach((e3) => {
|
|
5116
5117
|
e3.valueField !== o.prop && i2("setCellValueWithProp", e3.valueField, null);
|
|
5117
5118
|
});
|
|
5118
5119
|
}
|
|
5119
5120
|
return (t3, o2) => {
|
|
5120
|
-
const r2 = Vue.resolveComponent("CopyDocument"), d2 = Vue.resolveComponent("el-icon"), m2 = Vue.resolveComponent("el-option"), f2 = Vue.resolveComponent("el-select"),
|
|
5121
|
-
return Vue.openBlock(), Vue.createElementBlock("span", null, [c.value ? "multiselect" !== e2.type && "select" !== e2.type || !c.value ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(V, { key: 1, value: a.value, "onUpdate:value": o2[7] || (o2[7] = (e3) => a.value = e3), "base-props": { multiple: "multiselect" === e2.type, disabled: e2.disabled }, column: e2.column, entity: e2.entity, "is-join-table": l.value, "list-code": e2.listCode, "list-toolbar-form-data": e2.listToolbarFormData, options: { dynamicDataSourceCode: e2.dynamicDataSourceCode, valueSetOptions: e2.valueSetOptions, isSql: e2.isSql, backendUrl: Vue.unref(u), additionalParameter: e2.additionalParamMap ? JSON.stringify(e2.additionalParamMap) : null }, parent: e2.parentFormData, "table-name": e2.tableName, onBlur: o2[8] || (o2[8] = (e3) => i2("cellEvent", "blur", e3)), onChange: A, onClear: o2[9] || (o2[9] = (e3) => i2("cellEvent", "clear", e3)), onFocus: o2[10] || (o2[10] = (e3) => i2("cellEvent", "focus", "focus1111")), onInput: o2[11] || (o2[11] = (e3) => i2("cellEvent", "input", e3)), onVisibleChange: o2[12] || (o2[12] = (e3) => i2("cellEvent", "visible-change", e3)), onRemoveTag: o2[13] || (o2[13] = (e3) => i2("cellEvent", "remove-tag", e3)), onSetValue: y }, null, 8, ["value", "base-props", "column", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "parent", "table-name"])) : (Vue.openBlock(), Vue.createBlock(
|
|
5122
|
-
return [Vue.createVNode(f2, { ref: "item", modelValue: a.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => a.value = e3), loading: g.value, "allow-create": !!e2.controlConfig.allowCreate, disabled: e2.disabled, "default-first-option": !!e2.controlConfig.allowCreate, filterable: !(void 0 !== e2.controlConfig.filterable && !e2.controlConfig.filterable) || !!p.value, placeholder: t3.$t("imatrixUIMessage.pleaseSelect"), title: (l2 = a.value, getClassOptionTitleCommon(l2, h2.value)), clearable: !(void 0 !== e2.controlConfig.clearable && !e2.controlConfig.clearable), "collapse-tags": "", multiple: "multiselect" === e2.type, remote: p.value, "remote-method":
|
|
5121
|
+
const r2 = Vue.resolveComponent("CopyDocument"), d2 = Vue.resolveComponent("el-icon"), m2 = Vue.resolveComponent("el-option"), f2 = Vue.resolveComponent("el-select"), w2 = Vue.resolveComponent("el-popover"), V = Vue.resolveComponent("dynamic-source-select");
|
|
5122
|
+
return Vue.openBlock(), Vue.createElementBlock("span", null, [c.value ? "multiselect" !== e2.type && "select" !== e2.type || !c.value ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(V, { key: 1, value: a.value, "onUpdate:value": o2[7] || (o2[7] = (e3) => a.value = e3), "base-props": { multiple: "multiselect" === e2.type, disabled: e2.disabled }, column: e2.column, entity: e2.entity, "is-join-table": l.value, "list-code": e2.listCode, "list-toolbar-form-data": e2.listToolbarFormData, options: { dynamicDataSourceCode: e2.dynamicDataSourceCode, valueSetOptions: e2.valueSetOptions, isSql: e2.isSql, backendUrl: Vue.unref(u), additionalParameter: e2.additionalParamMap ? JSON.stringify(e2.additionalParamMap) : null }, parent: e2.parentFormData, "table-name": e2.tableName, onBlur: o2[8] || (o2[8] = (e3) => i2("cellEvent", "blur", e3)), onChange: A, onClear: o2[9] || (o2[9] = (e3) => i2("cellEvent", "clear", e3)), onFocus: o2[10] || (o2[10] = (e3) => i2("cellEvent", "focus", "focus1111")), onInput: o2[11] || (o2[11] = (e3) => i2("cellEvent", "input", e3)), onVisibleChange: o2[12] || (o2[12] = (e3) => i2("cellEvent", "visible-change", e3)), onRemoveTag: o2[13] || (o2[13] = (e3) => i2("cellEvent", "remove-tag", e3)), onSetValue: y }, null, 8, ["value", "base-props", "column", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "parent", "table-name"])) : (Vue.openBlock(), Vue.createBlock(w2, { key: 0, placement: "top", trigger: "hover" }, { reference: Vue.withCtx(() => {
|
|
5123
|
+
return [Vue.createVNode(f2, { ref: "item", modelValue: a.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => a.value = e3), loading: g.value, "allow-create": !!e2.controlConfig.allowCreate, disabled: e2.disabled, "default-first-option": !!e2.controlConfig.allowCreate, filterable: !(void 0 !== e2.controlConfig.filterable && !e2.controlConfig.filterable) || !!p.value, placeholder: t3.$t("imatrixUIMessage.pleaseSelect"), title: (l2 = a.value, getClassOptionTitleCommon(l2, h2.value)), clearable: !(void 0 !== e2.controlConfig.clearable && !e2.controlConfig.clearable), "collapse-tags": "", multiple: "multiselect" === e2.type, remote: p.value, "remote-method": C, onBlur: o2[1] || (o2[1] = (e3) => i2("cellEvent", "blur", e3)), onChange: A, onClear: o2[2] || (o2[2] = (e3) => i2("cellEvent", "clear", e3)), onFocus: o2[3] || (o2[3] = (e3) => i2("cellEvent", "focus", e3)), onInput: o2[4] || (o2[4] = (e3) => i2("cellEvent", "input", e3)), onVisibleChange: o2[5] || (o2[5] = (e3) => i2("cellEvent", "visible-change", e3)), onRemoveTag: o2[6] || (o2[6] = (e3) => i2("cellEvent", "remove-tag", e3)) }, { default: Vue.withCtx(() => ["multiselect" === e2.type ? (Vue.openBlock(), Vue.createBlock(m2, { key: 0, label: Vue.unref(n)("superGrid.selectAll"), value: "saveAll" }, null, 8, ["label"])) : Vue.createCommentVNode("", true), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(h2), (e3) => (Vue.openBlock(), Vue.createBlock(m2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading", "allow-create", "disabled", "default-first-option", "filterable", "placeholder", "title", "clearable", "multiple", "remote"])];
|
|
5123
5124
|
var l2;
|
|
5124
5125
|
}), default: Vue.withCtx(() => [Vue.createElementVNode("span", _hoisted_1$1z, [Vue.createVNode(d2, { id: s }, { default: Vue.withCtx(() => [Vue.createVNode(r2)]), _: 1 })])]), _: 1 }))]);
|
|
5125
5126
|
};
|
|
5126
|
-
} }), _sfc_main$23 = { name: "DynamicInput", components: { dynamicSourceSelect: DynamicSourceSelect, ViewImageDialog, GridRadioInput: _sfc_main$25, SelectInput: _sfc_main$24 }, props: { value: { type: [String, Boolean, Number, Date, Array], default: null }, type: { type: String, default: "input" }, position: { type: Object, default: null }, lineEdit: { type: Object, default: null }, options: { type: Array, default: null }, column: { type: Object, default: null }, row: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null }, rowIndex: { type: Number, default: -1 }, disabled: { type: Boolean, default: false }, gridOptions: { type: Object, default: null }
|
|
5127
|
+
} }), _sfc_main$23 = { name: "DynamicInput", components: { dynamicSourceSelect: DynamicSourceSelect, ViewImageDialog, GridRadioInput: _sfc_main$25, SelectInput: _sfc_main$24 }, props: { value: { type: [String, Boolean, Number, Date, Array], default: null }, type: { type: String, default: "input" }, position: { type: Object, default: null }, lineEdit: { type: Object, default: null }, options: { type: Array, default: null }, column: { type: Object, default: null }, row: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null }, rowIndex: { type: Number, default: -1 }, disabled: { type: Boolean, default: false }, gridOptions: { type: Object, default: null } }, data() {
|
|
5127
5128
|
let e2 = this.value;
|
|
5128
5129
|
this.type && "select" === this.type && "TEXT" !== this.column.dataType && (e2 = this.value && null !== this.value && "string" != typeof this.value ? this.value + "" : this.value, $emit(this, "update:value", e2));
|
|
5129
5130
|
const t2 = this.getDefaultValue(e2);
|
|
@@ -5142,11 +5143,11 @@
|
|
|
5142
5143
|
let f, A = false, y = {};
|
|
5143
5144
|
this.column.controlConfig && (y = JSON.parse(this.column.controlConfig)), y.scanEnable && (A = true);
|
|
5144
5145
|
f = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
5145
|
-
const
|
|
5146
|
+
const C = !!isDingTalkEnv(), w = !(!h2 || !f || "app" !== f), V = w || C || !(!h2 || !A || "https:" !== window.location.protocol), v = i2.colConfigureMap ? i2.colConfigureMap[this.column.prop] : null, b = v && v.runtime ? v.runtime : {}, I = b.props ? b.props : {};
|
|
5146
5147
|
let S;
|
|
5147
5148
|
i2 && i2.basicInfo && i2.basicInfo.systemCode && (S = i2.basicInfo.systemCode);
|
|
5148
5149
|
const k = "copyBtn_" + (/* @__PURE__ */ new Date()).getTime();
|
|
5149
|
-
return { deptManTree: false, isMultiTree: false, isCheckStrictly: false, deptTree: false, wgManTree: false, wgTree: false, newValue: null, componentName: "", annexUploadFlag: false, defaultAction: n, fileMultiple: false, fileList: [], lastServerName: "", fileSetObj: null, showSingleImgFlag: false, singleImgSrc: "", fields: null, innerValue: e2, dynamicSourceSelectOptions: {}, valueSetOptions: null, dynamicDataSourceCode: null, tableName: a, departmentInfo: null, parentFormData: l, headers: s, dataSourceType: r, inputNumberSet: {}, fileInfo: { showName: null, serverPath: null }, gridData: d ? c : u, pageGridData: d ? u : null, additionalParamMap: p, controlConfig: getControlConfig(this.column), pickerOptions: { disabledDate: (e3) => this.stateForbiddenTime && this.endForbiddenTime ? e3.getTime() < this.stateForbiddenTime || e3.getTime() > this.endForbiddenTime : this.stateForbiddenTime && !this.endForbiddenTime ? e3.getTime() < this.stateForbiddenTime : !(this.stateForbiddenTime || !this.endForbiddenTime) && e3.getTime() > this.endForbiddenTime }, stateForbiddenTime: null, endForbiddenTime: null, pageContext: m, isMobile: h2, componentId: g, scanEnable: A, userAgent: f, isApk:
|
|
5150
|
+
return { deptManTree: false, isMultiTree: false, isCheckStrictly: false, deptTree: false, wgManTree: false, wgTree: false, newValue: null, componentName: "", annexUploadFlag: false, defaultAction: n, fileMultiple: false, fileList: [], lastServerName: "", fileSetObj: null, showSingleImgFlag: false, singleImgSrc: "", fields: null, innerValue: e2, dynamicSourceSelectOptions: {}, valueSetOptions: null, dynamicDataSourceCode: null, tableName: a, departmentInfo: null, parentFormData: l, headers: s, dataSourceType: r, inputNumberSet: {}, fileInfo: { showName: null, serverPath: null }, gridData: d ? c : u, pageGridData: d ? u : null, additionalParamMap: p, controlConfig: getControlConfig(this.column), pickerOptions: { disabledDate: (e3) => this.stateForbiddenTime && this.endForbiddenTime ? e3.getTime() < this.stateForbiddenTime || e3.getTime() > this.endForbiddenTime : this.stateForbiddenTime && !this.endForbiddenTime ? e3.getTime() < this.stateForbiddenTime : !(this.stateForbiddenTime || !this.endForbiddenTime) && e3.getTime() > this.endForbiddenTime }, stateForbiddenTime: null, endForbiddenTime: null, pageContext: m, isMobile: h2, componentId: g, scanEnable: A, userAgent: f, isApk: w, isDingTalk: C, isShowBrowserScan: false, isShowScanIcon: V, colConfigure: v, designProperty: I, myCustomParams: {}, systemCode: S, isFormSubTable: false, copyBtnId: k };
|
|
5150
5151
|
}, computed: {}, watch: { value: { handler(e2, t2) {
|
|
5151
5152
|
if (this.type && "multiselect" === this.type) {
|
|
5152
5153
|
const e3 = this.value && null !== this.value && "string" == typeof this.value ? this.value.split(",") : this.value;
|
|
@@ -5582,8 +5583,8 @@
|
|
|
5582
5583
|
} } }, _hoisted_1$1y = { key: 1 }, _hoisted_2$11 = { key: 1 }, _hoisted_3$K = { key: 1 }, _hoisted_4$x = { key: 2 };
|
|
5583
5584
|
function _sfc_render$1j(e2, t2, o, n, i2, a) {
|
|
5584
5585
|
var _a;
|
|
5585
|
-
const l = Vue.resolveComponent("el-date-picker"), s = Vue.resolveComponent("el-time-picker"), r = Vue.resolveComponent("el-input"), u = Vue.resolveComponent("SuperIcon"), c = Vue.resolveComponent("fs-upload-list"), d = Vue.resolveComponent("multipart-upload"), p = Vue.resolveComponent("GridRadioInput"), m = Vue.resolveComponent("SelectInput"), h2 = Vue.resolveComponent("el-input-number"), g = Vue.resolveComponent("el-switch"), f = Vue.resolveComponent("el-slider"), A = Vue.resolveComponent("el-rate"), y = Vue.resolveComponent("organization-input"),
|
|
5586
|
-
return o.type && o.type.indexOf("custom:") >= 0 && "" != i2.componentName ? (Vue.openBlock(), Vue.createElementBlock("div", { key: 0, class: Vue.normalizeClass(!this.isFormSubTable && o.row.validateErrorField && o.row.validateErrorField === o.column.prop ? "required_bg" : "") }, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(i2.componentName), { ref: "customItem", disabled: o.disabled, entity: o.row, "grid-data": i2.gridData, "page-grid-data": i2.pageGridData, "additional-settings": i2.controlConfig, parent: i2.parentFormData, prop: o.column.prop, "custom-params": i2.myCustomParams, row: o.row, "row-index": o.position ? o.position.row : null, "select-options": o.options, value: i2.innerValue, "additional-param-map": i2.additionalParamMap, listCode: o.listCode, "component-id": i2.componentId, "page-context": i2.pageContext, "grid-ref": o.gridRef, onChange: t2[0] || (t2[0] = (e3) => a.cellEvent("change", e3)), onInput: t2[1] || (t2[1] = (e3) => a.cellEvent("input", e3)) }, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "custom-params", "row", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id", "page-context", "grid-ref"]))], 2)) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: Vue.normalizeClass(!this.isFormSubTable && o.row.validateErrorField && o.row.validateErrorField === o.column.prop ? "required_bg" : "") }, ["year" === o.type || "month" === o.type || "week" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), type: o.type, "value-format": a.isValueFormat(), style: { width: "100%" }, onBlur: t2[3] || (t2[3] = (e3) => a.cellEvent("blur", e3)), onChange: t2[4] || (t2[4] = (e3) => a.cellEvent("change", e3)), onFocus: t2[5] || (t2[5] = (e3) => a.cellEvent("focus", e3)), onInput: t2[6] || (t2[6] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "type", "value-format"])) : "yearRange" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 1, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, placeholder: e2.$t("imatrixUIMessage.selectYear"), style: { width: "100%" }, type: "year", "value-format": "YYYY", onBlur: t2[8] || (t2[8] = (e3) => a.cellEvent("blur", e3)), onChange: t2[9] || (t2[9] = (e3) => a.cellEvent("change", e3)), onFocus: t2[10] || (t2[10] = (e3) => a.cellEvent("focus", e3)), onInput: t2[11] || (t2[11] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "placeholder"])) : "dateTimePicker" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 2, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[13] || (t2[13] = (e3) => a.cellEvent("blur", e3)), onChange: t2[14] || (t2[14] = (e3) => a.cellEvent("change", e3)), onFocus: t2[15] || (t2[15] = (e3) => a.cellEvent("focus", e3)), onInput: t2[16] || (t2[16] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "date" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 3, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), "picker-options": i2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[18] || (t2[18] = (e3) => a.cellEvent("blur", e3)), onChange: t2[19] || (t2[19] = (e3) => a.cellEvent("change", e3)), onFocus: t2[20] || (t2[20] = (e3) => a.cellEvent("focus", e3)), onInput: t2[21] || (t2[21] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "timePicker" === o.type || "input" === o.type && "TIME" === o.column.dataType ? (Vue.openBlock(), Vue.createBlock(s, { key: 4, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => i2.innerValue = e3), disabled: o.disabled, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.pleaseEnterATimePoint"), "value-format": a.isValueFormat(), style: { width: "100%" }, onBlur: t2[23] || (t2[23] = (e3) => a.cellEvent("blur", e3)), onChange: t2[24] || (t2[24] = (e3) => a.cellEvent("change", e3)), onFocus: t2[25] || (t2[25] = (e3) => a.cellEvent("focus", e3)), onInput: t2[26] || (t2[26] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "time" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 5, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[28] || (t2[28] = (e3) => a.cellEvent("blur", e3)), onChange: t2[29] || (t2[29] = (e3) => a.cellEvent("change", e3)), onFocus: t2[30] || (t2[30] = (e3) => a.cellEvent("focus", e3)), onInput: t2[31] || (t2[31] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "DATE" === o.column.dataType ? (Vue.openBlock(), Vue.createBlock(l, { key: 6, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), "picker-options": i2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[33] || (t2[33] = (e3) => a.cellEvent("blur", e3)), onChange: t2[34] || (t2[34] = (e3) => a.cellEvent("change", e3)), onFocus: t2[35] || (t2[35] = (e3) => a.cellEvent("focus", e3)), onInput: t2[36] || (t2[36] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "input" !== o.type || "INTEGER" !== o.column.dataType && "LONG" !== o.column.dataType ? "input" === o.type ? (Vue.openBlock(), Vue.createBlock(r, { key: 8, ref: "item", disabled: o.disabled, maxlength: i2.controlConfig && i2.controlConfig.maxlength ? i2.controlConfig.maxlength : "", minlength: i2.controlConfig && i2.controlConfig.minlength ? i2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: i2.innerValue, clearable: "", modelValue: i2.innerValue, "onUpdate:modelValue": t2[48] || (t2[48] = (e3) => i2.innerValue = e3), onBlur: t2[49] || (t2[49] = (e3) => a.cellEvent("blur", e3)), onChange: t2[50] || (t2[50] = (e3) => a.cellEvent("change", e3)), onClear: t2[51] || (t2[51] = (e3) => a.cellEvent("clear", e3)), onFocus: t2[52] || (t2[52] = (e3) => a.cellEvent("focus", e3)), onInput: t2[53] || (t2[53] = (e3) => a.cellEvent("input", e3, true)) }, Vue.createSlots({ _: 2 }, ["outer" != i2.designProperty.iconPosition && (i2.designProperty.preIconType && i2.designProperty.preIconValue || i2.designProperty.preText) ? { name: "prefix", fn: Vue.withCtx(() => [i2.designProperty.preIconType && i2.designProperty.preIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconType: i2.designProperty.preIconType, iconValue: i2.designProperty.preIconValue, onClick: t2[43] || (t2[43] = (e3) => a.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.preText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_1$1y, Vue.toDisplayString(e2.$t(i2.designProperty.preText)), 1)) : Vue.createCommentVNode("", true)]), key: "0" } : void 0, "outer" == i2.designProperty.iconPosition && (i2.designProperty.preIconType && i2.designProperty.preIconValue || i2.designProperty.preText) ? { name: "prepend", fn: Vue.withCtx(() => [i2.designProperty.preIconType && i2.designProperty.preIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconType: i2.designProperty.preIconType, iconValue: i2.designProperty.preIconValue, onClick: t2[44] || (t2[44] = (e3) => a.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.preText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$11, Vue.toDisplayString(e2.$t(i2.designProperty.preText)), 1)) : Vue.createCommentVNode("", true)]), key: "1" } : void 0, "outer" != i2.designProperty.iconPosition && (i2.designProperty.sufIconType && i2.designProperty.sufIconValue || i2.designProperty.sufText) ? { name: "suffix", fn: Vue.withCtx(() => [i2.designProperty.sufIconType && i2.designProperty.sufIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconType: i2.designProperty.sufIconType, iconValue: i2.designProperty.sufIconValue, onClick: t2[45] || (t2[45] = (e3) => a.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.sufText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$K, Vue.toDisplayString(e2.$t(i2.designProperty.sufText)), 1)) : Vue.createCommentVNode("", true)]), key: "2" } : void 0, i2.isShowScanIcon || "outer" == i2.designProperty.iconPosition && (i2.designProperty.sufIconType && i2.designProperty.sufIconValue || i2.designProperty.sufText) ? { name: "append", fn: Vue.withCtx(() => [i2.isShowScanIcon ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconValue: "fa-barcode", onClick: t2[46] || (t2[46] = (e3) => a.scanClick()) })) : Vue.createCommentVNode("", true), i2.designProperty.sufIconType && i2.designProperty.sufIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 1, iconType: i2.designProperty.sufIconType, iconValue: i2.designProperty.sufIconValue, onClick: t2[47] || (t2[47] = (e3) => a.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.sufText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_4$x, Vue.toDisplayString(e2.$t(i2.designProperty.sufText)), 1)) : Vue.createCommentVNode("", true)]), key: "3" } : void 0]), 1032, ["disabled", "maxlength", "minlength", "placeholder", "title", "modelValue"])) : "textarea" === o.type ? (Vue.openBlock(), Vue.createBlock(r, { key: 9, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[54] || (t2[54] = (e3) => i2.innerValue = e3), disabled: o.disabled, maxlength: i2.controlConfig && i2.controlConfig.maxlength ? i2.controlConfig.maxlength : "", minlength: i2.controlConfig && i2.controlConfig.minlength ? i2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), rows: i2.designProperty.rows ? i2.designProperty.rows : 2, title: i2.innerValue, clearable: "", type: "textarea", onBlur: t2[55] || (t2[55] = (e3) => a.cellEvent("blur", e3)), onChange: t2[56] || (t2[56] = (e3) => a.cellEvent("change", e3)), onClear: t2[57] || (t2[57] = (e3) => a.cellEvent("clear", e3)), onFocus: t2[58] || (t2[58] = (e3) => a.cellEvent("focus", e3)), onInput: t2[59] || (t2[59] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "maxlength", "minlength", "placeholder", "rows", "title"])) : "annex" === o.type ? (Vue.openBlock(), Vue.createBlock(c, { key: 10, ref: "fileUploadRef", "custom-view-url": true, disabled: o.disabled, "file-info": i2.fileInfo, "file-list": i2.fileList, "file-set-obj": i2.fileSetObj, "is-sql": o.isSql, row: o.row, value: i2.innerValue, "page-context": i2.pageContext, "list-code": o.listCode, componentId: i2.componentId, onDelete: a.deleteFile, onDeleteSuccess: a.deleteSuccess, onUploadSuccess: a.uploadOnSuccess, onOnError: a.onError }, null, 8, ["disabled", "file-info", "file-list", "file-set-obj", "is-sql", "row", "value", "page-context", "list-code", "componentId", "onDelete", "onDeleteSuccess", "onUploadSuccess", "onOnError"])) : "multipartUpload" === o.type ? (Vue.openBlock(), Vue.createBlock(d, { key: 11, disabled: o.disabled, entity: o.row, "file-info": i2.fileInfo, "file-list": i2.fileList, "file-set-obj": i2.fileSetObj, value: i2.innerValue, type: "list", onDelete: a.deleteFile, onDeleteSuccess: a.deleteSuccess, onUploadSuccess: a.uploadOnSuccess }, null, 8, ["disabled", "entity", "file-info", "file-list", "file-set-obj", "value", "onDelete", "onDeleteSuccess", "onUploadSuccess"])) : "radio" === o.type ? (Vue.openBlock(), Vue.createBlock(p, { key: 12, modelValue: i2.innerValue, "onUpdate:modelValue": [t2[60] || (t2[60] = (e3) => i2.innerValue = e3), t2[61] || (t2[61] = (e3) => i2.innerValue = e3)], disabled: o.disabled, options: o.options, "value-set-options": i2.valueSetOptions, prop: o.column.prop, entity: o.row, onCellEvent: a.cellEvent }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "onCellEvent"])) : "multiselect" === o.type || "select" === o.type ? (Vue.openBlock(), Vue.createBlock(m, { key: 13, modelValue: i2.innerValue, "onUpdate:modelValue": [t2[62] || (t2[62] = (e3) => i2.innerValue = e3), t2[63] || (t2[63] = (e3) => i2.innerValue = e3)], disabled: o.disabled, options: o.options, "value-set-options": i2.valueSetOptions, prop: o.column.prop, entity: o.row, column: o.column, type: o.type, controlConfig: i2.controlConfig, listCode: o.listCode, listToolbarFormData: o.listToolbarFormData, dynamicDataSourceCode: i2.dynamicDataSourceCode, additionalParamMap: i2.additionalParamMap, isSql: o.isSql, parentFormData: i2.parentFormData, tableName: i2.tableName, onCellEvent: a.cellEvent, onExtendParams: a.setExtendParams, onSetCellValue: a.setCellValue, onSetCellValueWithProp: a.setCellValueWithProp, onCallCustomEventWithParam: a.callCustomEventWithParam }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "column", "type", "controlConfig", "listCode", "listToolbarFormData", "dynamicDataSourceCode", "additionalParamMap", "isSql", "parentFormData", "tableName", "onCellEvent", "onExtendParams", "onSetCellValue", "onSetCellValueWithProp", "onCallCustomEventWithParam"])) : "inputNumber" === o.type ? (Vue.openBlock(), Vue.createBlock(h2, { key: 14, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[64] || (t2[64] = (e3) => i2.innerValue = e3), "controls-position": i2.inputNumberSet.position, disabled: o.disabled, max: 0 == i2.inputNumberSet.max ? 0 : i2.inputNumberSet.max ? i2.inputNumberSet.max : 1 / 0, min: 0 == i2.inputNumberSet.min ? 0 : i2.inputNumberSet.min ? i2.inputNumberSet.min : -1 / 0, precision: i2.inputNumberSet.precision, step: i2.inputNumberSet.step ? i2.inputNumberSet.step : 1, onBlur: t2[65] || (t2[65] = (e3) => a.cellEvent("blur", e3)), onChange: t2[66] || (t2[66] = (e3) => a.cellEvent("change", e3)), onFocus: t2[67] || (t2[67] = (e3) => a.cellEvent("focus", e3)), onInput: t2[68] || (t2[68] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) : "switch" === o.type || "BOOLEAN" === o.column.dataType ? (Vue.openBlock(), Vue.createBlock(g, { key: 15, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[69] || (t2[69] = (e3) => i2.innerValue = e3), "active-text": a.getSwitchConfig("activeText"), "active-value": a.getSwitchConfig("activeValue"), disabled: o.disabled, "inactive-text": a.getSwitchConfig("inactiveText"), "inactive-value": a.getSwitchConfig("inactiveValue"), onChange: t2[70] || (t2[70] = (e3) => a.cellEvent("change", e3)), onInput: t2[71] || (t2[71] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"])) : "slider" === o.type ? (Vue.openBlock(), Vue.createBlock(f, { key: 16, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[72] || (t2[72] = (e3) => i2.innerValue = e3), disabled: o.disabled, onChange: t2[73] || (t2[73] = (e3) => a.cellEvent("change", e3)), onInput: t2[74] || (t2[74] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : "rate" === o.type ? (Vue.openBlock(), Vue.createBlock(A, { key: 17, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[75] || (t2[75] = (e3) => i2.innerValue = e3), disabled: o.disabled, onChange: t2[76] || (t2[76] = (e3) => a.cellEvent("change", e3)), onInput: t2[77] || (t2[77] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : i2.deptManTree || i2.deptTree || i2.wgManTree || i2.wgTree ? (Vue.openBlock(), Vue.createBlock(y, { key: 18, "check-strictly": i2.isCheckStrictly, "department-info": i2.departmentInfo, disabled: o.disabled, "limit-filter-column": (_a = i2.controlConfig) == null ? void 0 : _a.limitFilterColumn, fields: i2.fields, "is-join-table": e2.isJoinTable, models: o.row, multiple: i2.isMultiTree, "table-name": i2.tableName, "tree-type": i2.deptManTree ? "DeptUserTree" : i2.deptTree ? "DeptTree" : i2.wgManTree ? "WgUserTree" : i2.wgTree ? "WgTree" : null, value: i2.innerValue, onAppend: a.appendOrganizationInputEvent, onClear: a.clearOrganizationInputEvent, onFocus: a.showOrganizationTree, onReplace: a.replaceOrganizationInputEvent, onSetValue: a.organizationInputEvent }, null, 8, ["check-strictly", "department-info", "disabled", "limit-filter-column", "fields", "is-join-table", "models", "multiple", "table-name", "tree-type", "value", "onAppend", "onClear", "onFocus", "onReplace", "onSetValue"])) : Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(r, { key: 7, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[37] || (t2[37] = (e3) => i2.innerValue = e3), modelModifiers: { number: true }, disabled: o.disabled, placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: i2.innerValue, type: "INTEGER" === o.column.dataType || "LONG" === o.column.dataType ? "number" : "text", clearable: "", onBlur: t2[38] || (t2[38] = (e3) => a.cellEvent("blur", e3)), onChange: t2[39] || (t2[39] = (e3) => a.cellEvent("change", e3)), onClear: t2[40] || (t2[40] = (e3) => a.cellEvent("clear", e3)), onFocus: t2[41] || (t2[41] = (e3) => a.cellEvent("focus", e3)), onInput: t2[42] || (t2[42] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled", "placeholder", "title", "type"])), Vue.createVNode(V, { "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), visible: i2.annexUploadFlag, width: "30%" }, { default: Vue.withCtx(() => ["annex" === o.type && i2.annexUploadFlag ? (Vue.openBlock(), Vue.createBlock(C, { key: 0, accept: i2.fileSetObj && i2.fileSetObj.accept ? i2.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a.handleBeforeUpload, headers: i2.headers, "on-success": a.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: Vue.withCtx(() => [Vue.createVNode(w, null, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["title", "visible"]), i2.showSingleImgFlag ? (Vue.openBlock(), Vue.createBlock(v, { key: 19, deleteable: !o.disabled, downloadable: !o.disabled, "file-list": i2.fileList, onClose: t2[78] || (t2[78] = (e3) => i2.showSingleImgFlag = false), onDelete: a.deleteFile }, null, 8, ["deleteable", "downloadable", "file-list", "onDelete"])) : Vue.createCommentVNode("", true), i2.isShowBrowserScan ? (Vue.openBlock(), Vue.createBlock(b, { key: 20, onClose: a.closeBrowserScan }, null, 8, ["onClose"])) : Vue.createCommentVNode("", true)], 2));
|
|
5586
|
+
const l = Vue.resolveComponent("el-date-picker"), s = Vue.resolveComponent("el-time-picker"), r = Vue.resolveComponent("el-input"), u = Vue.resolveComponent("SuperIcon"), c = Vue.resolveComponent("fs-upload-list"), d = Vue.resolveComponent("multipart-upload"), p = Vue.resolveComponent("GridRadioInput"), m = Vue.resolveComponent("SelectInput"), h2 = Vue.resolveComponent("el-input-number"), g = Vue.resolveComponent("el-switch"), f = Vue.resolveComponent("el-slider"), A = Vue.resolveComponent("el-rate"), y = Vue.resolveComponent("organization-input"), C = Vue.resolveComponent("el-button"), w = Vue.resolveComponent("el-upload"), V = Vue.resolveComponent("el-dialog"), v = Vue.resolveComponent("view-image-dialog"), b = Vue.resolveComponent("scan-code-input-browser");
|
|
5587
|
+
return o.type && o.type.indexOf("custom:") >= 0 && "" != i2.componentName ? (Vue.openBlock(), Vue.createElementBlock("div", { key: 0, class: Vue.normalizeClass(!this.isFormSubTable && o.row.validateErrorField && o.row.validateErrorField === o.column.prop ? "required_bg" : "") }, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(i2.componentName), { ref: "customItem", disabled: o.disabled, entity: o.row, "grid-data": i2.gridData, "page-grid-data": i2.pageGridData, "additional-settings": i2.controlConfig, parent: i2.parentFormData, prop: o.column.prop, "custom-params": i2.myCustomParams, row: o.row, "row-index": o.position ? o.position.row : null, "select-options": o.options, value: i2.innerValue, "additional-param-map": i2.additionalParamMap, listCode: o.listCode, "component-id": i2.componentId, "page-context": i2.pageContext, onChange: t2[0] || (t2[0] = (e3) => a.cellEvent("change", e3)), onInput: t2[1] || (t2[1] = (e3) => a.cellEvent("input", e3)) }, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "custom-params", "row", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id", "page-context"]))], 2)) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: Vue.normalizeClass(!this.isFormSubTable && o.row.validateErrorField && o.row.validateErrorField === o.column.prop ? "required_bg" : "") }, ["year" === o.type || "month" === o.type || "week" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), type: o.type, "value-format": a.isValueFormat(), style: { width: "100%" }, onBlur: t2[3] || (t2[3] = (e3) => a.cellEvent("blur", e3)), onChange: t2[4] || (t2[4] = (e3) => a.cellEvent("change", e3)), onFocus: t2[5] || (t2[5] = (e3) => a.cellEvent("focus", e3)), onInput: t2[6] || (t2[6] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "type", "value-format"])) : "yearRange" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 1, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[7] || (t2[7] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, placeholder: e2.$t("imatrixUIMessage.selectYear"), style: { width: "100%" }, type: "year", "value-format": "YYYY", onBlur: t2[8] || (t2[8] = (e3) => a.cellEvent("blur", e3)), onChange: t2[9] || (t2[9] = (e3) => a.cellEvent("change", e3)), onFocus: t2[10] || (t2[10] = (e3) => a.cellEvent("focus", e3)), onInput: t2[11] || (t2[11] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "placeholder"])) : "dateTimePicker" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 2, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[13] || (t2[13] = (e3) => a.cellEvent("blur", e3)), onChange: t2[14] || (t2[14] = (e3) => a.cellEvent("change", e3)), onFocus: t2[15] || (t2[15] = (e3) => a.cellEvent("focus", e3)), onInput: t2[16] || (t2[16] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "date" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 3, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[17] || (t2[17] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), "picker-options": i2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[18] || (t2[18] = (e3) => a.cellEvent("blur", e3)), onChange: t2[19] || (t2[19] = (e3) => a.cellEvent("change", e3)), onFocus: t2[20] || (t2[20] = (e3) => a.cellEvent("focus", e3)), onInput: t2[21] || (t2[21] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "timePicker" === o.type || "input" === o.type && "TIME" === o.column.dataType ? (Vue.openBlock(), Vue.createBlock(s, { key: 4, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[22] || (t2[22] = (e3) => i2.innerValue = e3), disabled: o.disabled, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.pleaseEnterATimePoint"), "value-format": a.isValueFormat(), style: { width: "100%" }, onBlur: t2[23] || (t2[23] = (e3) => a.cellEvent("blur", e3)), onChange: t2[24] || (t2[24] = (e3) => a.cellEvent("change", e3)), onFocus: t2[25] || (t2[25] = (e3) => a.cellEvent("focus", e3)), onInput: t2[26] || (t2[26] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "time" === o.type ? (Vue.openBlock(), Vue.createBlock(l, { key: 5, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[27] || (t2[27] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), placeholder: e2.$t("imatrixUIMessage.selectTime"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: t2[28] || (t2[28] = (e3) => a.cellEvent("blur", e3)), onChange: t2[29] || (t2[29] = (e3) => a.cellEvent("change", e3)), onFocus: t2[30] || (t2[30] = (e3) => a.cellEvent("focus", e3)), onInput: t2[31] || (t2[31] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : "DATE" === o.column.dataType ? (Vue.openBlock(), Vue.createBlock(l, { key: 6, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[32] || (t2[32] = (e3) => i2.innerValue = e3), disabled: o.disabled, editable: false, format: a.isFormat(), "picker-options": i2.pickerOptions, placeholder: e2.$t("imatrixUIMessage.selectionDate"), "value-format": a.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: t2[33] || (t2[33] = (e3) => a.cellEvent("blur", e3)), onChange: t2[34] || (t2[34] = (e3) => a.cellEvent("change", e3)), onFocus: t2[35] || (t2[35] = (e3) => a.cellEvent("focus", e3)), onInput: t2[36] || (t2[36] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : "input" !== o.type || "INTEGER" !== o.column.dataType && "LONG" !== o.column.dataType ? "input" === o.type ? (Vue.openBlock(), Vue.createBlock(r, { key: 8, ref: "item", disabled: o.disabled, maxlength: i2.controlConfig && i2.controlConfig.maxlength ? i2.controlConfig.maxlength : "", minlength: i2.controlConfig && i2.controlConfig.minlength ? i2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: i2.innerValue, clearable: "", modelValue: i2.innerValue, "onUpdate:modelValue": t2[48] || (t2[48] = (e3) => i2.innerValue = e3), onBlur: t2[49] || (t2[49] = (e3) => a.cellEvent("blur", e3)), onChange: t2[50] || (t2[50] = (e3) => a.cellEvent("change", e3)), onClear: t2[51] || (t2[51] = (e3) => a.cellEvent("clear", e3)), onFocus: t2[52] || (t2[52] = (e3) => a.cellEvent("focus", e3)), onInput: t2[53] || (t2[53] = (e3) => a.cellEvent("input", e3, true)) }, Vue.createSlots({ _: 2 }, ["outer" != i2.designProperty.iconPosition && (i2.designProperty.preIconType && i2.designProperty.preIconValue || i2.designProperty.preText) ? { name: "prefix", fn: Vue.withCtx(() => [i2.designProperty.preIconType && i2.designProperty.preIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconType: i2.designProperty.preIconType, iconValue: i2.designProperty.preIconValue, onClick: t2[43] || (t2[43] = (e3) => a.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.preText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_1$1y, Vue.toDisplayString(e2.$t(i2.designProperty.preText)), 1)) : Vue.createCommentVNode("", true)]), key: "0" } : void 0, "outer" == i2.designProperty.iconPosition && (i2.designProperty.preIconType && i2.designProperty.preIconValue || i2.designProperty.preText) ? { name: "prepend", fn: Vue.withCtx(() => [i2.designProperty.preIconType && i2.designProperty.preIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconType: i2.designProperty.preIconType, iconValue: i2.designProperty.preIconValue, onClick: t2[44] || (t2[44] = (e3) => a.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.preText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$11, Vue.toDisplayString(e2.$t(i2.designProperty.preText)), 1)) : Vue.createCommentVNode("", true)]), key: "1" } : void 0, "outer" != i2.designProperty.iconPosition && (i2.designProperty.sufIconType && i2.designProperty.sufIconValue || i2.designProperty.sufText) ? { name: "suffix", fn: Vue.withCtx(() => [i2.designProperty.sufIconType && i2.designProperty.sufIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconType: i2.designProperty.sufIconType, iconValue: i2.designProperty.sufIconValue, onClick: t2[45] || (t2[45] = (e3) => a.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.sufText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$K, Vue.toDisplayString(e2.$t(i2.designProperty.sufText)), 1)) : Vue.createCommentVNode("", true)]), key: "2" } : void 0, i2.isShowScanIcon || "outer" == i2.designProperty.iconPosition && (i2.designProperty.sufIconType && i2.designProperty.sufIconValue || i2.designProperty.sufText) ? { name: "append", fn: Vue.withCtx(() => [i2.isShowScanIcon ? (Vue.openBlock(), Vue.createBlock(u, { key: 0, iconValue: "fa-barcode", onClick: t2[46] || (t2[46] = (e3) => a.scanClick()) })) : Vue.createCommentVNode("", true), i2.designProperty.sufIconType && i2.designProperty.sufIconValue ? (Vue.openBlock(), Vue.createBlock(u, { key: 1, iconType: i2.designProperty.sufIconType, iconValue: i2.designProperty.sufIconValue, onClick: t2[47] || (t2[47] = (e3) => a.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : Vue.createCommentVNode("", true), i2.designProperty.sufText ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_4$x, Vue.toDisplayString(e2.$t(i2.designProperty.sufText)), 1)) : Vue.createCommentVNode("", true)]), key: "3" } : void 0]), 1032, ["disabled", "maxlength", "minlength", "placeholder", "title", "modelValue"])) : "textarea" === o.type ? (Vue.openBlock(), Vue.createBlock(r, { key: 9, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[54] || (t2[54] = (e3) => i2.innerValue = e3), disabled: o.disabled, maxlength: i2.controlConfig && i2.controlConfig.maxlength ? i2.controlConfig.maxlength : "", minlength: i2.controlConfig && i2.controlConfig.minlength ? i2.controlConfig.minlength : "", placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), rows: i2.designProperty.rows ? i2.designProperty.rows : 2, title: i2.innerValue, clearable: "", type: "textarea", onBlur: t2[55] || (t2[55] = (e3) => a.cellEvent("blur", e3)), onChange: t2[56] || (t2[56] = (e3) => a.cellEvent("change", e3)), onClear: t2[57] || (t2[57] = (e3) => a.cellEvent("clear", e3)), onFocus: t2[58] || (t2[58] = (e3) => a.cellEvent("focus", e3)), onInput: t2[59] || (t2[59] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "disabled", "maxlength", "minlength", "placeholder", "rows", "title"])) : "annex" === o.type ? (Vue.openBlock(), Vue.createBlock(c, { key: 10, ref: "fileUploadRef", "custom-view-url": true, disabled: o.disabled, "file-info": i2.fileInfo, "file-list": i2.fileList, "file-set-obj": i2.fileSetObj, "is-sql": o.isSql, row: o.row, value: i2.innerValue, "page-context": i2.pageContext, "list-code": o.listCode, componentId: i2.componentId, onDelete: a.deleteFile, onDeleteSuccess: a.deleteSuccess, onUploadSuccess: a.uploadOnSuccess, onOnError: a.onError }, null, 8, ["disabled", "file-info", "file-list", "file-set-obj", "is-sql", "row", "value", "page-context", "list-code", "componentId", "onDelete", "onDeleteSuccess", "onUploadSuccess", "onOnError"])) : "multipartUpload" === o.type ? (Vue.openBlock(), Vue.createBlock(d, { key: 11, disabled: o.disabled, entity: o.row, "file-info": i2.fileInfo, "file-list": i2.fileList, "file-set-obj": i2.fileSetObj, value: i2.innerValue, type: "list", onDelete: a.deleteFile, onDeleteSuccess: a.deleteSuccess, onUploadSuccess: a.uploadOnSuccess }, null, 8, ["disabled", "entity", "file-info", "file-list", "file-set-obj", "value", "onDelete", "onDeleteSuccess", "onUploadSuccess"])) : "radio" === o.type ? (Vue.openBlock(), Vue.createBlock(p, { key: 12, modelValue: i2.innerValue, "onUpdate:modelValue": [t2[60] || (t2[60] = (e3) => i2.innerValue = e3), t2[61] || (t2[61] = (e3) => i2.innerValue = e3)], disabled: o.disabled, options: o.options, "value-set-options": i2.valueSetOptions, prop: o.column.prop, entity: o.row, onCellEvent: a.cellEvent }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "onCellEvent"])) : "multiselect" === o.type || "select" === o.type ? (Vue.openBlock(), Vue.createBlock(m, { key: 13, modelValue: i2.innerValue, "onUpdate:modelValue": [t2[62] || (t2[62] = (e3) => i2.innerValue = e3), t2[63] || (t2[63] = (e3) => i2.innerValue = e3)], disabled: o.disabled, options: o.options, "value-set-options": i2.valueSetOptions, prop: o.column.prop, entity: o.row, column: o.column, type: o.type, controlConfig: i2.controlConfig, listCode: o.listCode, listToolbarFormData: o.listToolbarFormData, dynamicDataSourceCode: i2.dynamicDataSourceCode, additionalParamMap: i2.additionalParamMap, isSql: o.isSql, parentFormData: i2.parentFormData, tableName: i2.tableName, onCellEvent: a.cellEvent, onExtendParams: a.setExtendParams, onSetCellValue: a.setCellValue, onSetCellValueWithProp: a.setCellValueWithProp, onCallCustomEventWithParam: a.callCustomEventWithParam }, null, 8, ["modelValue", "disabled", "options", "value-set-options", "prop", "entity", "column", "type", "controlConfig", "listCode", "listToolbarFormData", "dynamicDataSourceCode", "additionalParamMap", "isSql", "parentFormData", "tableName", "onCellEvent", "onExtendParams", "onSetCellValue", "onSetCellValueWithProp", "onCallCustomEventWithParam"])) : "inputNumber" === o.type ? (Vue.openBlock(), Vue.createBlock(h2, { key: 14, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[64] || (t2[64] = (e3) => i2.innerValue = e3), "controls-position": i2.inputNumberSet.position, disabled: o.disabled, max: 0 == i2.inputNumberSet.max ? 0 : i2.inputNumberSet.max ? i2.inputNumberSet.max : 1 / 0, min: 0 == i2.inputNumberSet.min ? 0 : i2.inputNumberSet.min ? i2.inputNumberSet.min : -1 / 0, precision: i2.inputNumberSet.precision, step: i2.inputNumberSet.step ? i2.inputNumberSet.step : 1, onBlur: t2[65] || (t2[65] = (e3) => a.cellEvent("blur", e3)), onChange: t2[66] || (t2[66] = (e3) => a.cellEvent("change", e3)), onFocus: t2[67] || (t2[67] = (e3) => a.cellEvent("focus", e3)), onInput: t2[68] || (t2[68] = (e3) => a.cellEvent("input", e3)) }, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) : "switch" === o.type || "BOOLEAN" === o.column.dataType ? (Vue.openBlock(), Vue.createBlock(g, { key: 15, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[69] || (t2[69] = (e3) => i2.innerValue = e3), "active-text": a.getSwitchConfig("activeText"), "active-value": a.getSwitchConfig("activeValue"), disabled: o.disabled, "inactive-text": a.getSwitchConfig("inactiveText"), "inactive-value": a.getSwitchConfig("inactiveValue"), onChange: t2[70] || (t2[70] = (e3) => a.cellEvent("change", e3)), onInput: t2[71] || (t2[71] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"])) : "slider" === o.type ? (Vue.openBlock(), Vue.createBlock(f, { key: 16, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[72] || (t2[72] = (e3) => i2.innerValue = e3), disabled: o.disabled, onChange: t2[73] || (t2[73] = (e3) => a.cellEvent("change", e3)), onInput: t2[74] || (t2[74] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : "rate" === o.type ? (Vue.openBlock(), Vue.createBlock(A, { key: 17, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[75] || (t2[75] = (e3) => i2.innerValue = e3), disabled: o.disabled, onChange: t2[76] || (t2[76] = (e3) => a.cellEvent("change", e3)), onInput: t2[77] || (t2[77] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled"])) : i2.deptManTree || i2.deptTree || i2.wgManTree || i2.wgTree ? (Vue.openBlock(), Vue.createBlock(y, { key: 18, "check-strictly": i2.isCheckStrictly, "department-info": i2.departmentInfo, disabled: o.disabled, "limit-filter-column": (_a = i2.controlConfig) == null ? void 0 : _a.limitFilterColumn, fields: i2.fields, "is-join-table": e2.isJoinTable, models: o.row, multiple: i2.isMultiTree, "table-name": i2.tableName, "tree-type": i2.deptManTree ? "DeptUserTree" : i2.deptTree ? "DeptTree" : i2.wgManTree ? "WgUserTree" : i2.wgTree ? "WgTree" : null, value: i2.innerValue, onAppend: a.appendOrganizationInputEvent, onClear: a.clearOrganizationInputEvent, onFocus: a.showOrganizationTree, onReplace: a.replaceOrganizationInputEvent, onSetValue: a.organizationInputEvent }, null, 8, ["check-strictly", "department-info", "disabled", "limit-filter-column", "fields", "is-join-table", "models", "multiple", "table-name", "tree-type", "value", "onAppend", "onClear", "onFocus", "onReplace", "onSetValue"])) : Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(r, { key: 7, ref: "item", modelValue: i2.innerValue, "onUpdate:modelValue": t2[37] || (t2[37] = (e3) => i2.innerValue = e3), modelModifiers: { number: true }, disabled: o.disabled, placeholder: e2.$t("imatrixUIMessage.pleaseEnterContent"), title: i2.innerValue, type: "INTEGER" === o.column.dataType || "LONG" === o.column.dataType ? "number" : "text", clearable: "", onBlur: t2[38] || (t2[38] = (e3) => a.cellEvent("blur", e3)), onChange: t2[39] || (t2[39] = (e3) => a.cellEvent("change", e3)), onClear: t2[40] || (t2[40] = (e3) => a.cellEvent("clear", e3)), onFocus: t2[41] || (t2[41] = (e3) => a.cellEvent("focus", e3)), onInput: t2[42] || (t2[42] = (e3) => a.cellEvent("input", e3, true)) }, null, 8, ["modelValue", "disabled", "placeholder", "title", "type"])), Vue.createVNode(V, { "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), visible: i2.annexUploadFlag, width: "30%" }, { default: Vue.withCtx(() => ["annex" === o.type && i2.annexUploadFlag ? (Vue.openBlock(), Vue.createBlock(w, { key: 0, accept: i2.fileSetObj && i2.fileSetObj.accept ? i2.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a.handleBeforeUpload, headers: i2.headers, "on-success": a.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: Vue.withCtx(() => [Vue.createVNode(C, null, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["title", "visible"]), i2.showSingleImgFlag ? (Vue.openBlock(), Vue.createBlock(v, { key: 19, deleteable: !o.disabled, downloadable: !o.disabled, "file-list": i2.fileList, onClose: t2[78] || (t2[78] = (e3) => i2.showSingleImgFlag = false), onDelete: a.deleteFile }, null, 8, ["deleteable", "downloadable", "file-list", "onDelete"])) : Vue.createCommentVNode("", true), i2.isShowBrowserScan ? (Vue.openBlock(), Vue.createBlock(b, { key: 20, onClose: a.closeBrowserScan }, null, 8, ["onClose"])) : Vue.createCommentVNode("", true)], 2));
|
|
5587
5588
|
}
|
|
5588
5589
|
const DynamicInput = _export_sfc(_sfc_main$23, [["render", _sfc_render$1j]]), iconList = ["amb-color-icon-XLS", "amb-color-icon-XLSX", "amb-color-icon-DOC", "amb-color-icon-DOCX", "amb-color-icon-PPT", "amb-color-icon-PDF", "amb-color-icon-TXT", "amb-color-icon-JPG", "amb-color-icon-PNG", "amb-color-icon-ZIP", "amb-color-icon-AVI", "amb-color-icon-MP4", "amb-color-icon-qita"];
|
|
5589
5590
|
function getFileIconByName(e2) {
|
|
@@ -5883,7 +5884,8 @@
|
|
|
5883
5884
|
const l = Vue.resolveComponent("superIcon"), s = Vue.resolveComponent("el-tooltip"), r = Vue.resolveDirective("permission");
|
|
5884
5885
|
return Vue.openBlock(), Vue.createElementBlock("span", { style: Vue.normalizeStyle(i2.myStyle) }, [a.isShowButton() ? (Vue.openBlock(), Vue.createBlock(s, { key: 0, disabled: a.tooltipDisabled, content: o.label, placement: "top" }, { default: Vue.withCtx(() => [a.operationSettingData.permission ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(a.isElementType), Vue.mergeProps({ key: 0 }, a.operationSettingData, { class: "row-operation-icon", disabled: e2.preventReclick, onMousedown: t2[0] || (t2[0] = (e3) => a.onClickFun(a.operationSettingData)) }), { default: Vue.withCtx(() => [a.prefixIcon ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, iconValue: a.prefixIcon, class: Vue.normalizeClass([{ "is-text-labl": !!a.labelText }, "prefix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : Vue.createCommentVNode("", true), Vue.createTextVNode(" " + Vue.toDisplayString(a.labelText) + " ", 1), a.suffixIcon ? (Vue.openBlock(), Vue.createBlock(l, { key: 1, iconValue: a.suffixIcon, class: Vue.normalizeClass([{ "is-text-labl": !!a.labelText }, "suffix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : Vue.createCommentVNode("", true)]), _: 1 }, 16, ["disabled"])), [[r, a.operationSettingData.permission]]) : (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(a.isElementType), Vue.mergeProps({ key: 1 }, a.operationSettingData, { class: "row-operation-icon", disabled: e2.preventReclick, onMousedown: t2[1] || (t2[1] = (e3) => a.onClickFun(a.operationSettingData)) }), { default: Vue.withCtx(() => [a.prefixIcon ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, iconValue: a.prefixIcon, class: Vue.normalizeClass([{ "is-text-labl": !!a.labelText }, "prefix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : Vue.createCommentVNode("", true), Vue.createTextVNode(" " + Vue.toDisplayString(a.labelText) + " ", 1), a.suffixIcon ? (Vue.openBlock(), Vue.createBlock(l, { key: 1, iconValue: a.suffixIcon, class: Vue.normalizeClass([{ "is-text-labl": !!a.labelText }, "suffix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : Vue.createCommentVNode("", true)]), _: 1 }, 16, ["disabled"]))]), _: 1 }, 8, ["disabled", "content"])) : Vue.createCommentVNode("", true)], 4);
|
|
5885
5886
|
}
|
|
5886
|
-
const RowOperation = _export_sfc(_sfc_main$1_, [["render", _sfc_render$1f], ["__scopeId", "data-v-e34a61f7"]]),
|
|
5887
|
+
const RowOperation = _export_sfc(_sfc_main$1_, [["render", _sfc_render$1f], ["__scopeId", "data-v-e34a61f7"]]), normalColumnContent_vue_vue_type_style_index_0_scoped_ec223eb7_lang = "", _sfc_main$1Z = { components: { DynamicInput, RowOperation, ViewImageDialog, FsPreview, RichEditorViewer, CirclePlus: ElementPlusIconsVue.CirclePlus, ElIconZoomIn: ElementPlusIconsVue.ZoomIn, GridIcon }, name: "NormalColumnContent", props: { isContentViewText: { type: Boolean, default: false }, column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null }, row: { type: Object, default: null }, rowIndex: { type: Number, default: null }, isShowForm: { type: Boolean, default: false }, getSuperGridRef: { type: Function, default: null } }, data() {
|
|
5888
|
+
var _a;
|
|
5887
5889
|
let e2;
|
|
5888
5890
|
const t2 = store$1.get(this.listCode), o = t2.options;
|
|
5889
5891
|
t2.options.extraParam && t2.options.extraParam.entityMap && (e2 = t2.options.extraParam.entityMap);
|
|
@@ -5896,7 +5898,9 @@
|
|
|
5896
5898
|
let s;
|
|
5897
5899
|
null !== t2.lineEdit && void 0 !== t2.lineEdit && (s = t2.lineEdit);
|
|
5898
5900
|
let r = "hidden";
|
|
5899
|
-
|
|
5901
|
+
t2.basicInfo && t2.basicInfo.textOverflow && (r = t2.basicInfo.textOverflow), this.isShowForm && (r = "newline");
|
|
5902
|
+
const u = (_a = t2.options) == null ? void 0 : _a.pageCustomParams;
|
|
5903
|
+
return { selectRow: null, that: this, columnFormatter: this.column.formatter, hyperLinks: {}, fileDownType: "", isFormSubTable: false, subTableCanAdd: true, isShowAdd: false, cellWidth: null, parentFormData: e2, fileMultiple: false, showSingleImgFlag: false, singleImgSrc: "", fileList: [], index: null, isEditable: this.column.editable, showRichEditorViewer: false, getFormData: t2.options.getFormData, getTableGridData: t2.options.getGridData, additionalParamMap: n, disabled: false, additionalSettings: this.getColumnCustomControlControlConfig(this.column.formatter), scanEnable: a, componentId: l, controlConfig: i2, requiredClass: "", lineEdit: s, options: o, textOverflow: r, linkObject: {}, pageCustomParams: u };
|
|
5900
5904
|
}, computed: { isHideEdit() {
|
|
5901
5905
|
return !!this.disabled;
|
|
5902
5906
|
}, $rowGuId() {
|
|
@@ -6172,10 +6176,10 @@
|
|
|
6172
6176
|
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, _hoisted_1$1t = { class: "normal-column-content-view" }, _hoisted_2$Z = { key: 0, "table-column-placeholder": "" }, _hoisted_3$I = { key: 1, class: "grid-operation-buttons", "data-v": "20250527" }, _hoisted_4$v = ["id"], _hoisted_5$n = { key: 0, type: "primary" }, _hoisted_6$e = ["id", "title"], _hoisted_7$a = ["id", "title"], _hoisted_8$9 = ["id"], _hoisted_9$8 = ["id", "title"], _hoisted_10$8 = ["id"], _hoisted_11$6 = { key: 0, type: "primary", style: { width: "100%" } }, _hoisted_12$5 = ["id", "title"], _hoisted_13$4 = ["id"], _hoisted_14$4 = { key: 1 }, _hoisted_15$3 = ["id", "title"], _hoisted_16$3 = ["id", "title"], _hoisted_17$3 = ["id"], _hoisted_18$2 = ["id", "title", "innerHTML"], _hoisted_19$1 = ["id"];
|
|
6173
6177
|
function _sfc_render$1e(e2, t2, o, n, i2, a) {
|
|
6174
6178
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
6175
|
-
const l = Vue.resolveComponent("dynamic-input"), s = Vue.resolveComponent("Edit"), r = Vue.resolveComponent("el-icon"), u = Vue.resolveComponent("el-dropdown-item"), c = Vue.resolveComponent("el-dropdown-menu"), d = Vue.resolveComponent("el-dropdown"), p = Vue.resolveComponent("row-operation"), m = Vue.resolveComponent("secret-info"), h2 = Vue.resolveComponent("FsPreview"), g = Vue.resolveComponent("SuperIcon"), f = Vue.resolveComponent("el-link"), A = Vue.resolveComponent("el-tooltip"), y = Vue.resolveComponent("GridIcon"),
|
|
6176
|
-
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1t, [a.isEditing || o.isShowForm ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, ref: "dynamicRef", value: o.row[o.column.prop], "onUpdate:value": t2[0] || (t2[0] = (e3) => o.row[o.column.prop] = e3), class: Vue.normalizeClass(i2.requiredClass), column: o.column, "is-sql": o.isSql, "line-edit": i2.lineEdit, "list-code": o.listCode, "list-toolbar-form-data": o.listToolbarFormData, options: o.column.valueSet, "grid-options": i2.options, position: { row: o.rowIndex, prop: o.column.prop }, disabled: i2.disabled, row: o.row, "row-index": o.rowIndex, type: o.column.componentType, onKeyup: Vue.withKeys(a.clearAllEditing, ["enter"]), onFindIndex: t2[1] || (t2[1] = (e3) => a.findIndex(o.rowIndex)), onFocus: t2[2] || (t2[2] = (e3) => a.onFocus(o.rowIndex)), onProhibitToEdit: a.prohibitToEdit, onRefreshList: a.refreshList, onRefresData: a.refresData, onRefresMainTableFields: a.refresMainTableFields, onRefresPortData: a.refresPortData, onRefresPortsData: a.refresPortsData, onChangeDisabled: a.changeDisabled, onChangeRequired: a.changeRequired, onOpenPage: a.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: Vue.normalizeClass(((_d = (_c = (_b = (_a = i2.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.columnEditable) ? "column-text-main" : "") }, [i2.lineEdit.editable && ((_h = (_g = (_f = (_e = i2.options) == null ? void 0 : _e.configureObj) == null ? void 0 : _f.props) == null ? void 0 : _g.base) == null ? void 0 : _h.columnEditable) && i2.isEditable && !a.isHideEdit && !o.isContentViewText ? (Vue.openBlock(), Vue.createElementBlock("div", { key: 0, class: "column-text-edit-main", onClick: t2[3] || (t2[3] = (...e3) => a.onEditing && a.onEditing(...e3)) }, [Vue.createVNode(r, { size: 14, color: "#409eff" }, { default: Vue.withCtx(() => [Vue.createVNode(s)]), _: 1 }), [void 0, null, ""].includes(o.row[o.column.prop]) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$Z, Vue.toDisplayString(e2.$t("superGrid.editablePlaceholder")), 1)) : Vue.createCommentVNode("", true)])) : Vue.createCommentVNode("", true), o.column.operations ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$I, [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.operations, (t3, n2) => (Vue.openBlock(), Vue.createElementBlock("span", { key: n2, class: Vue.normalizeClass([o.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [t3.isGroup ? (Vue.openBlock(), Vue.createBlock(d, { key: 0, size: t3.buttons && t3.buttons.length > 0 ? t3.buttons[0].props.size : "small", "split-button": "", onCommand: a.handleCommand }, { dropdown: Vue.withCtx(() => [Vue.createVNode(c, null, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(t3.buttons, (t4, n3) => (Vue.openBlock(), Vue.createElementBlock("span", { key: t4.props.code + n3 }, [Vue.withDirectives((Vue.openBlock(), Vue.createBlock(u, { command: a.beforeHandleCommand(t4.props.code, o.row, o.rowIndex), disabled: e2.preventReclick }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(t4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[V, t4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(t3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : t3.props.customControl ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(t3.props.customControl), { key: o.column.prop + "_" + o.rowIndex + "_" + o.currentPage, disabled: true, row: o.row, entity: o.row, prop: o.column.prop, parent: i2.parentFormData, "row-index": o.rowIndex, "grid-data": o.gridData, "page-grid-data": o.pageGridData, "current-page": o.currentPage, "custom-params": i2.controlConfig ? i2.controlConfig.customParams : null, "grid-ref": o.gridRef, onRefreshList: a.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "custom-params", "grid-ref", "onRefreshList"])), [[V, t3.props.permission]]) : (Vue.openBlock(), Vue.createBlock(p, { key: 2, column: o.column, editing: o.row.$editing, entity: o.row, "is-show": t3.isShow, label: t3.props.label ? t3.props.label : o.row[o.column.prop], "on-click": t3.onClick, "operation-index": n2, "operation-setting": t3.props, "event-name": t3.eventName, "row-index": o.rowIndex, "list-code": o.listCode, "parent-form-data": i2.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "event-name", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : e2.customFormatValue(o.row, o.column.prop, o.customFormat, o.rowIndex) ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 2, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(e2.customFormatValue(o.row, o.column.prop, o.customFormat, o.rowIndex)), { entity: o.row, parent: i2.parentFormData, prop: o.column.prop, row: o.row, "row-index": o.rowIndex, "select-options": o.column.valueSet, "show-value": e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)), value: a.getCellValue(o.row), "additional-param-map": i2.additionalParamMap, "additional-settings": i2.additionalSettings, "page-context": (_i = i2.options) == null ? void 0 : _i.pageContext, "custom-params": i2.controlConfig ? i2.controlConfig.customParams : null, "grid-ref": o.gridRef }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context", "custom-params", "grid-ref"]))], 2)) : void 0 !== i2.columnFormatter && void 0 !== i2.columnFormatter.type && "customControl" === i2.columnFormatter.type && i2.columnFormatter.options && i2.columnFormatter.options.format && "" !== i2.columnFormatter.options.format ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 3, class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(i2.columnFormatter.options.format), { key: o.column.prop + "_" + o.rowIndex + "_" + o.currentPage, "current-page": o.currentPage, disabled: true, entity: o.row, "get-form-data": i2.getFormData, "get-grid-data": i2.getTableGridData, "grid-data": o.gridData, "page-grid-data": o.pageGridData, parent: i2.parentFormData, prop: o.column.prop, row: o.row, "row-index": o.rowIndex, "select-options": o.column.valueSet, "show-value": e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)), value: a.getCellValue(o.row), "additional-param-map": i2.additionalParamMap, listCode: o.listCode, "component-id": i2.componentId, "additional-settings": i2.additionalSettings, "page-context": (_j = i2.options) == null ? void 0 : _j.pageContext, "custom-params": a.getCustomParams(), "grid-ref": o.gridRef, onProhibitToEdit: a.prohibitToEdit, onRefreshList: a.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "custom-params", "grid-ref", "onProhibitToEdit", "onRefreshList"]))], 2)) : void 0 !== i2.columnFormatter && void 0 !== i2.columnFormatter.type && "secretInfo" === i2.columnFormatter.type ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 4, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createVNode(m, { entity: o.row, "field-label": e2.$escapeHtml(e2.label), "list-code": o.listCode, "list-name": o.listName, "page-code": o.pageCode, prop: o.column.prop, "table-name": o.tableName, value: a.getCellValue(o.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, _hoisted_4$v)) : e2.isObjectProp(o.column.prop) ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 5 }, [o.column.formatter && "files" === o.column.formatter.type ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_5$n, [Vue.createElementVNode("span", { id: o.column.prop + "DomData" + o.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(a.getLabel(o.row)) : "", class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createVNode(h2, { entity: o.row, "file-set-obj": a.getFilesFormatter(), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_6$e)])) : "hyperlinks" === ((_k = i2.columnFormatter) == null ? void 0 : _k.type) && true === i2.linkObject.visible ? (Vue.openBlock(), Vue.createBlock(f, { key: 1, type: a.getLinkType(o.row), onClick: t2[4] || (t2[4] = (t3) => e2.clickHyperLink(o.column, o.row, o.listCode, o.rowIndex)) }, { default: Vue.withCtx(() => [e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: i2.linkObject.title, class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(i2.linkObject.label) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 14, _hoisted_7$a)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(i2.linkObject.label) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 10, _hoisted_8$9))]), _: 1 }, 8, ["type"])) : e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 2, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: e2.$escapeHtml(a.getLabel(o.row)), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, Vue.toDisplayString(e2.$escapeHtml(a.getLabel(o.row, o.rowIndex))), 15, _hoisted_9$8)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 3, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, Vue.toDisplayString(e2.$escapeHtml(a.getLabel(o.row, o.rowIndex))), 11, _hoisted_10$8))], 64)) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 6 }, ["annex" === o.column.componentType || "multipartUpload" === o.column.componentType ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_11$6, [e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, id: o.column.prop + "DomData" + o.rowIndex, title: e2.$escapeHtml(a.getLabel(o.row)), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createVNode(h2, { width: i2.cellWidth, entity: o.row, "file-set-obj": a.getFileObj(o.column.fileSet), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_12$5)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createVNode(h2, { entity: o.row, "file-set-obj": a.getFileObj(o.column.fileSet), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_13$4))])) : o.column.formatter && "files" === o.column.formatter.type ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_14$4, [Vue.createElementVNode("span", { id: o.column.prop + "DomData" + o.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(a.getLabel(o.row)) : "", class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createVNode(h2, { entity: o.row, "file-set-obj": a.getFilesFormatter(), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_15$3)])) : "hyperlinks" === ((_l = i2.columnFormatter) == null ? void 0 : _l.type) && i2.linkObject.visible ? (Vue.openBlock(), Vue.createBlock(f, { key: 2, type: "primary", onClick: t2[5] || (t2[5] = (t3) => e2.clickHyperLink(o.column, o.row, o.listCode, o.rowIndex)) }, { default: Vue.withCtx(() => [e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: e2.$escapeHtml(i2.linkObject.title), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(i2.linkObject.label)) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 14, _hoisted_16$3)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(i2.linkObject.label)) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 10, _hoisted_17$3))]), _: 1 })) : o.column.formatter && "richEditor" === o.column.formatter.type ? (Vue.openBlock(), Vue.createBlock(A, { key: 3, content: e2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: Vue.withCtx(() => [Vue.createElementVNode("em", { class: "fa fa-info-circle annex-cell", onClick: t2[6] || (t2[6] = (e3) => a.showRichEditorContent(o.row, o.column, a.getHeader())) })]), _: 1 }, 8, ["content"])) : o.column.formatter && "icon" === o.column.formatter.type ? (Vue.openBlock(), Vue.createBlock(y, { key: 4, id: o.column.prop + "DomData" + o.rowIndex, column: o.column, row: o.row, "row-index": o.rowIndex, "is-sql": o.isSql, "list-code": o.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 5, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: a.getLabel(o.row), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 14, _hoisted_18$2)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 6, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, Vue.toDisplayString(e2.$escapeHtml(a.getLabel(o.row, o.rowIndex))), 11, _hoisted_19$1))], 64))], 2)), i2.showSingleImgFlag ? (Vue.openBlock(), Vue.createBlock(w, { key: 2, "file-list": i2.fileList, onClose: t2[7] || (t2[7] = (e3) => i2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : Vue.createCommentVNode("", true), i2.showRichEditorViewer ? (Vue.openBlock(), Vue.createBlock(C, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: a.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : Vue.createCommentVNode("", true)]);
|
|
6179
|
+
const l = Vue.resolveComponent("dynamic-input"), s = Vue.resolveComponent("Edit"), r = Vue.resolveComponent("el-icon"), u = Vue.resolveComponent("el-dropdown-item"), c = Vue.resolveComponent("el-dropdown-menu"), d = Vue.resolveComponent("el-dropdown"), p = Vue.resolveComponent("row-operation"), m = Vue.resolveComponent("secret-info"), h2 = Vue.resolveComponent("FsPreview"), g = Vue.resolveComponent("SuperIcon"), f = Vue.resolveComponent("el-link"), A = Vue.resolveComponent("el-tooltip"), y = Vue.resolveComponent("GridIcon"), C = Vue.resolveComponent("view-image-dialog"), w = Vue.resolveComponent("rich-editor-viewer"), V = Vue.resolveDirective("permission");
|
|
6180
|
+
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1t, [a.isEditing || o.isShowForm ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, ref: "dynamicRef", value: o.row[o.column.prop], "onUpdate:value": t2[0] || (t2[0] = (e3) => o.row[o.column.prop] = e3), class: Vue.normalizeClass(i2.requiredClass), column: o.column, "is-sql": o.isSql, "line-edit": i2.lineEdit, "list-code": o.listCode, "list-toolbar-form-data": o.listToolbarFormData, options: o.column.valueSet, "grid-options": i2.options, position: { row: o.rowIndex, prop: o.column.prop }, disabled: i2.disabled, row: o.row, "row-index": o.rowIndex, type: o.column.componentType, onKeyup: Vue.withKeys(a.clearAllEditing, ["enter"]), onFindIndex: t2[1] || (t2[1] = (e3) => a.findIndex(o.rowIndex)), onFocus: t2[2] || (t2[2] = (e3) => a.onFocus(o.rowIndex)), onProhibitToEdit: a.prohibitToEdit, onRefreshList: a.refreshList, onRefresData: a.refresData, onRefresMainTableFields: a.refresMainTableFields, onRefresPortData: a.refresPortData, onRefresPortsData: a.refresPortsData, onChangeDisabled: a.changeDisabled, onChangeRequired: a.changeRequired, onOpenPage: a.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: Vue.normalizeClass(((_d = (_c = (_b = (_a = i2.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.columnEditable) ? "column-text-main" : "") }, [i2.lineEdit.editable && ((_h = (_g = (_f = (_e = i2.options) == null ? void 0 : _e.configureObj) == null ? void 0 : _f.props) == null ? void 0 : _g.base) == null ? void 0 : _h.columnEditable) && i2.isEditable && !a.isHideEdit && !o.isContentViewText ? (Vue.openBlock(), Vue.createElementBlock("div", { key: 0, class: "column-text-edit-main", onClick: t2[3] || (t2[3] = (...e3) => a.onEditing && a.onEditing(...e3)) }, [Vue.createVNode(r, { size: 14, color: "#409eff" }, { default: Vue.withCtx(() => [Vue.createVNode(s)]), _: 1 }), [void 0, null, ""].includes(o.row[o.column.prop]) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$Z, Vue.toDisplayString(e2.$t("superGrid.editablePlaceholder")), 1)) : Vue.createCommentVNode("", true)])) : Vue.createCommentVNode("", true), o.column.operations ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$I, [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.operations, (t3, n2) => (Vue.openBlock(), Vue.createElementBlock("span", { key: n2, class: Vue.normalizeClass([o.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [t3.isGroup ? (Vue.openBlock(), Vue.createBlock(d, { key: 0, size: t3.buttons && t3.buttons.length > 0 ? t3.buttons[0].props.size : "small", "split-button": "", onCommand: a.handleCommand }, { dropdown: Vue.withCtx(() => [Vue.createVNode(c, null, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(t3.buttons, (t4, n3) => (Vue.openBlock(), Vue.createElementBlock("span", { key: t4.props.code + n3 }, [Vue.withDirectives((Vue.openBlock(), Vue.createBlock(u, { command: a.beforeHandleCommand(t4.props.code, o.row, o.rowIndex), disabled: e2.preventReclick }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(t4.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[V, t4.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(t3.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : t3.props.customControl ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(t3.props.customControl), { key: o.column.prop + "_" + o.rowIndex + "_" + o.currentPage, disabled: true, row: o.row, entity: o.row, prop: o.column.prop, parent: i2.parentFormData, "row-index": o.rowIndex, "grid-data": o.gridData, "page-grid-data": o.pageGridData, "current-page": o.currentPage, "custom-params": i2.controlConfig ? i2.controlConfig.customParams : null, onRefreshList: a.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "custom-params", "onRefreshList"])), [[V, t3.props.permission]]) : (Vue.openBlock(), Vue.createBlock(p, { key: 2, column: o.column, editing: o.row.$editing, entity: o.row, "is-show": t3.isShow, label: t3.props.label ? t3.props.label : o.row[o.column.prop], "on-click": t3.onClick, "operation-index": n2, "operation-setting": t3.props, "event-name": t3.eventName, "row-index": o.rowIndex, "list-code": o.listCode, "parent-form-data": i2.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "event-name", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : e2.customFormatValue(o.row, o.column.prop, o.customFormat, o.rowIndex) ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 2, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(e2.customFormatValue(o.row, o.column.prop, o.customFormat, o.rowIndex)), { entity: o.row, parent: i2.parentFormData, prop: o.column.prop, row: o.row, "row-index": o.rowIndex, "select-options": o.column.valueSet, "show-value": e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)), value: a.getCellValue(o.row), "additional-param-map": i2.additionalParamMap, "additional-settings": i2.additionalSettings, "page-context": (_i = i2.options) == null ? void 0 : _i.pageContext, "custom-params": i2.controlConfig ? i2.controlConfig.customParams : null, getSuperGridRef: o.getSuperGridRef, "page-custom-params": i2.pageCustomParams }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context", "custom-params", "getSuperGridRef", "page-custom-params"]))], 2)) : void 0 !== i2.columnFormatter && void 0 !== i2.columnFormatter.type && "customControl" === i2.columnFormatter.type && i2.columnFormatter.options && i2.columnFormatter.options.format && "" !== i2.columnFormatter.options.format ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 3, class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(i2.columnFormatter.options.format), { key: o.column.prop + "_" + o.rowIndex + "_" + o.currentPage, "current-page": o.currentPage, disabled: true, entity: o.row, "get-form-data": i2.getFormData, "get-grid-data": i2.getTableGridData, "grid-data": o.gridData, "page-grid-data": o.pageGridData, parent: i2.parentFormData, prop: o.column.prop, row: o.row, "row-index": o.rowIndex, "select-options": o.column.valueSet, "show-value": e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)), value: a.getCellValue(o.row), "additional-param-map": i2.additionalParamMap, listCode: o.listCode, "component-id": i2.componentId, "additional-settings": i2.additionalSettings, "page-context": (_j = i2.options) == null ? void 0 : _j.pageContext, "custom-params": a.getCustomParams(), onProhibitToEdit: a.prohibitToEdit, onRefreshList: a.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "custom-params", "onProhibitToEdit", "onRefreshList"]))], 2)) : void 0 !== i2.columnFormatter && void 0 !== i2.columnFormatter.type && "secretInfo" === i2.columnFormatter.type ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 4, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createVNode(m, { entity: o.row, "field-label": e2.$escapeHtml(e2.label), "list-code": o.listCode, "list-name": o.listName, "page-code": o.pageCode, prop: o.column.prop, "table-name": o.tableName, value: a.getCellValue(o.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, _hoisted_4$v)) : e2.isObjectProp(o.column.prop) ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 5 }, [o.column.formatter && "files" === o.column.formatter.type ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_5$n, [Vue.createElementVNode("span", { id: o.column.prop + "DomData" + o.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(a.getLabel(o.row)) : "", class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createVNode(h2, { entity: o.row, "file-set-obj": a.getFilesFormatter(), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_6$e)])) : "hyperlinks" === ((_k = i2.columnFormatter) == null ? void 0 : _k.type) && true === i2.linkObject.visible ? (Vue.openBlock(), Vue.createBlock(f, { key: 1, type: a.getLinkType(o.row), onClick: t2[4] || (t2[4] = (t3) => e2.clickHyperLink(o.column, o.row, o.listCode, o.rowIndex)) }, { default: Vue.withCtx(() => [e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: i2.linkObject.title, class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(i2.linkObject.label) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 14, _hoisted_7$a)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(i2.linkObject.label) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 10, _hoisted_8$9))]), _: 1 }, 8, ["type"])) : e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 2, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: e2.$escapeHtml(a.getLabel(o.row)), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, Vue.toDisplayString(e2.$escapeHtml(a.getLabel(o.row, o.rowIndex))), 15, _hoisted_9$8)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 3, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, Vue.toDisplayString(e2.$escapeHtml(a.getLabel(o.row, o.rowIndex))), 11, _hoisted_10$8))], 64)) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 6 }, ["annex" === o.column.componentType || "multipartUpload" === o.column.componentType ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_11$6, [e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, id: o.column.prop + "DomData" + o.rowIndex, title: e2.$escapeHtml(a.getLabel(o.row)), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createVNode(h2, { width: i2.cellWidth, entity: o.row, "file-set-obj": a.getFileObj(o.column.fileSet), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["width", "entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_12$5)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createVNode(h2, { entity: o.row, "file-set-obj": a.getFileObj(o.column.fileSet), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_13$4))])) : o.column.formatter && "files" === o.column.formatter.type ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_14$4, [Vue.createElementVNode("span", { id: o.column.prop + "DomData" + o.rowIndex, title: e2.isShowOverflowTooltip ? e2.$escapeHtml(a.getLabel(o.row)) : "", class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createVNode(h2, { entity: o.row, "file-set-obj": a.getFilesFormatter(), "is-sql": o.isSql, label: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_15$3)])) : "hyperlinks" === ((_l = i2.columnFormatter) == null ? void 0 : _l.type) && i2.linkObject.visible ? (Vue.openBlock(), Vue.createBlock(f, { key: 2, type: "primary", onClick: t2[5] || (t2[5] = (t3) => e2.clickHyperLink(o.column, o.row, o.listCode, o.rowIndex)) }, { default: Vue.withCtx(() => [e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: e2.$escapeHtml(i2.linkObject.title), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(i2.linkObject.label)) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 14, _hoisted_16$3)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, [Vue.createTextVNode(Vue.toDisplayString(e2.$escapeHtml(i2.linkObject.label)) + " ", 1), i2.linkObject.icon ? (Vue.openBlock(), Vue.createBlock(g, { key: 0, iconValue: i2.linkObject.icon }, null, 8, ["iconValue"])) : Vue.createCommentVNode("", true)], 10, _hoisted_17$3))]), _: 1 })) : o.column.formatter && "richEditor" === o.column.formatter.type ? (Vue.openBlock(), Vue.createBlock(A, { key: 3, content: e2.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: Vue.withCtx(() => [Vue.createElementVNode("em", { class: "fa fa-info-circle annex-cell", onClick: t2[6] || (t2[6] = (e3) => a.showRichEditorContent(o.row, o.column, a.getHeader())) })]), _: 1 }, 8, ["content"])) : o.column.formatter && "icon" === o.column.formatter.type ? (Vue.openBlock(), Vue.createBlock(y, { key: 4, id: o.column.prop + "DomData" + o.rowIndex, column: o.column, row: o.row, "row-index": o.rowIndex, "is-sql": o.isSql, "list-code": o.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : e2.isShowOverflowTooltip ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 5, id: o.column.prop + "DomData" + o.rowIndex, style: Vue.normalizeStyle("newline" === i2.textOverflow ? {} : { width: i2.cellWidth + "px" }), title: a.getLabel(o.row), class: Vue.normalizeClass("newline" === i2.textOverflow ? "wrap-text" : "ellipsis cell--span"), innerHTML: e2.$escapeHtml(a.getLabel(o.row, o.rowIndex)) }, null, 14, _hoisted_18$2)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 6, id: o.column.prop + "DomData" + o.rowIndex, class: Vue.normalizeClass(o.isShowForm ? "" : "cell--span") }, Vue.toDisplayString(e2.$escapeHtml(a.getLabel(o.row, o.rowIndex))), 11, _hoisted_19$1))], 64))], 2)), i2.showSingleImgFlag ? (Vue.openBlock(), Vue.createBlock(C, { key: 2, "file-list": i2.fileList, onClose: t2[7] || (t2[7] = (e3) => i2.showSingleImgFlag = false) }, null, 8, ["file-list"])) : Vue.createCommentVNode("", true), i2.showRichEditorViewer ? (Vue.openBlock(), Vue.createBlock(w, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: a.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : Vue.createCommentVNode("", true)]);
|
|
6177
6181
|
}
|
|
6178
|
-
const NormalColumnContent = _export_sfc(_sfc_main$1Z, [["render", _sfc_render$1e], ["__scopeId", "data-v-
|
|
6182
|
+
const NormalColumnContent = _export_sfc(_sfc_main$1Z, [["render", _sfc_render$1e], ["__scopeId", "data-v-ec223eb7"]]), normalColumn_vue_vue_type_style_index_0_scoped_52cb78d9_lang = "", _sfc_main$1Y = { components: { DynamicInput, ViewImageDialog, FsPreview, RichEditorViewer, CirclePlus: ElementPlusIconsVue.CirclePlus, ElIconZoomIn: ElementPlusIconsVue.ZoomIn, GridIcon, NormalColumnContent }, name: "NormalColumn", props: { column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null }, getSuperGridRef: { type: Function, default: null } }, data() {
|
|
6179
6183
|
let e2;
|
|
6180
6184
|
const t2 = store$1.get(this.listCode), o = t2.options;
|
|
6181
6185
|
t2.options.extraParam && t2.options.extraParam.entityMap && (e2 = t2.options.extraParam.entityMap);
|
|
@@ -6257,9 +6261,9 @@
|
|
|
6257
6261
|
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit", "deleteFormSubTableRow"] }, _hoisted_1$1s = ["title", "innerHTML"], _hoisted_2$Y = { style: { "margin-left": "5px" } };
|
|
6258
6262
|
function _sfc_render$1d(e2, t2, o, n, i2, a) {
|
|
6259
6263
|
const l = Vue.resolveComponent("CirclePlus"), s = Vue.resolveComponent("el-icon"), r = Vue.resolveComponent("Remove"), u = Vue.resolveComponent("NormalColumnContent"), c = Vue.resolveComponent("el-table-column");
|
|
6260
|
-
return Vue.openBlock(), Vue.createBlock(c, { key: o.column.prop, align: i2.align, "class-name": o.column.prop, "filter-method": a.filterMethod, filters: a.filters, fixed: a.fixed, "header-align": i2.headerAlign, prop: o.column.prop, sortable: a.sortable, "min-width": a.getColumnWidth() }, { header: Vue.withCtx(() => [o.column.customHeader ? (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(o.column.customHeader), { key: 1, prop: o.column.prop, parent: i2.parentFormData, "grid-data": o.gridData, "current-page": o.currentPage, label: e2.$escapeHtml(e2.label), column: o.column
|
|
6264
|
+
return Vue.openBlock(), Vue.createBlock(c, { key: o.column.prop, align: i2.align, "class-name": o.column.prop, "filter-method": a.filterMethod, filters: a.filters, fixed: a.fixed, "header-align": i2.headerAlign, prop: o.column.prop, sortable: a.sortable, "min-width": a.getColumnWidth() }, { header: Vue.withCtx(() => [o.column.customHeader ? (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(o.column.customHeader), { key: 1, prop: o.column.prop, parent: i2.parentFormData, "grid-data": o.gridData, "current-page": o.currentPage, label: e2.$escapeHtml(e2.label), column: o.column }, null, 8, ["prop", "parent", "grid-data", "current-page", "label", "column"])) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, class: Vue.normalizeClass([{ is_req: a.isFieldRequired() }, "normal-column-header"]) }, [Vue.createElementVNode("span", { title: e2.$escapeHtml(e2.label), class: "cell--span required__label", innerHTML: e2.$escapeHtml(e2.label) }, null, 8, _hoisted_1$1s)], 2)), Vue.createElementVNode("span", _hoisted_2$Y, [i2.isShowAdd ? (Vue.openBlock(), Vue.createBlock(s, { key: 0, class: "normal-column-header normal-column-header-icon", onClick: a.createFormSubTableRow }, { default: Vue.withCtx(() => [Vue.createVNode(l)]), _: 1 }, 8, ["onClick"])) : Vue.createCommentVNode("", true), i2.isShowDelete ? (Vue.openBlock(), Vue.createBlock(s, { key: 1, class: "normal-column-header normal-column-header-icon", onClick: a.deleteFormSubTableRow }, { default: Vue.withCtx(() => [Vue.createVNode(r)]), _: 1 }, 8, ["onClick"])) : Vue.createCommentVNode("", true)])]), default: Vue.withCtx((e3) => [Vue.createVNode(u, { ref: o.column.prop, "is-sql": o.isSql, column: o.column, "list-code": o.listCode, "new-width": o.newWidth, "drag-column-prop": o.dragColumnProp, "right-click-menu-arr": i2.options.rightClickMenuArr, "table-name": o.tableName, "page-code": o.pageCode, "list-toolbar-form-data": o.listToolbarFormData, "list-name": o.listName, options: i2.options, "current-page": o.currentPage, "grid-data": o.gridData, "page-grid-data": o.pageGridData, row: e3.row, "row-index": e3.$index, "line-edit": a.lineEdit, "custom-format": o.customFormat, class: Vue.normalizeClass(a.isValidateError(e3.row, e3.$index) ? "required_bg required-corner" : ""), style: Vue.normalizeStyle(a.isValidateError(e3.row, e3.$index) ? "display:block;" : ""), "get-super-grid-ref": o.getSuperGridRef, onOpenPage: a.openPageEvent, onRefresData: a.refresData, onRefreshList: a.refreshList, onRefresPortData: a.refresPortData, onRefresPortsData: a.refresPortsData, onRefresMainTableFields: a.refresMainTableFields, onProhibitToEdit: a.prohibitToEdit }, null, 8, ["is-sql", "column", "list-code", "new-width", "drag-column-prop", "right-click-menu-arr", "table-name", "page-code", "list-toolbar-form-data", "list-name", "options", "current-page", "grid-data", "page-grid-data", "row", "row-index", "line-edit", "custom-format", "class", "style", "get-super-grid-ref", "onOpenPage", "onRefresData", "onRefreshList", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onProhibitToEdit"])]), _: 1 }, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "min-width"]);
|
|
6261
6265
|
}
|
|
6262
|
-
const NormalColumn = _export_sfc(_sfc_main$1Y, [["render", _sfc_render$1d], ["__scopeId", "data-v-
|
|
6266
|
+
const NormalColumn = _export_sfc(_sfc_main$1Y, [["render", _sfc_render$1d], ["__scopeId", "data-v-52cb78d9"]]), _sfc_main$1X = { name: "GroupColumn", components: { NormalColumn }, props: { column: { type: Object, default: null }, customFormat: { type: Object, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: false }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, getSuperGridRef: { type: Function, default: null } }, data: () => ({ label: null }), computed: { visibleChildren() {
|
|
6263
6267
|
return this.column.children ? this.column.children.filter((e2) => (void 0 === e2.show || e2.show) && (void 0 === e2.dyn_show || true === e2.dyn_show)) : [];
|
|
6264
6268
|
} }, created() {
|
|
6265
6269
|
this.label = this.getHeader(), this.column;
|
|
@@ -6274,7 +6278,7 @@
|
|
|
6274
6278
|
} } }, _hoisted_1$1r = ["title", "innerHTML"];
|
|
6275
6279
|
function _sfc_render$1c(e2, t2, o, n, i2, a) {
|
|
6276
6280
|
const l = Vue.resolveComponent("el-table-column");
|
|
6277
|
-
return Vue.openBlock(), Vue.createBlock(l, { "min-width": o.column.width ? o.column.width : 150, align: o.column.groupHeader ? "center" : "" }, { header: Vue.withCtx(() => [Vue.createElementVNode("span", { class: "cell--span", title: i2.label, innerHTML: i2.label }, null, 8, _hoisted_1$1r)]), default: Vue.withCtx(() => [o.customFormat ? (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 0 }, Vue.renderList(a.visibleChildren, (n2, i3) => (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(n2.prop ? "NormalColumn" : "GroupColumn"), { key: n2.label + i3, column: n2, "is-sql": o.isSql, "custom-format": n2.prop ? o.customFormat[n2.prop] : o.customFormat, "list-code": o.listCode, "grid-data": o.gridData, "page-grid-data": o.gridData, "grid-ref": o.
|
|
6281
|
+
return Vue.openBlock(), Vue.createBlock(l, { "min-width": o.column.width ? o.column.width : 150, align: o.column.groupHeader ? "center" : "" }, { header: Vue.withCtx(() => [Vue.createElementVNode("span", { class: "cell--span", title: i2.label, innerHTML: i2.label }, null, 8, _hoisted_1$1r)]), default: Vue.withCtx(() => [o.customFormat ? (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 0 }, Vue.renderList(a.visibleChildren, (n2, i3) => (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(n2.prop ? "NormalColumn" : "GroupColumn"), { key: n2.label + i3, column: n2, "is-sql": o.isSql, "custom-format": n2.prop ? o.customFormat[n2.prop] : o.customFormat, "list-code": o.listCode, "grid-data": o.gridData, "page-grid-data": o.gridData, "get-super-grid-ref": o.getSuperGridRef, onFindIndex: t2[0] || (t2[0] = (t3) => e2.findIndex(e2.scope.$index)), onRefresData: e2.refresData, onRefresPortData: e2.refresPortData, onRefresPortsData: e2.refresPortsData, onRefresMainTableFields: e2.refresMainTableFields, onProhibitToEdit: a.prohibitToEdit, onOpenPage: a.openPageDialog }, null, 40, ["column", "is-sql", "custom-format", "list-code", "grid-data", "page-grid-data", "get-super-grid-ref", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onProhibitToEdit", "onOpenPage"]))), 128)) : (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 1 }, Vue.renderList(a.visibleChildren, (e3, t3) => (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(e3.prop ? "NormalColumn" : "GroupColumn"), { key: e3.label + t3, "is-sql": o.isSql, column: e3, "list-code": o.listCode, "grid-data": o.gridData, "page-grid-data": o.gridData, "get-super-grid-ref": o.getSuperGridRef, onProhibitToEdit: a.prohibitToEdit, onOpenPage: a.openPageDialog }, null, 40, ["is-sql", "column", "list-code", "grid-data", "page-grid-data", "get-super-grid-ref", "onProhibitToEdit", "onOpenPage"]))), 128))]), _: 1 }, 8, ["min-width", "align"]);
|
|
6278
6282
|
}
|
|
6279
6283
|
const GroupColumn = _export_sfc(_sfc_main$1X, [["render", _sfc_render$1c]]), _sfc_main$1W = { name: "ColumnsConfig", props: { listCode: { type: String, default: "" }, visibleColumns: { type: Object, default: () => {
|
|
6280
6284
|
} } }, data: () => ({ columns: [], searchColumns: [], hasLoaded: false }), created() {
|
|
@@ -6639,10 +6643,10 @@
|
|
|
6639
6643
|
this.departmentInfo = e2 ? e2.split(",") : [];
|
|
6640
6644
|
} }, emits: ["submit-form"] }, _hoisted_1$1p = ["title", "innerHTML"], _hoisted_2$W = { key: 0, style: { width: "100%" } }, _hoisted_3$G = { key: 1 };
|
|
6641
6645
|
function _sfc_render$19(e2, t2, o, n, i2, a) {
|
|
6642
|
-
const l = Vue.resolveComponent("el-date-picker"), s = Vue.resolveComponent("year-range-picker"), r = Vue.resolveComponent("el-time-picker"), u = Vue.resolveComponent("organization-input"), c = Vue.resolveComponent("el-checkbox"), d = Vue.resolveComponent("el-option"), p = Vue.resolveComponent("el-select"), m = Vue.resolveComponent("dynamic-source-select"), h2 = Vue.resolveComponent("search-form-number"), g = Vue.resolveComponent("el-switch"), f = Vue.resolveComponent("el-slider"), A = Vue.resolveComponent("el-rate"), y = Vue.resolveComponent("el-tooltip"),
|
|
6643
|
-
return Vue.openBlock(), Vue.createBlock(
|
|
6646
|
+
const l = Vue.resolveComponent("el-date-picker"), s = Vue.resolveComponent("year-range-picker"), r = Vue.resolveComponent("el-time-picker"), u = Vue.resolveComponent("organization-input"), c = Vue.resolveComponent("el-checkbox"), d = Vue.resolveComponent("el-option"), p = Vue.resolveComponent("el-select"), m = Vue.resolveComponent("dynamic-source-select"), h2 = Vue.resolveComponent("search-form-number"), g = Vue.resolveComponent("el-switch"), f = Vue.resolveComponent("el-slider"), A = Vue.resolveComponent("el-rate"), y = Vue.resolveComponent("el-tooltip"), C = Vue.resolveComponent("el-input"), w = Vue.resolveComponent("el-form-item");
|
|
6647
|
+
return Vue.openBlock(), Vue.createBlock(w, { "label-width": o.labelWidth ?? (o.column.querySetting ? a.getLabelWidth(o.column.querySetting) : "110px"), prop: o.column.prop }, { label: Vue.withCtx(() => [Vue.createElementVNode("span", { title: (o.column.searchLabel ?? o.column.label).replace(/\\n/g, "</br>"), innerHTML: (o.column.searchLabel ?? o.column.label).replace(/\\n/g, "</br>") }, null, 8, _hoisted_1$1p)]), default: Vue.withCtx(() => {
|
|
6644
6648
|
var _a, _b, _c, _d;
|
|
6645
|
-
return [true === a.customComponent(o.column) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$W, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(o.column.componentName), { ref: o.column.componentName, entity: o.searchForm, "additional-settings": i2.controlConfig, "model-value": e2.getFormItemValue(o.column.prop), prop: o.column.prop, row: o.searchForm, "select-options": o.column.valueSet, isSearch: true, class: "customComponent", onChange: t2[0] || (t2[0] = (e3) => a.setValueToModelProp(o.column.prop, e3, o.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === o.column.componentType ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$G, [Vue.createVNode(l, { modelValue: o.searchForm[o.column.prop][0], "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o.searchForm[o.column.prop][0] = e3), placeholder: e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "date", onChange: t2[2] || (t2[2] = (e3) => a.setValueToModelProp(o.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), Vue.createVNode(l, { modelValue: o.searchForm[o.column.prop][1], "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o.searchForm[o.column.prop][1] = e3), placeholder: e2.$t("imatrixUIMessage.endDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "date", onChange: t2[4] || (t2[4] = (e3) => a.setValueToModelProp(o.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(s, { key: 2, value: e2.getFormItemValue(o.column.prop), type: "yearRange", onChange: t2[5] || (t2[5] = (e3) => a.setYearRangeValue(o.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 3, "default-time": a.getDefaultTime(o.column), "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o.searchForm[o.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "YYYY-MM-DD HH:mm:ss", "value-format": "YYYY-MM-DD HH:mm:ss", onChange: t2[7] || (t2[7] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["default-time", "end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "DATE" === o.column.dataType || "date" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 4, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => o.searchForm[o.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: t2[9] || (t2[9] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === o.column.dataType && "timepicker" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 5, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => o.searchForm[o.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: t2[11] || (t2[11] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "timepicker" === o.column.componentType && "TIME" !== o.column.dataType && "DATE" !== o.column.dataType ? (Vue.openBlock(), Vue.createBlock(r, { key: 6, modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => o.searchForm[o.column.prop] = e3), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: t2[13] || (t2[13] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : a.componentTypeTypeIsTree(o.column.componentType) ? (Vue.openBlock(), Vue.createBlock(u, { key: 7, fields: a.getTreeFields(o.column.orgTreeSet), "department-info": i2.departmentInfo, "limit-filter-column": (_a = i2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: o.searchForm, multiple: a.getTreeIsMultiTree(o.column.componentType), "tree-type": a.getTreeType(o.column.componentType), value: e2.getFormItemValue(o.column.prop), onClear: a.clearOrganizationInputEvent, onSetValue: a.organizationInputEvent }, null, 8, ["fields", "department-info", "limit-filter-column", "models", "multiple", "tree-type", "value", "onClear", "onSetValue"])) : "radio" === ((_b = o.column) == null ? void 0 : _b.componentType) ? (Vue.openBlock(), Vue.createBlock(p, { key: 8, "model-value": e2.getFormItemValue(o.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(o.column.searchControlWidth), clearable: "", filterable: "", onChange: t2[15] || (t2[15] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, Vue.createSlots({ default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(d, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== o.column.dataType ? { name: "header", fn: Vue.withCtx(() => [Vue.createVNode(c, { modelValue: i2.checkEmptyValue, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => i2.checkEmptyValue = e3), onChange: a.checkEmptyChange }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : (o.column.componentType && "select" === o.column.componentType || "BOOLEAN" === o.column.dataType) && !a.isDynamicDataSourceSource(o.column) ? (Vue.openBlock(), Vue.createBlock(p, { key: 9, "model-value": e2.getFormItemValue(o.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(o.column.searchControlWidth), clearable: "", filterable: "", onChange: t2[17] || (t2[17] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, Vue.createSlots({ default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(d, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== o.column.dataType ? { name: "header", fn: Vue.withCtx(() => [Vue.createVNode(c, { modelValue: i2.checkEmptyValue, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => i2.checkEmptyValue = e3), onChange: a.checkEmptyChange }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : o.column.componentType && "multiselect" === o.column.componentType && !a.isDynamicDataSourceSource(o.column) ? (Vue.openBlock(), Vue.createBlock(p, { key: 10, "model-value": e2.getFormItemValue(o.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(o.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: t2[19] || (t2[19] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, { header: Vue.withCtx(() => [Vue.createVNode(c, { modelValue: i2.checkEmptyValue, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => i2.checkEmptyValue = e3), onChange: a.checkEmptyChange }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(d, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["model-value", "placeholder", "style"])) : o.column.componentType && ("multiselect" === o.column.componentType || "select" === o.column.componentType) && a.isDynamicDataSourceSource(o.column) ? (Vue.openBlock(), Vue.createBlock(m, { key: 11, ref: "selectRef", value: o.searchForm[o.column.prop], "onUpdate:value": t2[20] || (t2[20] = (e3) => o.searchForm[o.column.prop] = e3), "allow-create": (_d = (_c = i2.dataSourceOptions) == null ? void 0 : _c.controlConfig) == null ? void 0 : _d.allowCreate, "base-props": { multiple: "multiselect" === o.column.componentType }, entity: o.searchForm, filterable: true, "is-join-table": o.isJoinTable, "list-code": o.code, "list-toolbar-form-data": a.listToolbarFormData, options: i2.dataSourceOptions, "table-name": o.tableName, "is-search": true, onChange: a.multiselectChange, onChangeEmptyValue: a.checkEmptyChange }, null, 8, ["value", "allow-create", "base-props", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "table-name", "onChange", "onChangeEmptyValue"])) : o.column.componentType && "inputNumber" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(h2, { key: 12, "item-value": o.searchForm[o.column.prop], "module-config": i2.moduleConfig, onSetValue: a.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : o.column.componentType && "switch" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(g, { key: 13, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: t2[21] || (t2[21] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["model-value", "style"])) : o.column.componentType && "slider" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(f, { key: 14, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), onChange: t2[22] || (t2[22] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["model-value", "style"])) : o.column.componentType && "rate" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(A, { key: 15, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), onChange: t2[23] || (t2[23] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (Vue.openBlock(), Vue.createBlock(w, { key: 16, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), onKeyup: t2[25] || (t2[25] = Vue.withKeys((t3) => e2.submitForm("searchForm"), ["enter"])), onInput: t2[26] || (t2[26] = (e3) => a.setValueToModelProp(o.column.prop, e3)), onFocus: t2[27] || (t2[27] = (e3) => a.showEmpty()), onBlur: t2[28] || (t2[28] = (e3) => a.hiddenEmpty()) }, { suffix: Vue.withCtx(() => [Vue.createVNode(y, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: Vue.withCtx(() => [a.isShowEmtpty ? (Vue.openBlock(), Vue.createBlock(c, { key: 0, modelValue: a.checkedEmpty, "onUpdate:modelValue": t2[24] || (t2[24] = (e3) => a.checkedEmpty = e3), onChange: a.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
6649
|
+
return [true === a.customComponent(o.column) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$W, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(o.column.componentName), { ref: o.column.componentName, entity: o.searchForm, "additional-settings": i2.controlConfig, "model-value": e2.getFormItemValue(o.column.prop), prop: o.column.prop, row: o.searchForm, "select-options": o.column.valueSet, isSearch: true, class: "customComponent", onChange: t2[0] || (t2[0] = (e3) => a.setValueToModelProp(o.column.prop, e3, o.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === o.column.componentType ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$G, [Vue.createVNode(l, { modelValue: o.searchForm[o.column.prop][0], "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => o.searchForm[o.column.prop][0] = e3), placeholder: e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "date", onChange: t2[2] || (t2[2] = (e3) => a.setValueToModelProp(o.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), Vue.createVNode(l, { modelValue: o.searchForm[o.column.prop][1], "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => o.searchForm[o.column.prop][1] = e3), placeholder: e2.$t("imatrixUIMessage.endDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "date", onChange: t2[4] || (t2[4] = (e3) => a.setValueToModelProp(o.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(s, { key: 2, value: e2.getFormItemValue(o.column.prop), type: "yearRange", onChange: t2[5] || (t2[5] = (e3) => a.setYearRangeValue(o.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 3, "default-time": a.getDefaultTime(o.column), "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => o.searchForm[o.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "YYYY-MM-DD HH:mm:ss", "value-format": "YYYY-MM-DD HH:mm:ss", onChange: t2[7] || (t2[7] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["default-time", "end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "DATE" === o.column.dataType || "date" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 4, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[8] || (t2[8] = (e3) => o.searchForm[o.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: t2[9] || (t2[9] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === o.column.dataType && "timepicker" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 5, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[10] || (t2[10] = (e3) => o.searchForm[o.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(o.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: t2[11] || (t2[11] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "timepicker" === o.column.componentType && "TIME" !== o.column.dataType && "DATE" !== o.column.dataType ? (Vue.openBlock(), Vue.createBlock(r, { key: 6, modelValue: o.searchForm[o.column.prop], "onUpdate:modelValue": t2[12] || (t2[12] = (e3) => o.searchForm[o.column.prop] = e3), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: t2[13] || (t2[13] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : a.componentTypeTypeIsTree(o.column.componentType) ? (Vue.openBlock(), Vue.createBlock(u, { key: 7, fields: a.getTreeFields(o.column.orgTreeSet), "department-info": i2.departmentInfo, "limit-filter-column": (_a = i2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: o.searchForm, multiple: a.getTreeIsMultiTree(o.column.componentType), "tree-type": a.getTreeType(o.column.componentType), value: e2.getFormItemValue(o.column.prop), onClear: a.clearOrganizationInputEvent, onSetValue: a.organizationInputEvent }, null, 8, ["fields", "department-info", "limit-filter-column", "models", "multiple", "tree-type", "value", "onClear", "onSetValue"])) : "radio" === ((_b = o.column) == null ? void 0 : _b.componentType) ? (Vue.openBlock(), Vue.createBlock(p, { key: 8, "model-value": e2.getFormItemValue(o.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(o.column.searchControlWidth), clearable: "", filterable: "", onChange: t2[15] || (t2[15] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, Vue.createSlots({ default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(d, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== o.column.dataType ? { name: "header", fn: Vue.withCtx(() => [Vue.createVNode(c, { modelValue: i2.checkEmptyValue, "onUpdate:modelValue": t2[14] || (t2[14] = (e3) => i2.checkEmptyValue = e3), onChange: a.checkEmptyChange }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : (o.column.componentType && "select" === o.column.componentType || "BOOLEAN" === o.column.dataType) && !a.isDynamicDataSourceSource(o.column) ? (Vue.openBlock(), Vue.createBlock(p, { key: 9, "model-value": e2.getFormItemValue(o.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(o.column.searchControlWidth), clearable: "", filterable: "", onChange: t2[17] || (t2[17] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, Vue.createSlots({ default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(d, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== o.column.dataType ? { name: "header", fn: Vue.withCtx(() => [Vue.createVNode(c, { modelValue: i2.checkEmptyValue, "onUpdate:modelValue": t2[16] || (t2[16] = (e3) => i2.checkEmptyValue = e3), onChange: a.checkEmptyChange }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : o.column.componentType && "multiselect" === o.column.componentType && !a.isDynamicDataSourceSource(o.column) ? (Vue.openBlock(), Vue.createBlock(p, { key: 10, "model-value": e2.getFormItemValue(o.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(o.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: t2[19] || (t2[19] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, { header: Vue.withCtx(() => [Vue.createVNode(c, { modelValue: i2.checkEmptyValue, "onUpdate:modelValue": t2[18] || (t2[18] = (e3) => i2.checkEmptyValue = e3), onChange: a.checkEmptyChange }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.column.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(d, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["model-value", "placeholder", "style"])) : o.column.componentType && ("multiselect" === o.column.componentType || "select" === o.column.componentType) && a.isDynamicDataSourceSource(o.column) ? (Vue.openBlock(), Vue.createBlock(m, { key: 11, ref: "selectRef", value: o.searchForm[o.column.prop], "onUpdate:value": t2[20] || (t2[20] = (e3) => o.searchForm[o.column.prop] = e3), "allow-create": (_d = (_c = i2.dataSourceOptions) == null ? void 0 : _c.controlConfig) == null ? void 0 : _d.allowCreate, "base-props": { multiple: "multiselect" === o.column.componentType }, entity: o.searchForm, filterable: true, "is-join-table": o.isJoinTable, "list-code": o.code, "list-toolbar-form-data": a.listToolbarFormData, options: i2.dataSourceOptions, "table-name": o.tableName, "is-search": true, onChange: a.multiselectChange, onChangeEmptyValue: a.checkEmptyChange }, null, 8, ["value", "allow-create", "base-props", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "table-name", "onChange", "onChangeEmptyValue"])) : o.column.componentType && "inputNumber" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(h2, { key: 12, "item-value": o.searchForm[o.column.prop], "module-config": i2.moduleConfig, onSetValue: a.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : o.column.componentType && "switch" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(g, { key: 13, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: t2[21] || (t2[21] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["model-value", "style"])) : o.column.componentType && "slider" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(f, { key: 14, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), onChange: t2[22] || (t2[22] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["model-value", "style"])) : o.column.componentType && "rate" === o.column.componentType ? (Vue.openBlock(), Vue.createBlock(A, { key: 15, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), onChange: t2[23] || (t2[23] = (e3) => a.setValueToModelProp(o.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (Vue.openBlock(), Vue.createBlock(C, { key: 16, "model-value": e2.getFormItemValue(o.column.prop), style: Vue.normalizeStyle(o.column.searchControlWidth), onKeyup: t2[25] || (t2[25] = Vue.withKeys((t3) => e2.submitForm("searchForm"), ["enter"])), onInput: t2[26] || (t2[26] = (e3) => a.setValueToModelProp(o.column.prop, e3)), onFocus: t2[27] || (t2[27] = (e3) => a.showEmpty()), onBlur: t2[28] || (t2[28] = (e3) => a.hiddenEmpty()) }, { suffix: Vue.withCtx(() => [Vue.createVNode(y, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: Vue.withCtx(() => [a.isShowEmtpty ? (Vue.openBlock(), Vue.createBlock(c, { key: 0, modelValue: a.checkedEmpty, "onUpdate:modelValue": t2[24] || (t2[24] = (e3) => a.checkedEmpty = e3), onChange: a.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
6646
6650
|
}), _: 1 }, 8, ["label-width", "prop"]);
|
|
6647
6651
|
}
|
|
6648
6652
|
const SearchFormItem = _export_sfc(_sfc_main$1U, [["render", _sfc_render$19], ["__scopeId", "data-v-41b4cbbd"]]), _sfc_main$1T = { name: "SearchButton", props: { isOpen: { type: Boolean, default: false }, isShowOpen: { type: Boolean, default: void 0 } }, data() {
|
|
@@ -6861,8 +6865,8 @@
|
|
|
6861
6865
|
return e2 ? "INTEGER" === e2.dataType || "LONG" === e2.dataType || "DOUBLE" === e2.dataType || "FLOAT" === e2.dataType ? [{ name: "GT", label: this.$t("imatrixUIPublicModel.greaterThan") }, { name: "LT", label: this.$t("imatrixUIPublicModel.lessThan") }, { name: "EQ", label: this.$t("imatrixUIPublicModel.beEqualTo") }, { name: "LET", label: this.$t("imatrixUIPublicModel.notGreaterThan") }, { name: "GET", label: this.$t("imatrixUIPublicModel.notLessThan") }, { name: "NET", label: this.$t("imatrixUIPublicModel.notEqualTo") }, { name: "IS_NULL", label: this.$t("imatrixUIPublicModel.isNull") }, { name: "IS_NOT_NULL", label: this.$t("imatrixUIPublicModel.isNotNull") }] : "DATE" === e2.dataType || "TIME" === e2.dataType ? [{ name: "GT", label: this.$t("imatrixUIPublicModel.laterThan") }, { name: "LT", label: this.$t("imatrixUIPublicModel.earlierThan") }, { name: "EQ", label: this.$t("imatrixUIPublicModel.beEqualTo") }, { name: "LET", label: this.$t("imatrixUIPublicModel.noLaterThan") }, { name: "GET", label: this.$t("imatrixUIPublicModel.noEarlierThan") }, { name: "IS_NULL", label: this.$t("imatrixUIPublicModel.isNull") }, { name: "IS_NOT_NULL", label: this.$t("imatrixUIPublicModel.isNotNull") }] : "TEXT" === e2.dataType ? [{ name: "EQ", label: this.$t("imatrixUIPublicModel.beEqualTo") }, { name: "NET", label: this.$t("imatrixUIPublicModel.notEqualTo") }, { name: "CONTAIN", label: this.$t("imatrixUIPublicModel.contain") }, { name: "NOT_CONTAIN", label: this.$t("imatrixUIPublicModel.notIncluded") }, { name: "IS_NULL", label: this.$t("imatrixUIPublicModel.isNull") }, { name: "IS_NOT_NULL", label: this.$t("imatrixUIPublicModel.isNotNull") }] : [{ name: "EQ", label: this.$t("imatrixUIPublicModel.beEqualTo") }, { name: "NET", label: this.$t("imatrixUIPublicModel.notEqualTo") }, { name: "IS_NULL", label: this.$t("imatrixUIPublicModel.isNull") }, { name: "IS_NOT_NULL", label: this.$t("imatrixUIPublicModel.isNotNull") }] : [{ name: "EQ", label: this.$t("imatrixUIPublicModel.beEqualTo") }, { name: "NET", label: this.$t("imatrixUIPublicModel.notEqualTo") }, { name: "IS_NULL", label: this.$t("imatrixUIPublicModel.isNull") }, { name: "IS_NOT_NULL", label: this.$t("imatrixUIPublicModel.isNotNull") }];
|
|
6862
6866
|
} }, emits: ["resetForm"] }, _hoisted_1$1m = { key: 0 }, _hoisted_2$V = { key: 12, style: { width: "100%" } };
|
|
6863
6867
|
function _sfc_render$13(e2, t2, o, n, i2, a) {
|
|
6864
|
-
const l = Vue.resolveComponent("CirclePlus"), s = Vue.resolveComponent("el-icon"), r = Vue.resolveComponent("Remove"), u = Vue.resolveComponent("el-table-column"), c = Vue.resolveComponent("el-option"), d = Vue.resolveComponent("el-select"), p = Vue.resolveComponent("el-date-picker"), m = Vue.resolveComponent("el-time-picker"), h2 = Vue.resolveComponent("organization-input"), g = Vue.resolveComponent("dynamic-source-select"), f = Vue.resolveComponent("search-form-number"), A = Vue.resolveComponent("el-switch"), y = Vue.resolveComponent("el-slider"),
|
|
6865
|
-
return i2.formFlag ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1m, [Vue.createVNode(V, { ref: "table", data: o.searchFormList, "row-class-name": a.tableRowClassName, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: a.handleCurrentChange }, { default: Vue.withCtx(() => [Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.edit"), align: "center", fixed: "left", width: "80" }, { default: Vue.withCtx((e3) => [Vue.createVNode(s, { onClick: a.add }, { default: Vue.withCtx(() => [Vue.createVNode(l)]), _: 1 }, 8, ["onClick"]), Vue.createVNode(s, { onClick: (t3) => a.remove(e3.$index) }, { default: Vue.withCtx(() => [Vue.createVNode(r)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: "(", prop: "leftBracket", width: "90" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, clearable: "", size: "default", onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: "", value: "" }), Vue.createVNode(c, { label: "(", value: "(" }), Vue.createVNode(c, { label: "((", value: "((" }), Vue.createVNode(c, { label: "(((", value: "(((" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.fieldName"), width: "200" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.prop, "onUpdate:modelValue": (t3) => e3.row.prop = t3, clearable: "", filterable: "", size: "default", onChange: (t3) => a.changeFieldName(e3.$index), onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.searchableColumns, (e4) => (Vue.openBlock(), Vue.createBlock(c, { key: e4.prop, label: e4.label, value: e4.prop }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.operator"), width: "110" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, clearable: "", size: "default", onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.operationArr[e3.$index], (e4) => (Vue.openBlock(), Vue.createBlock(c, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.value") }, Vue.createSlots({ _: 2 }, [e2.scope.row.prop ? { name: "default", fn: Vue.withCtx((n2) => ["DATE" === n2.row.dataType || "date" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 0, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "dateTimePicker" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 1, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "TIME" === n2.row.dataType && "timepicker" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 2, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "timepicker" === n2.row.componentType && "TIME" !== n2.row.dataType && "DATE" !== n2.row.dataType ? (Vue.openBlock(), Vue.createBlock(m, { key: 3, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, placeholder: e2.$t("imatrixUIMessage.selectTime"), size: "default", style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus", "onInput"])) : a.componentTypeTypeIsTree(n2.row.componentType) ? (Vue.openBlock(), Vue.createBlock(h2, { key: 4, value: n2.row.value, "onUpdate:value": (e3) => n2.row.value = e3, fields: a.getTreeFields(n2.row.orgTreeSet), models: e2.searchForm, multiple: a.getTreeIsMultiTree(n2.row.componentType), size: e2.default, "tree-type": a.getTreeType(n2.row.componentType), onClear: a.clearOrganizationInputEvent, onFocus: (e3) => a.selectRow(n2.row), onSetValue: a.organizationInputEvent }, null, 8, ["value", "onUpdate:value", "fields", "models", "multiple", "size", "tree-type", "onClear", "onFocus", "onSetValue"])) : (n2.row.componentType && "select" === n2.row.componentType || "BOOLEAN" === n2.row.dataType) && !a.isDynamicDataSourceSource(n2.row) ? (Vue.openBlock(), Vue.createBlock(d, { key: 5, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(n2.row.searchControlWidth), clearable: "", size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(n2.row.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(c, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : n2.row.componentType && "multiselect" === n2.row.componentType && !a.isDynamicDataSourceSource(n2.row) ? (Vue.openBlock(), Vue.createBlock(d, { key: 6, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(n2.row.searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(n2.row.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(c, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : n2.row.componentType && ("multiselect" === n2.row.componentType || "select" === n2.row.componentType) && a.isDynamicDataSourceSource(n2.row) ? (Vue.openBlock(), Vue.createBlock(g, { key: 7, "base-props": { multiple: "multiselect" === n2.row.componentType }, entity: n2.row, "is-join-table": i2.isJoinTable, "list-code": o.code, options: a.getDynamicDataSourceOptions(n2.row), "table-name": i2.tableName, value: n2.row.value, onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["base-props", "entity", "is-join-table", "list-code", "options", "table-name", "value", "onInput"])) : n2.row.componentType && "inputNumber" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(f, { key: 8, n: e2.n, r: e2.r, size: "default", onFocus: (e3) => a.selectRow(n2.row), onSetValue: a.setNumberValue }, null, 8, ["n", "r", "onFocus", "onSetValue"])) : n2.row.componentType && "switch" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(A, { key: 9, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : n2.row.componentType && "slider" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(y, { key: 10, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : n2.row.componentType && "rate" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(w, { key: 11, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : true === a.customComponent(n2.row.prop) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$V, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(n2.row.componentName), { ref: n2.row.componentName, value: n2.row.value, "onUpdate:value": (e3) => n2.row.value = e3, prop: n2.row.prop, row: n2.row, "additional-settings": i2.controlConfig, class: "customComponent", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3, n2.row.componentName) }, null, 40, ["value", "onUpdate:value", "prop", "row", "additional-settings", "onFocus", "onInput"]))])) : (Vue.openBlock(), Vue.createBlock(C, { key: 13, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3), onKeyup: t2[0] || (t2[0] = Vue.withKeys((t3) => e2.submitForm("searchForm"), ["enter"])) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"]))]), key: "0" } : void 0]), 1032, ["label"]), Vue.createVNode(u, { label: ")", prop: "rightBracket", width: "90" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, clearable: "", size: "default", onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: "", value: "" }), Vue.createVNode(c, { label: ")", value: ")" }), Vue.createVNode(c, { label: "))", value: "))" }), Vue.createVNode(c, { label: ")))", value: ")))" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: Vue.withCtx((t3) => [Vue.createVNode(d, { modelValue: t3.row.joinSign, "onUpdate:modelValue": (e3) => t3.row.joinSign = e3, clearable: "", size: "default", onFocus: (e3) => a.selectRow(t3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.perhaps"), value: "or" }, null, 8, ["label"]), Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.also"), value: "and" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.whenTheVariableIsEmpty"), width: "110" }, { default: Vue.withCtx((t3) => [Vue.createVNode(d, { modelValue: t3.row.variableIsNull, "onUpdate:modelValue": (e3) => t3.row.variableIsNull = e3, clearable: "", size: "default", onFocus: (e3) => a.selectRow(t3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: "Null", value: "null" }), Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.ignore11"), value: "1=1" }, null, 8, ["label"]), Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.nonConformity"), value: "1<>1" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "row-class-name", "onCurrentChange"])])) : Vue.createCommentVNode("", true);
|
|
6868
|
+
const l = Vue.resolveComponent("CirclePlus"), s = Vue.resolveComponent("el-icon"), r = Vue.resolveComponent("Remove"), u = Vue.resolveComponent("el-table-column"), c = Vue.resolveComponent("el-option"), d = Vue.resolveComponent("el-select"), p = Vue.resolveComponent("el-date-picker"), m = Vue.resolveComponent("el-time-picker"), h2 = Vue.resolveComponent("organization-input"), g = Vue.resolveComponent("dynamic-source-select"), f = Vue.resolveComponent("search-form-number"), A = Vue.resolveComponent("el-switch"), y = Vue.resolveComponent("el-slider"), C = Vue.resolveComponent("el-rate"), w = Vue.resolveComponent("el-input"), V = Vue.resolveComponent("el-table");
|
|
6869
|
+
return i2.formFlag ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1m, [Vue.createVNode(V, { ref: "table", data: o.searchFormList, "row-class-name": a.tableRowClassName, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: a.handleCurrentChange }, { default: Vue.withCtx(() => [Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.edit"), align: "center", fixed: "left", width: "80" }, { default: Vue.withCtx((e3) => [Vue.createVNode(s, { onClick: a.add }, { default: Vue.withCtx(() => [Vue.createVNode(l)]), _: 1 }, 8, ["onClick"]), Vue.createVNode(s, { onClick: (t3) => a.remove(e3.$index) }, { default: Vue.withCtx(() => [Vue.createVNode(r)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: "(", prop: "leftBracket", width: "90" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, clearable: "", size: "default", onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: "", value: "" }), Vue.createVNode(c, { label: "(", value: "(" }), Vue.createVNode(c, { label: "((", value: "((" }), Vue.createVNode(c, { label: "(((", value: "(((" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.fieldName"), width: "200" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.prop, "onUpdate:modelValue": (t3) => e3.row.prop = t3, clearable: "", filterable: "", size: "default", onChange: (t3) => a.changeFieldName(e3.$index), onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.searchableColumns, (e4) => (Vue.openBlock(), Vue.createBlock(c, { key: e4.prop, label: e4.label, value: e4.prop }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.operator"), width: "110" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, clearable: "", size: "default", onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.operationArr[e3.$index], (e4) => (Vue.openBlock(), Vue.createBlock(c, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.value") }, Vue.createSlots({ _: 2 }, [e2.scope.row.prop ? { name: "default", fn: Vue.withCtx((n2) => ["DATE" === n2.row.dataType || "date" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 0, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "dateTimePicker" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 1, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "TIME" === n2.row.dataType && "timepicker" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 2, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "end-placeholder", "range-separator", "start-placeholder", "style", "onFocus", "onInput"])) : "timepicker" === n2.row.componentType && "TIME" !== n2.row.dataType && "DATE" !== n2.row.dataType ? (Vue.openBlock(), Vue.createBlock(m, { key: 3, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, placeholder: e2.$t("imatrixUIMessage.selectTime"), size: "default", style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus", "onInput"])) : a.componentTypeTypeIsTree(n2.row.componentType) ? (Vue.openBlock(), Vue.createBlock(h2, { key: 4, value: n2.row.value, "onUpdate:value": (e3) => n2.row.value = e3, fields: a.getTreeFields(n2.row.orgTreeSet), models: e2.searchForm, multiple: a.getTreeIsMultiTree(n2.row.componentType), size: e2.default, "tree-type": a.getTreeType(n2.row.componentType), onClear: a.clearOrganizationInputEvent, onFocus: (e3) => a.selectRow(n2.row), onSetValue: a.organizationInputEvent }, null, 8, ["value", "onUpdate:value", "fields", "models", "multiple", "size", "tree-type", "onClear", "onFocus", "onSetValue"])) : (n2.row.componentType && "select" === n2.row.componentType || "BOOLEAN" === n2.row.dataType) && !a.isDynamicDataSourceSource(n2.row) ? (Vue.openBlock(), Vue.createBlock(d, { key: 5, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(n2.row.searchControlWidth), clearable: "", size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(n2.row.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(c, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : n2.row.componentType && "multiselect" === n2.row.componentType && !a.isDynamicDataSourceSource(n2.row) ? (Vue.openBlock(), Vue.createBlock(d, { key: 6, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(n2.row.searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(n2.row.valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(c, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "style", "onFocus", "onInput"])) : n2.row.componentType && ("multiselect" === n2.row.componentType || "select" === n2.row.componentType) && a.isDynamicDataSourceSource(n2.row) ? (Vue.openBlock(), Vue.createBlock(g, { key: 7, "base-props": { multiple: "multiselect" === n2.row.componentType }, entity: n2.row, "is-join-table": i2.isJoinTable, "list-code": o.code, options: a.getDynamicDataSourceOptions(n2.row), "table-name": i2.tableName, value: n2.row.value, onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["base-props", "entity", "is-join-table", "list-code", "options", "table-name", "value", "onInput"])) : n2.row.componentType && "inputNumber" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(f, { key: 8, n: e2.n, r: e2.r, size: "default", onFocus: (e3) => a.selectRow(n2.row), onSetValue: a.setNumberValue }, null, 8, ["n", "r", "onFocus", "onSetValue"])) : n2.row.componentType && "switch" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(A, { key: 9, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : n2.row.componentType && "slider" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(y, { key: 10, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : n2.row.componentType && "rate" === n2.row.componentType ? (Vue.openBlock(), Vue.createBlock(C, { key: 11, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"])) : true === a.customComponent(n2.row.prop) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$V, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(n2.row.componentName), { ref: n2.row.componentName, value: n2.row.value, "onUpdate:value": (e3) => n2.row.value = e3, prop: n2.row.prop, row: n2.row, "additional-settings": i2.controlConfig, class: "customComponent", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3, n2.row.componentName) }, null, 40, ["value", "onUpdate:value", "prop", "row", "additional-settings", "onFocus", "onInput"]))])) : (Vue.openBlock(), Vue.createBlock(w, { key: 13, modelValue: n2.row.value, "onUpdate:modelValue": (e3) => n2.row.value = e3, style: Vue.normalizeStyle(n2.row.searchControlWidth), size: "default", onFocus: (e3) => a.selectRow(n2.row), onInput: (e3) => a.setValueToModelProp(n2.$index, e3), onKeyup: t2[0] || (t2[0] = Vue.withKeys((t3) => e2.submitForm("searchForm"), ["enter"])) }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "onFocus", "onInput"]))]), key: "0" } : void 0]), 1032, ["label"]), Vue.createVNode(u, { label: ")", prop: "rightBracket", width: "90" }, { default: Vue.withCtx((e3) => [Vue.createVNode(d, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, clearable: "", size: "default", onFocus: (t3) => a.selectRow(e3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: "", value: "" }), Vue.createVNode(c, { label: ")", value: ")" }), Vue.createVNode(c, { label: "))", value: "))" }), Vue.createVNode(c, { label: ")))", value: ")))" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.andOr"), prop: "logicOperator", width: "110" }, { default: Vue.withCtx((t3) => [Vue.createVNode(d, { modelValue: t3.row.joinSign, "onUpdate:modelValue": (e3) => t3.row.joinSign = e3, clearable: "", size: "default", onFocus: (e3) => a.selectRow(t3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.perhaps"), value: "or" }, null, 8, ["label"]), Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.also"), value: "and" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), Vue.createVNode(u, { label: e2.$t("imatrixUIPublicModel.whenTheVariableIsEmpty"), width: "110" }, { default: Vue.withCtx((t3) => [Vue.createVNode(d, { modelValue: t3.row.variableIsNull, "onUpdate:modelValue": (e3) => t3.row.variableIsNull = e3, clearable: "", size: "default", onFocus: (e3) => a.selectRow(t3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(c, { label: "Null", value: "null" }), Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.ignore11"), value: "1=1" }, null, 8, ["label"]), Vue.createVNode(c, { label: e2.$t("imatrixUIPublicModel.nonConformity"), value: "1<>1" }, null, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "row-class-name", "onCurrentChange"])])) : Vue.createCommentVNode("", true);
|
|
6866
6870
|
}
|
|
6867
6871
|
const searchFormAdvancedQuery = _export_sfc(_sfc_main$1O, [["render", _sfc_render$13], ["__scopeId", "data-v-0b145154"]]), searchFormMobile_vue_vue_type_style_index_0_scoped_c8fb4788_lang = "", _sfc_main$1N = { name: "SearchFormMobile", components: { SearchFormItem, SearchButton }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, rules: { type: Object, default: null }, labelWidth: { type: String, default: null }, query: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, loadCompleteQuery: { type: Boolean, default: false } }, data() {
|
|
6868
6872
|
const e2 = store$1.get(this.code);
|
|
@@ -7220,10 +7224,10 @@
|
|
|
7220
7224
|
return ((_a = t4 == null ? void 0 : t4.children) == null ? void 0 : _a.length) ? [t4, ...e3(t4.children)] : [t4];
|
|
7221
7225
|
})) ?? [];
|
|
7222
7226
|
return e3(A.value);
|
|
7223
|
-
}),
|
|
7227
|
+
}), C = Vue.computed(() => {
|
|
7224
7228
|
var _a;
|
|
7225
7229
|
return e2.isStackingPaginatedData ? (((_a = s.value[e2.currentPage - 1]) == null ? void 0 : _a.length) ?? 0) > 0 : A.value.length < e2.pageSize * e2.currentPage && b.value >= e2.currentPage;
|
|
7226
|
-
}),
|
|
7230
|
+
}), w = Vue.computed(() => {
|
|
7227
7231
|
var _a;
|
|
7228
7232
|
return ((_a = p.value[p.value.length - 1]) == null ? void 0 : _a.children) ?? [];
|
|
7229
7233
|
}), V = Vue.computed(() => {
|
|
@@ -7273,7 +7277,7 @@
|
|
|
7273
7277
|
const t4 = (e3 == null ? void 0 : e3.windowHeight) - 70;
|
|
7274
7278
|
return t4 > 400 ? t4 : 400;
|
|
7275
7279
|
}
|
|
7276
|
-
} }, { default: () => [Vue.createVNode(elementPlus.ElDrawer, { modelValue: d.value, "onUpdate:modelValue": (e3) => d.value = e3, "modal-class": "yx-drawer yx-scrollbar-body", "with-header": true, direction: "btt", "append-to-body": true, size: "90vh", onClosed: () => p.value = [] }, { default: () => [Vue.createVNode(Scrollbar, { "scrollable-main": true, "max-height": "100%", style: { flex: "1 1 auto" } }, { default: () => [Vue.createVNode("div", { class: "yx-flex-wrap", vertical: true, style: { gap: "15px" } }, [
|
|
7280
|
+
} }, { default: () => [Vue.createVNode(elementPlus.ElDrawer, { modelValue: d.value, "onUpdate:modelValue": (e3) => d.value = e3, "modal-class": "yx-drawer yx-scrollbar-body", "with-header": true, direction: "btt", "append-to-body": true, size: "90vh", onClosed: () => p.value = [] }, { default: () => [Vue.createVNode(Scrollbar, { "scrollable-main": true, "max-height": "100%", style: { flex: "1 1 auto" } }, { default: () => [Vue.createVNode("div", { class: "yx-flex-wrap", vertical: true, style: { gap: "15px" } }, [w.value.map((t4, o2) => {
|
|
7277
7281
|
var _a, _b, _c, _d;
|
|
7278
7282
|
const n2 = r.value.includes(t4.$rowDataGuId), a2 = !!((((_a = t4 == null ? void 0 : t4.children) == null ? void 0 : _a.length) ?? 0) > 0), l2 = ((_b = v.value.content) == null ? void 0 : _b.find(({ property: e3 }) => e3)) ?? v.value.content[0], s2 = e2.isEnableEdit;
|
|
7279
7283
|
return Vue.createVNode(Card, { form: t4, no: E ? o2 + 1 : void 0, isChecked: n2, isSubTable: a2, isCheck: x.value, isMore: !t4.$editing, isShowDetailsMore: I.value, isEnableEdit: s2, onChecked: () => !t4.$editing && B(t4.$rowDataGuId), onShowSubTable: () => {
|
|
@@ -7291,7 +7295,7 @@
|
|
|
7291
7295
|
return Vue.createVNode(Card, { form: t4, no: E ? o2 + 1 : void 0, isChecked: n2, isSubTable: a2, isCheck: x.value, isMore: !t4.$editing, isShowDetailsMore: I.value, isEnableEdit: s2, onChecked: () => !t4.$editing && B(t4.$rowDataGuId), onShowSubTable: () => {
|
|
7292
7296
|
p.value = [t4], d.value = true;
|
|
7293
7297
|
}, onRowClick: (e3) => i2("rowClick", t4, l2, e3), onRowDblclick: (e3) => i2("rowDblclick", t4, l2, e3) }, { titleSlot: v.value.header && ((_c = v.value.header) == null ? void 0 : _c.map((e3) => N(e3, t4, o2, true))), children: ({ isMore: n3 }) => P(v.value.content, t4, o2, n3 ? e2.showFieldCount : void 0), footerSlot: S.value && Vue.createVNode("div", { class: "yx-flex-wrap", wrap: true, style: { gap: "15px" } }, [(_d = v.value.footer) == null ? void 0 : _d.map((e3) => N(e3, t4, o2))]) });
|
|
7294
|
-
}), A.value.length > 0 && t3, A.value.length > 0 && b.value > 1 && Vue.createVNode(elementPlus.ElDivider, null, { default: () => [b.value > e2.currentPage || l.value ? Vue.createVNode(elementPlus.ElIcon, { "loading-rotate": true, size: 25, color: "#409eff", style: { margin: "15px auto" } }, { default: () => [Vue.createVNode(ElementPlusIconsVue.Loading, null, null)] }) : b.value <= e2.currentPage &&
|
|
7298
|
+
}), A.value.length > 0 && t3, A.value.length > 0 && b.value > 1 && Vue.createVNode(elementPlus.ElDivider, null, { default: () => [b.value > e2.currentPage || l.value ? Vue.createVNode(elementPlus.ElIcon, { "loading-rotate": true, size: 25, color: "#409eff", style: { margin: "15px auto" } }, { default: () => [Vue.createVNode(ElementPlusIconsVue.Loading, null, null)] }) : b.value <= e2.currentPage && C.value && o("imatrixUIPublicModel.noMoreData")] })])] }) };
|
|
7295
7299
|
}, render() {
|
|
7296
7300
|
return this.renderDom(this.getAddBtn(this.createRow));
|
|
7297
7301
|
} }), events$1 = { select: function(e2, t2) {
|
|
@@ -7733,7 +7737,7 @@
|
|
|
7733
7737
|
function _sfc_render$_(e2, t2, o, n, i2, a) {
|
|
7734
7738
|
return Vue.openBlock(), Vue.createElementBlock("ul", _hoisted_1$1j, [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o.buttomArr, (e3) => (Vue.openBlock(), Vue.createElementBlock("li", { key: e3.name }, [Vue.createElementVNode("i", { class: Vue.normalizeClass(e3.icon) }, null, 2), Vue.createElementVNode("span", { onClick: (t3) => a.buttonClick(e3.event, e3) }, Vue.toDisplayString(e3.label), 9, _hoisted_2$S)]))), 128))]);
|
|
7735
7739
|
}
|
|
7736
|
-
const headerContextMenu = _export_sfc(_sfc_main$1I, [["render", _sfc_render$_], ["__scopeId", "data-v-040fcf55"]]),
|
|
7740
|
+
const headerContextMenu = _export_sfc(_sfc_main$1I, [["render", _sfc_render$_], ["__scopeId", "data-v-040fcf55"]]), superGrid_vue_vue_type_style_index_0_scoped_7e63a75f_rel_stylesheet_2Fscss_lang = "", _sfc_main$1H = { components: { IndexColumn, SelectionColumn, NormalColumn, GroupColumn, ColumnsConfig, SearchForm: SearchForm$1, headerContextMenu, searchFormDialog, ElIconSetting: ElementPlusIconsVue.Setting, ElIconRefresh: ElementPlusIconsVue.Refresh, RowDetail, MobileCard }, name: "SuperGrid", props: { isShowAutoCard: { type: Boolean, default: true }, code: { type: String, default: "" }, url: { type: String, default: "" }, options: { type: Object, default: function() {
|
|
7737
7741
|
return {};
|
|
7738
7742
|
} }, publishVersion: { type: Number, default: 0 }, customFormatter: { type: Object, default: null }, searchFormInfo: { type: Object, default: () => ({}) }, showPagination: { type: Boolean, default: true }, listToolbarFormData: { type: Object, default: null }, settings: { type: Object, default: null }, additionalParamMap: { type: Object, default: null }, manualHeightOffset: { type: [void 0, Number], default: void 0 }, isDialog: { type: Boolean, default: false } }, data() {
|
|
7739
7743
|
let e2;
|
|
@@ -8809,10 +8813,10 @@
|
|
|
8809
8813
|
} }, emits: ["change-grid-data", "change-rows-per-page", "set-select-options", "setSearchType", "sort-change", "changeHederWidth", "header-click", "un-edit", "refresMainTableFields", "refresh", "cancel-search", "changeOperationAddState"] }, _hoisted_1$1i = { class: "yx-flex-wrap", justify: "space-between" }, _hoisted_2$R = { style: { flex: "'1 1 auto'", width: "60px" } }, _hoisted_3$E = { key: 0, class: "yx-flex-wrap" }, _hoisted_4$t = { key: 2, class: "super-grid-main-table-footer-view" }, _hoisted_5$m = { class: "yx-flex-wrap", style: { gap: "10px" } }, _hoisted_6$d = { key: 0, style: { width: "16px", height: "16px" } }, _hoisted_7$9 = ["title"], _hoisted_8$8 = ["title"];
|
|
8810
8814
|
function _sfc_render$Z(e2, t2, o, n, i2, a) {
|
|
8811
8815
|
var _a, _b, _c, _d;
|
|
8812
|
-
const l = Vue.resolveComponent("search-form"), s = Vue.resolveComponent("el-button"), r = Vue.resolveComponent("el-option"), u = Vue.resolveComponent("el-select"), c = Vue.resolveComponent("search-form-dialog"), d = Vue.resolveComponent("MobileCard"), p = Vue.resolveComponent("row-detail"), m = Vue.resolveComponent("el-table"), h2 = Vue.resolveComponent("el-icon-setting"), g = Vue.resolveComponent("el-icon-refresh"), f = Vue.resolveComponent("el-pagination"), A = Vue.resolveComponent("columns-config"), y = Vue.resolveComponent("header-context-menu"),
|
|
8813
|
-
return Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: Vue.normalizeStyle(i2.subTableStyle), onClick: t2[11] || (t2[11] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [(i2.isFormSubTable && i2.isMobile && i2.isHasSearchColumn && i2.query && ("embedded" === i2.query.showType || "popup" === i2.query.showType) || !i2.isFormSubTable && i2.query && "embedded" === i2.query.showType) && i2.hasLoadedColumns ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(l, { key: 0, ref: "sf", columns: i2.columns, code: o.code, url: o.url, pagination: i2.pagination, query: i2.query, "search-form-info": o.searchFormInfo, "search-param": i2.searchFormContent, "init-search-props": i2.initSearchProps, "list-toolbar-form-data": o.listToolbarFormData, "load-complete-query": i2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: a.doSearch, onReset: a.resetSearch, onOpenFold: a.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", o.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => i2.isShowMobileSearch = false) }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onOpenFold"])), [[Vue.vShow, !i2.isMobile || i2.isMobile && i2.isShowMobileSearch]]) : Vue.createCommentVNode("", true), Vue.createElementVNode("div", _hoisted_1$1i, [Vue.createElementVNode("div", _hoisted_2$R, [i2.isFormSubTable && i2.isHasSearchColumn && i2.query && ("embedded" === i2.query.showType || "popup" === i2.query.showType) ? (Vue.openBlock(), Vue.createBlock(s, { key: 0, size: "small", onClick: a.showSubTableSearch }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : Vue.createCommentVNode("", true)]), i2.isMobile && i2.orderColumns.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3$E, [Vue.createVNode(u, { style: { width: "120px", "padding-right": "10px" }, placeholder: e2.$t("superGrid.orderField"), clearable: "", filterable: "", modelValue: i2.orderField, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.orderField = e3), onChange: a.sortChangeColumn }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.orderColumns, (e3) => (Vue.openBlock(), Vue.createBlock(r, { key: e3.prop, value: e3.prop, label: a.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), Vue.createVNode(u, { style: { width: "120px" }, placeholder: e2.$t("superGrid.orderType"), clearable: "", modelValue: i2.orderType, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.orderType = e3), onChange: a.sortChangeType }, { default: Vue.withCtx(() => [Vue.createVNode(r, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), Vue.createVNode(r, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : Vue.createCommentVNode("", true)]), i2.hasLoadedColumns ? (Vue.openBlock(), Vue.createBlock(c, { key: 1, ref: "sfDialog", columns: i2.columns, code: o.code, url: o.url, pagination: i2.pagination, query: i2.query, "search-form-info": o.searchFormInfo, "search-param": i2.searchFormContent, "init-search-props": i2.initSearchProps, "list-toolbar-form-data": o.listToolbarFormData, "load-complete-query": i2.loadCompleteQuery, onSearch: a.doSearchDialog, onReset: a.resetSearch, onClose: a.closeSearchFormDialog }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onClose"])) : Vue.createCommentVNode("", true), Vue.createElementVNode("div", { ref: "superGridMain", class: Vue.normalizeClass(["grid-area " + o.code, "super-grid-main-body"]) }, [a.isShowCard ? (Vue.openBlock(), Vue.createBlock(d, { key: 0, selection: i2.selectionTableData, columns: a.visibleColumns, listCode: o.code, getColumnComponentData: a.getColumnComponentData, data: a.tableDatas, isEnableEdit: (_a = i2.lineEdit) == null ? void 0 : _a.editable, "current-page": i2.currentPage, "onUpdate:currentPage": t2[4] || (t2[4] = (e3) => i2.currentPage = e3), "page-size": (_c = (_b = i2.pagination) == null ? void 0 : _b.pageSizes) == null ? void 0 : _c[0], "page-total": (_d = i2.pagination) == null ? void 0 : _d.total, class: "super-grid-main-card-view", onSelect: a.selectRecord, onSelectionChange: a.cardSelectionChangeEvent, onCurrentChange: a.handleCurrentChange, onRowClick: a.rowClickEvent, onRowDblclick: a.rowDblclickEvent }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "isEnableEdit", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick"])) : i2.refreshGrid && i2.hasLoadedColumns && !a.isShowCard ? (Vue.openBlock(), Vue.createBlock(m, { key: 1, ref: "superGrid", data: a.tableDatas, "row-key": a.getRowKeyProp, "show-summary": a.showSummary, "summary-method": a.getSummaries, style: Vue.normalizeStyle(i2.tableStyle), stripe: i2.stripe, border: true, "default-expand-all": i2.defaultExpandAll, lazy: i2.isLazy, load: a.loadChildren, "row-style": a.changeRowStyle, "cell-style": a.changeCellStyle, "header-cell-style": a.changeHeaderStyle, "highlight-current-row": true, "span-method": a.rowSpan, "max-height": a.hasMaxHeight, height: a.hasTableHeight, class: Vue.normalizeClass([i2.tableClass, "super-grid-main-table-view"]), "tree-props": a.getTreeProps(i2.parentProp, i2.isSql, i2.isLazy, i2.dataSourceType), "scrollbar-always-on": a.scrollbarAlwaysOn, onSortChange: a.handleSortChange, onSelect: a.selectRecord, onSelectAll: a.selectAllRecord, onSelectionChange: a.selectionChangeEvent, onRowClick: a.rowClickEvent, onRowDblclick: a.rowDblclickEvent, onExpandChange: a.expandChange, onHeaderClick: a.headerClickEvent, onHeaderDragend: a.changeHederWidth, onHeaderContextmenu: a.headerContextmenu, onCellClick: a.selectCell, onCellDblclick: e2.cellDblClick }, { default: Vue.withCtx(() => [i2.detailColumn ? (Vue.openBlock(), Vue.createBlock(p, { key: 0, column: i2.detailColumn, "list-code": o.code, onShowDetail: a.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : Vue.createCommentVNode("", true), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(a.visibleColumnsComponentData, ({ column: e3, ...t3 }, o2) => (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(a.getComponentType(e3)), Vue.mergeProps({ ref_for: true, ref: e3.prop, key: e3.label + o2, "grid-ref": a.getSuperGridRef() }, { ref_for: true }, t3.$bind, Vue.toHandlers(t3.$on)), null, 16, ["grid-ref"]))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "load", "row-style", "cell-style", "header-cell-style", "span-method", "max-height", "height", "class", "tree-props", "scrollbar-always-on", "onSortChange", "onSelect", "onSelectAll", "onSelectionChange", "onRowClick", "onRowDblclick", "onExpandChange", "onHeaderClick", "onHeaderDragend", "onHeaderContextmenu", "onCellClick", "onCellDblclick"])) : Vue.createCommentVNode("", true), o.showPagination && !a.isShowCard ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4$t, [Vue.createElementVNode("div", _hoisted_5$m, [i2.isFormSubTable && i2.pagination && i2.isShowPage ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_6$d)) : Vue.createCommentVNode("", true), i2.basicInfo.customConfig && !i2.isFormSubTable ? (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => a.configColumns && a.configColumns(...e3)) }, [Vue.createVNode(h2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, _hoisted_7$9)) : Vue.createCommentVNode("", true), i2.isFormSubTable ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => a.refreshGridData && a.refreshGridData(...e3)) }, [Vue.createVNode(g, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, _hoisted_8$8))]), i2.pagination && i2.isShowPage ? (Vue.openBlock(), Vue.createBlock(f, { key: 0, "current-page": i2.currentPage, "onUpdate:currentPage": t2[7] || (t2[7] = (e3) => i2.currentPage = e3), "page-size": i2.pagination.pageSize, "onUpdate:pageSize": t2[8] || (t2[8] = (e3) => i2.pagination.pageSize = e3), background: "", "page-sizes": i2.pagination.pageSizes, layout: i2.pagination.layout, total: i2.pagination.showTotal ? void 0 !== i2.pagination.total && "" !== i2.pagination.total && null !== i2.pagination.total ? i2.pagination.total : 0 : 1e11, onSizeChange: a.handleSizeChange, onCurrentChange: a.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : Vue.createCommentVNode("", true)])) : Vue.createCommentVNode("", true)], 2), i2.showColumnConfig ? (Vue.openBlock(), Vue.createBlock(A, { key: 2, "visible-columns": a.visibleColumns, "list-code": o.code, "is-sql": i2.isSql, onClose: t2[9] || (t2[9] = (e3) => a.closeCustomConfig(e3)), onReset: t2[10] || (t2[10] = (e3) => a.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : Vue.createCommentVNode("", true), i2.showHeaderContextmenu ? (Vue.openBlock(), Vue.createBlock(y, { key: 3, ref: "headerMenu", "buttom-arr": o.options.rightClickMenuArr, column: i2.rightClickColumn, onClearHeaderContextmenu: a.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : Vue.createCommentVNode("", true), i2.showRowForm ? (Vue.openBlock(), Vue.createBlock(w, { key: 4, "parent-form-data": i2.parentFormData, columns: a.visibleColumns, "row-index": i2.currentEditRowIndex, "list-code": o.code, "drag-column-prop": i2.dragColumnProp, "is-sql": i2.isSql, "base-url": i2.baseURL, options: o.options, "table-name": i2.tableName, "page-code": i2.pageCode, "list-toolbar-form-data": o.listToolbarFormData, "list-name": i2.listName, "current-page": i2.currentPage, "grid-data": i2.isSubTableShowPage ? i2.subTableData : i2.gridData, "page-grid-data": i2.isSubTableShowPage ? a.getSubTableGridData(i2.subTableData) : i2.gridData, "line-edit": i2.lineEdit, "show-page": i2.pagination && i2.isShowPage, "page-size": i2.pagination ? i2.pagination.pageSize : null, onClose: a.closeRowForm, onRefresData: a.refresData, onRefresPortData: a.refresPortData, onRefresPortsData: a.refresPortsData, onRefresMainTableFields: a.refresMainTableFields, onOpenPage: a.openPageDialog, onProhibitToEdit: a.prohibitToEdit, onRefreshList: a.refreshList }, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "show-page", "page-size", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit", "onRefreshList"])) : Vue.createCommentVNode("", true)], 4)), [[C, a.onResize]]);
|
|
8816
|
+
const l = Vue.resolveComponent("search-form"), s = Vue.resolveComponent("el-button"), r = Vue.resolveComponent("el-option"), u = Vue.resolveComponent("el-select"), c = Vue.resolveComponent("search-form-dialog"), d = Vue.resolveComponent("MobileCard"), p = Vue.resolveComponent("row-detail"), m = Vue.resolveComponent("el-table"), h2 = Vue.resolveComponent("el-icon-setting"), g = Vue.resolveComponent("el-icon-refresh"), f = Vue.resolveComponent("el-pagination"), A = Vue.resolveComponent("columns-config"), y = Vue.resolveComponent("header-context-menu"), C = Vue.resolveComponent("row-form"), w = Vue.resolveDirective("resize");
|
|
8817
|
+
return Vue.withDirectives((Vue.openBlock(), Vue.createElementBlock("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: Vue.normalizeStyle(i2.subTableStyle), onClick: t2[11] || (t2[11] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [(i2.isFormSubTable && i2.isMobile && i2.isHasSearchColumn && i2.query && ("embedded" === i2.query.showType || "popup" === i2.query.showType) || !i2.isFormSubTable && i2.query && "embedded" === i2.query.showType) && i2.hasLoadedColumns ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(l, { key: 0, ref: "sf", columns: i2.columns, code: o.code, url: o.url, pagination: i2.pagination, query: i2.query, "search-form-info": o.searchFormInfo, "search-param": i2.searchFormContent, "init-search-props": i2.initSearchProps, "list-toolbar-form-data": o.listToolbarFormData, "load-complete-query": i2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: a.doSearch, onReset: a.resetSearch, onOpenFold: a.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", o.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => i2.isShowMobileSearch = false) }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onOpenFold"])), [[Vue.vShow, !i2.isMobile || i2.isMobile && i2.isShowMobileSearch]]) : Vue.createCommentVNode("", true), Vue.createElementVNode("div", _hoisted_1$1i, [Vue.createElementVNode("div", _hoisted_2$R, [i2.isFormSubTable && i2.isHasSearchColumn && i2.query && ("embedded" === i2.query.showType || "popup" === i2.query.showType) ? (Vue.openBlock(), Vue.createBlock(s, { key: 0, size: "small", onClick: a.showSubTableSearch }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : Vue.createCommentVNode("", true)]), i2.isMobile && i2.orderColumns.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3$E, [Vue.createVNode(u, { style: { width: "120px", "padding-right": "10px" }, placeholder: e2.$t("superGrid.orderField"), clearable: "", filterable: "", modelValue: i2.orderField, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => i2.orderField = e3), onChange: a.sortChangeColumn }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.orderColumns, (e3) => (Vue.openBlock(), Vue.createBlock(r, { key: e3.prop, value: e3.prop, label: a.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), Vue.createVNode(u, { style: { width: "120px" }, placeholder: e2.$t("superGrid.orderType"), clearable: "", modelValue: i2.orderType, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.orderType = e3), onChange: a.sortChangeType }, { default: Vue.withCtx(() => [Vue.createVNode(r, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), Vue.createVNode(r, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : Vue.createCommentVNode("", true)]), i2.hasLoadedColumns ? (Vue.openBlock(), Vue.createBlock(c, { key: 1, ref: "sfDialog", columns: i2.columns, code: o.code, url: o.url, pagination: i2.pagination, query: i2.query, "search-form-info": o.searchFormInfo, "search-param": i2.searchFormContent, "init-search-props": i2.initSearchProps, "list-toolbar-form-data": o.listToolbarFormData, "load-complete-query": i2.loadCompleteQuery, onSearch: a.doSearchDialog, onReset: a.resetSearch, onClose: a.closeSearchFormDialog }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onClose"])) : Vue.createCommentVNode("", true), Vue.createElementVNode("div", { ref: "superGridMain", class: Vue.normalizeClass(["grid-area " + o.code, "super-grid-main-body"]) }, [a.isShowCard ? (Vue.openBlock(), Vue.createBlock(d, { key: 0, selection: i2.selectionTableData, columns: a.visibleColumns, listCode: o.code, getColumnComponentData: a.getColumnComponentData, data: a.tableDatas, isEnableEdit: (_a = i2.lineEdit) == null ? void 0 : _a.editable, "current-page": i2.currentPage, "onUpdate:currentPage": t2[4] || (t2[4] = (e3) => i2.currentPage = e3), "page-size": (_c = (_b = i2.pagination) == null ? void 0 : _b.pageSizes) == null ? void 0 : _c[0], "page-total": (_d = i2.pagination) == null ? void 0 : _d.total, class: "super-grid-main-card-view", onSelect: a.selectRecord, onSelectionChange: a.cardSelectionChangeEvent, onCurrentChange: a.handleCurrentChange, onRowClick: a.rowClickEvent, onRowDblclick: a.rowDblclickEvent }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "isEnableEdit", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick"])) : i2.refreshGrid && i2.hasLoadedColumns && !a.isShowCard ? (Vue.openBlock(), Vue.createBlock(m, { key: 1, ref: "superGrid", data: a.tableDatas, "row-key": a.getRowKeyProp, "show-summary": a.showSummary, "summary-method": a.getSummaries, style: Vue.normalizeStyle(i2.tableStyle), stripe: i2.stripe, border: true, "default-expand-all": i2.defaultExpandAll, lazy: i2.isLazy, load: a.loadChildren, "row-style": a.changeRowStyle, "cell-style": a.changeCellStyle, "header-cell-style": a.changeHeaderStyle, "highlight-current-row": true, "span-method": a.rowSpan, "max-height": a.hasMaxHeight, height: a.hasTableHeight, class: Vue.normalizeClass([i2.tableClass, "super-grid-main-table-view"]), "tree-props": a.getTreeProps(i2.parentProp, i2.isSql, i2.isLazy, i2.dataSourceType), "scrollbar-always-on": a.scrollbarAlwaysOn, onSortChange: a.handleSortChange, onSelect: a.selectRecord, onSelectAll: a.selectAllRecord, onSelectionChange: a.selectionChangeEvent, onRowClick: a.rowClickEvent, onRowDblclick: a.rowDblclickEvent, onExpandChange: a.expandChange, onHeaderClick: a.headerClickEvent, onHeaderDragend: a.changeHederWidth, onHeaderContextmenu: a.headerContextmenu, onCellClick: a.selectCell, onCellDblclick: e2.cellDblClick }, { default: Vue.withCtx(() => [i2.detailColumn ? (Vue.openBlock(), Vue.createBlock(p, { key: 0, column: i2.detailColumn, "list-code": o.code, onShowDetail: a.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : Vue.createCommentVNode("", true), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(a.visibleColumnsComponentData, ({ column: e3, ...t3 }, o2) => (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(a.getComponentType(e3)), Vue.mergeProps({ ref_for: true, ref: e3.prop, key: e3.label + o2, "get-super-grid-ref": a.getSuperGridRef }, { ref_for: true }, t3.$bind, Vue.toHandlers(t3.$on)), null, 16, ["get-super-grid-ref"]))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "load", "row-style", "cell-style", "header-cell-style", "span-method", "max-height", "height", "class", "tree-props", "scrollbar-always-on", "onSortChange", "onSelect", "onSelectAll", "onSelectionChange", "onRowClick", "onRowDblclick", "onExpandChange", "onHeaderClick", "onHeaderDragend", "onHeaderContextmenu", "onCellClick", "onCellDblclick"])) : Vue.createCommentVNode("", true), o.showPagination && !a.isShowCard ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4$t, [Vue.createElementVNode("div", _hoisted_5$m, [i2.isFormSubTable && i2.pagination && i2.isShowPage ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_6$d)) : Vue.createCommentVNode("", true), i2.basicInfo.customConfig && !i2.isFormSubTable ? (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => a.configColumns && a.configColumns(...e3)) }, [Vue.createVNode(h2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, _hoisted_7$9)) : Vue.createCommentVNode("", true), i2.isFormSubTable ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => a.refreshGridData && a.refreshGridData(...e3)) }, [Vue.createVNode(g, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, _hoisted_8$8))]), i2.pagination && i2.isShowPage ? (Vue.openBlock(), Vue.createBlock(f, { key: 0, "current-page": i2.currentPage, "onUpdate:currentPage": t2[7] || (t2[7] = (e3) => i2.currentPage = e3), "page-size": i2.pagination.pageSize, "onUpdate:pageSize": t2[8] || (t2[8] = (e3) => i2.pagination.pageSize = e3), background: "", "page-sizes": i2.pagination.pageSizes, layout: i2.pagination.layout, total: i2.pagination.showTotal ? void 0 !== i2.pagination.total && "" !== i2.pagination.total && null !== i2.pagination.total ? i2.pagination.total : 0 : 1e11, onSizeChange: a.handleSizeChange, onCurrentChange: a.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : Vue.createCommentVNode("", true)])) : Vue.createCommentVNode("", true)], 2), i2.showColumnConfig ? (Vue.openBlock(), Vue.createBlock(A, { key: 2, "visible-columns": a.visibleColumns, "list-code": o.code, "is-sql": i2.isSql, onClose: t2[9] || (t2[9] = (e3) => a.closeCustomConfig(e3)), onReset: t2[10] || (t2[10] = (e3) => a.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : Vue.createCommentVNode("", true), i2.showHeaderContextmenu ? (Vue.openBlock(), Vue.createBlock(y, { key: 3, ref: "headerMenu", "buttom-arr": o.options.rightClickMenuArr, column: i2.rightClickColumn, onClearHeaderContextmenu: a.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : Vue.createCommentVNode("", true), i2.showRowForm ? (Vue.openBlock(), Vue.createBlock(C, { key: 4, "parent-form-data": i2.parentFormData, columns: a.visibleColumns, "row-index": i2.currentEditRowIndex, "list-code": o.code, "drag-column-prop": i2.dragColumnProp, "is-sql": i2.isSql, "base-url": i2.baseURL, options: o.options, "table-name": i2.tableName, "page-code": i2.pageCode, "list-toolbar-form-data": o.listToolbarFormData, "list-name": i2.listName, "current-page": i2.currentPage, "grid-data": i2.isSubTableShowPage ? i2.subTableData : i2.gridData, "page-grid-data": i2.isSubTableShowPage ? a.getSubTableGridData(i2.subTableData) : i2.gridData, "line-edit": i2.lineEdit, "show-page": i2.pagination && i2.isShowPage, "page-size": i2.pagination ? i2.pagination.pageSize : null, onClose: a.closeRowForm, onRefresData: a.refresData, onRefresPortData: a.refresPortData, onRefresPortsData: a.refresPortsData, onRefresMainTableFields: a.refresMainTableFields, onOpenPage: a.openPageDialog, onProhibitToEdit: a.prohibitToEdit, onRefreshList: a.refreshList }, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "show-page", "page-size", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit", "onRefreshList"])) : Vue.createCommentVNode("", true)], 4)), [[w, a.onResize]]);
|
|
8814
8818
|
}
|
|
8815
|
-
const SuperGrid = _export_sfc(_sfc_main$1H, [["render", _sfc_render$Z], ["__scopeId", "data-v-
|
|
8819
|
+
const SuperGrid = _export_sfc(_sfc_main$1H, [["render", _sfc_render$Z], ["__scopeId", "data-v-7e63a75f"]]);
|
|
8816
8820
|
SuperGrid.install = function(e2) {
|
|
8817
8821
|
e2.component(SuperGrid.name, SuperGrid);
|
|
8818
8822
|
};
|
|
@@ -9060,8 +9064,8 @@
|
|
|
9060
9064
|
e2 && (this.selectNodeInfo = e2, this.$emit("result", this.selectNodeInfo));
|
|
9061
9065
|
} }, emits: ["result"] }, _hoisted_1$1c = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, _hoisted_2$O = ["title"], _hoisted_3$B = { key: 1, style: { height: "100%", overflow: "hidden" } };
|
|
9062
9066
|
function _sfc_render$V(e2, t2, o, n, i2, a) {
|
|
9063
|
-
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-autocomplete"), r = Vue.resolveComponent("el-header"), u = Vue.resolveComponent("Menu"), c = Vue.resolveComponent("Tickets"), d = Vue.resolveComponent("User"), p = Vue.resolveComponent("Calendar"), m = Vue.resolveComponent("el-icon"), h2 = Vue.resolveComponent("el-tree"), g = Vue.resolveComponent("el-tab-pane"), f = Vue.resolveComponent("GroupUser"), A = Vue.resolveComponent("GroupUserSingleTree"), y = Vue.resolveComponent("el-tabs"),
|
|
9064
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(v, { style: { height: "395px" } }, { default: Vue.withCtx(() => [Vue.createVNode(r, { style: { "font-size": "12px", height: "35px", padding: "0" } }, { default: Vue.withCtx(() => [Vue.createVNode(s, { modelValue: i2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input searchDepartmentUser", style: { width: "100%" }, size: "default", onSelect: e2.handleSelect, onKeyup: Vue.withKeys(e2.clickSearch, ["enter"]) }, { append: Vue.withCtx(() => [Vue.createVNode(l, { icon: i2.ElIconSearch, onClick: e2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), Vue.createVNode(V, { style: { padding: "10px", width: "100%" } }, { default: Vue.withCtx(() => [i2.searchValue && 0 !== i2.searchResult.length ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [i2.canShowOrgTree ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1c, [Vue.createVNode(y, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.activeTab = e3), class: "boe" }, { default: Vue.withCtx(() => [Vue.createVNode(g, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: Vue.withCtx(() => [Vue.createVNode(h2, { ref: "deparmentUserTree", load: a.loadNode, props: i2.defaultProps, lazy: "", "node-key": "nodeId", onNodeClick: a.handleNodeClick }, { default: Vue.withCtx(({ node: e3, data: t3 }) => [Vue.createElementVNode("span", null, [Vue.createVNode(m, null, { default: Vue.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (Vue.openBlock(), Vue.createBlock(u, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (Vue.openBlock(), Vue.createBlock(c, { key: 1 })) : "USER" === e3.data.nodeType ? (Vue.openBlock(), Vue.createBlock(d, { key: 2 })) : (Vue.openBlock(), Vue.createBlock(p, { key: 3 }))]), _: 2 }, 1024), Vue.createElementVNode("span", { title: e3.label }, Vue.toDisplayString(e3.label), 9, _hoisted_2$O)])]), _: 1 }, 8, ["load", "props", "onNodeClick"])]), _: 1 }, 8, ["label"]), Vue.createVNode(g, { name: "groupTree" }, { label: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("departmentUserTreeInline.group")), 1), Vue.createElementVNode("span", null, [Vue.createVNode(f, { "active-tab": i2.activeTab, onUpdateGroupTree: a.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: Vue.withCtx(() => [i2.isShowGroupTree ? (Vue.openBlock(), Vue.createBlock(A, { key: 0, onSingleClick: a.getGroupUserResult, onDblClick: a.dblClickGroupUserResult }, null, 8, ["onSingleClick", "onDblClick"])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (Vue.openBlock(), Vue.createBlock(
|
|
9067
|
+
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-autocomplete"), r = Vue.resolveComponent("el-header"), u = Vue.resolveComponent("Menu"), c = Vue.resolveComponent("Tickets"), d = Vue.resolveComponent("User"), p = Vue.resolveComponent("Calendar"), m = Vue.resolveComponent("el-icon"), h2 = Vue.resolveComponent("el-tree"), g = Vue.resolveComponent("el-tab-pane"), f = Vue.resolveComponent("GroupUser"), A = Vue.resolveComponent("GroupUserSingleTree"), y = Vue.resolveComponent("el-tabs"), C = Vue.resolveComponent("EmptyState"), w = Vue.resolveComponent("user-result"), V = Vue.resolveComponent("el-main"), v = Vue.resolveComponent("el-container");
|
|
9068
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(v, { style: { height: "395px" } }, { default: Vue.withCtx(() => [Vue.createVNode(r, { style: { "font-size": "12px", height: "35px", padding: "0" } }, { default: Vue.withCtx(() => [Vue.createVNode(s, { modelValue: i2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input searchDepartmentUser", style: { width: "100%" }, size: "default", onSelect: e2.handleSelect, onKeyup: Vue.withKeys(e2.clickSearch, ["enter"]) }, { append: Vue.withCtx(() => [Vue.createVNode(l, { icon: i2.ElIconSearch, onClick: e2.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), Vue.createVNode(V, { style: { padding: "10px", width: "100%" } }, { default: Vue.withCtx(() => [i2.searchValue && 0 !== i2.searchResult.length ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [i2.canShowOrgTree ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$1c, [Vue.createVNode(y, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.activeTab = e3), class: "boe" }, { default: Vue.withCtx(() => [Vue.createVNode(g, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: Vue.withCtx(() => [Vue.createVNode(h2, { ref: "deparmentUserTree", load: a.loadNode, props: i2.defaultProps, lazy: "", "node-key": "nodeId", onNodeClick: a.handleNodeClick }, { default: Vue.withCtx(({ node: e3, data: t3 }) => [Vue.createElementVNode("span", null, [Vue.createVNode(m, null, { default: Vue.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (Vue.openBlock(), Vue.createBlock(u, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (Vue.openBlock(), Vue.createBlock(c, { key: 1 })) : "USER" === e3.data.nodeType ? (Vue.openBlock(), Vue.createBlock(d, { key: 2 })) : (Vue.openBlock(), Vue.createBlock(p, { key: 3 }))]), _: 2 }, 1024), Vue.createElementVNode("span", { title: e3.label }, Vue.toDisplayString(e3.label), 9, _hoisted_2$O)])]), _: 1 }, 8, ["load", "props", "onNodeClick"])]), _: 1 }, 8, ["label"]), Vue.createVNode(g, { name: "groupTree" }, { label: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("departmentUserTreeInline.group")), 1), Vue.createElementVNode("span", null, [Vue.createVNode(f, { "active-tab": i2.activeTab, onUpdateGroupTree: a.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: Vue.withCtx(() => [i2.isShowGroupTree ? (Vue.openBlock(), Vue.createBlock(A, { key: 0, onSingleClick: a.getGroupUserResult, onDblClick: a.dblClickGroupUserResult }, null, 8, ["onSingleClick", "onDblClick"])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (Vue.openBlock(), Vue.createBlock(C, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), i2.searchValue && i2.searchValue.length > 0 && i2.searchResult.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3$B, [Vue.createVNode(w, { ref: "userResult", "contain-branch": i2.containBranch, "grid-data": i2.searchResult, height: o.height, multiple: false, onResultRowDblclick: a.resultRowDblclick, onSelectResult: a.getSelectUser }, null, 8, ["contain-branch", "grid-data", "height", "onResultRowDblclick", "onSelectResult"])])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 })]);
|
|
9065
9069
|
}
|
|
9066
9070
|
const InlineDepartmentUserSingleTree = _export_sfc(_sfc_main$1B, [["render", _sfc_render$V]]), _sfc_main$1A = { name: "DepartmentUserSingleTree", components: { InlineDepartmentUserSingleTree }, props: { departmentInfo: { type: Array, default: null }, title: { type: String, default: null }, width: { type: String, default: "30%" }, isNeedVirtualUser: { type: Boolean, default: false }, limitFilterColumn: { type: String, default: "code" } }, data() {
|
|
9067
9071
|
let e2 = this.$t("imatrixUIMessage.pleaseSelectPersonnel");
|
|
@@ -9366,8 +9370,8 @@
|
|
|
9366
9370
|
}, 10);
|
|
9367
9371
|
} }, emits: ["result"] }, _hoisted_1$19 = { key: 0, style: { "padding-top": "5px", overflow: "auto", width: "auto", display: "inline-block !important" } }, _hoisted_2$N = ["title"], _hoisted_3$A = { key: 1, style: { height: "100%", overflow: "hidden" } }, _hoisted_4$r = { style: { "text-align": "left", "font-size": "16px" } }, _hoisted_5$k = { style: "padding-top: 5px;height:90%;overflow: hidden;" };
|
|
9368
9372
|
function _sfc_render$S(e2, t2, o, n, i2, a) {
|
|
9369
|
-
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-autocomplete"), r = Vue.resolveComponent("el-header"), u = Vue.resolveComponent("Menu"), c = Vue.resolveComponent("Tickets"), d = Vue.resolveComponent("User"), p = Vue.resolveComponent("Calendar"), m = Vue.resolveComponent("el-icon"), h2 = Vue.resolveComponent("el-tree"), g = Vue.resolveComponent("el-tab-pane"), f = Vue.resolveComponent("GroupUser"), A = Vue.resolveComponent("GroupUserMultipleTree"), y = Vue.resolveComponent("el-tabs"),
|
|
9370
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(v, { style: { height: "395px" } }, { default: Vue.withCtx(() => [Vue.createVNode(b, { width: "430px" }, { default: Vue.withCtx(() => [Vue.createVNode(v, { style: { height: "390px" } }, { default: Vue.withCtx(() => [Vue.createVNode(r, { style: { "font-size": "12px", height: "35px", padding: "0px 10px" } }, { default: Vue.withCtx(() => [Vue.createVNode(s, { modelValue: i2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input inline-input-custom searchDepartmentUser", size: "default", onSelect: e2.handleSelect, onKeyup: Vue.withKeys(a.clickSearch, ["enter"]) }, { append: Vue.withCtx(() => [Vue.createVNode(l, { icon: i2.ElIconSearch, onClick: a.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), Vue.createVNode(V, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [i2.searchValue ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [i2.canShowOrgTree ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$19, [Vue.createVNode(y, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.activeTab = e3), class: "boe" }, { default: Vue.withCtx(() => [Vue.createVNode(g, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: Vue.withCtx(() => [Vue.createVNode(h2, { ref: "deparmentUserTree", props: i2.defaultProps, load: a.loadNode, "check-on-click-node": true, lazy: "", "show-checkbox": "", "node-key": "nodeId", onCheck: a.handleCheckNode, onCheckChange: a.handleCheckChange }, { default: Vue.withCtx(({ node: e3, data: t3 }) => [Vue.createElementVNode("span", null, [Vue.createVNode(m, null, { default: Vue.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (Vue.openBlock(), Vue.createBlock(u, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (Vue.openBlock(), Vue.createBlock(c, { key: 1 })) : "USER" === e3.data.nodeType ? (Vue.openBlock(), Vue.createBlock(d, { key: 2 })) : (Vue.openBlock(), Vue.createBlock(p, { key: 3 }))]), _: 2 }, 1024), Vue.createElementVNode("span", { title: e3.label }, Vue.toDisplayString(e3.label), 9, _hoisted_2$N)])]), _: 1 }, 8, ["props", "load", "onCheck", "onCheckChange"])]), _: 1 }, 8, ["label"]), Vue.createVNode(g, { name: "groupTree" }, { label: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("departmentUserTreeInline.group")), 1), Vue.createElementVNode("span", null, [Vue.createVNode(f, { "active-tab": i2.activeTab, onUpdateGroupTree: a.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: Vue.withCtx(() => [i2.isShowGroupTree ? (Vue.openBlock(), Vue.createBlock(A, { key: 0, onResult: a.getGroupUserResult }, null, 8, ["onResult"])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (Vue.openBlock(), Vue.createBlock(
|
|
9373
|
+
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-autocomplete"), r = Vue.resolveComponent("el-header"), u = Vue.resolveComponent("Menu"), c = Vue.resolveComponent("Tickets"), d = Vue.resolveComponent("User"), p = Vue.resolveComponent("Calendar"), m = Vue.resolveComponent("el-icon"), h2 = Vue.resolveComponent("el-tree"), g = Vue.resolveComponent("el-tab-pane"), f = Vue.resolveComponent("GroupUser"), A = Vue.resolveComponent("GroupUserMultipleTree"), y = Vue.resolveComponent("el-tabs"), C = Vue.resolveComponent("EmptyState"), w = Vue.resolveComponent("user-result"), V = Vue.resolveComponent("el-main"), v = Vue.resolveComponent("el-container"), b = Vue.resolveComponent("el-aside");
|
|
9374
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(v, { style: { height: "395px" } }, { default: Vue.withCtx(() => [Vue.createVNode(b, { width: "430px" }, { default: Vue.withCtx(() => [Vue.createVNode(v, { style: { height: "390px" } }, { default: Vue.withCtx(() => [Vue.createVNode(r, { style: { "font-size": "12px", height: "35px", padding: "0px 10px" } }, { default: Vue.withCtx(() => [Vue.createVNode(s, { modelValue: i2.filterText, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.filterText = e3), "fetch-suggestions": e2.querySearch, placeholder: e2.$t("departmentUserTree.pleaseEnterUserInformation"), class: "inline-input inline-input-custom searchDepartmentUser", size: "default", onSelect: e2.handleSelect, onKeyup: Vue.withKeys(a.clickSearch, ["enter"]) }, { append: Vue.withCtx(() => [Vue.createVNode(l, { icon: i2.ElIconSearch, onClick: a.clickSearch }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "fetch-suggestions", "placeholder", "onSelect", "onKeyup"])]), _: 1 }), Vue.createVNode(V, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [i2.searchValue ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [i2.canShowOrgTree ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$19, [Vue.createVNode(y, { modelValue: i2.activeTab, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.activeTab = e3), class: "boe" }, { default: Vue.withCtx(() => [Vue.createVNode(g, { label: e2.$t("departmentUserTreeInline.orgTree"), name: "orgTree" }, { default: Vue.withCtx(() => [Vue.createVNode(h2, { ref: "deparmentUserTree", props: i2.defaultProps, load: a.loadNode, "check-on-click-node": true, lazy: "", "show-checkbox": "", "node-key": "nodeId", onCheck: a.handleCheckNode, onCheckChange: a.handleCheckChange }, { default: Vue.withCtx(({ node: e3, data: t3 }) => [Vue.createElementVNode("span", null, [Vue.createVNode(m, null, { default: Vue.withCtx(() => [-1 === e3.data.id || e3.data.branch ? (Vue.openBlock(), Vue.createBlock(u, { key: 0 })) : -2 === e3.data.id || -3 === e3.data.id ? (Vue.openBlock(), Vue.createBlock(c, { key: 1 })) : "USER" === e3.data.nodeType ? (Vue.openBlock(), Vue.createBlock(d, { key: 2 })) : (Vue.openBlock(), Vue.createBlock(p, { key: 3 }))]), _: 2 }, 1024), Vue.createElementVNode("span", { title: e3.label }, Vue.toDisplayString(e3.label), 9, _hoisted_2$N)])]), _: 1 }, 8, ["props", "load", "onCheck", "onCheckChange"])]), _: 1 }, 8, ["label"]), Vue.createVNode(g, { name: "groupTree" }, { label: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("departmentUserTreeInline.group")), 1), Vue.createElementVNode("span", null, [Vue.createVNode(f, { "active-tab": i2.activeTab, onUpdateGroupTree: a.updateGroupTree }, null, 8, ["active-tab", "onUpdateGroupTree"])])]), default: Vue.withCtx(() => [i2.isShowGroupTree ? (Vue.openBlock(), Vue.createBlock(A, { key: 0, onResult: a.getGroupUserResult }, null, 8, ["onResult"])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 }, 8, ["modelValue"])])) : (Vue.openBlock(), Vue.createBlock(C, { key: 1, style: { width: "100%", height: "100%" } }))], 64)), i2.searchValue && i2.searchValue.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3$A, [Vue.createVNode(w, { "contain-branch": i2.containBranch, "grid-data": i2.searchResult, height: o.height, "is-search-result": true, multiple: true, "select-result": i2.selectResult, onAddUser: a.selectUser }, null, 8, ["contain-branch", "grid-data", "height", "select-result", "onAddUser"])])) : Vue.createCommentVNode("", true)]), _: 1 })]), _: 1 })]), _: 1 }), Vue.createVNode(v, null, { default: Vue.withCtx(() => [Vue.createVNode(b, { width: "2px" }, { default: Vue.withCtx(() => [...t2[2] || (t2[2] = [Vue.createElementVNode("table", { border: "1px", cellpadding: "0", cellspacing: "0", style: { height: "100%", "border-left-style": "solid", "border-bottom-style": "none", "border-right-style": "none", "border-top-style": "none", "border-left-color": "#cccccc" } }, null, -1)])]), _: 1 }), Vue.createVNode(V, { style: { padding: "10px" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_4$r, Vue.toDisplayString(e2.$t("departmentUserTree.selectedPeople")) + ":", 1), Vue.createElementVNode("div", _hoisted_5$k, [Vue.createVNode(w, { "contain-branch": i2.containBranch, "grid-data": i2.selectResult, height: o.height, "is-search-result": false, multiple: true, onRemoveUser: a.removeUser }, null, 8, ["contain-branch", "grid-data", "height", "onRemoveUser"])])]), _: 1 })]), _: 1 })]), _: 1 })]);
|
|
9371
9375
|
}
|
|
9372
9376
|
const InlineDepartmentUserMultiTree = _export_sfc(_sfc_main$1y, [["render", _sfc_render$S]]), departmentUserMultipleTree_vue_vue_type_style_index_0_lang = "", _sfc_main$1x = { name: "DepartmentUserMultiTree", components: { InlineDepartmentUserMultiTree }, props: { departmentInfo: { type: Array, default: null }, title: { type: String, default: null }, width: { type: String, default: "920px" }, height: { type: String, default: "300px" }, isNeedVirtualUser: { type: Boolean, default: false }, selectUserInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "loginName" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" } }, data() {
|
|
9373
9377
|
let e2 = this.$t("imatrixUIMessage.pleaseSelectPersonnel");
|
|
@@ -9441,14 +9445,14 @@
|
|
|
9441
9445
|
Vue.ref([]);
|
|
9442
9446
|
let d = Vue.ref([]), p = Vue.ref([]), m = Vue.ref(null), h2 = Vue.ref(false), g = Vue.ref({ userField: "name", searchValue: null, treeType: "MAN_DEPARTMENT_TREE", departmentInfo: null }), f = Vue.ref({ disabled: "disable" }), A = Vue.ref(false);
|
|
9443
9447
|
const { t: y } = vueI18n.useI18n();
|
|
9444
|
-
function
|
|
9448
|
+
function C() {
|
|
9445
9449
|
utils.canShowOrgTree().then((e3) => {
|
|
9446
9450
|
e3 ? getTenantChildren$2(o.departmentInfo, "-1", o.limitFilterColumn).then((e4) => {
|
|
9447
9451
|
r.value = e4, checkedDeptDefault$2(u.value, p.value);
|
|
9448
9452
|
}) : r.value = [];
|
|
9449
9453
|
});
|
|
9450
9454
|
}
|
|
9451
|
-
function
|
|
9455
|
+
function w(e3, t3, n2) {
|
|
9452
9456
|
o.multiple && (t3 ? o.multiple && v(e3) : (o.multiple || e3.nodeType && "USER" === e3.nodeType) && b(e3));
|
|
9453
9457
|
}
|
|
9454
9458
|
function V(e3, t3, n2, i3) {
|
|
@@ -9494,7 +9498,7 @@
|
|
|
9494
9498
|
d.value.push(e3), S(e3);
|
|
9495
9499
|
}
|
|
9496
9500
|
function x(e3, t3, o2) {
|
|
9497
|
-
t3 ? (d.value = [],
|
|
9501
|
+
t3 ? (d.value = [], C()) : (d.value.splice(o2 + 1, d.value.length - (o2 + 1)), S(e3));
|
|
9498
9502
|
}
|
|
9499
9503
|
function E() {
|
|
9500
9504
|
m.value.showResult();
|
|
@@ -9537,13 +9541,13 @@
|
|
|
9537
9541
|
function N() {
|
|
9538
9542
|
g.value.searchValue ? (g.value.searchValue = g.value.searchValue.trim(), g.value.departmentInfo = o.departmentInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", g.value).then((e3) => {
|
|
9539
9543
|
e3 ? (0 === e3.length && elementPlus.ElMessage({ message: y("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), r.value = e3) : elementPlus.ElMessage({ message: y("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
|
|
9540
|
-
})) :
|
|
9544
|
+
})) : C();
|
|
9541
9545
|
}
|
|
9542
9546
|
return Vue.onMounted(() => {
|
|
9543
9547
|
initSelectUsers(o.searchField, o.selectUserInfo, o.separator).then((e3) => {
|
|
9544
9548
|
u.value = e3, getTenant$2().then((e4) => {
|
|
9545
9549
|
const t3 = e4[0].data;
|
|
9546
|
-
a.value = JSON.parse(t3), l.value = e4[0].containBranch, s.value = e4[0].name,
|
|
9550
|
+
a.value = JSON.parse(t3), l.value = e4[0].containBranch, s.value = e4[0].name, C();
|
|
9547
9551
|
});
|
|
9548
9552
|
}), function() {
|
|
9549
9553
|
const e3 = document.querySelector(".org-tree");
|
|
@@ -9551,8 +9555,8 @@
|
|
|
9551
9555
|
t3 = t3 - 110 - 60 - 60 - 60, e3.style.height = t3 + "px", e3.style.minHeight = "300px";
|
|
9552
9556
|
}();
|
|
9553
9557
|
}), (t3, o2) => {
|
|
9554
|
-
const n2 = Vue.resolveComponent("el-checkbox"), a2 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), A2 = Vue.resolveComponent("el-col"), y2 = Vue.resolveComponent("el-row"),
|
|
9555
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(
|
|
9558
|
+
const n2 = Vue.resolveComponent("el-checkbox"), a2 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), A2 = Vue.resolveComponent("el-col"), y2 = Vue.resolveComponent("el-row"), C2 = Vue.resolveComponent("el-card"), v2 = Vue.resolveComponent("el-empty"), b2 = Vue.resolveComponent("el-tree"), S2 = Vue.resolveComponent("el-button");
|
|
9559
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(C2, { class: "card-content", style: { height: "50px" } }, { default: Vue.withCtx(() => [Vue.createVNode(y2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(A2, { style: { width: "100%" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$15, [Vue.createElementVNode("div", _hoisted_2$K, [e2.multiple ? (Vue.openBlock(), Vue.createBlock(n2, { key: 0, modelValue: Vue.unref(h2), "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Vue.isRef(h2) ? h2.value = e3 : h2 = e3), label: t3.$t("departmentTreeInline.allCheck"), value: "all", onChange: I }, null, 8, ["modelValue", "label"])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_3$x, [Vue.createVNode(l2, { modelValue: Vue.unref(g).searchValue, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => Vue.unref(g).searchValue = e3), placeholder: t3.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: N, onKeyup: Vue.withKeys(N, ["enter"]), onBlur: N, clearable: "" }, { suffix: Vue.withCtx(() => [Vue.createVNode(a2, { onClick: N }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), Vue.unref(s) ? (Vue.openBlock(), Vue.createBlock(C2, { key: 0, class: "card-content" }, { default: Vue.withCtx(() => [Vue.createVNode(y2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(A2, { class: "item-label dept-path" }, { default: Vue.withCtx(() => [Vue.createVNode(_sfc_main$1w, { tenantName: Vue.unref(s), clickDepts: Vue.unref(d), onClickBreadcrumb: x }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(C2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: Vue.withCtx(() => [Vue.unref(r).length ? (Vue.openBlock(), Vue.createBlock(b2, { key: 1, ref_key: "orgTreeRef", ref: i2, data: Vue.unref(r), "show-checkbox": e2.multiple, "node-key": "nodeId", props: Vue.unref(f), "default-checked-keys": Vue.unref(p), onCheckChange: w, onNodeClick: V }, { default: Vue.withCtx(({ node: e3, data: t4 }) => [Vue.createElementVNode("div", _hoisted_4$p, [t4.nodeType && "USER" === t4.nodeType ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_5$i, [Vue.createTextVNode(Vue.toDisplayString(t4.showName) + " ", 1), Vue.createElementVNode("span", _hoisted_6$a, "(" + Vue.toDisplayString(t4.loginName) + Vue.toDisplayString(Vue.unref(getUserMainDeptName)(t4) ? "/" + Vue.unref(getUserMainDeptName)(t4) : "") + ")", 1)])) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: "item-label", onClick: (e4) => k(t4) }, [Vue.createTextVNode(Vue.toDisplayString(t4.showName), 1), "-1" !== t4.parentNodeId && Vue.unref(getDeptNamePath)(t4) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_8$6, "(" + Vue.toDisplayString(Vue.unref(getDeptNamePath)(t4)) + ")", 1)) : Vue.createCommentVNode("", true)], 8, _hoisted_7$7)), t4.nodeType && "USER" === t4.nodeType ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 2, class: "item-side", onClick: (e4) => k(t4) }, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 })], 8, _hoisted_9$6))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (Vue.openBlock(), Vue.createBlock(v2, { key: 0, image: Vue.unref(noMessageImage) }, null, 8, ["image"]))]), _: 1 }), Vue.createVNode(C2, { class: "card-footer" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_10$6, [Vue.createElementVNode("div", _hoisted_11$5, [e2.multiple ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, onClick: E }, [Vue.unref(u).length > 0 && Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_12$4, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentUserTree.selectUserResultInfo", { userNum: Vue.unref(u).length })) + ", " + Vue.toDisplayString(t3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: Vue.unref(c).length })), 1)) : Vue.unref(u).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_13$3, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentUserTree.selectUserResultInfo", { userNum: Vue.unref(u).length })), 1)) : Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_14$3, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: Vue.unref(c).length })), 1)) : Vue.createCommentVNode("", true), Vue.unref(u).length > 0 || Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_15$2, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowUpBold))]), _: 1 })])) : Vue.createCommentVNode("", true)])) : Vue.unref(u).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_16$2, [Vue.createTextVNode(Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(Vue.unref(u)[0].showName), 1), Vue.createElementVNode("span", _hoisted_17$2, "(" + Vue.toDisplayString(Vue.unref(u)[0].loginName) + Vue.toDisplayString(Vue.unref(getUserMainDeptName)(Vue.unref(u)[0]) ? "/" + Vue.unref(getUserMainDeptName)(Vue.unref(u)[0]) : "") + ")", 1)])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_18$1, [Vue.createVNode(S2, { size: "large", type: "primary", onClick: B }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), Vue.createVNode(_sfc_main$1v, { ref_key: "deptResultRef", ref: m, selectUsers: Vue.unref(u).concat(Vue.unref(c)), onRemoveResult: D }, null, 8, ["selectUsers"])]);
|
|
9556
9560
|
};
|
|
9557
9561
|
} }), _hoisted_1$14 = { style: { "text-align": "center" } }, __default__$5 = { name: "DepartmentUserTreeMobile" }, _sfc_main$1t = Vue.defineComponent({ ...__default__$5, props: { multiple: {}, departmentInfo: {}, selectUserInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: t2 }) {
|
|
9558
9562
|
const o = t2;
|
|
@@ -9816,7 +9820,7 @@
|
|
|
9816
9820
|
});
|
|
9817
9821
|
}
|
|
9818
9822
|
function f(e3, t3, n2) {
|
|
9819
|
-
o.multiple && (t3 ? y(e3) :
|
|
9823
|
+
o.multiple && (t3 ? y(e3) : C(e3));
|
|
9820
9824
|
}
|
|
9821
9825
|
function A(e3, t3, n2, i3) {
|
|
9822
9826
|
!o.multiple && e3.nodeType && "WORKGROUP" === e3.nodeType && (u.value = [e3]);
|
|
@@ -9827,11 +9831,11 @@
|
|
|
9827
9831
|
t3 && 0 !== t3.length || u.value.push(JSON.parse(JSON.stringify(e3)));
|
|
9828
9832
|
}
|
|
9829
9833
|
}
|
|
9830
|
-
function
|
|
9834
|
+
function C(e3) {
|
|
9831
9835
|
const t3 = u.value.findIndex((t4) => t4.nodeId === e3.nodeId);
|
|
9832
9836
|
u.value, void 0 !== t3 && -1 !== t3 && u.value.splice(t3, 1), p.value = false;
|
|
9833
9837
|
}
|
|
9834
|
-
function
|
|
9838
|
+
function w(e3) {
|
|
9835
9839
|
if (o.multiple)
|
|
9836
9840
|
if (e3) {
|
|
9837
9841
|
const e4 = r.value.map((e5) => e5.nodeId);
|
|
@@ -9840,7 +9844,7 @@
|
|
|
9840
9844
|
});
|
|
9841
9845
|
} else
|
|
9842
9846
|
r.value.forEach((e4) => {
|
|
9843
|
-
|
|
9847
|
+
C(e4);
|
|
9844
9848
|
}), i2.value.setCheckedKeys([], false);
|
|
9845
9849
|
}
|
|
9846
9850
|
function V() {
|
|
@@ -9854,7 +9858,7 @@
|
|
|
9854
9858
|
o2.nodeId !== e3.nodeId && t4.push(o2.nodeId);
|
|
9855
9859
|
}), i2.value.setCheckedKeys(t4, true);
|
|
9856
9860
|
}
|
|
9857
|
-
|
|
9861
|
+
C(e3);
|
|
9858
9862
|
}
|
|
9859
9863
|
function b() {
|
|
9860
9864
|
if (o.multiple) {
|
|
@@ -9893,8 +9897,8 @@
|
|
|
9893
9897
|
t3 = t3 - 110 - 60 - 60 - 60, e3.style.height = t3 + "px", e3.style.minHeight = "300px";
|
|
9894
9898
|
}();
|
|
9895
9899
|
}), (t3, o2) => {
|
|
9896
|
-
const n2 = Vue.resolveComponent("el-checkbox"), a2 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), h3 = Vue.resolveComponent("el-col"), g2 = Vue.resolveComponent("el-row"), y2 = Vue.resolveComponent("el-card"),
|
|
9897
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(y2, { class: "card-content", style: { height: "50px" } }, { default: Vue.withCtx(() => [Vue.createVNode(g2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(h3, { style: { width: "100%" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$10, [Vue.createElementVNode("div", _hoisted_2$G, [e2.multiple ? (Vue.openBlock(), Vue.createBlock(n2, { key: 0, modelValue: Vue.unref(p), "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Vue.isRef(p) ? p.value = e3 : p = e3), label: t3.$t("departmentTreeInline.allCheck"), value: "all", onChange:
|
|
9900
|
+
const n2 = Vue.resolveComponent("el-checkbox"), a2 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), h3 = Vue.resolveComponent("el-col"), g2 = Vue.resolveComponent("el-row"), y2 = Vue.resolveComponent("el-card"), C2 = Vue.resolveComponent("el-breadcrumb-item"), S = Vue.resolveComponent("el-breadcrumb"), k = Vue.resolveComponent("el-empty"), x = Vue.resolveComponent("el-tree"), E = Vue.resolveComponent("el-button");
|
|
9901
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(y2, { class: "card-content", style: { height: "50px" } }, { default: Vue.withCtx(() => [Vue.createVNode(g2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(h3, { style: { width: "100%" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$10, [Vue.createElementVNode("div", _hoisted_2$G, [e2.multiple ? (Vue.openBlock(), Vue.createBlock(n2, { key: 0, modelValue: Vue.unref(p), "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Vue.isRef(p) ? p.value = e3 : p = e3), label: t3.$t("departmentTreeInline.allCheck"), value: "all", onChange: w }, null, 8, ["modelValue", "label"])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_3$t, [Vue.createVNode(l2, { modelValue: Vue.unref(m).searchValue, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => Vue.unref(m).searchValue = e3), placeholder: t3.$t("departmentTreeInline.pleaseInputNameOrCode"), onClear: I, onKeyup: Vue.withKeys(I, ["enter"]), onBlur: I, clearable: "" }, { suffix: Vue.withCtx(() => [Vue.createVNode(a2, { onClick: I }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), Vue.unref(s) ? (Vue.openBlock(), Vue.createBlock(y2, { key: 0, class: "card-content", style: { height: "40px" } }, { default: Vue.withCtx(() => [Vue.createVNode(g2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(h3, { class: "item-label dept-path" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { separator: "/" }, { default: Vue.withCtx(() => [Vue.createVNode(C2, null, { default: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(Vue.unref(s)), 1)]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(y2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: Vue.withCtx(() => [Vue.unref(r).length ? (Vue.openBlock(), Vue.createBlock(x, { key: 1, ref_key: "orgTreeRef", ref: i2, data: Vue.unref(r), "show-checkbox": e2.multiple, "node-key": "nodeId", "check-on-click-node": "", "default-checked-keys": Vue.unref(c), onCheckChange: f, onNodeClick: A }, { default: Vue.withCtx(({ node: e3, data: t4 }) => [Vue.createElementVNode("div", _hoisted_4$l, [Vue.createElementVNode("div", _hoisted_5$g, Vue.toDisplayString(t4.name), 1)])]), _: 1 }, 8, ["data", "show-checkbox", "default-checked-keys"])) : (Vue.openBlock(), Vue.createBlock(k, { key: 0, image: Vue.unref(noMessageImage) }, null, 8, ["image"]))]), _: 1 }), Vue.createVNode(y2, { class: "card-footer" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_6$9, [Vue.createElementVNode("div", { class: "select-result", onClick: V }, [e2.multiple ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, onClick: V }, [Vue.unref(u).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_7$6, [Vue.createTextVNode(Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("workgroupTree.selectResultInfo", { num: Vue.unref(u).length })) + " ", 1), Vue.createElementVNode("span", _hoisted_8$5, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowUpBold))]), _: 1 })])])) : Vue.createCommentVNode("", true)])) : Vue.unref(u).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_9$5, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(Vue.unref(u)[0].name), 1)) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_10$5, [Vue.createVNode(E, { size: "large", type: "primary", onClick: b }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), Vue.createVNode(_sfc_main$1p, { ref_key: "deptResultRef", ref: d, selectDepts: Vue.unref(u), onRemoveDept: v }, null, 8, ["selectDepts"])]);
|
|
9898
9902
|
};
|
|
9899
9903
|
} }), _hoisted_1$$ = { style: { "text-align": "center" } }, __default__$4 = { name: "DepartmentTreeMobile" }, _sfc_main$1n = Vue.defineComponent({ ...__default__$4, props: { multiple: {}, branchInfo: {}, selectWorkgroupInfo: {}, searchField: {}, separator: {}, limitFilterColumn: {} }, emits: ["close"], setup(e2, { emit: t2 }) {
|
|
9900
9904
|
const o = t2;
|
|
@@ -10231,14 +10235,14 @@
|
|
|
10231
10235
|
Vue.ref([]);
|
|
10232
10236
|
let d = Vue.ref([]), p = Vue.ref([]), m = Vue.ref(null), h2 = Vue.ref(false), g = Vue.ref({ searchValue: null, treeType: "MAN_GROUP_TREE", departmentInfo: null }), f = Vue.ref({ disabled: "disable" }), A = Vue.ref(false);
|
|
10233
10237
|
const { t: y } = vueI18n.useI18n();
|
|
10234
|
-
function
|
|
10238
|
+
function C() {
|
|
10235
10239
|
utils.canShowOrgTree().then((e3) => {
|
|
10236
10240
|
e3 ? getTenantChildren(o.branchInfo, "-1").then((e4) => {
|
|
10237
10241
|
r.value = e4, checkedDeptDefault(u.value, p.value);
|
|
10238
10242
|
}) : r.value = [];
|
|
10239
10243
|
});
|
|
10240
10244
|
}
|
|
10241
|
-
function
|
|
10245
|
+
function w(e3, t3, n2) {
|
|
10242
10246
|
o.multiple && (t3 ? o.multiple && v(e3) : (o.multiple || e3.nodeType && "USER" === e3.nodeType) && b(e3));
|
|
10243
10247
|
}
|
|
10244
10248
|
function V(e3, t3, n2, i3) {
|
|
@@ -10284,7 +10288,7 @@
|
|
|
10284
10288
|
d.value.push(e3), S(e3);
|
|
10285
10289
|
}
|
|
10286
10290
|
function x(e3, t3, o2) {
|
|
10287
|
-
t3 ? (d.value = [],
|
|
10291
|
+
t3 ? (d.value = [], C()) : (d.value.splice(o2 + 1, d.value.length - (o2 + 1)), S(e3));
|
|
10288
10292
|
}
|
|
10289
10293
|
function E() {
|
|
10290
10294
|
m.value.showResult();
|
|
@@ -10327,13 +10331,13 @@
|
|
|
10327
10331
|
function N() {
|
|
10328
10332
|
g.value.searchValue ? (g.value.searchValue = g.value.searchValue.trim(), g.value.departmentInfo = o.branchInfo, window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/search-users-mobile", g.value).then((e3) => {
|
|
10329
10333
|
e3 ? (0 === e3.length && elementPlus.ElMessage({ message: y("imatrixUIMessage.queryResultIsEmpty"), type: "warning" }), r.value = e3) : elementPlus.ElMessage({ message: y("imatrixUIMessage.queryResultIsEmpty"), type: "warning" });
|
|
10330
|
-
})) :
|
|
10334
|
+
})) : C();
|
|
10331
10335
|
}
|
|
10332
10336
|
return Vue.onMounted(() => {
|
|
10333
10337
|
initSelectUsers(o.searchField, o.selectUserInfo, o.separator).then((e3) => {
|
|
10334
10338
|
u.value = e3, getTenant().then((e4) => {
|
|
10335
10339
|
const t3 = e4[0].data;
|
|
10336
|
-
a.value = JSON.parse(t3), l.value = e4[0].containBranch, s.value = e4[0].name,
|
|
10340
|
+
a.value = JSON.parse(t3), l.value = e4[0].containBranch, s.value = e4[0].name, C();
|
|
10337
10341
|
});
|
|
10338
10342
|
}), function() {
|
|
10339
10343
|
const e3 = document.querySelector(".org-tree");
|
|
@@ -10341,8 +10345,8 @@
|
|
|
10341
10345
|
t3 = t3 - 110 - 60 - 60 - 60, e3.style.height = t3 + "px", e3.style.minHeight = "300px";
|
|
10342
10346
|
}();
|
|
10343
10347
|
}), (t3, o2) => {
|
|
10344
|
-
const n2 = Vue.resolveComponent("el-checkbox"), a2 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), A2 = Vue.resolveComponent("el-col"), y2 = Vue.resolveComponent("el-row"),
|
|
10345
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(
|
|
10348
|
+
const n2 = Vue.resolveComponent("el-checkbox"), a2 = Vue.resolveComponent("el-icon"), l2 = Vue.resolveComponent("el-input"), A2 = Vue.resolveComponent("el-col"), y2 = Vue.resolveComponent("el-row"), C2 = Vue.resolveComponent("el-card"), v2 = Vue.resolveComponent("el-empty"), b2 = Vue.resolveComponent("el-tree"), S2 = Vue.resolveComponent("el-button");
|
|
10349
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(C2, { class: "card-content", style: { height: "50px" } }, { default: Vue.withCtx(() => [Vue.createVNode(y2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(A2, { style: { width: "100%" } }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$V, [Vue.createElementVNode("div", _hoisted_2$B, [e2.multiple ? (Vue.openBlock(), Vue.createBlock(n2, { key: 0, modelValue: Vue.unref(h2), "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Vue.isRef(h2) ? h2.value = e3 : h2 = e3), label: t3.$t("departmentTreeInline.allCheck"), value: "all", onChange: I }, null, 8, ["modelValue", "label"])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_3$o, [Vue.createVNode(l2, { modelValue: Vue.unref(g).searchValue, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => Vue.unref(g).searchValue = e3), placeholder: t3.$t("departmentUserTree.pleaseEnterUserInformation"), onClear: N, onKeyup: Vue.withKeys(N, ["enter"]), onBlur: N, clearable: "" }, { suffix: Vue.withCtx(() => [Vue.createVNode(a2, { onClick: N }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Search))]), _: 1 })]), _: 1 }, 8, ["modelValue", "placeholder"])])])]), _: 1 })]), _: 1 })]), _: 1 }), Vue.unref(s) ? (Vue.openBlock(), Vue.createBlock(C2, { key: 0, class: "card-content" }, { default: Vue.withCtx(() => [Vue.createVNode(y2, { class: "item-row item-row-all" }, { default: Vue.withCtx(() => [Vue.createVNode(A2, { class: "item-label dept-path" }, { default: Vue.withCtx(() => [Vue.createVNode(_sfc_main$1j, { tenantName: Vue.unref(s), clickDepts: Vue.unref(d), onClickBreadcrumb: x }, null, 8, ["tenantName", "clickDepts"])]), _: 1 })]), _: 1 })]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(C2, { class: "card-content org-tree", style: { overflow: "auto" } }, { default: Vue.withCtx(() => [Vue.unref(r).length ? (Vue.openBlock(), Vue.createBlock(b2, { key: 1, ref_key: "orgTreeRef", ref: i2, data: Vue.unref(r), "show-checkbox": e2.multiple, "node-key": "nodeId", props: Vue.unref(f), "default-checked-keys": Vue.unref(p), onCheckChange: w, onNodeClick: V }, { default: Vue.withCtx(({ node: e3, data: t4 }) => [Vue.createElementVNode("div", _hoisted_4$h, [t4.nodeType && "USER" === t4.nodeType ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_5$c, [Vue.createTextVNode(Vue.toDisplayString(t4.showName) + " ", 1), Vue.createElementVNode("span", _hoisted_6$6, "(" + Vue.toDisplayString(t4.loginName) + Vue.toDisplayString(Vue.unref(getUserMainDeptName)(t4) ? "/" + Vue.unref(getUserMainDeptName)(t4) : "") + ")", 1)])) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 1, class: "item-label", onClick: (e4) => k(t4) }, Vue.toDisplayString(t4.name), 9, _hoisted_7$5)), t4.nodeType && "USER" === t4.nodeType ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("div", { key: 2, class: "item-side", onClick: (e4) => k(t4) }, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 })], 8, _hoisted_8$4))])]), _: 1 }, 8, ["data", "show-checkbox", "props", "default-checked-keys"])) : (Vue.openBlock(), Vue.createBlock(v2, { key: 0, image: Vue.unref(noMessageImage) }, null, 8, ["image"]))]), _: 1 }), Vue.createVNode(C2, { class: "card-footer" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_9$4, [Vue.createElementVNode("div", _hoisted_10$4, [e2.multiple ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, onClick: E }, [Vue.unref(u).length > 0 && Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_11$4, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentUserTree.selectUserResultInfo", { userNum: Vue.unref(u).length })) + ", " + Vue.toDisplayString(t3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: Vue.unref(c).length })), 1)) : Vue.unref(u).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_12$3, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentUserTree.selectUserResultInfo", { userNum: Vue.unref(u).length })), 1)) : Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_13$2, Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(t3.$t("departmentUserTree.selectDeptResultInfo", { deptNum: Vue.unref(c).length })), 1)) : Vue.createCommentVNode("", true), Vue.unref(u).length > 0 || Vue.unref(c).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_14$2, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowUpBold))]), _: 1 })])) : Vue.createCommentVNode("", true)])) : Vue.unref(u).length > 0 ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_15$1, [Vue.createTextVNode(Vue.toDisplayString(t3.$t("departmentTreeInline.selectResultInfoHasSelect")) + Vue.toDisplayString(Vue.unref(u)[0].showName), 1), Vue.createElementVNode("span", _hoisted_16$1, "(" + Vue.toDisplayString(Vue.unref(u)[0].loginName) + Vue.toDisplayString(Vue.unref(getUserMainDeptName)(Vue.unref(u)[0]) ? "/" + Vue.unref(getUserMainDeptName)(Vue.unref(u)[0]) : "") + ")", 1)])) : Vue.createCommentVNode("", true)]), Vue.createElementVNode("div", _hoisted_17$1, [Vue.createVNode(S2, { size: "large", type: "primary", onClick: B }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 })])])]), _: 1 }), Vue.createVNode(_sfc_main$1i, { ref_key: "deptResultRef", ref: m, selectUsers: Vue.unref(u).concat(Vue.unref(c)), onRemoveResult: D }, null, 8, ["selectUsers"])]);
|
|
10346
10350
|
};
|
|
10347
10351
|
} }), _hoisted_1$U = { style: { "text-align": "center" } }, __default__$3 = { name: "DepartmentUserTreeMobile" }, _sfc_main$1g = Vue.defineComponent({ ...__default__$3, props: { multiple: {}, branchInfo: {}, selectUserInfo: {}, searchField: {}, separator: {} }, emits: ["close"], setup(e2, { emit: t2 }) {
|
|
10348
10352
|
const o = t2;
|
|
@@ -11575,8 +11579,8 @@
|
|
|
11575
11579
|
n = e2, this.setValueToModelProp(this.searchableColumns[this.fieldNum * (t2 - 1) + (o - 1)].prop, n);
|
|
11576
11580
|
} }, emits: ["search", "reset"] }, _hoisted_1$M = ["innerHTML"], _hoisted_2$v = ["innerHTML"], _hoisted_3$m = { key: 10 };
|
|
11577
11581
|
function _sfc_render$A(e2, t2, o, n, i2, a) {
|
|
11578
|
-
const l = Vue.resolveComponent("el-date-picker"), s = Vue.resolveComponent("el-time-picker"), r = Vue.resolveComponent("el-option"), u = Vue.resolveComponent("el-select"), c = Vue.resolveComponent("search-form-number"), d = Vue.resolveComponent("el-switch"), p = Vue.resolveComponent("el-slider"), m = Vue.resolveComponent("el-rate"), h2 = Vue.resolveComponent("el-input"), g = Vue.resolveComponent("el-form-item"), f = Vue.resolveComponent("el-col"), A = Vue.resolveComponent("el-row"), y = Vue.resolveComponent("el-button"),
|
|
11579
|
-
return a.searchableColumns.length > 0 ? (Vue.openBlock(), Vue.createBlock(
|
|
11582
|
+
const l = Vue.resolveComponent("el-date-picker"), s = Vue.resolveComponent("el-time-picker"), r = Vue.resolveComponent("el-option"), u = Vue.resolveComponent("el-select"), c = Vue.resolveComponent("search-form-number"), d = Vue.resolveComponent("el-switch"), p = Vue.resolveComponent("el-slider"), m = Vue.resolveComponent("el-rate"), h2 = Vue.resolveComponent("el-input"), g = Vue.resolveComponent("el-form-item"), f = Vue.resolveComponent("el-col"), A = Vue.resolveComponent("el-row"), y = Vue.resolveComponent("el-button"), C = Vue.resolveComponent("el-form");
|
|
11583
|
+
return a.searchableColumns.length > 0 ? (Vue.openBlock(), Vue.createBlock(C, { key: 0, ref: "searchForm", "label-position": o.query.queryLabelPosition, "label-width": i2.labelWidth, model: i2.searchForm, rules: i2.rules, class: "grid-search-form", size: "default" }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.rowNum, (o2) => (Vue.openBlock(), Vue.createBlock(A, { key: o2 }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(a.getColumnNumPerRow(o2, a.searchableColumns.length), (n2) => (Vue.openBlock(), Vue.createBlock(f, { key: n2, span: 6, style: { "margin-bottom": "10px" } }, { default: Vue.withCtx(() => {
|
|
11580
11584
|
var _a;
|
|
11581
11585
|
return [Vue.createVNode(g, { prop: a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, "label-width": ((_a = a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].label.replace(/\\n/g, "</br>")) == null ? void 0 : _a.length) > 4 ? "100px" : "80px", style: { width: "90%" } }, { label: Vue.withCtx(() => [a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchLabel && "" !== a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchLabel ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, innerHTML: a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchLabel.replace(/\\n/g, "</br>") }, null, 8, _hoisted_1$M)) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, innerHTML: a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].label.replace(/\\n/g, "</br>") }, null, 8, _hoisted_2$v)), t2[3] || (t2[3] = Vue.createTextVNode(": ", -1))]), default: Vue.withCtx(() => ["DATE" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].dataType || "date" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 0, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "dateTimePicker" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 1, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "TIME" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].dataType && "timepicker" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(l, { key: 2, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "timepicker" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "TIME" !== a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].dataType && "DATE" !== a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].dataType ? (Vue.openBlock(), Vue.createBlock(s, { key: 3, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["model-value", "placeholder", "onInput"])) : a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "select" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType || "BOOLEAN" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].dataType ? (Vue.openBlock(), Vue.createBlock(u, { key: 4, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), clearable: "", onChange: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(r, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onChange"])) : a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "multiselect" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(u, { key: 5, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].valueSet, (e3) => (Vue.openBlock(), Vue.createBlock(r, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onInput"])) : a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "inputNumber" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(c, { key: 6, n: n2, r: o2, onSetValue: a.setNumberValue }, null, 8, ["n", "r", "onSetValue"])) : a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "switch" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(d, { key: 7, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "slider" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(p, { key: 8, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType && "rate" === a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentType ? (Vue.openBlock(), Vue.createBlock(m, { key: 9, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : true === a.customComponent(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)]) ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$m, [(Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentName), { ref_for: true, ref: a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].componentName, prop: a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, value: e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), class: "customComponent", onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3) }, null, 40, ["prop", "value", "onInput"]))])) : (Vue.openBlock(), Vue.createBlock(h2, { key: 11, "model-value": e2.getFormItemValue(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop), style: Vue.normalizeStyle(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].searchControlWidth), onInput: (e3) => a.setValueToModelProp(a.searchableColumns[i2.fieldNum * (o2 - 1) + (n2 - 1)].prop, e3), onKeyup: t2[0] || (t2[0] = Vue.withKeys((e3) => a.submitForm("searchForm"), ["enter"])) }, null, 8, ["model-value", "style", "onInput"]))]), _: 2 }, 1032, ["prop", "label-width"])];
|
|
11582
11586
|
}), _: 2 }, 1024))), 128))]), _: 2 }, 1024))), 128)), Vue.createVNode(A, { class: "search-btn" }, { default: Vue.withCtx(() => [Vue.createVNode(y, { loading: i2.loading, size: "default", type: "primary", onClick: t2[1] || (t2[1] = (e3) => a.submitForm("searchForm")) }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading"]), Vue.createVNode(y, { loading: i2.loading, size: "default", onClick: t2[2] || (t2[2] = (e3) => a.resetForm("searchForm")) }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading"])]), _: 1 })]), _: 1 }, 8, ["label-position", "label-width", "model", "rules"])) : Vue.createCommentVNode("", true);
|
|
@@ -12127,7 +12131,7 @@
|
|
|
12127
12131
|
A(e3, t3);
|
|
12128
12132
|
}, A = (e3, t3) => {
|
|
12129
12133
|
const o2 = getToken();
|
|
12130
|
-
if (e3 = e3 =
|
|
12134
|
+
if (e3 = e3 = C(e3), window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
12131
12135
|
window.open(getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + t3 + "&showName=" + encodeURI(e3), e3);
|
|
12132
12136
|
else {
|
|
12133
12137
|
let n2, l2 = i2;
|
|
@@ -12142,7 +12146,7 @@
|
|
|
12142
12146
|
};
|
|
12143
12147
|
function y(e3, t3) {
|
|
12144
12148
|
var _a2, _b2;
|
|
12145
|
-
e3 =
|
|
12149
|
+
e3 = C(e3);
|
|
12146
12150
|
const o2 = getToken();
|
|
12147
12151
|
let l2 = false;
|
|
12148
12152
|
d && d.useRange && d.useRange.indexOf("annex") >= 0 && (l2 = (_a2 = n.watermark) == null ? void 0 : _a2.isShowWatermark);
|
|
@@ -12151,11 +12155,11 @@
|
|
|
12151
12155
|
let r2 = i2 + "/common/super-form/downloads?jwt=" + o2 + "&isShowWatermark=" + l2 + "&watermark=" + encodeURI(s2);
|
|
12152
12156
|
return isPlateSys(n.systemCode) && (r2 = a + "/component/super-form/downloads?jwt=" + o2 + "&isShowWatermark=" + l2 + "&watermark=" + encodeURI(s2)), r2 = getReplaceUrlDomain(r2), r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + t3;
|
|
12153
12157
|
}
|
|
12154
|
-
const
|
|
12158
|
+
const C = (e3) => (e3 && (e3 = e3.replace("#", "~~").replace("?", "~$").replace("&", "$")), e3);
|
|
12155
12159
|
return (t3, n2) => {
|
|
12156
12160
|
const i3 = Vue.resolveComponent("super-icon"), a2 = Vue.resolveComponent("el-tooltip"), c2 = Vue.resolveComponent("el-tag"), d2 = Vue.resolveComponent("zoom-in"), m2 = Vue.resolveComponent("el-icon"), g2 = Vue.resolveComponent("Delete"), A2 = Vue.resolveComponent("el-image"), y2 = Vue.resolveComponent("el-dialog");
|
|
12157
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [u.value ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_7$2, [(
|
|
12158
|
-
var
|
|
12161
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [u.value ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_7$2, [(C2 = e2.file.showName ? e2.file.showName : e2.file.name, !u.value || C2 && isImage(C2) ? (Vue.openBlock(), Vue.createElementBlock("span", { key: 0, class: "el-upload-list__item-preview", onClick: n2[0] || (n2[0] = (t4) => f(e2.file.showName ? e2.file.showName : e2.file.name, e2.file.serverPath)) }, [Vue.createVNode(m2, null, { default: Vue.withCtx(() => [Vue.createVNode(d2)]), _: 1 })])) : Vue.createCommentVNode("", true)), e2.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 1, class: "el-upload-list__item-delete", onClick: n2[1] || (n2[1] = (t4) => p(e2.file)) }, [Vue.createVNode(m2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Download))]), _: 1 })])), e2.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock("span", { key: 2, class: "el-upload-list__item-delete", onClick: n2[2] || (n2[2] = (t4) => h2(e2.file)) }, [Vue.createVNode(m2, null, { default: Vue.withCtx(() => [Vue.createVNode(g2)]), _: 1 })]))])) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$H, [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(e2.fileList, (t4, n3) => (Vue.openBlock(), Vue.createElementBlock("div", { key: n3, style: { width: "100%" } }, [Vue.createVNode(c2, { color: "white", size: "large", class: "amb-fs-preview-tag" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_2$r, [Vue.createVNode(i3, { iconValue: Vue.unref(getFileIconByName)(t4.showName) }, null, 8, ["iconValue"]), e2.disabled && e2.disabledNoPreview ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3$j, [Vue.createElementVNode("span", _hoisted_4$d, Vue.toDisplayString(t4.showName), 1)])) : Vue.createCommentVNode("", true), e2.disabled && e2.disabledNoPreview ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(a2, { key: 1, content: Vue.unref(o)("fsUpload.preview"), placement: "top" }, { default: Vue.withCtx(() => [Vue.createElementVNode("span", { style: { cursor: "pointer" }, onClick: (e3) => f(t4.showName, t4.serverPath) }, [Vue.createElementVNode("span", _hoisted_6$3, Vue.toDisplayString(t4.showName), 1)], 8, _hoisted_5$8)]), _: 2 }, 1032, ["content"])), e2.disabled && e2.disabledNoDownload ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(a2, { key: 2, content: Vue.unref(o)("fsUpload.download"), placement: "top" }, { default: Vue.withCtx(() => [Vue.createVNode(i3, { class: "fs-preview-icon", onClick: (e3) => p(t4), iconValue: "amb-color-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), e2.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(a2, { key: 3, content: Vue.unref(o)("fsUpload.delete"), placement: "top" }, { default: Vue.withCtx(() => [Vue.createVNode(i3, { class: "fs-preview-icon", onClick: (e3) => h2(t4), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"]))])]), _: 2 }, 1024)]))), 128))])), Vue.createVNode(y2, { modelValue: l.value, "onUpdate:modelValue": n2[3] || (n2[3] = (e3) => l.value = e3), title: Vue.unref(o)("fsUpload.preview"), width: "500" }, { default: Vue.withCtx(() => [Vue.createVNode(A2, { "preview-src-list": r.value, src: s.value.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"])]);
|
|
12162
|
+
var C2;
|
|
12159
12163
|
};
|
|
12160
12164
|
} }), fsPreviewNew_vue_vue_type_style_index_0_scoped_13b41596_lang = "", fsPreviewNew_vue_vue_type_style_index_1_scoped_13b41596_lang = "", fsPreviewNew = _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-13b41596"]]), _hoisted_1$G = { style: { width: "100%" } }, _hoisted_2$q = { key: 0, class: "el-upload-list__item-thumbnail" }, _hoisted_3$i = { class: "file-name-container" }, _hoisted_4$c = ["src"], _sfc_main$Y = Vue.defineComponent({ __name: "file-upload-component", props: { systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, fileList: { type: Array, default: () => [] }, beforeRemove: { type: Function, default: () => {
|
|
12161
12165
|
} }, onRemove: { type: Function, default: () => {
|
|
@@ -12318,12 +12322,12 @@
|
|
|
12318
12322
|
p.value.click();
|
|
12319
12323
|
});
|
|
12320
12324
|
}
|
|
12321
|
-
function
|
|
12325
|
+
function C(e3) {
|
|
12322
12326
|
c.value = "", e3 && "image" === e3 ? c.value = "image/*" : e3 && "video" === e3 && (c.value = "video/*"), setTimeout(() => {
|
|
12323
12327
|
m.value = false, p.value.click();
|
|
12324
12328
|
});
|
|
12325
12329
|
}
|
|
12326
|
-
function
|
|
12330
|
+
function w(e3, t3) {
|
|
12327
12331
|
let o2 = true;
|
|
12328
12332
|
return e3.size > 1024 * t3 * 1024 && (elementPlus.ElMessage({ showClose: true, type: "warning", message: g("imatrixUIMessage.exceedFileSize", { fileName: e3.name, fileSize: t3 }) }), o2 = false), o2;
|
|
12329
12333
|
}
|
|
@@ -12350,7 +12354,7 @@
|
|
|
12350
12354
|
const l2 = p.value.files;
|
|
12351
12355
|
for (let e5 = 0; e5 < l2.length; e5++) {
|
|
12352
12356
|
const o2 = l2[e5];
|
|
12353
|
-
if (a2 =
|
|
12357
|
+
if (a2 = w(o2, i3), !a2)
|
|
12354
12358
|
break;
|
|
12355
12359
|
t3.push(o2.name);
|
|
12356
12360
|
}
|
|
@@ -12405,7 +12409,7 @@
|
|
|
12405
12409
|
}
|
|
12406
12410
|
return (t3, o2) => {
|
|
12407
12411
|
const i3 = Vue.resolveComponent("el-button"), l2 = Vue.resolveComponent("el-drawer");
|
|
12408
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(FileUploadComponent, { ref_key: "fileUploadRef", ref: f, disabled: e2.disabled, systemCode: e2.systemCode, accept: e2.accept, multiple: e2.multiple, limitFileSize: e2.limitFileSize, fileList: a.value, beforeRemove: e2.beforeRemove, onRemove: [e2.onRemove, A], beforeDownload: e2.beforeDownload, baseURL: s.value, watermark: e2.watermark, onChooseFile: y }, null, 8, ["disabled", "systemCode", "accept", "multiple", "limitFileSize", "fileList", "beforeRemove", "onRemove", "beforeDownload", "baseURL", "watermark"]), "openChoosePhoto" === e2.openCameraOrChoosePhoto || "openCameraAndChoosePhoto" === e2.openCameraOrChoosePhoto ? (Vue.openBlock(), Vue.createElementBlock("input", { key: 0, ref_key: "fileRef", ref: p, type: "file", multiple: n.value, name: "file", accept: Vue.unref(c), style: { display: "none" }, onChange: v }, null, 40, _hoisted_1$F)) : (Vue.openBlock(), Vue.createElementBlock("input", { key: 1, ref_key: "fileRef", ref: p, type: "file", multiple: n.value, capture: "environment", name: "file", accept: Vue.unref(c), style: { display: "none" }, onChange: v }, null, 40, _hoisted_2$p)), Vue.createVNode(l2, { modelValue: m.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => m.value = e3), direction: "btt", onClose: o2[3] || (o2[3] = (e3) => m.value = false) }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", null, [Vue.createVNode(i3, { link: "", onClick: o2[0] || (o2[0] = (e3) =>
|
|
12412
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [Vue.createVNode(FileUploadComponent, { ref_key: "fileUploadRef", ref: f, disabled: e2.disabled, systemCode: e2.systemCode, accept: e2.accept, multiple: e2.multiple, limitFileSize: e2.limitFileSize, fileList: a.value, beforeRemove: e2.beforeRemove, onRemove: [e2.onRemove, A], beforeDownload: e2.beforeDownload, baseURL: s.value, watermark: e2.watermark, onChooseFile: y }, null, 8, ["disabled", "systemCode", "accept", "multiple", "limitFileSize", "fileList", "beforeRemove", "onRemove", "beforeDownload", "baseURL", "watermark"]), "openChoosePhoto" === e2.openCameraOrChoosePhoto || "openCameraAndChoosePhoto" === e2.openCameraOrChoosePhoto ? (Vue.openBlock(), Vue.createElementBlock("input", { key: 0, ref_key: "fileRef", ref: p, type: "file", multiple: n.value, name: "file", accept: Vue.unref(c), style: { display: "none" }, onChange: v }, null, 40, _hoisted_1$F)) : (Vue.openBlock(), Vue.createElementBlock("input", { key: 1, ref_key: "fileRef", ref: p, type: "file", multiple: n.value, capture: "environment", name: "file", accept: Vue.unref(c), style: { display: "none" }, onChange: v }, null, 40, _hoisted_2$p)), Vue.createVNode(l2, { modelValue: m.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => m.value = e3), direction: "btt", onClose: o2[3] || (o2[3] = (e3) => m.value = false) }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", null, [Vue.createVNode(i3, { link: "", onClick: o2[0] || (o2[0] = (e3) => C("image")) }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("fsUpload.image")), 1)]), _: 1 })]), Vue.createElementVNode("div", null, [Vue.createVNode(i3, { link: "", onClick: o2[1] || (o2[1] = (e3) => C("video")) }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("fsUpload.video")), 1)]), _: 1 })])]), _: 1 }, 8, ["modelValue"])]);
|
|
12409
12413
|
};
|
|
12410
12414
|
} }), _sfc_main$V = Vue.defineComponent({ __name: "file-upload", props: { openFsUpload: { type: Object, default: true }, entity: { type: Object, default: () => null }, fileInfo: { type: Object, default: () => ({}) }, systemCode: { type: String, default: "" }, displayType: { type: String, default: "input" }, disabled: { type: Boolean, default: false }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limit: { type: Number, default: 1 }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
12411
12415
|
} }, beforeRemove: { type: Function, default: () => {
|
|
@@ -12659,8 +12663,8 @@
|
|
|
12659
12663
|
this.setEntityValue(null, null);
|
|
12660
12664
|
} }, emits: ["close", "update:value", "update:value"] }, _hoisted_1$D = { class: "el-upload__tip", style: { "margin-left": "12px" } }, _hoisted_2$n = { key: 0 }, _hoisted_3$g = { style: { "margin-left": "6.5px" } }, _hoisted_4$a = { style: { "line-height": "30px" } }, _hoisted_5$6 = ["onClick"], _hoisted_6$2 = { style: { "margin-left": "6.5px" } };
|
|
12661
12665
|
function _sfc_render$q(e2, t2, o, n, i2, a) {
|
|
12662
|
-
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-input"), r = Vue.resolveComponent("el-upload"), u = Vue.resolveComponent("el-icon-paperclip"), c = Vue.resolveComponent("el-icon"), d = Vue.resolveComponent("el-icon-close"), p = Vue.resolveComponent("el-tooltip"), m = Vue.resolveComponent("el-tag"), h2 = Vue.resolveComponent("el-progress"), g = Vue.resolveComponent("el-row"), f = Vue.resolveComponent("el-col"), A = Vue.resolveComponent("el-dialog"), y = Vue.resolveComponent("el-image"),
|
|
12663
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [o.disabled ? (Vue.openBlock(), Vue.createBlock(b, { key: 1, "file-list": i2.showFileList, label: o.value }, null, 8, ["file-list", "label"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [Vue.createVNode(s, { ref: "item", disabled: o.disabled, "model-value": o.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: Vue.withCtx(() => [o.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(l, { key: 0, icon: i2.ElIconUpload2, size: "default", onClick: a.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), Vue.createVNode(A, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: Vue.withCtx(() => [Vue.createVNode(r, { id: "upload", "auto-upload": false, "on-change": a.uploadFile, "show-file-list": false, action: "" }, { tip: Vue.withCtx(() => [Vue.createElementVNode("span", _hoisted_1$D, [Vue.createTextVNode(" 上传文件不能超过" + Vue.toDisplayString(o.fileSetObj.limitFileSize) + "M ", 1), o.fileSetObj.accept ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$n, ",并且只接受" + Vue.toDisplayString(o.fileSetObj.accept) + "类型文件", 1)) : Vue.createCommentVNode("", true)])]), default: Vue.withCtx(() => [Vue.createVNode(l, { size: "default", type: "primary" }, { default: Vue.withCtx(() => [...t2[5] || (t2[5] = [Vue.createTextVNode(" 选择文件", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change"]), t2[6] || (t2[6] = Vue.createElementVNode("br", null, null, -1)), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.uploadingFile, (e3, t3) => (Vue.openBlock(), Vue.createBlock(g, { key: t3 }, { default: Vue.withCtx(() => [Vue.createVNode(m, { size: "small form-list-file" }, { default: Vue.withCtx(() => [Vue.createElementVNode("span", null, [Vue.createVNode(c, null, { default: Vue.withCtx(() => [Vue.createVNode(u)]), _: 1 }), Vue.createElementVNode("span", _hoisted_3$g, Vue.toDisplayString(e3.name), 1)]), Vue.createVNode(p, { content: "取消上传", effect: "light", placement: "right" }, { default: Vue.withCtx(() => [Vue.createVNode(c, { style: { "margin-left": "8px" }, onClick: (t4) => a.cancelUpload(e3.serverName) }, { default: Vue.withCtx(() => [Vue.createVNode(d)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), Vue.createVNode(h2, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), Vue.createElementVNode("div", _hoisted_4$a, [Vue.createVNode(g, null, { default: Vue.withCtx(() => [Vue.createVNode(f, null, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.fileContent, (e3, t3) => (Vue.openBlock(), Vue.createBlock(m, { key: t3, size: "small form-list-file" }, { default: Vue.withCtx(() => [Vue.createElementVNode("span", { onClick: (t4) => a.preview(e3.name, e3.serverName) }, [Vue.createVNode(c, null, { default: Vue.withCtx(() => [Vue.createVNode(u)]), _: 1 }), Vue.createElementVNode("span", _hoisted_6$2, Vue.toDisplayString(e3.name), 1)], 8, _hoisted_5$6), Vue.createVNode(p, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: Vue.withCtx(() => [Vue.createVNode(c, { style: { "margin-left": "8px" }, onClick: (o2) => a.handleOnRemove(t3, e3) }, { default: Vue.withCtx(() => [Vue.createVNode(d)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), Vue.createVNode(A, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")), 1)]), default: Vue.withCtx(() => [Vue.createVNode(y, { "preview-src-list": [i2.previewImageInfo.src], src: i2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), Vue.createVNode(A, { modelValue: i2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("imatrixUIPublicModel.preview")), 1)]), default: Vue.withCtx(() => [Vue.createVNode(v, { data: i2.showFileList, "show-header": false }, { default: Vue.withCtx(() => [Vue.createVNode(
|
|
12666
|
+
const l = Vue.resolveComponent("el-button"), s = Vue.resolveComponent("el-input"), r = Vue.resolveComponent("el-upload"), u = Vue.resolveComponent("el-icon-paperclip"), c = Vue.resolveComponent("el-icon"), d = Vue.resolveComponent("el-icon-close"), p = Vue.resolveComponent("el-tooltip"), m = Vue.resolveComponent("el-tag"), h2 = Vue.resolveComponent("el-progress"), g = Vue.resolveComponent("el-row"), f = Vue.resolveComponent("el-col"), A = Vue.resolveComponent("el-dialog"), y = Vue.resolveComponent("el-image"), C = Vue.resolveComponent("el-table-column"), w = Vue.resolveComponent("el-icon-view"), V = Vue.resolveComponent("el-icon-delete"), v = Vue.resolveComponent("el-table"), b = Vue.resolveComponent("fs-preview");
|
|
12667
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [o.disabled ? (Vue.openBlock(), Vue.createBlock(b, { key: 1, "file-list": i2.showFileList, label: o.value }, null, 8, ["file-list", "label"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [Vue.createVNode(s, { ref: "item", disabled: o.disabled, "model-value": o.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: Vue.withCtx(() => [o.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(l, { key: 0, icon: i2.ElIconUpload2, size: "default", onClick: a.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), Vue.createVNode(A, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: Vue.withCtx(() => [Vue.createVNode(r, { id: "upload", "auto-upload": false, "on-change": a.uploadFile, "show-file-list": false, action: "" }, { tip: Vue.withCtx(() => [Vue.createElementVNode("span", _hoisted_1$D, [Vue.createTextVNode(" 上传文件不能超过" + Vue.toDisplayString(o.fileSetObj.limitFileSize) + "M ", 1), o.fileSetObj.accept ? (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_2$n, ",并且只接受" + Vue.toDisplayString(o.fileSetObj.accept) + "类型文件", 1)) : Vue.createCommentVNode("", true)])]), default: Vue.withCtx(() => [Vue.createVNode(l, { size: "default", type: "primary" }, { default: Vue.withCtx(() => [...t2[5] || (t2[5] = [Vue.createTextVNode(" 选择文件", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change"]), t2[6] || (t2[6] = Vue.createElementVNode("br", null, null, -1)), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.uploadingFile, (e3, t3) => (Vue.openBlock(), Vue.createBlock(g, { key: t3 }, { default: Vue.withCtx(() => [Vue.createVNode(m, { size: "small form-list-file" }, { default: Vue.withCtx(() => [Vue.createElementVNode("span", null, [Vue.createVNode(c, null, { default: Vue.withCtx(() => [Vue.createVNode(u)]), _: 1 }), Vue.createElementVNode("span", _hoisted_3$g, Vue.toDisplayString(e3.name), 1)]), Vue.createVNode(p, { content: "取消上传", effect: "light", placement: "right" }, { default: Vue.withCtx(() => [Vue.createVNode(c, { style: { "margin-left": "8px" }, onClick: (t4) => a.cancelUpload(e3.serverName) }, { default: Vue.withCtx(() => [Vue.createVNode(d)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), Vue.createVNode(h2, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), Vue.createElementVNode("div", _hoisted_4$a, [Vue.createVNode(g, null, { default: Vue.withCtx(() => [Vue.createVNode(f, null, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(i2.fileContent, (e3, t3) => (Vue.openBlock(), Vue.createBlock(m, { key: t3, size: "small form-list-file" }, { default: Vue.withCtx(() => [Vue.createElementVNode("span", { onClick: (t4) => a.preview(e3.name, e3.serverName) }, [Vue.createVNode(c, null, { default: Vue.withCtx(() => [Vue.createVNode(u)]), _: 1 }), Vue.createElementVNode("span", _hoisted_6$2, Vue.toDisplayString(e3.name), 1)], 8, _hoisted_5$6), Vue.createVNode(p, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: Vue.withCtx(() => [Vue.createVNode(c, { style: { "margin-left": "8px" }, onClick: (o2) => a.handleOnRemove(t3, e3) }, { default: Vue.withCtx(() => [Vue.createVNode(d)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), Vue.createVNode(A, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")), 1)]), default: Vue.withCtx(() => [Vue.createVNode(y, { "preview-src-list": [i2.previewImageInfo.src], src: i2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), Vue.createVNode(A, { modelValue: i2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("imatrixUIPublicModel.preview")), 1)]), default: Vue.withCtx(() => [Vue.createVNode(v, { data: i2.showFileList, "show-header": false }, { default: Vue.withCtx(() => [Vue.createVNode(C, { prop: "showName", width: "300" }), Vue.createVNode(C, { align: "right" }, { default: Vue.withCtx((t3) => [Vue.createVNode(p, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: Vue.withCtx(() => [Vue.createVNode(c, { style: { cursor: "pointer" }, onClick: (o2) => e2.previewSingle(t3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(w)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), o.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(C, { key: 0 }, { default: Vue.withCtx((t3) => [Vue.createVNode(p, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: Vue.withCtx(() => [Vue.createVNode(c, { style: { cursor: "pointer" }, onClick: (o2) => e2.deleteRow(t3.$index) }, { default: Vue.withCtx(() => [Vue.createVNode(V)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
12664
12668
|
}
|
|
12665
12669
|
const MultipartUploadList = _export_sfc(_sfc_main$R, [["render", _sfc_render$q]]), _sfc_main$Q = { data() {
|
|
12666
12670
|
const e2 = { Authorization: getToken() };
|
|
@@ -12729,8 +12733,8 @@
|
|
|
12729
12733
|
this.fileInfo.showName = o.join(","), this.fileInfo.serverPath = n.join(","), this.getFileList(), $emit(this, "delete-success", { deleteFile: t2, all: this.showFileList }), $emit(this, "delete", this.showFileList, e2);
|
|
12730
12734
|
} }, emits: ["close", "upload-success", "delete-success", "delete", "update:value", , "close", , "update:value"] }, _hoisted_1$C = { class: "group-link-btn-main" };
|
|
12731
12735
|
function _sfc_render$p(e2, t2, o, n, i2, a) {
|
|
12732
|
-
const l = Vue.resolveComponent("ElIconUpload2"), s = Vue.resolveComponent("el-icon"), r = Vue.resolveComponent("el-link"), u = Vue.resolveComponent("ElIconZoomIn"), c = Vue.resolveComponent("el-input"), d = Vue.resolveComponent("el-button"), p = Vue.resolveComponent("el-upload"), m = Vue.resolveComponent("el-dialog"), h2 = Vue.resolveComponent("el-image"), g = Vue.resolveComponent("el-table-column"), f = Vue.resolveComponent("el-icon-view"), A = Vue.resolveComponent("el-tooltip"), y = Vue.resolveComponent("el-icon-delete"),
|
|
12733
|
-
return Vue.openBlock(), Vue.createElementBlock("div", null, [o.disabled ? (Vue.openBlock(), Vue.createBlock(
|
|
12736
|
+
const l = Vue.resolveComponent("ElIconUpload2"), s = Vue.resolveComponent("el-icon"), r = Vue.resolveComponent("el-link"), u = Vue.resolveComponent("ElIconZoomIn"), c = Vue.resolveComponent("el-input"), d = Vue.resolveComponent("el-button"), p = Vue.resolveComponent("el-upload"), m = Vue.resolveComponent("el-dialog"), h2 = Vue.resolveComponent("el-image"), g = Vue.resolveComponent("el-table-column"), f = Vue.resolveComponent("el-icon-view"), A = Vue.resolveComponent("el-tooltip"), y = Vue.resolveComponent("el-icon-delete"), C = Vue.resolveComponent("el-table"), w = Vue.resolveComponent("fs-preview");
|
|
12737
|
+
return Vue.openBlock(), Vue.createElementBlock("div", null, [o.disabled ? (Vue.openBlock(), Vue.createBlock(w, { key: 1, "file-list": i2.showFileList, label: o.value }, null, 8, ["file-list", "label"])) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [Vue.createVNode(c, { ref: "item", disabled: o.disabled, "model-value": o.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$C, [o.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(r, { key: 0, type: "info", underline: false, onClick: a.openAnnexUpload }, { icon: Vue.withCtx(() => [Vue.createVNode(s, { size: 14 }, { default: Vue.withCtx(() => [Vue.createVNode(l)]), _: 1 })]), _: 1 }, 8, ["onClick"])), Vue.createVNode(r, { size: "default", type: "info", underline: false, onClick: a.preview }, { icon: Vue.withCtx(() => [Vue.createVNode(s, { size: 14 }, { default: Vue.withCtx(() => [Vue.createVNode(u)]), _: 1 })]), _: 1 }, 8, ["onClick"])])]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), Vue.createVNode(m, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "30%" }, { default: Vue.withCtx(() => [i2.annexUploadFlag ? (Vue.openBlock(), Vue.createBlock(p, { key: 0, accept: o.fileSetObj.accept ? o.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a.handleBeforeUpload, headers: i2.headers, "on-success": a.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: Vue.withCtx(() => [Vue.createVNode(d, null, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), Vue.createVNode(m, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")), 1)]), default: Vue.withCtx(() => [i2.previewImageInfo && i2.previewImageInfo.isImg ? (Vue.openBlock(), Vue.createBlock(h2, { key: 0, "preview-src-list": [i2.previewImageInfo.src], src: i2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), Vue.createVNode(m, { modelValue: i2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: Vue.withCtx(() => [Vue.createElementVNode("span", null, Vue.toDisplayString(e2.$t("imatrixUIPublicModel.preview")), 1)]), default: Vue.withCtx(() => [Vue.createVNode(C, { data: i2.showFileList, "show-header": false }, { default: Vue.withCtx(() => [Vue.createVNode(g, { prop: "showName", width: "300" }), Vue.createVNode(g, { align: "right" }, { default: Vue.withCtx((t3) => [Vue.createVNode(A, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: Vue.withCtx(() => [Vue.createVNode(s, { style: { cursor: "pointer" }, onClick: (e3) => a.previewSingle(t3.row) }, { default: Vue.withCtx(() => [Vue.createVNode(f)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), o.disabled ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(g, { key: 0 }, { default: Vue.withCtx((t3) => [Vue.createVNode(A, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: Vue.withCtx(() => [Vue.createVNode(s, { style: { cursor: "pointer" }, onClick: (e3) => a.deleteRow(t3.$index) }, { default: Vue.withCtx(() => [Vue.createVNode(y)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
12734
12738
|
}
|
|
12735
12739
|
const MultipartUploadForm = _export_sfc(_sfc_main$Q, [["render", _sfc_render$p]]), _sfc_main$P = { name: "MultipartUpload", components: { MultipartUploadList, MultipartUploadForm }, props: { type: { type: String, default: "form" }, value: { type: String, default: null }, entity: { type: Object, default: null }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 30, multiple: false, accept: null }) }, disabled: { type: Boolean, default: false }, uploadAble: { type: Boolean, default: true }, deletaAble: { type: Boolean, default: true } }, data: () => ({}), created() {
|
|
12736
12740
|
this.fileSetObj, this.entity;
|
|
@@ -13197,10 +13201,10 @@
|
|
|
13197
13201
|
function y(e3, t3) {
|
|
13198
13202
|
o && o.lineEdit && o.lineEdit.editingCell ? n("refresPortData", e3, t3, o.lineEdit.editingCell.row) : n("refresPortData", e3, t3, this.index);
|
|
13199
13203
|
}
|
|
13200
|
-
function
|
|
13204
|
+
function C(e3) {
|
|
13201
13205
|
o && o.lineEdit && o.lineEdit.editingCell ? n("refresPortsData", e3, o.lineEdit.editingCell.row) : n("refresPortsData", e3, this.index);
|
|
13202
13206
|
}
|
|
13203
|
-
function
|
|
13207
|
+
function w(e3) {
|
|
13204
13208
|
n("refresMainTableFields", e3);
|
|
13205
13209
|
}
|
|
13206
13210
|
function V() {
|
|
@@ -13213,7 +13217,7 @@
|
|
|
13213
13217
|
}
|
|
13214
13218
|
return d && d.length > 0 && (c.value = d[0]), (t3, o2) => {
|
|
13215
13219
|
const l2 = Vue.resolveComponent("el-form-item"), r2 = Vue.resolveComponent("el-form"), d2 = Vue.resolveComponent("el-button"), b = Vue.resolveComponent("el-drawer");
|
|
13216
|
-
return Vue.openBlock(), Vue.createBlock(b, { modelValue: a.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => a.value = e3), "close-on-click-modal": false, "close-on-press-escape": false, direction: "btt", size: "100%", onClose: o2[1] || (o2[1] = (e3) => (a.value = false, void n("close"))) }, { header: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$v, Vue.toDisplayString(t3.$t("superGrid.recordLine", { row: i2.value + 1 })), 1)]), default: Vue.withCtx(() => [c.value ? (Vue.openBlock(), Vue.createBlock(_sfc_main$I, { key: 0, column: c.value, "list-code": e2.listCode, currentPage: e2.currentPage, "grid-data": e2.gridData, "page-grid-data": e2.pageGridData, row: e2.gridData[i2.value], rowIndex: i2.value, parentFormData: Vue.unref(s), onRefreshList: V, onAfterClick: v }, null, 8, ["column", "list-code", "currentPage", "grid-data", "page-grid-data", "row", "rowIndex", "parentFormData"])) : Vue.createCommentVNode("", true), Vue.createVNode(r2, { "label-width": "auto" }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(e2.columns, (t4, o3) => (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, ["$index" != t4.prop && "$selection" != t4.prop && "operation" != t4.prop ? (Vue.openBlock(), Vue.createBlock(l2, { key: o3, label: p(t4) }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_2$h, [Vue.createVNode(NormalColumnContent, { ref_for: true, ref: t4.prop, "is-sql": e2.isSql, column: t4, "list-code": e2.listCode, "drag-column-prop": e2.dragColumnProp, "right-click-menu-arr": Vue.unref(u).rightClickMenuArr, "table-name": e2.tableName, "page-code": e2.pageCode, "list-toolbar-form-data": e2.listToolbarFormData, "list-name": e2.listName, options: Vue.unref(u), "current-page": e2.currentPage, "grid-data": e2.gridData, "page-grid-data": e2.pageGridData, row: e2.gridData[i2.value], "row-index": i2.value, "is-show-form": true, onOpenPage: g, onRefresData: A, onRefreshList: V, onRefresPortData: y, onRefresPortsData:
|
|
13220
|
+
return Vue.openBlock(), Vue.createBlock(b, { modelValue: a.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => a.value = e3), "close-on-click-modal": false, "close-on-press-escape": false, direction: "btt", size: "100%", onClose: o2[1] || (o2[1] = (e3) => (a.value = false, void n("close"))) }, { header: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$v, Vue.toDisplayString(t3.$t("superGrid.recordLine", { row: i2.value + 1 })), 1)]), default: Vue.withCtx(() => [c.value ? (Vue.openBlock(), Vue.createBlock(_sfc_main$I, { key: 0, column: c.value, "list-code": e2.listCode, currentPage: e2.currentPage, "grid-data": e2.gridData, "page-grid-data": e2.pageGridData, row: e2.gridData[i2.value], rowIndex: i2.value, parentFormData: Vue.unref(s), onRefreshList: V, onAfterClick: v }, null, 8, ["column", "list-code", "currentPage", "grid-data", "page-grid-data", "row", "rowIndex", "parentFormData"])) : Vue.createCommentVNode("", true), Vue.createVNode(r2, { "label-width": "auto" }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(e2.columns, (t4, o3) => (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, ["$index" != t4.prop && "$selection" != t4.prop && "operation" != t4.prop ? (Vue.openBlock(), Vue.createBlock(l2, { key: o3, label: p(t4) }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_2$h, [Vue.createVNode(NormalColumnContent, { ref_for: true, ref: t4.prop, "is-sql": e2.isSql, column: t4, "list-code": e2.listCode, "drag-column-prop": e2.dragColumnProp, "right-click-menu-arr": Vue.unref(u).rightClickMenuArr, "table-name": e2.tableName, "page-code": e2.pageCode, "list-toolbar-form-data": e2.listToolbarFormData, "list-name": e2.listName, options: Vue.unref(u), "current-page": e2.currentPage, "grid-data": e2.gridData, "page-grid-data": e2.pageGridData, row: e2.gridData[i2.value], "row-index": i2.value, "is-show-form": true, onOpenPage: g, onRefresData: A, onRefreshList: V, onRefresPortData: y, onRefresPortsData: C, onRefresMainTableFields: w, onProhibitToEdit: f }, null, 8, ["is-sql", "column", "list-code", "drag-column-prop", "right-click-menu-arr", "table-name", "page-code", "list-toolbar-form-data", "list-name", "options", "current-page", "grid-data", "page-grid-data", "row", "row-index"])])]), _: 2 }, 1032, ["label"])) : Vue.createCommentVNode("", true)], 64))), 256))]), _: 1 }), 0 !== i2.value ? (Vue.openBlock(), Vue.createBlock(d2, { key: 1, type: "primary", link: "", onClick: m }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("superGrid.prevRow")), 1)]), _: 1 })) : Vue.createCommentVNode("", true), i2.value !== e2.gridData.length - 1 ? (Vue.openBlock(), Vue.createBlock(d2, { key: 2, type: "primary", link: "", onClick: h2 }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(t3.$t("superGrid.nextRow")), 1)]), _: 1 })) : Vue.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue"]);
|
|
13217
13221
|
};
|
|
13218
13222
|
} }), index_vue_vue_type_style_index_0_scoped_4b5a56cc_lang = "", RowForm = _export_sfc(_sfc_main$H, [["__scopeId", "data-v-4b5a56cc"]]);
|
|
13219
13223
|
RowForm.install = function(e2) {
|
|
@@ -13983,8 +13987,8 @@
|
|
|
13983
13987
|
var s3 = o3 + l3, r2 = e5[s3];
|
|
13984
13988
|
e5[s3] = 16711935 & (r2 << 8 | r2 >>> 24) | 4278255360 & (r2 << 24 | r2 >>> 8);
|
|
13985
13989
|
}
|
|
13986
|
-
var u2 = this._hash.words, c2 = e5[o3 + 0], p2 = e5[o3 + 1], m = e5[o3 + 2], h2 = e5[o3 + 3], g = e5[o3 + 4], f = e5[o3 + 5], A = e5[o3 + 6], y = e5[o3 + 7],
|
|
13987
|
-
x = t4(x, E, D, B, c2, 7, d[0]), B = t4(B, x, E, D, p2, 12, d[1]), D = t4(D, B, x, E, m, 17, d[2]), E = t4(E, D, B, x, h2, 22, d[3]), x = t4(x, E, D, B, g, 7, d[4]), B = t4(B, x, E, D, f, 12, d[5]), D = t4(D, B, x, E, A, 17, d[6]), E = t4(E, D, B, x, y, 22, d[7]), x = t4(x, E, D, B,
|
|
13990
|
+
var u2 = this._hash.words, c2 = e5[o3 + 0], p2 = e5[o3 + 1], m = e5[o3 + 2], h2 = e5[o3 + 3], g = e5[o3 + 4], f = e5[o3 + 5], A = e5[o3 + 6], y = e5[o3 + 7], C = e5[o3 + 8], w = e5[o3 + 9], V = e5[o3 + 10], v = e5[o3 + 11], b = e5[o3 + 12], I = e5[o3 + 13], S = e5[o3 + 14], k = e5[o3 + 15], x = u2[0], E = u2[1], D = u2[2], B = u2[3];
|
|
13991
|
+
x = t4(x, E, D, B, c2, 7, d[0]), B = t4(B, x, E, D, p2, 12, d[1]), D = t4(D, B, x, E, m, 17, d[2]), E = t4(E, D, B, x, h2, 22, d[3]), x = t4(x, E, D, B, g, 7, d[4]), B = t4(B, x, E, D, f, 12, d[5]), D = t4(D, B, x, E, A, 17, d[6]), E = t4(E, D, B, x, y, 22, d[7]), x = t4(x, E, D, B, C, 7, d[8]), B = t4(B, x, E, D, w, 12, d[9]), D = t4(D, B, x, E, V, 17, d[10]), E = t4(E, D, B, x, v, 22, d[11]), x = t4(x, E, D, B, b, 7, d[12]), B = t4(B, x, E, D, I, 12, d[13]), D = t4(D, B, x, E, S, 17, d[14]), E = t4(E, D, B, x, k, 22, d[15]), x = n2(x, E, D, B, p2, 5, d[16]), B = n2(B, x, E, D, A, 9, d[17]), D = n2(D, B, x, E, v, 14, d[18]), E = n2(E, D, B, x, c2, 20, d[19]), x = n2(x, E, D, B, f, 5, d[20]), B = n2(B, x, E, D, V, 9, d[21]), D = n2(D, B, x, E, k, 14, d[22]), E = n2(E, D, B, x, g, 20, d[23]), x = n2(x, E, D, B, w, 5, d[24]), B = n2(B, x, E, D, S, 9, d[25]), D = n2(D, B, x, E, h2, 14, d[26]), E = n2(E, D, B, x, C, 20, d[27]), x = n2(x, E, D, B, I, 5, d[28]), B = n2(B, x, E, D, m, 9, d[29]), D = n2(D, B, x, E, y, 14, d[30]), E = n2(E, D, B, x, b, 20, d[31]), x = i3(x, E, D, B, f, 4, d[32]), B = i3(B, x, E, D, C, 11, d[33]), D = i3(D, B, x, E, v, 16, d[34]), E = i3(E, D, B, x, S, 23, d[35]), x = i3(x, E, D, B, p2, 4, d[36]), B = i3(B, x, E, D, g, 11, d[37]), D = i3(D, B, x, E, y, 16, d[38]), E = i3(E, D, B, x, V, 23, d[39]), x = i3(x, E, D, B, I, 4, d[40]), B = i3(B, x, E, D, c2, 11, d[41]), D = i3(D, B, x, E, h2, 16, d[42]), E = i3(E, D, B, x, A, 23, d[43]), x = i3(x, E, D, B, w, 4, d[44]), B = i3(B, x, E, D, b, 11, d[45]), D = i3(D, B, x, E, k, 16, d[46]), E = i3(E, D, B, x, m, 23, d[47]), x = a2(x, E, D, B, c2, 6, d[48]), B = a2(B, x, E, D, y, 10, d[49]), D = a2(D, B, x, E, S, 15, d[50]), E = a2(E, D, B, x, f, 21, d[51]), x = a2(x, E, D, B, b, 6, d[52]), B = a2(B, x, E, D, h2, 10, d[53]), D = a2(D, B, x, E, V, 15, d[54]), E = a2(E, D, B, x, p2, 21, d[55]), x = a2(x, E, D, B, C, 6, d[56]), B = a2(B, x, E, D, k, 10, d[57]), D = a2(D, B, x, E, A, 15, d[58]), E = a2(E, D, B, x, I, 21, d[59]), x = a2(x, E, D, B, g, 6, d[60]), B = a2(B, x, E, D, v, 10, d[61]), D = a2(D, B, x, E, m, 15, d[62]), E = a2(E, D, B, x, w, 21, d[63]), u2[0] = u2[0] + x | 0, u2[1] = u2[1] + E | 0, u2[2] = u2[2] + D | 0, u2[3] = u2[3] + B | 0;
|
|
13988
13992
|
}, _doFinalize: function() {
|
|
13989
13993
|
var t5 = this._data, o3 = t5.words, n3 = 8 * this._nDataBytes, i4 = 8 * t5.sigBytes;
|
|
13990
13994
|
o3[i4 >>> 5] |= 128 << 24 - i4 % 32;
|
|
@@ -14049,8 +14053,8 @@
|
|
|
14049
14053
|
var h2 = u[m - 15], g = (h2 << 25 | h2 >>> 7) ^ (h2 << 14 | h2 >>> 18) ^ h2 >>> 3, f = u[m - 2], A = (f << 15 | f >>> 17) ^ (f << 13 | f >>> 19) ^ f >>> 10;
|
|
14050
14054
|
u[m] = g + u[m - 7] + A + u[m - 16];
|
|
14051
14055
|
}
|
|
14052
|
-
var y = n3 & i4 ^ n3 & a3 ^ i4 & a3,
|
|
14053
|
-
p = d, d = c2, c2 = s3, s3 = l3 +
|
|
14056
|
+
var y = n3 & i4 ^ n3 & a3 ^ i4 & a3, C = (n3 << 30 | n3 >>> 2) ^ (n3 << 19 | n3 >>> 13) ^ (n3 << 10 | n3 >>> 22), w = p + ((s3 << 26 | s3 >>> 6) ^ (s3 << 21 | s3 >>> 11) ^ (s3 << 7 | s3 >>> 25)) + (s3 & c2 ^ ~s3 & d) + r[m] + u[m];
|
|
14057
|
+
p = d, d = c2, c2 = s3, s3 = l3 + w | 0, l3 = a3, a3 = i4, i4 = n3, n3 = w + (C + y) | 0;
|
|
14054
14058
|
}
|
|
14055
14059
|
o3[0] = o3[0] + n3 | 0, o3[1] = o3[1] + i4 | 0, o3[2] = o3[2] + a3 | 0, o3[3] = o3[3] + l3 | 0, o3[4] = o3[4] + s3 | 0, o3[5] = o3[5] + c2 | 0, o3[6] = o3[6] + d | 0, o3[7] = o3[7] + p | 0;
|
|
14056
14060
|
}, _doFinalize: function() {
|
|
@@ -14083,7 +14087,7 @@
|
|
|
14083
14087
|
var c = s2.SHA512 = n2.extend({ _doReset: function() {
|
|
14084
14088
|
this._hash = new l2.init([new a2.init(1779033703, 4089235720), new a2.init(3144134277, 2227873595), new a2.init(1013904242, 4271175723), new a2.init(2773480762, 1595750129), new a2.init(1359893119, 2917565137), new a2.init(2600822924, 725511199), new a2.init(528734635, 4215389547), new a2.init(1541459225, 327033209)]);
|
|
14085
14089
|
}, _doProcessBlock: function(e5, t5) {
|
|
14086
|
-
for (var o3 = this._hash.words, n3 = o3[0], i4 = o3[1], a3 = o3[2], l3 = o3[3], s3 = o3[4], c2 = o3[5], d = o3[6], p = o3[7], m = n3.high, h2 = n3.low, g = i4.high, f = i4.low, A = a3.high, y = a3.low,
|
|
14090
|
+
for (var o3 = this._hash.words, n3 = o3[0], i4 = o3[1], a3 = o3[2], l3 = o3[3], s3 = o3[4], c2 = o3[5], d = o3[6], p = o3[7], m = n3.high, h2 = n3.low, g = i4.high, f = i4.low, A = a3.high, y = a3.low, C = l3.high, w = l3.low, V = s3.high, v = s3.low, b = c2.high, I = c2.low, S = d.high, k = d.low, x = p.high, E = p.low, D = m, B = h2, N = g, P = f, T = A, M = y, O = C, U = w, L = V, F = v, j = b, R = I, Q = S, z = k, q = x, K = E, H = 0; H < 80; H++) {
|
|
14087
14091
|
var G, J, Y = u[H];
|
|
14088
14092
|
if (H < 16)
|
|
14089
14093
|
J = Y.high = 0 | e5[t5 + 2 * H], G = Y.low = 0 | e5[t5 + 2 * H + 1];
|
|
@@ -14091,10 +14095,10 @@
|
|
|
14091
14095
|
var W = u[H - 15], Z = W.high, X = W.low, _ = (Z >>> 1 | X << 31) ^ (Z >>> 8 | X << 24) ^ Z >>> 7, $ = (X >>> 1 | Z << 31) ^ (X >>> 8 | Z << 24) ^ (X >>> 7 | Z << 25), ee = u[H - 2], te = ee.high, oe = ee.low, ne = (te >>> 19 | oe << 13) ^ (te << 3 | oe >>> 29) ^ te >>> 6, ie = (oe >>> 19 | te << 13) ^ (oe << 3 | te >>> 29) ^ (oe >>> 6 | te << 26), ae = u[H - 7], le = ae.high, se = ae.low, re = u[H - 16], ue = re.high, ce = re.low;
|
|
14092
14096
|
J = (J = (J = _ + le + ((G = $ + se) >>> 0 < $ >>> 0 ? 1 : 0)) + ne + ((G += ie) >>> 0 < ie >>> 0 ? 1 : 0)) + ue + ((G += ce) >>> 0 < ce >>> 0 ? 1 : 0), Y.high = J, Y.low = G;
|
|
14093
14097
|
}
|
|
14094
|
-
var de, pe = L & j ^ ~L & Q, me = F & R ^ ~F & z, he = D & N ^ D & T ^ N & T, ge = B & P ^ B & M ^ P & M, fe = (D >>> 28 | B << 4) ^ (D << 30 | B >>> 2) ^ (D << 25 | B >>> 7), Ae = (B >>> 28 | D << 4) ^ (B << 30 | D >>> 2) ^ (B << 25 | D >>> 7), ye = (L >>> 14 | F << 18) ^ (L >>> 18 | F << 14) ^ (L << 23 | F >>> 9),
|
|
14098
|
+
var de, pe = L & j ^ ~L & Q, me = F & R ^ ~F & z, he = D & N ^ D & T ^ N & T, ge = B & P ^ B & M ^ P & M, fe = (D >>> 28 | B << 4) ^ (D << 30 | B >>> 2) ^ (D << 25 | B >>> 7), Ae = (B >>> 28 | D << 4) ^ (B << 30 | D >>> 2) ^ (B << 25 | D >>> 7), ye = (L >>> 14 | F << 18) ^ (L >>> 18 | F << 14) ^ (L << 23 | F >>> 9), Ce = (F >>> 14 | L << 18) ^ (F >>> 18 | L << 14) ^ (F << 23 | L >>> 9), we = r[H], Ve = we.high, ve = we.low, be = q + ye + ((de = K + Ce) >>> 0 < K >>> 0 ? 1 : 0), Ie = Ae + ge;
|
|
14095
14099
|
q = Q, K = z, Q = j, z = R, j = L, R = F, L = O + (be = (be = (be = be + pe + ((de += me) >>> 0 < me >>> 0 ? 1 : 0)) + Ve + ((de += ve) >>> 0 < ve >>> 0 ? 1 : 0)) + J + ((de += G) >>> 0 < G >>> 0 ? 1 : 0)) + ((F = U + de | 0) >>> 0 < U >>> 0 ? 1 : 0) | 0, O = T, U = M, T = N, M = P, N = D, P = B, D = be + (fe + he + (Ie >>> 0 < Ae >>> 0 ? 1 : 0)) + ((B = de + Ie | 0) >>> 0 < de >>> 0 ? 1 : 0) | 0;
|
|
14096
14100
|
}
|
|
14097
|
-
h2 = n3.low = h2 + B, n3.high = m + D + (h2 >>> 0 < B >>> 0 ? 1 : 0), f = i4.low = f + P, i4.high = g + N + (f >>> 0 < P >>> 0 ? 1 : 0), y = a3.low = y + M, a3.high = A + T + (y >>> 0 < M >>> 0 ? 1 : 0),
|
|
14101
|
+
h2 = n3.low = h2 + B, n3.high = m + D + (h2 >>> 0 < B >>> 0 ? 1 : 0), f = i4.low = f + P, i4.high = g + N + (f >>> 0 < P >>> 0 ? 1 : 0), y = a3.low = y + M, a3.high = A + T + (y >>> 0 < M >>> 0 ? 1 : 0), w = l3.low = w + U, l3.high = C + O + (w >>> 0 < U >>> 0 ? 1 : 0), v = s3.low = v + F, s3.high = V + L + (v >>> 0 < F >>> 0 ? 1 : 0), I = c2.low = I + R, c2.high = b + j + (I >>> 0 < R >>> 0 ? 1 : 0), k = d.low = k + z, d.high = S + Q + (k >>> 0 < z >>> 0 ? 1 : 0), E = p.low = E + K, p.high = x + q + (E >>> 0 < K >>> 0 ? 1 : 0);
|
|
14098
14102
|
}, _doFinalize: function() {
|
|
14099
14103
|
var e5 = this._data, t5 = e5.words, o3 = 8 * this._nDataBytes, n3 = 8 * e5.sigBytes;
|
|
14100
14104
|
return t5[n3 >>> 5] |= 128 << 24 - n3 % 32, t5[30 + (n3 + 128 >>> 10 << 5)] = Math.floor(o3 / 4294967296), t5[31 + (n3 + 128 >>> 10 << 5)] = o3, e5.sigBytes = 4 * t5.length, this._process(), this._hash.toX32();
|
|
@@ -14158,8 +14162,8 @@
|
|
|
14158
14162
|
f.high = m, f.low = h2;
|
|
14159
14163
|
}
|
|
14160
14164
|
for (p2 = 0; p2 < 5; p2++) {
|
|
14161
|
-
var A = d[(p2 + 4) % 5], y = d[(p2 + 1) % 5],
|
|
14162
|
-
for (m = A.high ^ (
|
|
14165
|
+
var A = d[(p2 + 4) % 5], y = d[(p2 + 1) % 5], C = y.high, w = y.low;
|
|
14166
|
+
for (m = A.high ^ (C << 1 | w >>> 31), h2 = A.low ^ (w << 1 | C >>> 31), g = 0; g < 5; g++)
|
|
14163
14167
|
(E = o3[p2 + 5 * g]).high ^= m, E.low ^= h2;
|
|
14164
14168
|
}
|
|
14165
14169
|
for (var V = 1; V < 25; V++) {
|
|
@@ -14196,7 +14200,7 @@
|
|
|
14196
14200
|
t4.SHA3 = a2._createHelper(p), t4.HmacSHA3 = a2._createHmacHelper(p);
|
|
14197
14201
|
}(Math), o2.SHA3);
|
|
14198
14202
|
}), i2(function(e3, t3) {
|
|
14199
|
-
var o2, n2, i3, a2, s2, r, u, c, d, p, m, h2, g, f, A, y,
|
|
14203
|
+
var o2, n2, i3, a2, s2, r, u, c, d, p, m, h2, g, f, A, y, C, w, V;
|
|
14200
14204
|
e3.exports = (o2 = function(e4, t4, o3) {
|
|
14201
14205
|
return e4 ^ t4 ^ o3;
|
|
14202
14206
|
}, n2 = function(e4, t4, o3) {
|
|
@@ -14209,17 +14213,17 @@
|
|
|
14209
14213
|
return e4 ^ (t4 | ~o3);
|
|
14210
14214
|
}, r = function(e4, t4) {
|
|
14211
14215
|
return e4 << t4 | e4 >>> 32 - t4;
|
|
14212
|
-
}, c = (u = V = l).lib, d = c.WordArray, p = c.Hasher, m = u.algo, h2 = d.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]), g = d.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]), f = d.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]), A = d.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]), y = d.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
|
|
14216
|
+
}, c = (u = V = l).lib, d = c.WordArray, p = c.Hasher, m = u.algo, h2 = d.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]), g = d.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]), f = d.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]), A = d.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]), y = d.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), C = d.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), w = m.RIPEMD160 = p.extend({ _doReset: function() {
|
|
14213
14217
|
this._hash = d.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
14214
14218
|
}, _doProcessBlock: function(e4, t4) {
|
|
14215
14219
|
for (var l2 = 0; l2 < 16; l2++) {
|
|
14216
14220
|
var u2 = t4 + l2, c2 = e4[u2];
|
|
14217
14221
|
e4[u2] = 16711935 & (c2 << 8 | c2 >>> 24) | 4278255360 & (c2 << 24 | c2 >>> 8);
|
|
14218
14222
|
}
|
|
14219
|
-
var d2, p2, m2,
|
|
14220
|
-
for (v = d2 = E[0], b = p2 = E[1], I = m2 = E[2], S =
|
|
14221
|
-
x = d2 + e4[t4 + N[l2]] | 0, x += l2 < 16 ? o2(p2, m2,
|
|
14222
|
-
x = E[1] + m2 + S | 0, E[1] = E[2] +
|
|
14223
|
+
var d2, p2, m2, w2, V2, v, b, I, S, k, x, E = this._hash.words, D = y.words, B = C.words, N = h2.words, P = g.words, T = f.words, M = A.words;
|
|
14224
|
+
for (v = d2 = E[0], b = p2 = E[1], I = m2 = E[2], S = w2 = E[3], k = V2 = E[4], l2 = 0; l2 < 80; l2 += 1)
|
|
14225
|
+
x = d2 + e4[t4 + N[l2]] | 0, x += l2 < 16 ? o2(p2, m2, w2) + D[0] : l2 < 32 ? n2(p2, m2, w2) + D[1] : l2 < 48 ? i3(p2, m2, w2) + D[2] : l2 < 64 ? a2(p2, m2, w2) + D[3] : s2(p2, m2, w2) + D[4], x = (x = r(x |= 0, T[l2])) + V2 | 0, d2 = V2, V2 = w2, w2 = r(m2, 10), m2 = p2, p2 = x, x = v + e4[t4 + P[l2]] | 0, x += l2 < 16 ? s2(b, I, S) + B[0] : l2 < 32 ? a2(b, I, S) + B[1] : l2 < 48 ? i3(b, I, S) + B[2] : l2 < 64 ? n2(b, I, S) + B[3] : o2(b, I, S) + B[4], x = (x = r(x |= 0, M[l2])) + k | 0, v = k, k = S, S = r(I, 10), I = b, b = x;
|
|
14226
|
+
x = E[1] + m2 + S | 0, E[1] = E[2] + w2 + k | 0, E[2] = E[3] + V2 + v | 0, E[3] = E[4] + d2 + b | 0, E[4] = E[0] + p2 + I | 0, E[0] = x;
|
|
14223
14227
|
}, _doFinalize: function() {
|
|
14224
14228
|
var e4 = this._data, t4 = e4.words, o3 = 8 * this._nDataBytes, n3 = 8 * e4.sigBytes;
|
|
14225
14229
|
t4[n3 >>> 5] |= 128 << 24 - n3 % 32, t4[14 + (n3 + 64 >>> 9 << 4)] = 16711935 & (o3 << 8 | o3 >>> 24) | 4278255360 & (o3 << 24 | o3 >>> 8), e4.sigBytes = 4 * (t4.length + 1), this._process();
|
|
@@ -14231,7 +14235,7 @@
|
|
|
14231
14235
|
}, clone: function() {
|
|
14232
14236
|
var e4 = p.clone.call(this);
|
|
14233
14237
|
return e4._hash = this._hash.clone(), e4;
|
|
14234
|
-
} }), u.RIPEMD160 = p._createHelper(
|
|
14238
|
+
} }), u.RIPEMD160 = p._createHelper(w), u.HmacRIPEMD160 = p._createHmacHelper(w), V.RIPEMD160);
|
|
14235
14239
|
}), i2(function(e3, t3) {
|
|
14236
14240
|
var o2, n2, i3;
|
|
14237
14241
|
e3.exports = (n2 = (o2 = l).lib.Base, i3 = o2.enc.Utf8, void (o2.algo.HMAC = n2.extend({ init: function(e4, t4) {
|
|
@@ -14302,7 +14306,7 @@
|
|
|
14302
14306
|
}, finalize: function(e5) {
|
|
14303
14307
|
return e5 && this._append(e5), this._doFinalize();
|
|
14304
14308
|
}, keySize: 4, ivSize: 4, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: (r = function(e5) {
|
|
14305
|
-
return "string" == typeof e5 ?
|
|
14309
|
+
return "string" == typeof e5 ? w : y;
|
|
14306
14310
|
}, function(e5) {
|
|
14307
14311
|
return { encrypt: function(t5, o3, n3) {
|
|
14308
14312
|
return r(o3).encrypt(e5, t5, o3, n3);
|
|
@@ -14371,11 +14375,11 @@
|
|
|
14371
14375
|
return n3 = this.cfg.extend(n3), t5 = this._parse(t5, n3.format), e5.createDecryptor(o3, n3).finalize(t5.ciphertext);
|
|
14372
14376
|
}, _parse: function(e5, t5) {
|
|
14373
14377
|
return "string" == typeof e5 ? t5.parse(e5, this) : e5;
|
|
14374
|
-
} }),
|
|
14378
|
+
} }), C = (t4.kdf = {}).OpenSSL = { execute: function(e5, t5, o3, n3) {
|
|
14375
14379
|
n3 || (n3 = a2.random(8));
|
|
14376
14380
|
var i4 = c.create({ keySize: t5 + o3 }).compute(e5, n3), l3 = a2.create(i4.words.slice(t5), 4 * o3);
|
|
14377
14381
|
return i4.sigBytes = 4 * t5, f.create({ key: i4, iv: l3, salt: n3 });
|
|
14378
|
-
} },
|
|
14382
|
+
} }, w = n2.PasswordBasedCipher = y.extend({ cfg: y.cfg.extend({ kdf: C }), encrypt: function(e5, t5, o3, n3) {
|
|
14379
14383
|
var i4 = (n3 = this.cfg.extend(n3)).kdf.execute(o3, e5.keySize, e5.ivSize);
|
|
14380
14384
|
n3.iv = i4.iv;
|
|
14381
14385
|
var a3 = y.encrypt.call(this, e5, t5, i4.key, n3);
|
|
@@ -14894,7 +14898,7 @@
|
|
|
14894
14898
|
h2 -= 1, h2 <= 0 ? (stopTimer(), r.stop()) : i2.value = `录音中(${h2}s)`;
|
|
14895
14899
|
}
|
|
14896
14900
|
function f(e3) {
|
|
14897
|
-
n.value = e3, "CONNECTING" === e3 ? (i2.value = "建立连接中", d = "", p = "") : "OPEN" === e3 ? (h2 = 60, i2.value = `录音中(${h2}s)`, startTimer(g)) : "CLOSING" === e3 ? i2.value = "关闭连接中" : "CLOSED" === e3 && (i2.value = "开始录音",
|
|
14901
|
+
n.value = e3, "CONNECTING" === e3 ? (i2.value = "建立连接中", d = "", p = "") : "OPEN" === e3 ? (h2 = 60, i2.value = `录音中(${h2}s)`, startTimer(g)) : "CLOSING" === e3 ? i2.value = "关闭连接中" : "CLOSED" === e3 && (i2.value = "开始录音", C());
|
|
14898
14902
|
}
|
|
14899
14903
|
function A() {
|
|
14900
14904
|
let e3 = getUsername();
|
|
@@ -14940,7 +14944,7 @@
|
|
|
14940
14944
|
return console.error("查询权限时发生错误:", e3), "error";
|
|
14941
14945
|
}
|
|
14942
14946
|
}(), "UNDEFINED" === n.value || "CLOSED" === n.value ? A() : "CONNECTING" !== n.value && "OPEN" !== n.value || r.stop();
|
|
14943
|
-
},
|
|
14947
|
+
}, C = () => {
|
|
14944
14948
|
l.value = l.value + a.value, a.value = "", "" != l.value ? (o("userMessage", l.value), l.value = "") : (l.value = "", a.value = "");
|
|
14945
14949
|
};
|
|
14946
14950
|
return (e3, t3) => {
|
|
@@ -14959,7 +14963,7 @@
|
|
|
14959
14963
|
console.error("Failed to initialize ChatAiStore:", e3);
|
|
14960
14964
|
}
|
|
14961
14965
|
}
|
|
14962
|
-
let y,
|
|
14966
|
+
let y, C;
|
|
14963
14967
|
Vue.onMounted(() => {
|
|
14964
14968
|
!function() {
|
|
14965
14969
|
try {
|
|
@@ -14974,7 +14978,7 @@
|
|
|
14974
14978
|
}), Vue.onMounted(() => {
|
|
14975
14979
|
A();
|
|
14976
14980
|
});
|
|
14977
|
-
let
|
|
14981
|
+
let w = {}, V = {};
|
|
14978
14982
|
function v(e3) {
|
|
14979
14983
|
let t3 = e3;
|
|
14980
14984
|
null == e3 ? (u.value, t3 = u.value.trim()) : t3 = e3.trim(), y = t3;
|
|
@@ -15065,9 +15069,9 @@
|
|
|
15065
15069
|
}
|
|
15066
15070
|
return t2({ parseCommand: function() {
|
|
15067
15071
|
getVoiceSetting().then((e3) => {
|
|
15068
|
-
parseVoiceMsg(y, e3,
|
|
15072
|
+
parseVoiceMsg(y, e3, C, w, V).then((e4) => {
|
|
15069
15073
|
if ("ok" === e4.status) {
|
|
15070
|
-
|
|
15074
|
+
C || (C = e4.settingItem), w = e4.paramInfo;
|
|
15071
15075
|
let t3 = e4.url;
|
|
15072
15076
|
if (t3) {
|
|
15073
15077
|
if (V)
|
|
@@ -15075,8 +15079,8 @@
|
|
|
15075
15079
|
const o3 = V[e5];
|
|
15076
15080
|
"_jump_param" !== o3 && (t3 = T(e5, o3, t3));
|
|
15077
15081
|
}
|
|
15078
|
-
const o2 =
|
|
15079
|
-
|
|
15082
|
+
const o2 = C ? C.command : "";
|
|
15083
|
+
C = void 0, V = {}, w = {}, a("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult, url: t3, paramsValue: V, command: o2 }), window.open(getRelativeBaseUrl(t3));
|
|
15080
15084
|
} else
|
|
15081
15085
|
a("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
15082
15086
|
} else
|
|
@@ -15086,8 +15090,8 @@
|
|
|
15086
15090
|
}, newChatSession: function() {
|
|
15087
15091
|
c.value === AI_MODELS.DEEPSEEK && (h2.value = []), u.value = "";
|
|
15088
15092
|
} }), (t3, o2) => {
|
|
15089
|
-
const i3 = Vue.resolveComponent("Paperclip"), a2 = Vue.resolveComponent("el-icon"), r2 = Vue.resolveComponent("super-icon"), A2 = Vue.resolveComponent("el-tooltip"), y2 = Vue.resolveComponent("el-tag"),
|
|
15090
|
-
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [l.value ? (Vue.openBlock(), Vue.createBlock(y2, { key: 0, type: "primary" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$n, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(i3)]), _: 1 }), Vue.createTextVNode(" " + Vue.toDisplayString(s.value) + " ", 1), Vue.createVNode(A2, { content: "预览" }, { default: Vue.withCtx(() => [Vue.createVNode(r2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: k })]), _: 1 }), Vue.createVNode(A2, { content: "下载" }, { default: Vue.withCtx(() => [Vue.createVNode(r2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: x })]), _: 1 }), Vue.createVNode(A2, { content: "移除" }, { default: Vue.withCtx(() => [Vue.createVNode(r2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: S })]), _: 1 })])]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(Vue.unref(vueElementPlusX.Sender), { modelValue: u.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => u.value = e3), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: d, submitType: "enter", loading: e2.loading, "allow-speech": "", onSubmit: o2[3] || (o2[3] = (e3) => v()), placeholder: "请您描述问题" }, { header: Vue.withCtx(() => [Vue.createVNode(Vue.unref(vueElementPlusX.Attachments), { items: h2.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": Vue.withCtx((e3) => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(e3.items, (e4) => (Vue.openBlock(), Vue.createBlock(Vue.unref(vueElementPlusX.FilesCard), { key: e4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: e4.name, percent: e4.percent, uid: e4.id, status: e4.status, "show-del-icon": "", "img-variant": "square", onDelete: P }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_2$b, [Vue.createVNode(
|
|
15093
|
+
const i3 = Vue.resolveComponent("Paperclip"), a2 = Vue.resolveComponent("el-icon"), r2 = Vue.resolveComponent("super-icon"), A2 = Vue.resolveComponent("el-tooltip"), y2 = Vue.resolveComponent("el-tag"), C2 = Vue.resolveComponent("el-option"), w2 = Vue.resolveComponent("el-select"), V2 = Vue.resolveComponent("SuperIcon"), T2 = Vue.resolveComponent("el-upload"), M2 = Vue.resolveComponent("el-divider"), O = Vue.resolveComponent("el-button"), U = Vue.resolveDirective("loading");
|
|
15094
|
+
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [l.value ? (Vue.openBlock(), Vue.createBlock(y2, { key: 0, type: "primary" }, { default: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_1$n, [Vue.createVNode(a2, null, { default: Vue.withCtx(() => [Vue.createVNode(i3)]), _: 1 }), Vue.createTextVNode(" " + Vue.toDisplayString(s.value) + " ", 1), Vue.createVNode(A2, { content: "预览" }, { default: Vue.withCtx(() => [Vue.createVNode(r2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: k })]), _: 1 }), Vue.createVNode(A2, { content: "下载" }, { default: Vue.withCtx(() => [Vue.createVNode(r2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: x })]), _: 1 }), Vue.createVNode(A2, { content: "移除" }, { default: Vue.withCtx(() => [Vue.createVNode(r2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: S })]), _: 1 })])]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(Vue.unref(vueElementPlusX.Sender), { modelValue: u.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => u.value = e3), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: d, submitType: "enter", loading: e2.loading, "allow-speech": "", onSubmit: o2[3] || (o2[3] = (e3) => v()), placeholder: "请您描述问题" }, { header: Vue.withCtx(() => [Vue.createVNode(Vue.unref(vueElementPlusX.Attachments), { items: h2.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": Vue.withCtx((e3) => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(e3.items, (e4) => (Vue.openBlock(), Vue.createBlock(Vue.unref(vueElementPlusX.FilesCard), { key: e4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: e4.name, percent: e4.percent, uid: e4.id, status: e4.status, "show-del-icon": "", "img-variant": "square", onDelete: P }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_2$b, [Vue.createVNode(w2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: c.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => c.value = e3), onChange: E }, { default: Vue.withCtx(() => [(Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(n, (e3) => Vue.createVNode(C2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_3$8, [g.value ? (Vue.openBlock(), Vue.createBlock(A2, { key: 0, content: "上传附件" }, { default: Vue.withCtx(() => [Vue.createVNode(T2, { ref_key: "uploadRef", ref: p, action: m.value, multiple: true, headers: { Authorization: Vue.unref(getToken)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": B, "on-success": N, "before-upload": D }, { default: Vue.withCtx(() => [Vue.createVNode(V2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : Vue.createCommentVNode("", true), f.value ? (Vue.openBlock(), Vue.createBlock(A2, { key: 1, content: "附加页面数据" }, { default: Vue.withCtx(() => [Vue.createVNode(V2, { onClick: I, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(A2, { content: "语音" }, { default: Vue.withCtx(() => [Vue.createVNode(_sfc_main$z, { onUserMessage: v, class: "send-icon" })]), _: 1 }), Vue.createVNode(M2, { direction: "vertical" }), e2.loading ? (Vue.openBlock(), Vue.createBlock(A2, { key: 2, content: "取消" }, { default: Vue.withCtx(() => [Vue.withDirectives((Vue.openBlock(), Vue.createBlock(O, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: b }, { default: Vue.withCtx(() => [...o2[4] || (o2[4] = [Vue.createTextVNode(" 取消 ", -1)])]), _: 1 })), [[U, e2.loading]])]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(O, { key: 3, style: { "border-radius": "10px" }, disabled: !u.value || !u.value.trim(), plain: "", circle: "", round: "", onClick: o2[1] || (o2[1] = (e3) => v()) }, { default: Vue.withCtx(() => [Vue.createVNode(V2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), o2[5] || (o2[5] = Vue.createElementVNode("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1))], 64);
|
|
15091
15095
|
};
|
|
15092
15096
|
} }), chatSender_vue_vue_type_style_index_0_scoped_6da81be3_lang = "", ChatSender = _export_sfc(_sfc_main$y, [["__scopeId", "data-v-6da81be3"]]), _sfc_main$x = Vue.defineComponent({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
|
|
15093
15097
|
} }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
|
|
@@ -15144,7 +15148,7 @@
|
|
|
15144
15148
|
function y(e3) {
|
|
15145
15149
|
"pie" === e3 && a.value.series.length > 1 && (a.value.series = [a.value.series[0]]);
|
|
15146
15150
|
}
|
|
15147
|
-
function
|
|
15151
|
+
function C() {
|
|
15148
15152
|
!function() {
|
|
15149
15153
|
if (!a.value.xAxis)
|
|
15150
15154
|
return;
|
|
@@ -15199,12 +15203,12 @@
|
|
|
15199
15203
|
}(t3, n2), g.value, o.value && o.value.setOption(g, true);
|
|
15200
15204
|
}();
|
|
15201
15205
|
}
|
|
15202
|
-
function
|
|
15206
|
+
function w(e3) {
|
|
15203
15207
|
d.value = [], p.value = [], c.value = "", e3();
|
|
15204
15208
|
}
|
|
15205
15209
|
return (e3, t3) => {
|
|
15206
15210
|
const V = Vue.resolveComponent("el-radio-button"), v = Vue.resolveComponent("el-radio-group"), b = Vue.resolveComponent("el-form-item"), I = Vue.resolveComponent("el-option"), S = Vue.resolveComponent("el-select"), k = Vue.resolveComponent("el-button"), x = Vue.resolveComponent("el-col"), E = Vue.resolveComponent("Plus"), D = Vue.resolveComponent("el-icon"), B = Vue.resolveComponent("Delete"), N = Vue.resolveComponent("el-form"), P = Vue.resolveComponent("el-table-column"), T = Vue.resolveComponent("el-link"), M = Vue.resolveComponent("el-table"), O = Vue.resolveComponent("el-dialog"), U = Vue.resolveDirective("loading");
|
|
15207
|
-
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$l, [Vue.createVNode(N, { style: { "max-height": "200px", "overflow-y": "auto" }, size: "small", inline: true, model: a.value, "label-width": "60" }, { default: Vue.withCtx(() => [Vue.createVNode(x, null, { default: Vue.withCtx(() => [Vue.createVNode(b, { label: "展示方式" }, { default: Vue.withCtx(() => [Vue.createVNode(v, { modelValue: n.value, "onUpdate:modelValue": t3[0] || (t3[0] = (e4) => n.value = e4), size: "small" }, { default: Vue.withCtx(() => [Vue.createVNode(V, { label: "表格", value: "table" }), Vue.createVNode(V, { label: "图表", value: "chart" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "chart" === n.value ? (Vue.openBlock(), Vue.createBlock(b, { key: 0, label: "图表类型" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "100px" }, modelValue: a.value.chartType, "onUpdate:modelValue": t3[1] || (t3[1] = (e4) => a.value.chartType = e4), placeholder: "选择图标类型", onChange: y, clearable: "" }, { default: Vue.withCtx(() => [Vue.createVNode(I, { label: "柱折图", value: "barLine" }), Vue.createVNode(I, { label: "饼状图", value: "pie" }), Vue.createVNode(I, { label: "雷达图", value: "radar" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : Vue.createCommentVNode("", true), "chart" === n.value ? (Vue.openBlock(), Vue.createBlock(b, { key: 1, label: "维度" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "150px" }, modelValue: a.value.xAxis, "onUpdate:modelValue": t3[2] || (t3[2] = (e4) => a.value.xAxis = e4), placeholder: "选择图标类型", clearable: "" }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(h2.value, (e4) => (Vue.openBlock(), Vue.createBlock(I, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : Vue.createCommentVNode("", true), "chart" === n.value ? (Vue.openBlock(), Vue.createBlock(b, { key: 2 }, { default: Vue.withCtx(() => [Vue.createVNode(k, { type: "primary", onClick:
|
|
15211
|
+
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$l, [Vue.createVNode(N, { style: { "max-height": "200px", "overflow-y": "auto" }, size: "small", inline: true, model: a.value, "label-width": "60" }, { default: Vue.withCtx(() => [Vue.createVNode(x, null, { default: Vue.withCtx(() => [Vue.createVNode(b, { label: "展示方式" }, { default: Vue.withCtx(() => [Vue.createVNode(v, { modelValue: n.value, "onUpdate:modelValue": t3[0] || (t3[0] = (e4) => n.value = e4), size: "small" }, { default: Vue.withCtx(() => [Vue.createVNode(V, { label: "表格", value: "table" }), Vue.createVNode(V, { label: "图表", value: "chart" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "chart" === n.value ? (Vue.openBlock(), Vue.createBlock(b, { key: 0, label: "图表类型" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "100px" }, modelValue: a.value.chartType, "onUpdate:modelValue": t3[1] || (t3[1] = (e4) => a.value.chartType = e4), placeholder: "选择图标类型", onChange: y, clearable: "" }, { default: Vue.withCtx(() => [Vue.createVNode(I, { label: "柱折图", value: "barLine" }), Vue.createVNode(I, { label: "饼状图", value: "pie" }), Vue.createVNode(I, { label: "雷达图", value: "radar" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : Vue.createCommentVNode("", true), "chart" === n.value ? (Vue.openBlock(), Vue.createBlock(b, { key: 1, label: "维度" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "150px" }, modelValue: a.value.xAxis, "onUpdate:modelValue": t3[2] || (t3[2] = (e4) => a.value.xAxis = e4), placeholder: "选择图标类型", clearable: "" }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(h2.value, (e4) => (Vue.openBlock(), Vue.createBlock(I, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : Vue.createCommentVNode("", true), "chart" === n.value ? (Vue.openBlock(), Vue.createBlock(b, { key: 2 }, { default: Vue.withCtx(() => [Vue.createVNode(k, { type: "primary", onClick: C }, { default: Vue.withCtx(() => [...t3[5] || (t3[5] = [Vue.createTextVNode("生成图表", -1)])]), _: 1 })]), _: 1 })) : Vue.createCommentVNode("", true)]), _: 1 }), "chart" === n.value ? (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 0 }, Vue.renderList(a.value.series, (e4, t4) => (Vue.openBlock(), Vue.createElementBlock("div", { key: t4 }, ["barLine" === a.value.chartType ? (Vue.openBlock(), Vue.createBlock(b, { key: 0, label: "类型" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "100px" }, modelValue: e4.type, "onUpdate:modelValue": (t5) => e4.type = t5, placeholder: "选择显示类型", clearable: "" }, { default: Vue.withCtx(() => [Vue.createVNode(I, { label: "柱形", value: "bar" }), Vue.createVNode(I, { label: "折线", value: "line" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)) : Vue.createCommentVNode("", true), Vue.createVNode(b, { label: "数据项" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "150px" }, modelValue: e4.yAxis, "onUpdate:modelValue": (t5) => e4.yAxis = t5, placeholder: "选择数据项", clearable: "" }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(h2.value, (e5) => (Vue.openBlock(), Vue.createBlock(I, { key: e5, label: e5, value: e5 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), Vue.createVNode(b, { label: "计算方式" }, { default: Vue.withCtx(() => [Vue.createVNode(S, { style: { width: "100px" }, modelValue: e4.calculation, "onUpdate:modelValue": (t5) => e4.calculation = t5, placeholder: "选择计算方式", clearable: "" }, { default: Vue.withCtx(() => [Vue.createVNode(I, { label: "计数", value: "count" }), Vue.createVNode(I, { label: "求和", value: "sum" }), Vue.createVNode(I, { label: "平均值", value: "average" }), Vue.createVNode(I, { label: "最大值", value: "max" }), Vue.createVNode(I, { label: "最小值", value: "min" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "pie" !== a.value.chartType ? (Vue.openBlock(), Vue.createBlock(b, { key: 1 }, { default: Vue.withCtx(() => [Vue.createVNode(D, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (e5) => {
|
|
15208
15212
|
a.value.series.push({ type: "bar", yAxis: "", calculation: "count" });
|
|
15209
15213
|
} }, { default: Vue.withCtx(() => [Vue.createVNode(E)]), _: 1 }, 8, ["onClick"]), Vue.createVNode(D, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (e5) => function(e6) {
|
|
15210
15214
|
a.value.series.length > 1 ? a.value.series.splice(e6, 1) : elementPlus.ElMessage.warning("至少保留一个系列");
|
|
@@ -15232,7 +15236,7 @@
|
|
|
15232
15236
|
}).catch(() => {
|
|
15233
15237
|
u.value = true, m.value = false;
|
|
15234
15238
|
});
|
|
15235
|
-
}(e4.$index, e4.row, o2), type: "primary" }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(o2.alias), 1)]), _: 2 }, 1032, ["onClick"]), t3[6] || (t3[6] = Vue.createTextVNode(" ", -1)), Vue.createVNode(D, { style: { color: "#409eff" } }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.InfoFilled))]), _: 1 })])]))), 256))]), _: 1 }, 512), [[Vue.vShow, A.value && A.value.length > 0]])], 64)) : Vue.createCommentVNode("", true), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(h2.value, (e4) => (Vue.openBlock(), Vue.createBlock(P, { key: e4, prop: e4, label: e4 }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])) : "chart" === n.value && i2.value ? (Vue.openBlock(), Vue.createBlock(Vue.unref(VChart), { key: 1, ref_key: "chartRef", ref: o, style: { height: "400px" }, option: g.value, autoresize: "" }, null, 8, ["option"])) : Vue.createCommentVNode("", true), Vue.createVNode(O, { modelValue: u.value, "onUpdate:modelValue": t3[4] || (t3[4] = (e4) => u.value = e4), "destroy-on-close": true, title: c.value, "before-close":
|
|
15239
|
+
}(e4.$index, e4.row, o2), type: "primary" }, { default: Vue.withCtx(() => [Vue.createTextVNode(Vue.toDisplayString(o2.alias), 1)]), _: 2 }, 1032, ["onClick"]), t3[6] || (t3[6] = Vue.createTextVNode(" ", -1)), Vue.createVNode(D, { style: { color: "#409eff" } }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.InfoFilled))]), _: 1 })])]))), 256))]), _: 1 }, 512), [[Vue.vShow, A.value && A.value.length > 0]])], 64)) : Vue.createCommentVNode("", true), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(h2.value, (e4) => (Vue.openBlock(), Vue.createBlock(P, { key: e4, prop: e4, label: e4 }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])) : "chart" === n.value && i2.value ? (Vue.openBlock(), Vue.createBlock(Vue.unref(VChart), { key: 1, ref_key: "chartRef", ref: o, style: { height: "400px" }, option: g.value, autoresize: "" }, null, 8, ["option"])) : Vue.createCommentVNode("", true), Vue.createVNode(O, { modelValue: u.value, "onUpdate:modelValue": t3[4] || (t3[4] = (e4) => u.value = e4), "destroy-on-close": true, title: c.value, "before-close": w }, { footer: Vue.withCtx(() => [Vue.createElementVNode("div", _hoisted_3$6, [Vue.createVNode(k, { onClick: t3[3] || (t3[3] = (e4) => u.value = false) }, { default: Vue.withCtx(() => [...t3[7] || (t3[7] = [Vue.createTextVNode("关闭", -1)])]), _: 1 })])]), default: Vue.withCtx(() => [Vue.withDirectives((Vue.openBlock(), Vue.createBlock(M, { data: d.value, size: "small", style: { width: "100%" } }, { default: Vue.withCtx(() => [Vue.createVNode(P, { type: "index", width: "50", label: "序号" }), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(p.value, (e4) => (Vue.openBlock(), Vue.createBlock(P, { key: e4.prop, prop: e4.prop, label: e4.label }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])), [[U, m.value]])]), _: 1 }, 8, ["modelValue", "title"])]);
|
|
15236
15240
|
};
|
|
15237
15241
|
} }), answerInteractionData_vue_vue_type_style_index_0_scoped_b9f40acf_lang = "", AnswerInteractionData = _export_sfc(_sfc_main$u, [["__scopeId", "data-v-b9f40acf"]]), _hoisted_1$k = { style: { "max-height": "700px" } }, _hoisted_2$8 = { key: 0, style: { "text-align": "center", color: "#999", "margin-top": "20px" } }, _sfc_main$t = Vue.defineComponent({ __name: "answer-auto-chart", props: { chartProps: { type: Object, default: {} } }, setup(e2) {
|
|
15238
15242
|
core.use([renderers.CanvasRenderer, charts.LineChart, charts.BarChart, charts.PieChart, charts.RadarChart, components$1.GridComponent, components$1.LegendComponent, components$1.TitleComponent, components$1.TooltipComponent, components$1.ToolboxComponent, components$1.DataZoomComponent]);
|
|
@@ -15352,8 +15356,8 @@
|
|
|
15352
15356
|
});
|
|
15353
15357
|
}, 100);
|
|
15354
15358
|
} }), (e3, t3) => {
|
|
15355
|
-
const o2 = Vue.resolveComponent("el-avatar"), l2 = Vue.resolveComponent("SuperIcon"), c2 = Vue.resolveComponent("el-tooltip"), g2 = Vue.resolveComponent("el-icon"), f = Vue.resolveComponent("el-dropdown-item"), A = Vue.resolveComponent("el-dropdown-menu"), y = Vue.resolveComponent("el-dropdown"),
|
|
15356
|
-
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [Vue.withDirectives(Vue.createElementVNode("div", _hoisted_1$j, [Vue.createVNode(o2, { size: 40, fit: "cover" }, { default: Vue.withCtx(() => [Vue.createElementVNode("img", { src: Vue.unref(avatarUrl), alt: "AI Avatar" }, null, 8, _hoisted_2$7)]), _: 1 }), Vue.createElementVNode("div", _hoisted_3$5, [Vue.createVNode(c2, { class: "box-item", effect: "dark", content: "打开侧边栏" }, { default: Vue.withCtx(() => [Vue.createVNode(l2, { class: "shousuo-icon", onClick: t3[0] || (t3[0] = (e4) => d.value = true), iconValue: "amb-icon-zhankaibianlan" })]), _: 1 }), Vue.createVNode(c2, { class: "box-item", effect: "dark", content: "新建会话" }, { default: Vue.withCtx(() => [Vue.createVNode(l2, { class: "shousuo-icon", iconValue: "amb-icon-xinjianhuihua", onClick: m })]), _: 1 })])], 512), [[Vue.vShow, !d.value]]), Vue.withDirectives(Vue.createElementVNode("div", _hoisted_4$5, [Vue.createElementVNode("div", _hoisted_5$4, [Vue.createVNode(o2, { class: "chat-embed__header_avatar", size: 40, fit: "cover" }, { default: Vue.withCtx(() => [Vue.createElementVNode("img", { src: Vue.unref(avatarUrl), alt: "AI Avatar" }, null, 8, _hoisted_6$1)]), _: 1 }), Vue.createElementVNode("span", null, Vue.toDisplayString(Vue.unref(i2)("chatEmbed.name")), 1), Vue.createVNode(c2, { class: "box-item", effect: "dark", content: "收起侧边栏" }, { default: Vue.withCtx(() => [d.value ? (Vue.openBlock(), Vue.createBlock(l2, { key: 0, onClick: t3[1] || (t3[1] = (e4) => d.value = false), class: "right-icon", iconValue: "amb-icon-shouqibianlan" })) : Vue.createCommentVNode("", true)]), _: 1 })]), Vue.createElementVNode("div", _hoisted_7$1, [Vue.createElementVNode("div", { class: Vue.normalizeClass(["menu-item", { "active-item": "collected" === r.value }]), onClick: t3[2] || (t3[2] = (e4) => h2("collected")) }, [Vue.createVNode(l2, { iconValue: "amb-icon-shoucang" }), t3[5] || (t3[5] = Vue.createElementVNode("span", null, "我的收藏", -1)), "collected" === r.value ? (Vue.openBlock(), Vue.createBlock(g2, { key: 0, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowDown))]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(g2, { key: 1, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 }))], 2), Vue.createElementVNode("div", { class: Vue.normalizeClass(["menu-item", { "active-item": "useful" === r.value }]), onClick: t3[3] || (t3[3] = (e4) => h2("useful")) }, [Vue.createVNode(l2, { iconValue: "amb-icon-youyong" }), t3[6] || (t3[6] = Vue.createElementVNode("span", null, "查看有用", -1)), "useful" === r.value ? (Vue.openBlock(), Vue.createBlock(g2, { key: 0, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowDown))]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(g2, { key: 1, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 }))], 2), Vue.createElementVNode("div", { class: Vue.normalizeClass(["menu-item", { "active-item": "history" === r.value }]), onClick: t3[4] || (t3[4] = (e4) => h2("history")) }, [Vue.createVNode(l2, { iconValue: "amb-icon-lishihuihua" }), t3[7] || (t3[7] = Vue.createElementVNode("span", null, "历史记录", -1)), "history" === r.value ? (Vue.openBlock(), Vue.createBlock(g2, { key: 0, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowDown))]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(g2, { key: 1, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 }))], 2)]), Vue.createVNode(
|
|
15359
|
+
const o2 = Vue.resolveComponent("el-avatar"), l2 = Vue.resolveComponent("SuperIcon"), c2 = Vue.resolveComponent("el-tooltip"), g2 = Vue.resolveComponent("el-icon"), f = Vue.resolveComponent("el-dropdown-item"), A = Vue.resolveComponent("el-dropdown-menu"), y = Vue.resolveComponent("el-dropdown"), C = Vue.resolveComponent("el-scrollbar"), w = Vue.resolveComponent("el-button");
|
|
15360
|
+
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [Vue.withDirectives(Vue.createElementVNode("div", _hoisted_1$j, [Vue.createVNode(o2, { size: 40, fit: "cover" }, { default: Vue.withCtx(() => [Vue.createElementVNode("img", { src: Vue.unref(avatarUrl), alt: "AI Avatar" }, null, 8, _hoisted_2$7)]), _: 1 }), Vue.createElementVNode("div", _hoisted_3$5, [Vue.createVNode(c2, { class: "box-item", effect: "dark", content: "打开侧边栏" }, { default: Vue.withCtx(() => [Vue.createVNode(l2, { class: "shousuo-icon", onClick: t3[0] || (t3[0] = (e4) => d.value = true), iconValue: "amb-icon-zhankaibianlan" })]), _: 1 }), Vue.createVNode(c2, { class: "box-item", effect: "dark", content: "新建会话" }, { default: Vue.withCtx(() => [Vue.createVNode(l2, { class: "shousuo-icon", iconValue: "amb-icon-xinjianhuihua", onClick: m })]), _: 1 })])], 512), [[Vue.vShow, !d.value]]), Vue.withDirectives(Vue.createElementVNode("div", _hoisted_4$5, [Vue.createElementVNode("div", _hoisted_5$4, [Vue.createVNode(o2, { class: "chat-embed__header_avatar", size: 40, fit: "cover" }, { default: Vue.withCtx(() => [Vue.createElementVNode("img", { src: Vue.unref(avatarUrl), alt: "AI Avatar" }, null, 8, _hoisted_6$1)]), _: 1 }), Vue.createElementVNode("span", null, Vue.toDisplayString(Vue.unref(i2)("chatEmbed.name")), 1), Vue.createVNode(c2, { class: "box-item", effect: "dark", content: "收起侧边栏" }, { default: Vue.withCtx(() => [d.value ? (Vue.openBlock(), Vue.createBlock(l2, { key: 0, onClick: t3[1] || (t3[1] = (e4) => d.value = false), class: "right-icon", iconValue: "amb-icon-shouqibianlan" })) : Vue.createCommentVNode("", true)]), _: 1 })]), Vue.createElementVNode("div", _hoisted_7$1, [Vue.createElementVNode("div", { class: Vue.normalizeClass(["menu-item", { "active-item": "collected" === r.value }]), onClick: t3[2] || (t3[2] = (e4) => h2("collected")) }, [Vue.createVNode(l2, { iconValue: "amb-icon-shoucang" }), t3[5] || (t3[5] = Vue.createElementVNode("span", null, "我的收藏", -1)), "collected" === r.value ? (Vue.openBlock(), Vue.createBlock(g2, { key: 0, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowDown))]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(g2, { key: 1, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 }))], 2), Vue.createElementVNode("div", { class: Vue.normalizeClass(["menu-item", { "active-item": "useful" === r.value }]), onClick: t3[3] || (t3[3] = (e4) => h2("useful")) }, [Vue.createVNode(l2, { iconValue: "amb-icon-youyong" }), t3[6] || (t3[6] = Vue.createElementVNode("span", null, "查看有用", -1)), "useful" === r.value ? (Vue.openBlock(), Vue.createBlock(g2, { key: 0, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowDown))]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(g2, { key: 1, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 }))], 2), Vue.createElementVNode("div", { class: Vue.normalizeClass(["menu-item", { "active-item": "history" === r.value }]), onClick: t3[4] || (t3[4] = (e4) => h2("history")) }, [Vue.createVNode(l2, { iconValue: "amb-icon-lishihuihua" }), t3[7] || (t3[7] = Vue.createElementVNode("span", null, "历史记录", -1)), "history" === r.value ? (Vue.openBlock(), Vue.createBlock(g2, { key: 0, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowDown))]), _: 1 })) : (Vue.openBlock(), Vue.createBlock(g2, { key: 1, class: "dropdown-right" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.ArrowRight))]), _: 1 }))], 2)]), Vue.createVNode(C, { class: "scrollbar-container", onEndReached: p }, { default: Vue.withCtx(() => [(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(s.value, ([e4, o3]) => (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: e4 }, [(o3 == null ? void 0 : o3.length) > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_8$1, ["today" === e4 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_9$1, "今天")) : "yesterday" === e4 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_10$1, "昨天")) : "sevenDays" === e4 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_11$1, "七天内")) : "thirtyDays" === e4 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_12, "三十天内")) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_13, Vue.toDisplayString(e4), 1)), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(o3, (e5) => (Vue.openBlock(), Vue.createElementBlock("div", { class: Vue.normalizeClass(["history-item", { "active-item": u.value === e5.id }]) }, [e5.useful ? (Vue.openBlock(), Vue.createBlock(l2, { key: 0, iconValue: "amb-icon-youyong" })) : Vue.createCommentVNode("", true), e5.collected ? (Vue.openBlock(), Vue.createBlock(g2, { key: 1 }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.StarFilled))]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createElementVNode("div", { class: "history-subject", onClick: (t4) => function(e6) {
|
|
15357
15361
|
u.value !== e6.id && (u.value = e6.id, window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/content/${e6.id}`).then((t5) => {
|
|
15358
15362
|
let o4 = [];
|
|
15359
15363
|
switch (a.aiModel) {
|
|
@@ -15385,7 +15389,7 @@
|
|
|
15385
15389
|
-1 !== o4 && e7.splice(o4, 1);
|
|
15386
15390
|
}), u.value === t5.id && m();
|
|
15387
15391
|
});
|
|
15388
|
-
}(t4, e5), trigger: "click" }, { dropdown: Vue.withCtx(() => [Vue.createVNode(A, null, { default: Vue.withCtx(() => [e5.collected ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(f, { key: 0, command: "collect" }, { default: Vue.withCtx(() => [Vue.createVNode(g2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.StarFilled))]), _: 1 }), t3[8] || (t3[8] = Vue.createTextVNode("收藏 ", -1))]), _: 1 })), e5.collected ? (Vue.openBlock(), Vue.createBlock(f, { key: 1, command: "uncollect" }, { default: Vue.withCtx(() => [Vue.createVNode(g2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Star))]), _: 1 }), t3[9] || (t3[9] = Vue.createTextVNode("取消收藏 ", -1))]), _: 1 })) : Vue.createCommentVNode("", true), e5.useful ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(f, { key: 2, command: "useful" }, { default: Vue.withCtx(() => [...t3[10] || (t3[10] = [Vue.createTextVNode("有用", -1)])]), _: 1 })), e5.useful ? (Vue.openBlock(), Vue.createBlock(f, { key: 3, command: "unuseful" }, { default: Vue.withCtx(() => [...t3[11] || (t3[11] = [Vue.createTextVNode("取消有用", -1)])]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(f, { command: "delete" }, { default: Vue.withCtx(() => [...t3[12] || (t3[12] = [Vue.createTextVNode("删除", -1)])]), _: 1 })]), _: 2 }, 1024)]), default: Vue.withCtx(() => [Vue.createVNode(g2, { class: "more-filled" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.MoreFilled))]), _: 1 })]), _: 2 }, 1032, ["onCommand"])], 2))), 256))])) : Vue.createCommentVNode("", true)], 64))), 128))]), _: 1 }), Vue.createVNode(
|
|
15392
|
+
}(t4, e5), trigger: "click" }, { dropdown: Vue.withCtx(() => [Vue.createVNode(A, null, { default: Vue.withCtx(() => [e5.collected ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(f, { key: 0, command: "collect" }, { default: Vue.withCtx(() => [Vue.createVNode(g2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.StarFilled))]), _: 1 }), t3[8] || (t3[8] = Vue.createTextVNode("收藏 ", -1))]), _: 1 })), e5.collected ? (Vue.openBlock(), Vue.createBlock(f, { key: 1, command: "uncollect" }, { default: Vue.withCtx(() => [Vue.createVNode(g2, null, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.Star))]), _: 1 }), t3[9] || (t3[9] = Vue.createTextVNode("取消收藏 ", -1))]), _: 1 })) : Vue.createCommentVNode("", true), e5.useful ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createBlock(f, { key: 2, command: "useful" }, { default: Vue.withCtx(() => [...t3[10] || (t3[10] = [Vue.createTextVNode("有用", -1)])]), _: 1 })), e5.useful ? (Vue.openBlock(), Vue.createBlock(f, { key: 3, command: "unuseful" }, { default: Vue.withCtx(() => [...t3[11] || (t3[11] = [Vue.createTextVNode("取消有用", -1)])]), _: 1 })) : Vue.createCommentVNode("", true), Vue.createVNode(f, { command: "delete" }, { default: Vue.withCtx(() => [...t3[12] || (t3[12] = [Vue.createTextVNode("删除", -1)])]), _: 1 })]), _: 2 }, 1024)]), default: Vue.withCtx(() => [Vue.createVNode(g2, { class: "more-filled" }, { default: Vue.withCtx(() => [Vue.createVNode(Vue.unref(ElementPlusIconsVue.MoreFilled))]), _: 1 })]), _: 2 }, 1032, ["onCommand"])], 2))), 256))])) : Vue.createCommentVNode("", true)], 64))), 128))]), _: 1 }), Vue.createVNode(w, { type: "primary", class: "new-session-button", onClick: m }, { icon: Vue.withCtx(() => [Vue.createVNode(l2, { iconValue: "amb-icon-xinjianhuihua" })]), default: Vue.withCtx(() => [t3[13] || (t3[13] = Vue.createTextVNode(" 新建会话 ", -1))]), _: 1 })], 512), [[Vue.vShow, d.value]])], 64);
|
|
15389
15393
|
};
|
|
15390
15394
|
} }), sidebarItem_vue_vue_type_style_index_0_scoped_1e62eff8_lang = "", SidebarItem$3 = _export_sfc(_sfc_main$s, [["__scopeId", "data-v-1e62eff8"]]), _hoisted_1$i = { key: 0 }, _hoisted_2$6 = ["src"], _hoisted_3$4 = { class: "chat-content" }, _hoisted_4$4 = { style: { display: "flex", "flex-direction": "row" } }, _hoisted_5$3 = { class: "chat-embed__main_content" }, _hoisted_6 = ["href", "title"], _hoisted_7 = ["href", "target"], _hoisted_8 = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, _hoisted_9 = { key: 1, style: { "margin-top": "5px", width: "100%" } }, _hoisted_10 = ["onClick"], _hoisted_11 = { style: { display: "none" } }, _sfc_main$r = Vue.defineComponent({ __name: "index", setup(e2) {
|
|
15391
15395
|
var _a, _b, _c;
|
|
@@ -15397,7 +15401,7 @@
|
|
|
15397
15401
|
return console.error("获取customSystem参数失败"), null;
|
|
15398
15402
|
}
|
|
15399
15403
|
}();
|
|
15400
|
-
const o = Vue.ref(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: n, cancel: i2, data: a, error: l, isLoading: s } = vueElementPlusX.useXStream(), { t: r } = vueI18n.useI18n(), u = Vue.ref(), c = Vue.ref(true), d = Vue.ref([]), p = Vue.ref({}), m = Vue.ref(false), h2 = Vue.ref(AI_MODELS.RAGFLOW), g = Vue.ref({}), f = {}, A = Vue.ref(true), y = Vue.ref(null),
|
|
15404
|
+
const o = Vue.ref(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: n, cancel: i2, data: a, error: l, isLoading: s } = vueElementPlusX.useXStream(), { t: r } = vueI18n.useI18n(), u = Vue.ref(), c = Vue.ref(true), d = Vue.ref([]), p = Vue.ref({}), m = Vue.ref(false), h2 = Vue.ref(AI_MODELS.RAGFLOW), g = Vue.ref({}), f = {}, A = Vue.ref(true), y = Vue.ref(null), C = Vue.ref(false), w = Vue.ref(false), V = Vue.ref(0), v = Vue.ref(""), b = Vue.ref("500px"), I = Vue.ref(250), S = Vue.ref("https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"), k = Vue.ref(false), x = Vue.ref({}), E = Vue.ref(), D = Vue.ref(), B = Vue.ref(), N = Vue.ref(), P = Vue.ref(), T = Vue.ref(false);
|
|
15401
15405
|
let M = null;
|
|
15402
15406
|
const O = Vue.ref(null), U = document.documentElement.clientWidth - 100, L = document.documentElement.clientHeight - 100, { x: F, y: j, style: R } = core$1.useDraggable(u, { initialValue: { x: U, y: L }, preventDefault: true, onStart() {
|
|
15403
15407
|
c.value = true;
|
|
@@ -15424,7 +15428,7 @@
|
|
|
15424
15428
|
d.value.push(getMessageTemplate("ai", e3, false, false)), m.value = false;
|
|
15425
15429
|
}
|
|
15426
15430
|
function K() {
|
|
15427
|
-
c.value && (
|
|
15431
|
+
c.value && (C.value = !C.value, Z(), P.value.getHistory());
|
|
15428
15432
|
}
|
|
15429
15433
|
function H(e3) {
|
|
15430
15434
|
return g.value[e3] || (g.value[e3] = uuid.v4().replace(/-/g, "")), g.value[e3];
|
|
@@ -15487,13 +15491,13 @@
|
|
|
15487
15491
|
p.value && Object.keys(p.value).length > 0 && (p.value.thinkingStatus = MESSAGE_STATUS.END, p.value = {});
|
|
15488
15492
|
}
|
|
15489
15493
|
function W() {
|
|
15490
|
-
|
|
15494
|
+
w.value = !w.value, Z();
|
|
15491
15495
|
}
|
|
15492
15496
|
function Z() {
|
|
15493
15497
|
let e3 = 100;
|
|
15494
|
-
|
|
15498
|
+
w.value && (e3 = 100), Vue.nextTick(() => {
|
|
15495
15499
|
var _a2;
|
|
15496
|
-
|
|
15500
|
+
w.value ? (B.value.style.height = `calc(${e3}vh)`, B.value.style.width = "calc(100vw)", v.value = "calc(100vw - var(--chat-padding) * 2) * 0.8") : (B.value.style.height = `calc(${e3}vh - var(--chat-padding) * 2)`, B.value.style.width = 460 + I.value + "px", v.value = 0.8 * (460 + I.value) + "px");
|
|
15497
15501
|
const t3 = ((_a2 = D.value) == null ? void 0 : _a2.offsetHeight) || 80, o2 = window.innerHeight * e3 / 100 - 56 - t3 - 72;
|
|
15498
15502
|
b.value = o2 + "px";
|
|
15499
15503
|
});
|
|
@@ -15657,12 +15661,12 @@
|
|
|
15657
15661
|
});
|
|
15658
15662
|
});
|
|
15659
15663
|
}
|
|
15660
|
-
return (e3, t3) => o.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$i, [Vue.createElementVNode("div", { ref_key: "chatIcon", ref: u, style: Vue.normalizeStyle([Vue.unref(R), { position: "fixed", cursor: "pointer", "z-index": "100" }]) }, [Vue.createElementVNode("img", { src: Vue.unref(avatarUrl$1), alt: "AI Avatar", onClick: K, style: { width: "50px", height: "50px" } }, null, 8, _hoisted_2$6)], 4), Vue.createVNode(Vue.Transition, { name: "slide-up" }, { default: Vue.withCtx(() => [Vue.withDirectives(Vue.createElementVNode("div", { ref_key: "chatContainerRef", ref: B, class: Vue.normalizeClass(["chat-container",
|
|
15664
|
+
return (e3, t3) => o.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1$i, [Vue.createElementVNode("div", { ref_key: "chatIcon", ref: u, style: Vue.normalizeStyle([Vue.unref(R), { position: "fixed", cursor: "pointer", "z-index": "100" }]) }, [Vue.createElementVNode("img", { src: Vue.unref(avatarUrl$1), alt: "AI Avatar", onClick: K, style: { width: "50px", height: "50px" } }, null, 8, _hoisted_2$6)], 4), Vue.createVNode(Vue.Transition, { name: "slide-up" }, { default: Vue.withCtx(() => [Vue.withDirectives(Vue.createElementVNode("div", { ref_key: "chatContainerRef", ref: B, class: Vue.normalizeClass(["chat-container", w.value ? "full-screen" : "small-window"]), style: { display: "flex", flexDirection: "row" } }, [Vue.createVNode(SidebarItem$3, { ref_key: "sidebarItemRef", ref: P, style: Vue.normalizeStyle({ width: I.value + "px" }), onSelectHistoryItem: ce, onNewChatSession: ee, onUpdateAiHistory: t3[0] || (t3[0] = (e4) => {
|
|
15661
15665
|
y.value.value = e4;
|
|
15662
|
-
}), dialogFullScreen:
|
|
15666
|
+
}), dialogFullScreen: w.value, aiModel: h2.value }, null, 8, ["style", "dialogFullScreen", "aiModel"]), Vue.createElementVNode("div", _hoisted_3$4, [Vue.createVNode(Header, { aiAvatar: S.value, aiModel: h2.value, chatSessionId: g.value, dialogFullScreen: w.value, aiHistory: y.value, onExpandDialog: W, onShowChatDialog: K, onNewChatSession: ee }, null, 8, ["aiAvatar", "aiModel", "chatSessionId", "dialogFullScreen", "aiHistory"]), Vue.createElementVNode("div", _hoisted_4$4, [(Vue.openBlock(), Vue.createElementBlock("div", { ref_key: "talkMainRef", ref: N, class: "chat-embed__main", key: V.value }, [Vue.createElementVNode("div", _hoisted_5$3, [Vue.createVNode(Vue.unref(vueElementPlusX.BubbleList), { ref_key: "bubbleListRef", ref: E, list: d.value, "max-height": b.value, "is-fog": true }, { avatar: Vue.withCtx(({ item: e4 }) => [...t3[2] || (t3[2] = [])]), content: Vue.withCtx(({ item: e4 }) => {
|
|
15663
15667
|
var _a2;
|
|
15664
15668
|
return [e4.isRecommend || null === e4.thinkingContent ? Vue.createCommentVNode("", true) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, ["failed" !== e4.messageStatus ? (Vue.openBlock(), Vue.createBlock(Vue.unref(vueElementPlusX.Thinking), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: e4.showThinkingContent, "onUpdate:modelValue": (t4) => e4.showThinkingContent = t4, status: e4.thinkingStatus, "auto-collapse": "", content: e4.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : Vue.createCommentVNode("", true)], 64)), e4.link ? (Vue.openBlock(), Vue.createElementBlock("a", { key: 1, href: e4.link, title: e4.linkTitle, target: "blank" }, Vue.toDisplayString(e4.content), 9, _hoisted_6)) : e4.content ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 2 }, [Vue.createElementVNode("div", { class: Vue.normalizeClass(["ai" === e4.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== e4.role || e4.isRecommend ? "user" === e4.role ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [Vue.createTextVNode(Vue.toDisplayString(e4.content) + " ", 1), ((_a2 = e4.additionalData) == null ? void 0 : _a2.length) > 0 && e4.additionalDataLabel ? (Vue.openBlock(), Vue.createBlock(ChatAdditionData, { key: 0, item: e4, onViewJson: oe, onDownloadJson: ne }, null, 8, ["item"])) : Vue.createCommentVNode("", true)], 64)) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 2 }, [Vue.createTextVNode(Vue.toDisplayString(e4.content), 1)], 64)) : (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [e4.messageType && "history" !== e4.messageType ? (Vue.openBlock(), Vue.createBlock(Vue.unref(vueElementPlusX.Typewriter), { key: 1, allowHtml: "", content: e4.content, typing: true, "is-markdown": true, "is-fog": "" }, null, 8, ["content"])) : (Vue.openBlock(), Vue.createBlock(Vue.unref(vueElementPlusX.XMarkdown), { key: 0, markdown: e4.content, allowHtml: true, content: e4.content, typing: { interval: 10 }, "is-markdown": true }, { "amb-ai-tip": Vue.withCtx(({ ...t4 }) => [Vue.createVNode(ChatAiAnswerTip, { item: e4, itemProps: t4, onClickDocAgg: le }, null, 8, ["item", "itemProps"])]), "amb-alink": Vue.withCtx(({ ...e5 }) => [Vue.createElementVNode("a", { href: e5.href, target: e5.target }, Vue.toDisplayString(e5.text), 9, _hoisted_7)]), "amb-home-chart": Vue.withCtx(({ ...e5 }) => [Vue.createVNode(AnswerHomeChart, { chartProps: e5, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-interaction-data": Vue.withCtx(({ ...e5 }) => [Vue.createVNode(AnswerInteractionData, { chartProps: e5, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-auto-chart": Vue.withCtx(({ ...e5 }) => [Vue.createVNode(AnswerAutoChart, { chartProps: e5, class: "chat-chart-container" }, null, 8, ["chartProps"])]), _: 2 }, 1032, ["markdown", "content"]))], 64)), Vue.createElementVNode("div", _hoisted_8, [Vue.createElementVNode("span", null, Vue.toDisplayString(e4.sendTime), 1)])], 2), e4.recommendations && e4.recommendations.length > 0 ? (Vue.openBlock(), Vue.createBlock(RecommendationMessage, { key: 0, item: e4, onClickRecommendation: $ }, null, 8, ["item"])) : Vue.createCommentVNode("", true), e4.docAggs && e4.docAggs.length > 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_9, [t3[3] || (t3[3] = Vue.createElementVNode("div", { class: "content-container-header" }, "引用文件", -1)), (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(e4.docAggs, (e5, t4) => (Vue.openBlock(), Vue.createElementBlock("div", { onClick: (t5) => le(e5), class: "doc-agg-item" }, Vue.toDisplayString(e5.doc_name), 9, _hoisted_10))), 256))])) : Vue.createCommentVNode("", true)], 64)) : Vue.createCommentVNode("", true)];
|
|
15665
|
-
}), footer: Vue.withCtx(({ item: e4 }) => [Vue.createVNode(ChatBubbleFooter, { item: e4, onRegenerate: _ }, null, 8, ["item"])]), _: 1 }, 8, ["list", "max-height"]), Vue.createElementVNode("div", _hoisted_11, Vue.toDisplayString(G.value), 1)]), Vue.createElementVNode("div", { ref_key: "talkInputRef", ref: D, class: "chat-embed__input_container" }, [Vue.createVNode(ChatSender, { loading: m.value, ref_key: "chatSenderRef", ref: O, onSubmitQuestion: X, onCommandAnswer: se, onHandleCancel: Y, onViewJson: oe, onChangeAiModel: te }, null, 8, ["loading"])], 512)]))])])], 2), [[Vue.vShow,
|
|
15669
|
+
}), footer: Vue.withCtx(({ item: e4 }) => [Vue.createVNode(ChatBubbleFooter, { item: e4, onRegenerate: _ }, null, 8, ["item"])]), _: 1 }, 8, ["list", "max-height"]), Vue.createElementVNode("div", _hoisted_11, Vue.toDisplayString(G.value), 1)]), Vue.createElementVNode("div", { ref_key: "talkInputRef", ref: D, class: "chat-embed__input_container" }, [Vue.createVNode(ChatSender, { loading: m.value, ref_key: "chatSenderRef", ref: O, onSubmitQuestion: X, onCommandAnswer: se, onHandleCancel: Y, onViewJson: oe, onChangeAiModel: te }, null, 8, ["loading"])], 512)]))])])], 2), [[Vue.vShow, C.value]])]), _: 1 }), Vue.createVNode(Vue.unref(_sfc_main$w), { modelValue: k.value, "onUpdate:modelValue": t3[1] || (t3[1] = (e4) => k.value = e4), "json-object": x.value, "append-to-body": true, title: "预览数据" }, null, 8, ["modelValue", "json-object"])])) : Vue.createCommentVNode("", true);
|
|
15666
15670
|
} }), index_vue_vue_type_style_index_0_scoped_e84e6e12_lang = "", ChatEmbed = _export_sfc(_sfc_main$r, [["__scopeId", "data-v-e84e6e12"]]);
|
|
15667
15671
|
ChatEmbed.install = function(e2) {
|
|
15668
15672
|
window.$vueApp.component("ChatEmbed", ChatEmbed);
|