agilebuilder-ui 1.0.63 → 1.0.65
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/lib/super-ui.css +1 -1
- package/lib/super-ui.js +197 -174
- package/lib/super-ui.umd.cjs +5 -5
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/search-result.vue +33 -34
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +142 -51
- package/packages/super-grid/src/dynamic-input.vue +1 -1
- package/packages/super-grid/src/normal-column.vue +1 -0
- package/packages/super-grid/src/super-grid.vue +1 -0
- package/src/api/sso-service.js +16 -1
- package/src/i18n/langs/cn.js +2 -1
- package/src/i18n/langs/en.js +2 -1
- package/src/store/modules/user.js +24 -30
- package/src/utils/auth.js +17 -3
- package/src/utils/permissionAuth.js +56 -27
package/lib/super-ui.js
CHANGED
|
@@ -738,11 +738,11 @@ var bell_default = /* @__PURE__ */ export_helper_default(bell_vue_vue_type_scrip
|
|
|
738
738
|
}, _hoisted_119 = {
|
|
739
739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
740
740
|
viewBox: "0 0 1024 1024"
|
|
741
|
-
}, _hoisted_219 = /* @__PURE__ */ createStaticVNode('<path fill="currentColor" d="M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"></path><path fill="currentColor" d="M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z"></path><path fill="currentColor" d="m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"></path>', 5), _hoisted_7$
|
|
741
|
+
}, _hoisted_219 = /* @__PURE__ */ createStaticVNode('<path fill="currentColor" d="M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"></path><path fill="currentColor" d="M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256zm0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384z"></path><path fill="currentColor" d="M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192H480zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384H96z"></path><path fill="currentColor" d="m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"></path>', 5), _hoisted_7$a = [
|
|
742
742
|
_hoisted_219
|
|
743
743
|
];
|
|
744
744
|
function _sfc_render19(e, t, n, o, i, l) {
|
|
745
|
-
return openBlock(), createElementBlock("svg", _hoisted_119, _hoisted_7$
|
|
745
|
+
return openBlock(), createElementBlock("svg", _hoisted_119, _hoisted_7$a);
|
|
746
746
|
}
|
|
747
747
|
var bicycle_default = /* @__PURE__ */ export_helper_default(bicycle_vue_vue_type_script_lang_default, [["render", _sfc_render19], ["__file", "bicycle.vue"]]), bottom_left_vue_vue_type_script_lang_default = {
|
|
748
748
|
name: "BottomLeft"
|
|
@@ -5233,14 +5233,14 @@ var pouring_default = /* @__PURE__ */ export_helper_default(pouring_vue_vue_type
|
|
|
5233
5233
|
null,
|
|
5234
5234
|
-1
|
|
5235
5235
|
/* HOISTED */
|
|
5236
|
-
), _hoisted_6$
|
|
5236
|
+
), _hoisted_6$f = [
|
|
5237
5237
|
_hoisted_2206,
|
|
5238
5238
|
_hoisted_3205,
|
|
5239
5239
|
_hoisted_464,
|
|
5240
5240
|
_hoisted_518
|
|
5241
5241
|
];
|
|
5242
5242
|
function _sfc_render206(e, t, n, o, i, l) {
|
|
5243
|
-
return openBlock(), createElementBlock("svg", _hoisted_1206, _hoisted_6$
|
|
5243
|
+
return openBlock(), createElementBlock("svg", _hoisted_1206, _hoisted_6$f);
|
|
5244
5244
|
}
|
|
5245
5245
|
var present_default = /* @__PURE__ */ export_helper_default(present_vue_vue_type_script_lang_default, [["render", _sfc_render206], ["__file", "present.vue"]]), price_tag_vue_vue_type_script_lang_default = {
|
|
5246
5246
|
name: "PriceTag"
|
|
@@ -11508,7 +11508,8 @@ const en = {
|
|
|
11508
11508
|
removeUser: "Remove User",
|
|
11509
11509
|
email: "Email",
|
|
11510
11510
|
loginName: "Login Name",
|
|
11511
|
-
superiorDeptNameFullPath: "Department full path"
|
|
11511
|
+
superiorDeptNameFullPath: "Department full path",
|
|
11512
|
+
user: "User"
|
|
11512
11513
|
},
|
|
11513
11514
|
// 工作组树
|
|
11514
11515
|
workgroupTree: {
|
|
@@ -11778,7 +11779,8 @@ const en = {
|
|
|
11778
11779
|
removeUser: "移除用户",
|
|
11779
11780
|
email: "邮箱",
|
|
11780
11781
|
loginName: "登录名",
|
|
11781
|
-
superiorDeptNameFullPath: "组织全路径"
|
|
11782
|
+
superiorDeptNameFullPath: "组织全路径",
|
|
11783
|
+
user: "用户"
|
|
11782
11784
|
},
|
|
11783
11785
|
// 工作组树
|
|
11784
11786
|
workgroupTree: {
|
|
@@ -12265,7 +12267,24 @@ const authApi = {
|
|
|
12265
12267
|
removePublishControl,
|
|
12266
12268
|
isDevpSystem,
|
|
12267
12269
|
getRunInfoKey
|
|
12268
|
-
};
|
|
12270
|
+
}, permissionKey = "PERMISSION-", _RUN_PERMISSION = "_RUN_PERMISSION";
|
|
12271
|
+
function getSystemCode() {
|
|
12272
|
+
let e;
|
|
12273
|
+
return window.$vueApp.config.globalProperties.customSystem ? e = window.$vueApp.config.globalProperties.customSystem : window.$vueApp.config.globalProperties.currentSystem ? e = window.$vueApp.config.globalProperties.currentSystem : e = window.$vueApp.config.globalProperties.systemCode, e;
|
|
12274
|
+
}
|
|
12275
|
+
function getTotalPermissions() {
|
|
12276
|
+
(/* @__PURE__ */ new Date()).getTime();
|
|
12277
|
+
let e;
|
|
12278
|
+
const t = getSessionCache(_RUN_PERMISSION);
|
|
12279
|
+
t && (e = JSON.parse(t));
|
|
12280
|
+
let n;
|
|
12281
|
+
const o = getSystemCode(), i = localStorage.getItem(permissionKey + o);
|
|
12282
|
+
if (i && (n = JSON.parse(i)), (/* @__PURE__ */ new Date()).getTime(), e || n) {
|
|
12283
|
+
let l = {};
|
|
12284
|
+
return e && Object.assign(l, e), n && Object.assign(l, n), l;
|
|
12285
|
+
}
|
|
12286
|
+
return null;
|
|
12287
|
+
}
|
|
12269
12288
|
function getToken() {
|
|
12270
12289
|
return authApi.getToken();
|
|
12271
12290
|
}
|
|
@@ -12969,10 +12988,10 @@ const utils = {
|
|
|
12969
12988
|
}, _hoisted_1$10 = { style: { height: "100%" } }, _hoisted_2$F = ["title"], _hoisted_3$t = ["title"], _hoisted_4$k = ["title"], _hoisted_5$g = {
|
|
12970
12989
|
class: "roleQuery_center_area",
|
|
12971
12990
|
style: { height: "395px" }
|
|
12972
|
-
}, _hoisted_6$
|
|
12991
|
+
}, _hoisted_6$e = {
|
|
12973
12992
|
class: "roleQuery_notAvailable",
|
|
12974
12993
|
style: { width: "120px", height: "120px" }
|
|
12975
|
-
}, _hoisted_7$
|
|
12994
|
+
}, _hoisted_7$9 = { class: "roleQuery_notAvailable_text" };
|
|
12976
12995
|
function _sfc_render$13(e, t, n, o, i, l) {
|
|
12977
12996
|
const f = resolveComponent("el-radio"), p = resolveComponent("el-table-column"), y = resolveComponent("el-button"), x = resolveComponent("el-table");
|
|
12978
12997
|
return openBlock(), createElementBlock("div", _hoisted_1$10, [
|
|
@@ -12989,8 +13008,8 @@ function _sfc_render$13(e, t, n, o, i, l) {
|
|
|
12989
13008
|
}, {
|
|
12990
13009
|
empty: withCtx(() => [
|
|
12991
13010
|
createElementVNode("div", _hoisted_5$g, [
|
|
12992
|
-
createElementVNode("div", _hoisted_6$
|
|
12993
|
-
createElementVNode("span", _hoisted_7$
|
|
13011
|
+
createElementVNode("div", _hoisted_6$e, [
|
|
13012
|
+
createElementVNode("span", _hoisted_7$9, toDisplayString$1(e.$t("imatrixUIPromptMessage.NoContent")), 1)
|
|
12994
13013
|
])
|
|
12995
13014
|
])
|
|
12996
13015
|
]),
|
|
@@ -14690,7 +14709,7 @@ const emitter$1 = mitt(), bus$1 = {};
|
|
|
14690
14709
|
bus$1.$on = emitter$1.on;
|
|
14691
14710
|
bus$1.$emit = emitter$1.emit;
|
|
14692
14711
|
bus$1.$off = emitter$1.off;
|
|
14693
|
-
const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "",
|
|
14712
|
+
const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "", dynamicSourceSelect_vue_vue_type_style_index_1_scoped_770ae09f_lang = "", _sfc_main$1a = {
|
|
14694
14713
|
name: "DynamicSourceSelect",
|
|
14695
14714
|
components: {},
|
|
14696
14715
|
model: {
|
|
@@ -14900,7 +14919,19 @@ const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "", dynamicSourceSel
|
|
|
14900
14919
|
},
|
|
14901
14920
|
// 必须有该方法,否则无法给字段赋值
|
|
14902
14921
|
inputValue(e) {
|
|
14903
|
-
|
|
14922
|
+
let t = !1;
|
|
14923
|
+
if (this.baseProps.multiple !== void 0 && this.baseProps.multiple === !0 && e && e.indexOf("saveAll") >= 0)
|
|
14924
|
+
if (t = !0, e.length - 1 >= this.optionItems.length)
|
|
14925
|
+
e = [];
|
|
14926
|
+
else {
|
|
14927
|
+
const n = [];
|
|
14928
|
+
for (let o = 0; o < this.optionItems.length; o++) {
|
|
14929
|
+
const i = this.optionItems[o];
|
|
14930
|
+
n.push(i[this.valueAttribute]);
|
|
14931
|
+
}
|
|
14932
|
+
e = n;
|
|
14933
|
+
}
|
|
14934
|
+
this.$emit("update:value", e), this.remote && (e == null || e === "") && this.remoteQueryMethod(e), this.setValues(e, t);
|
|
14904
14935
|
},
|
|
14905
14936
|
packageDynamicDataSourceInfo(e, t) {
|
|
14906
14937
|
return new Promise((n, o) => {
|
|
@@ -14983,26 +15014,26 @@ const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "", dynamicSourceSel
|
|
|
14983
15014
|
getValueAttribute() {
|
|
14984
15015
|
return !this.valueAttribute || this.valueAttribute === "[label]" ? "_label_" : this.valueAttribute;
|
|
14985
15016
|
},
|
|
14986
|
-
setValues(e) {
|
|
14987
|
-
this.valueSetOptions && this.valueSetOptions.length > 0 && (this.baseProps.multiple !== void 0 && this.baseProps.multiple === !0 ? this.setColumnValueWhenMulti(e) : this.valueSetOptions.forEach((
|
|
14988
|
-
const
|
|
14989
|
-
let
|
|
14990
|
-
this.optionItems &&
|
|
14991
|
-
let
|
|
14992
|
-
const
|
|
14993
|
-
|
|
14994
|
-
|
|
15017
|
+
setValues(e, t) {
|
|
15018
|
+
this.valueSetOptions && this.valueSetOptions.length > 0 && (this.baseProps.multiple !== void 0 && this.baseProps.multiple === !0 ? this.setColumnValueWhenMulti(e, t) : this.valueSetOptions.forEach((n) => {
|
|
15019
|
+
const o = n.columnName;
|
|
15020
|
+
let i;
|
|
15021
|
+
this.optionItems && o && (i = this.getTargetColumnValue(e, o));
|
|
15022
|
+
let l = null;
|
|
15023
|
+
const f = n.valueColumn;
|
|
15024
|
+
f && (l = f.name, this.isSql === !0 && (l = f.dbColumnName, l = getPropNameWhenJoinTable(
|
|
15025
|
+
l,
|
|
14995
15026
|
this.isJoinTable,
|
|
14996
15027
|
this.tableName
|
|
14997
|
-
))), this.entity &&
|
|
14998
|
-
const
|
|
15028
|
+
))), this.entity && l && l !== null && l !== "" && setEntityFieldValue(this.entity, l, i);
|
|
15029
|
+
const p = this.getSelectedOptionItem(e);
|
|
14999
15030
|
this.$emit("set-value", {
|
|
15000
|
-
value:
|
|
15001
|
-
sourceColumnName:
|
|
15002
|
-
targetColumnName:
|
|
15031
|
+
value: i,
|
|
15032
|
+
sourceColumnName: o,
|
|
15033
|
+
targetColumnName: l,
|
|
15003
15034
|
options: this.optionItems,
|
|
15004
15035
|
valueAttribute: this.valueAttribute,
|
|
15005
|
-
selectedItem:
|
|
15036
|
+
selectedItem: p
|
|
15006
15037
|
});
|
|
15007
15038
|
}));
|
|
15008
15039
|
},
|
|
@@ -15023,28 +15054,67 @@ const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "", dynamicSourceSel
|
|
|
15023
15054
|
});
|
|
15024
15055
|
},
|
|
15025
15056
|
// 多选下拉框时处理增加tag、减少tag时,映射字段赋值问题
|
|
15026
|
-
setColumnValueWhenMulti(e) {
|
|
15027
|
-
let
|
|
15028
|
-
if (this.valueSetOptions.forEach((
|
|
15029
|
-
const
|
|
15030
|
-
if (
|
|
15031
|
-
let
|
|
15032
|
-
if (this.optionItems &&
|
|
15033
|
-
|
|
15057
|
+
setColumnValueWhenMulti(e, t) {
|
|
15058
|
+
let n = !1, o;
|
|
15059
|
+
if (this.valueSetOptions.forEach((i) => {
|
|
15060
|
+
const l = i.columnName;
|
|
15061
|
+
if (l === this.valueAttribute) {
|
|
15062
|
+
let f;
|
|
15063
|
+
if (this.optionItems && l && (f = this.getTargetColumnValue(e, l)), this.setColumnValue(l, f, i), this.lastValues.length < e.length)
|
|
15064
|
+
n = !0;
|
|
15034
15065
|
else if (this.lastValues.length > e.length) {
|
|
15035
|
-
|
|
15036
|
-
const
|
|
15037
|
-
|
|
15066
|
+
n = !1;
|
|
15067
|
+
const p = [...this.lastValues, ...e], y = new Set(p), x = Array.from(y), E = [...x.filter((k) => !this.lastValues.includes(k)), ...x.filter((k) => !e.includes(k))];
|
|
15068
|
+
E && E.length > 0 && (o = E[0]);
|
|
15038
15069
|
}
|
|
15039
15070
|
this.lastValues = JSON.parse(JSON.stringify(e));
|
|
15040
15071
|
}
|
|
15041
|
-
}),
|
|
15042
|
-
|
|
15043
|
-
(
|
|
15044
|
-
|
|
15045
|
-
|
|
15046
|
-
|
|
15047
|
-
|
|
15072
|
+
}), n)
|
|
15073
|
+
if (t)
|
|
15074
|
+
this.setAllTagValue(!1);
|
|
15075
|
+
else {
|
|
15076
|
+
const l = e[e.length - 1], f = this.optionItems.filter(
|
|
15077
|
+
(p) => p[this.valueAttribute] === l
|
|
15078
|
+
);
|
|
15079
|
+
f && f.length > 0 && this.setTagValue(null, !1, f[0]);
|
|
15080
|
+
}
|
|
15081
|
+
else
|
|
15082
|
+
t ? this.setAllTagValue(!0) : this.setTagValue(o, !0);
|
|
15083
|
+
},
|
|
15084
|
+
setAllTagValue(e) {
|
|
15085
|
+
this.valueSetOptions && this.valueSetOptions.length > 0 && this.valueSetOptions.forEach((t) => {
|
|
15086
|
+
const n = t.columnName;
|
|
15087
|
+
if (n !== this.valueAttribute) {
|
|
15088
|
+
let o = null;
|
|
15089
|
+
const i = t.valueColumn;
|
|
15090
|
+
i && (o = i.name, this.isSql === !0 && (o = i.dbColumnName, o = getPropNameWhenJoinTable(
|
|
15091
|
+
o,
|
|
15092
|
+
this.isJoinTable,
|
|
15093
|
+
this.tableName
|
|
15094
|
+
)));
|
|
15095
|
+
let l;
|
|
15096
|
+
if (o)
|
|
15097
|
+
if (e)
|
|
15098
|
+
l = null;
|
|
15099
|
+
else {
|
|
15100
|
+
let f = "";
|
|
15101
|
+
this.optionItems && this.optionItems.length > 0 && (this.optionItems.forEach((p) => {
|
|
15102
|
+
const y = p[n];
|
|
15103
|
+
f != null && f !== "" ? f = f + "," + y : f = y;
|
|
15104
|
+
}), l = f);
|
|
15105
|
+
}
|
|
15106
|
+
this.setTargetColumnValue(n, o, l);
|
|
15107
|
+
}
|
|
15108
|
+
});
|
|
15109
|
+
},
|
|
15110
|
+
setTargetColumnValue(e, t, n) {
|
|
15111
|
+
this.entity && t && t !== null && t !== "" && setEntityFieldValue(this.entity, t, n), this.$emit("set-value", {
|
|
15112
|
+
value: n,
|
|
15113
|
+
sourceColumnName: e,
|
|
15114
|
+
targetColumnName: t,
|
|
15115
|
+
options: this.optionItems,
|
|
15116
|
+
valueAttribute: this.valueAttribute
|
|
15117
|
+
});
|
|
15048
15118
|
},
|
|
15049
15119
|
// 根据tag参数设置映射字段的值
|
|
15050
15120
|
setTagValue(e, t, n) {
|
|
@@ -15072,13 +15142,7 @@ const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "", dynamicSourceSel
|
|
|
15072
15142
|
n && (x = n[i]), y != null && y !== "" ? p = y + "," + x : p = x;
|
|
15073
15143
|
}
|
|
15074
15144
|
}
|
|
15075
|
-
this.
|
|
15076
|
-
value: p,
|
|
15077
|
-
sourceColumnName: i,
|
|
15078
|
-
targetColumnName: l,
|
|
15079
|
-
options: this.optionItems,
|
|
15080
|
-
valueAttribute: this.valueAttribute
|
|
15081
|
-
});
|
|
15145
|
+
this.setTargetColumnValue(i, l, p);
|
|
15082
15146
|
}
|
|
15083
15147
|
});
|
|
15084
15148
|
},
|
|
@@ -15126,7 +15190,7 @@ const dynamicSourceSelect_vue_vue_type_style_index_0_lang = "", dynamicSourceSel
|
|
|
15126
15190
|
"visible-change",
|
|
15127
15191
|
"change"
|
|
15128
15192
|
]
|
|
15129
|
-
}, _hoisted_1$V = { class: "select-top-span" }, _hoisted_2$B = { style: { display: "flex" } }, _hoisted_3$q = { style: { color: "#8492a6", "font-size": "13px", "margin-left": "30px" } }, _hoisted_4$i = { style: { float: "left" } },
|
|
15193
|
+
}, _hoisted_1$V = { class: "select-top-span" }, _hoisted_2$B = { style: { display: "flex" } }, _hoisted_3$q = { style: { color: "#8492a6", "font-size": "13px", "margin-left": "30px" } }, _hoisted_4$i = { key: 1 }, _hoisted_5$e = { style: { float: "left" } }, _hoisted_6$d = { style: { float: "right", color: "#8492a6", "font-size": "13px", "margin-left": "30px" } }, _hoisted_7$8 = { key: 1 };
|
|
15130
15194
|
function _sfc_render$W(e, t, n, o, i, l) {
|
|
15131
15195
|
const f = resolveComponent("el-option"), p = resolveComponent("el-select");
|
|
15132
15196
|
return openBlock(), createElementBlock("span", _hoisted_1$V, [
|
|
@@ -15160,6 +15224,11 @@ function _sfc_render$W(e, t, n, o, i, l) {
|
|
|
15160
15224
|
key: 0,
|
|
15161
15225
|
style: normalizeStyle({ width: n.optionWidth + "px" })
|
|
15162
15226
|
}, [
|
|
15227
|
+
n.baseProps.multiple !== void 0 && n.baseProps.multiple === !0 && i.optionItems && i.optionItems.length > 0 ? (openBlock(), createBlock(f, {
|
|
15228
|
+
key: 0,
|
|
15229
|
+
label: e.$t("superGrid.selectAll"),
|
|
15230
|
+
value: "saveAll"
|
|
15231
|
+
}, null, 8, ["label"])) : createCommentVNode("", !0),
|
|
15163
15232
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.optionItems, (y) => (openBlock(), createBlock(f, {
|
|
15164
15233
|
key: y.value,
|
|
15165
15234
|
label: y._label_,
|
|
@@ -15174,40 +15243,59 @@ function _sfc_render$W(e, t, n, o, i, l) {
|
|
|
15174
15243
|
]),
|
|
15175
15244
|
_: 2
|
|
15176
15245
|
}, 1032, ["label", "title", "value"]))), 128))
|
|
15177
|
-
], 4)) : (openBlock(
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15182
|
-
|
|
15183
|
-
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
|
-
|
|
15188
|
-
|
|
15246
|
+
], 4)) : (openBlock(), createElementBlock("div", _hoisted_4$i, [
|
|
15247
|
+
n.baseProps.multiple !== void 0 && n.baseProps.multiple === !0 && i.optionItems && i.optionItems.length > 0 ? (openBlock(), createBlock(f, {
|
|
15248
|
+
key: 0,
|
|
15249
|
+
label: e.$t("superGrid.selectAll"),
|
|
15250
|
+
value: "saveAll"
|
|
15251
|
+
}, null, 8, ["label"])) : createCommentVNode("", !0),
|
|
15252
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.optionItems, (y) => (openBlock(), createBlock(f, {
|
|
15253
|
+
key: y.value,
|
|
15254
|
+
label: y._label_,
|
|
15255
|
+
title: y._label_ + y._description_,
|
|
15256
|
+
value: y[i.valueAttribute]
|
|
15257
|
+
}, {
|
|
15258
|
+
default: withCtx(() => [
|
|
15259
|
+
createElementVNode("span", _hoisted_5$e, toDisplayString$1(y._label_), 1),
|
|
15260
|
+
createElementVNode("span", _hoisted_6$d, toDisplayString$1(y._description_), 1)
|
|
15261
|
+
]),
|
|
15262
|
+
_: 2
|
|
15263
|
+
}, 1032, ["label", "title", "value"]))), 128))
|
|
15264
|
+
]))
|
|
15189
15265
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
15190
15266
|
n.optionWidth > 0 ? (openBlock(), createElementBlock("div", {
|
|
15191
15267
|
key: 0,
|
|
15192
15268
|
style: normalizeStyle({ width: n.optionWidth + "px", position: "relative" })
|
|
15193
15269
|
}, [
|
|
15270
|
+
n.baseProps.multiple !== void 0 && n.baseProps.multiple === !0 && i.optionItems && i.optionItems.length > 0 ? (openBlock(), createBlock(f, {
|
|
15271
|
+
key: 0,
|
|
15272
|
+
label: e.$t("superGrid.selectAll"),
|
|
15273
|
+
value: "saveAll"
|
|
15274
|
+
}, null, 8, ["label"])) : createCommentVNode("", !0),
|
|
15194
15275
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.optionItems, (y) => (openBlock(), createBlock(f, {
|
|
15195
15276
|
key: y.value,
|
|
15196
15277
|
label: y._label_,
|
|
15197
15278
|
value: y[i.valueAttribute]
|
|
15198
15279
|
}, null, 8, ["label", "value"]))), 128))
|
|
15199
|
-
], 4)) : (openBlock(
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15280
|
+
], 4)) : (openBlock(), createElementBlock("div", _hoisted_7$8, [
|
|
15281
|
+
n.baseProps.multiple !== void 0 && n.baseProps.multiple === !0 && i.optionItems && i.optionItems.length > 0 ? (openBlock(), createBlock(f, {
|
|
15282
|
+
key: 0,
|
|
15283
|
+
label: e.$t("superGrid.selectAll"),
|
|
15284
|
+
value: "saveAll"
|
|
15285
|
+
}, null, 8, ["label"])) : createCommentVNode("", !0),
|
|
15286
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(i.optionItems, (y) => (openBlock(), createBlock(f, {
|
|
15287
|
+
key: y.value,
|
|
15288
|
+
label: y._label_,
|
|
15289
|
+
value: y[i.valueAttribute]
|
|
15290
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
15291
|
+
]))
|
|
15204
15292
|
], 64))
|
|
15205
15293
|
]),
|
|
15206
15294
|
_: 1
|
|
15207
15295
|
}, 16, ["allow-create", "clearable", "filterable", "loading", "model-value", "placeholder", "remote", "remote-method", "size", "style", "title", "value-key", "onChange", "onClear", "onFocus", "onVisibleChange"])
|
|
15208
15296
|
]);
|
|
15209
15297
|
}
|
|
15210
|
-
const DynamicSourceSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["render", _sfc_render$W], ["__scopeId", "data-v-
|
|
15298
|
+
const DynamicSourceSelect = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["render", _sfc_render$W], ["__scopeId", "data-v-770ae09f"]]);
|
|
15211
15299
|
function _extends$1() {
|
|
15212
15300
|
return _extends$1 = Object.assign ? Object.assign.bind() : function(e) {
|
|
15213
15301
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -17716,7 +17804,7 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
|
|
|
17716
17804
|
multiselectChange(e, t) {
|
|
17717
17805
|
this.extendParams = t;
|
|
17718
17806
|
let n = !1;
|
|
17719
|
-
if (e && e.length > 0) {
|
|
17807
|
+
if (e && e.length > 0 && this.type === "multiselect" && !this.isDynamicDataSourceSource()) {
|
|
17720
17808
|
const o = "saveAll";
|
|
17721
17809
|
e.indexOf(o) !== -1 && (e.length - 1 >= this.options.length ? this.innerValue = null : ((!this.innerValue || this.innerValue.indexOf(o) >= 0) && (this.innerValue = []), this.options.forEach((l) => {
|
|
17722
17810
|
this.innerValue.indexOf(l.value) === -1 && this.innerValue.push(l.value);
|
|
@@ -19897,7 +19985,7 @@ function _sfc_render$Q(e, t, n, o, i, l) {
|
|
|
19897
19985
|
], 4))
|
|
19898
19986
|
]);
|
|
19899
19987
|
}
|
|
19900
|
-
const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$14, [["render", _sfc_render$Q]]),
|
|
19988
|
+
const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$14, [["render", _sfc_render$Q]]), normalColumn_vue_vue_type_style_index_0_scoped_8937d24d_lang = "", _sfc_main$13 = {
|
|
19901
19989
|
components: {
|
|
19902
19990
|
DynamicInput,
|
|
19903
19991
|
RowOperation,
|
|
@@ -20455,8 +20543,9 @@ function _sfc_render$P(e, t, n, o, i, l) {
|
|
|
20455
20543
|
"select-options": n.column.valueSet,
|
|
20456
20544
|
"show-value": e.$escapeHtml(l.getLabel(n.pageGridData[te.$index], te.$index)),
|
|
20457
20545
|
value: l.getCellValue(n.pageGridData[te.$index]),
|
|
20458
|
-
"additional-param-map": i.additionalParamMap
|
|
20459
|
-
|
|
20546
|
+
"additional-param-map": i.additionalParamMap,
|
|
20547
|
+
onProhibitToEdit: l.prohibitToEdit
|
|
20548
|
+
}, 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", "onProhibitToEdit"]))
|
|
20460
20549
|
])) : i.columnFormatter !== void 0 && i.columnFormatter.type !== void 0 && i.columnFormatter.type === "secretInfo" ? (openBlock(), createElementBlock("span", {
|
|
20461
20550
|
key: 3,
|
|
20462
20551
|
id: n.column.prop + "DomData" + te.$index,
|
|
@@ -20660,7 +20749,7 @@ function _sfc_render$P(e, t, n, o, i, l) {
|
|
|
20660
20749
|
_: 1
|
|
20661
20750
|
}, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "width"]);
|
|
20662
20751
|
}
|
|
20663
|
-
const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$13, [["render", _sfc_render$P], ["__scopeId", "data-v-
|
|
20752
|
+
const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$13, [["render", _sfc_render$P], ["__scopeId", "data-v-8937d24d"]]), _sfc_main$12 = {
|
|
20664
20753
|
name: "GroupColumn",
|
|
20665
20754
|
components: {
|
|
20666
20755
|
NormalColumn
|
|
@@ -25242,25 +25331,7 @@ const superGridService$1 = {
|
|
|
25242
25331
|
n();
|
|
25243
25332
|
});
|
|
25244
25333
|
}
|
|
25245
|
-
},
|
|
25246
|
-
function getSystemCode() {
|
|
25247
|
-
let e;
|
|
25248
|
-
return window.$vueApp.config.globalProperties.customSystem ? e = window.$vueApp.config.globalProperties.customSystem : window.$vueApp.config.globalProperties.currentSystem ? e = window.$vueApp.config.globalProperties.currentSystem : e = window.$vueApp.config.globalProperties.systemCode, e;
|
|
25249
|
-
}
|
|
25250
|
-
function getTotalPermissions() {
|
|
25251
|
-
(/* @__PURE__ */ new Date()).getTime();
|
|
25252
|
-
let e;
|
|
25253
|
-
const t = getSessionCache(_RUN_PERMISSION);
|
|
25254
|
-
t && (e = JSON.parse(t));
|
|
25255
|
-
let n;
|
|
25256
|
-
const o = getSystemCode(), i = window.sessionStorage.getItem(permissionKey + o);
|
|
25257
|
-
if (i && (n = JSON.parse(i)), (/* @__PURE__ */ new Date()).getTime(), e || n) {
|
|
25258
|
-
let l = {};
|
|
25259
|
-
return e && Object.assign(l, e), n && Object.assign(l, n), l;
|
|
25260
|
-
}
|
|
25261
|
-
return null;
|
|
25262
|
-
}
|
|
25263
|
-
const headerContextMenu_vue_vue_type_style_index_0_scoped_040fcf55_lang = "", _sfc_main$S = {
|
|
25334
|
+
}, headerContextMenu_vue_vue_type_style_index_0_scoped_040fcf55_lang = "", _sfc_main$S = {
|
|
25264
25335
|
name: "HeaderContextMenu",
|
|
25265
25336
|
components: {},
|
|
25266
25337
|
props: {
|
|
@@ -25327,7 +25398,7 @@ function isHasPermission(e, t) {
|
|
|
25327
25398
|
if (o !== void 0 && o === !0)
|
|
25328
25399
|
return !0;
|
|
25329
25400
|
}
|
|
25330
|
-
const
|
|
25401
|
+
const superGrid_vue_vue_type_style_index_0_scoped_58b98162_rel_stylesheet_2Fscss_lang = "", _sfc_main$R = {
|
|
25331
25402
|
components: {
|
|
25332
25403
|
IndexColumn,
|
|
25333
25404
|
SelectionColumn,
|
|
@@ -26697,7 +26768,7 @@ const superGrid_vue_vue_type_style_index_0_scoped_31db0581_rel_stylesheet_2Fscss
|
|
|
26697
26768
|
// 设置字段禁止编辑
|
|
26698
26769
|
fnProhibitToEdit(e) {
|
|
26699
26770
|
if (e) {
|
|
26700
|
-
e.isForceUpdate && this.$emit("fn-prohibit-to-edit", e);
|
|
26771
|
+
e.isForceUpdate && (this.$emit("fn-prohibit-to-edit", e), this.$emit("prohibitToEdit", e));
|
|
26701
26772
|
for (const t in e)
|
|
26702
26773
|
this.$refs[t] && this.$nextTick(() => {
|
|
26703
26774
|
this.$refs[t][0].fnProhibitToEdit(e[t]);
|
|
@@ -26990,7 +27061,7 @@ function _sfc_render$B(e, t, n, o, i, l) {
|
|
|
26990
27061
|
}, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : createCommentVNode("", !0)
|
|
26991
27062
|
]);
|
|
26992
27063
|
}
|
|
26993
|
-
const SuperGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$B], ["__scopeId", "data-v-
|
|
27064
|
+
const SuperGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$B], ["__scopeId", "data-v-58b98162"]]);
|
|
26994
27065
|
SuperGrid.install = function(e) {
|
|
26995
27066
|
e.component(SuperGrid.name, SuperGrid);
|
|
26996
27067
|
};
|
|
@@ -27076,6 +27147,10 @@ const searchResult_vue_vue_type_style_index_0_lang$2 = "", _sfc_main$Q = {
|
|
|
27076
27147
|
// 判断用户是否存在的过滤器
|
|
27077
27148
|
filterDept(e) {
|
|
27078
27149
|
return (t) => t.id === e.id;
|
|
27150
|
+
},
|
|
27151
|
+
getDeptName(e) {
|
|
27152
|
+
let t = e.superiorDeptNameFullPath;
|
|
27153
|
+
return t || (this.language && this.language !== "cn" && (t = e.mainDepartmentEnName), t) ? t : e.mainDepartmentName;
|
|
27079
27154
|
}
|
|
27080
27155
|
},
|
|
27081
27156
|
emits: ["removeUser", "addUser", "selectResult", "resultRowDblclick"]
|
|
@@ -27085,7 +27160,7 @@ const searchResult_vue_vue_type_style_index_0_lang$2 = "", _sfc_main$Q = {
|
|
|
27085
27160
|
}, _hoisted_3$k = {
|
|
27086
27161
|
class: "roleQuery_notAvailable",
|
|
27087
27162
|
style: { width: "120px", height: "120px" }
|
|
27088
|
-
}, _hoisted_4$e = { class: "roleQuery_notAvailable_text" }, _hoisted_5$c =
|
|
27163
|
+
}, _hoisted_4$e = { class: "roleQuery_notAvailable_text" }, _hoisted_5$c = { key: 0 }, _hoisted_6$b = ["title"], _hoisted_7$6 = ["title"], _hoisted_8$4 = { key: 1 }, _hoisted_9$4 = ["title"], _hoisted_10$4 = ["title"];
|
|
27089
27164
|
function _sfc_render$A(e, t, n, o, i, l) {
|
|
27090
27165
|
const f = resolveComponent("el-radio"), p = resolveComponent("el-table-column"), y = resolveComponent("el-button"), x = resolveComponent("el-table");
|
|
27091
27166
|
return openBlock(), createElementBlock("div", _hoisted_1$D, [
|
|
@@ -27170,88 +27245,36 @@ function _sfc_render$A(e, t, n, o, i, l) {
|
|
|
27170
27245
|
]),
|
|
27171
27246
|
_: 1
|
|
27172
27247
|
}, 8, ["label"])) : createCommentVNode("", !0),
|
|
27173
|
-
n.multiple ? (openBlock(), createBlock(p, {
|
|
27174
|
-
key: 3,
|
|
27175
|
-
label: e.$t("superGrid.index"),
|
|
27176
|
-
align: "center",
|
|
27177
|
-
width: "60px"
|
|
27178
|
-
}, {
|
|
27179
|
-
default: withCtx((E) => [
|
|
27180
|
-
createTextVNode(toDisplayString$1(E.$index + 1), 1)
|
|
27181
|
-
]),
|
|
27182
|
-
_: 1
|
|
27183
|
-
}, 8, ["label"])) : createCommentVNode("", !0),
|
|
27184
27248
|
createVNode(p, {
|
|
27185
27249
|
label: e.$t("departmentUserTreeInline.name"),
|
|
27186
27250
|
width: 130,
|
|
27187
27251
|
prop: "name"
|
|
27188
27252
|
}, {
|
|
27189
27253
|
default: withCtx((E) => [
|
|
27190
|
-
E.row.enName && E.row.enName.trim() !== "" ? (openBlock(), createElementBlock("
|
|
27191
|
-
|
|
27192
|
-
|
|
27193
|
-
|
|
27194
|
-
|
|
27195
|
-
|
|
27196
|
-
|
|
27197
|
-
|
|
27198
|
-
|
|
27199
|
-
|
|
27200
|
-
|
|
27201
|
-
|
|
27202
|
-
|
|
27203
|
-
|
|
27204
|
-
|
|
27205
|
-
|
|
27206
|
-
|
|
27207
|
-
|
|
27208
|
-
|
|
27209
|
-
|
|
27210
|
-
|
|
27211
|
-
}, toDisplayString$1(E.row.loginName), 9, _hoisted_7$6)
|
|
27212
|
-
]),
|
|
27213
|
-
_: 1
|
|
27214
|
-
}, 8, ["label"]),
|
|
27215
|
-
createVNode(p, {
|
|
27216
|
-
label: e.$t("departmentUserTreeInline.department"),
|
|
27217
|
-
"min-width": 160,
|
|
27218
|
-
prop: "mainDepartmentName"
|
|
27219
|
-
}, {
|
|
27220
|
-
default: withCtx((E) => [
|
|
27221
|
-
createElementVNode("span", {
|
|
27222
|
-
title: i.language && i.language !== "cn" && E.row.mainDepartmentEnName ? E.row.mainDepartmentEnName : E.row.mainDepartmentName,
|
|
27223
|
-
class: "ellipsis cell--span"
|
|
27224
|
-
}, toDisplayString$1(i.language && i.language !== "cn" && E.row.mainDepartmentEnName ? E.row.mainDepartmentEnName : E.row.mainDepartmentName), 9, _hoisted_8$4)
|
|
27225
|
-
]),
|
|
27226
|
-
_: 1
|
|
27227
|
-
}, 8, ["label"]),
|
|
27228
|
-
createVNode(p, {
|
|
27229
|
-
label: e.$t("departmentUserTreeInline.superiorDeptNameFullPath"),
|
|
27230
|
-
width: 130,
|
|
27231
|
-
prop: "superiorDeptNameFullPath"
|
|
27232
|
-
}, {
|
|
27233
|
-
default: withCtx((E) => [
|
|
27234
|
-
createElementVNode("span", {
|
|
27235
|
-
title: E.row.superiorDeptNameFullPath,
|
|
27236
|
-
class: "ellipsis cell--span"
|
|
27237
|
-
}, toDisplayString$1(E.row.superiorDeptNameFullPath), 9, _hoisted_9$4)
|
|
27238
|
-
]),
|
|
27239
|
-
_: 1
|
|
27240
|
-
}, 8, ["label"]),
|
|
27241
|
-
n.containBranch ? (openBlock(), createBlock(p, {
|
|
27242
|
-
key: 4,
|
|
27243
|
-
label: e.$t("departmentUserTreeInline.branch"),
|
|
27244
|
-
width: 130,
|
|
27245
|
-
prop: "subCompanyName"
|
|
27246
|
-
}, {
|
|
27247
|
-
default: withCtx((E) => [
|
|
27248
|
-
createElementVNode("span", {
|
|
27249
|
-
title: E.row.subCompanyName,
|
|
27250
|
-
class: "ellipsis cell--span"
|
|
27251
|
-
}, toDisplayString$1(E.row.subCompanyName), 9, _hoisted_10$4)
|
|
27254
|
+
E.row.enName && E.row.enName.trim() !== "" ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
27255
|
+
createElementVNode("div", {
|
|
27256
|
+
title: E.row.name + "(" + E.row.enName + ")[" + E.row.loginName + "]"
|
|
27257
|
+
}, [
|
|
27258
|
+
createElementVNode("span", null, toDisplayString$1(E.row.name + "(" + E.row.enName + ")") + "[" + toDisplayString$1(E.row.loginName) + "]", 1)
|
|
27259
|
+
], 8, _hoisted_6$b),
|
|
27260
|
+
createElementVNode("div", {
|
|
27261
|
+
style: { color: "#ccc" },
|
|
27262
|
+
title: l.getDeptName(E.row)
|
|
27263
|
+
}, toDisplayString$1(l.getDeptName(E.row)), 9, _hoisted_7$6)
|
|
27264
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_8$4, [
|
|
27265
|
+
createElementVNode("div", {
|
|
27266
|
+
title: E.row.name + "[" + E.row.loginName + "]"
|
|
27267
|
+
}, [
|
|
27268
|
+
createElementVNode("span", null, toDisplayString$1(E.row.name) + "[" + toDisplayString$1(E.row.loginName) + "]", 1)
|
|
27269
|
+
], 8, _hoisted_9$4),
|
|
27270
|
+
createElementVNode("div", {
|
|
27271
|
+
style: { color: "#ccc" },
|
|
27272
|
+
title: l.getDeptName(E.row)
|
|
27273
|
+
}, toDisplayString$1(l.getDeptName(E.row)), 9, _hoisted_10$4)
|
|
27274
|
+
]))
|
|
27252
27275
|
]),
|
|
27253
27276
|
_: 1
|
|
27254
|
-
}, 8, ["label"])
|
|
27277
|
+
}, 8, ["label"])
|
|
27255
27278
|
]),
|
|
27256
27279
|
_: 1
|
|
27257
27280
|
}, 8, ["data", "max-height", "row-class-name", "onRowClick", "onRowDblclick"])
|