yuang-framework-ui-pc 1.1.69 → 1.1.71
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/es/yu-uims-organization-dialog/index.js +3 -13
- package/es/yu-uims-role-dialog/components/role-list.js +8 -1
- package/es/yu-uims-role-dialog/index.js +4 -2
- package/es/yu-uims-user-dialog/components/user-list.js +8 -1
- package/es/yu-uims-user-dialog/index.js +4 -2
- package/lib/yu-uims-organization-dialog/index.cjs +4 -14
- package/lib/yu-uims-role-dialog/components/role-list.cjs +8 -1
- package/lib/yu-uims-role-dialog/index.cjs +4 -2
- package/lib/yu-uims-user-dialog/components/user-list.cjs +8 -1
- package/lib/yu-uims-user-dialog/index.cjs +4 -2
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent, mergeModels,
|
|
1
|
+
import { defineComponent, mergeModels, useModel, ref, computed, watch, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, unref } from "vue";
|
|
2
2
|
import { EleMessage } from "../utils/message";
|
|
3
3
|
import OrganizationDialog from "./components/organization-dialog";
|
|
4
4
|
import { Select } from "@element-plus/icons-vue";
|
|
5
|
+
import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
|
|
6
|
+
import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
|
|
5
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
8
|
...{ name: "YuUimsOrganizationDialog" },
|
|
7
9
|
__name: "index",
|
|
@@ -14,18 +16,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
16
|
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
15
17
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
18
|
const props = __props;
|
|
17
|
-
watch(
|
|
18
|
-
() => props.modelValue,
|
|
19
|
-
() => {
|
|
20
|
-
init();
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
watch(
|
|
24
|
-
() => props.param,
|
|
25
|
-
() => {
|
|
26
|
-
init();
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
19
|
const emit = __emit;
|
|
30
20
|
const modelValue = useModel(__props, "modelValue");
|
|
31
21
|
const initList = ref([]);
|
|
@@ -109,7 +109,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
const selections = ref([]);
|
|
110
110
|
const datasource = async ({ queryParam, pageParam, orderParamList }) => {
|
|
111
111
|
var _a, _b;
|
|
112
|
-
const data = {
|
|
112
|
+
const data = {
|
|
113
|
+
...queryParam,
|
|
114
|
+
...pageParam,
|
|
115
|
+
orderParamList,
|
|
116
|
+
uimsApplicationIdForEqual: props.application.id,
|
|
117
|
+
// 查询角色存在的用户id
|
|
118
|
+
selectRoleExistsUserIdForEqual: ((_a = props.param) == null ? void 0 : _a.isDisableSelectExistsUser) && ((_b = props.param) == null ? void 0 : _b.selectRoleExistsUserId)
|
|
119
|
+
};
|
|
113
120
|
const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectPage`, data);
|
|
114
121
|
return res.data.data;
|
|
115
122
|
};
|
|
@@ -26,6 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
modelValue: modelValue.value,
|
|
27
27
|
isMultiple: true,
|
|
28
28
|
isShowInput: true,
|
|
29
|
+
// 是否禁止选择已存在的用户
|
|
30
|
+
isDisableSelectExistsUser: true,
|
|
29
31
|
...props.param,
|
|
30
32
|
initList: initList.value
|
|
31
33
|
}));
|
|
@@ -33,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
35
|
if (modelValue.value) {
|
|
34
36
|
if (!componentParam.value.isMultiple) {
|
|
35
37
|
if (modelValue.value != "0") {
|
|
36
|
-
let res = await http.get(`${application.gatewayServerBaseUrl}/
|
|
38
|
+
let res = await http.get(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectInfo`, { params: { id: modelValue.value } });
|
|
37
39
|
const info = res.data.data;
|
|
38
40
|
inputValue.value = info.name;
|
|
39
41
|
initList.value = [info];
|
|
@@ -41,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
43
|
} else {
|
|
42
44
|
let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
|
|
43
45
|
if (idList.length > 0) {
|
|
44
|
-
let res = await http.post(`${application.gatewayServerBaseUrl}/
|
|
46
|
+
let res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectInfoList`, idList);
|
|
45
47
|
const infoList = res.data.data;
|
|
46
48
|
let names = "";
|
|
47
49
|
for (let index in infoList) {
|
|
@@ -133,7 +133,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
133
|
const selections = ref([]);
|
|
134
134
|
const datasource = async ({ queryParam, pageParam, orderParamList }) => {
|
|
135
135
|
var _a, _b;
|
|
136
|
-
const data = {
|
|
136
|
+
const data = {
|
|
137
|
+
...queryParam,
|
|
138
|
+
...pageParam,
|
|
139
|
+
orderParamList,
|
|
140
|
+
organizationIdForEqual: props.organization.id,
|
|
141
|
+
// 查询用户存在的角色id
|
|
142
|
+
selectUserExistsRoleIdForEqual: ((_a = props.param) == null ? void 0 : _a.isDisableSelectExistsRole) && ((_b = props.param) == null ? void 0 : _b.selectUserExistsRoleId)
|
|
143
|
+
};
|
|
137
144
|
const res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectPage`, data);
|
|
138
145
|
return res.data.data;
|
|
139
146
|
};
|
|
@@ -26,6 +26,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
modelValue: modelValue.value,
|
|
27
27
|
isMultiple: true,
|
|
28
28
|
isShowInput: true,
|
|
29
|
+
// 是否禁止选择已存在的角色
|
|
30
|
+
isDisableSelectExistsRole: true,
|
|
29
31
|
...props.param,
|
|
30
32
|
initList: initList.value
|
|
31
33
|
}));
|
|
@@ -33,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
35
|
if (modelValue.value) {
|
|
34
36
|
if (!componentParam.value.isMultiple) {
|
|
35
37
|
if (modelValue.value != "0") {
|
|
36
|
-
let res = await http.get(`${application.gatewayServerBaseUrl}/
|
|
38
|
+
let res = await http.get(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectInfo`, { params: { id: modelValue.value } });
|
|
37
39
|
const info = res.data.data;
|
|
38
40
|
inputValue.value = info.name;
|
|
39
41
|
initList.value = [info];
|
|
@@ -41,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
43
|
} else {
|
|
42
44
|
let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
|
|
43
45
|
if (idList.length > 0) {
|
|
44
|
-
let res = await http.post(`${application.gatewayServerBaseUrl}/
|
|
46
|
+
let res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectInfoList`, idList);
|
|
45
47
|
const infoList = res.data.data;
|
|
46
48
|
let names = "";
|
|
47
49
|
for (let index in infoList) {
|
|
@@ -3,6 +3,8 @@ const vue = require("vue");
|
|
|
3
3
|
const message = require("../utils/message");
|
|
4
4
|
const OrganizationDialog = require("./components/organization-dialog");
|
|
5
5
|
const iconsVue = require("@element-plus/icons-vue");
|
|
6
|
+
const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
|
|
7
|
+
const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
|
|
6
8
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
9
|
...{ name: "YuUimsOrganizationDialog" },
|
|
8
10
|
__name: "index",
|
|
@@ -15,18 +17,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
17
|
emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
|
|
16
18
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
19
|
const props = __props;
|
|
18
|
-
vue.watch(
|
|
19
|
-
() => props.modelValue,
|
|
20
|
-
() => {
|
|
21
|
-
init();
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
vue.watch(
|
|
25
|
-
() => props.param,
|
|
26
|
-
() => {
|
|
27
|
-
init();
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
20
|
const emit = __emit;
|
|
31
21
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
32
22
|
const initList = vue.ref([]);
|
|
@@ -44,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
34
|
if (modelValue.value) {
|
|
45
35
|
if (!componentParam.value.isMultiple) {
|
|
46
36
|
if (modelValue.value != "0") {
|
|
47
|
-
let res = await http.get(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectInfo`, { params: { id: modelValue.value } });
|
|
37
|
+
let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectInfo`, { params: { id: modelValue.value } });
|
|
48
38
|
const info = res.data.data;
|
|
49
39
|
inputValue.value = info.name;
|
|
50
40
|
initList.value = [info];
|
|
@@ -52,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
42
|
} else {
|
|
53
43
|
let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
|
|
54
44
|
if (idList.length > 0) {
|
|
55
|
-
let res = await http.post(`${application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectInfoList`, idList);
|
|
45
|
+
let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectInfoList`, idList);
|
|
56
46
|
const infoList = res.data.data;
|
|
57
47
|
let names = "";
|
|
58
48
|
for (let index in infoList) {
|
|
@@ -110,7 +110,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
110
|
const selections = vue.ref([]);
|
|
111
111
|
const datasource = async ({ queryParam, pageParam, orderParamList }) => {
|
|
112
112
|
var _a, _b;
|
|
113
|
-
const data = {
|
|
113
|
+
const data = {
|
|
114
|
+
...queryParam,
|
|
115
|
+
...pageParam,
|
|
116
|
+
orderParamList,
|
|
117
|
+
uimsApplicationIdForEqual: props.application.id,
|
|
118
|
+
// 查询角色存在的用户id
|
|
119
|
+
selectRoleExistsUserIdForEqual: ((_a = props.param) == null ? void 0 : _a.isDisableSelectExistsUser) && ((_b = props.param) == null ? void 0 : _b.selectRoleExistsUserId)
|
|
120
|
+
};
|
|
114
121
|
const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectPage`, data);
|
|
115
122
|
return res.data.data;
|
|
116
123
|
};
|
|
@@ -27,6 +27,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
27
|
modelValue: modelValue.value,
|
|
28
28
|
isMultiple: true,
|
|
29
29
|
isShowInput: true,
|
|
30
|
+
// 是否禁止选择已存在的用户
|
|
31
|
+
isDisableSelectExistsUser: true,
|
|
30
32
|
...props.param,
|
|
31
33
|
initList: initList.value
|
|
32
34
|
}));
|
|
@@ -34,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
36
|
if (modelValue.value) {
|
|
35
37
|
if (!componentParam.value.isMultiple) {
|
|
36
38
|
if (modelValue.value != "0") {
|
|
37
|
-
let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/
|
|
39
|
+
let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectInfo`, { params: { id: modelValue.value } });
|
|
38
40
|
const info = res.data.data;
|
|
39
41
|
inputValue.value = info.name;
|
|
40
42
|
initList.value = [info];
|
|
@@ -42,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
44
|
} else {
|
|
43
45
|
let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
|
|
44
46
|
if (idList.length > 0) {
|
|
45
|
-
let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/
|
|
47
|
+
let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectInfoList`, idList);
|
|
46
48
|
const infoList = res.data.data;
|
|
47
49
|
let names = "";
|
|
48
50
|
for (let index in infoList) {
|
|
@@ -134,7 +134,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
134
134
|
const selections = vue.ref([]);
|
|
135
135
|
const datasource = async ({ queryParam, pageParam, orderParamList }) => {
|
|
136
136
|
var _a, _b;
|
|
137
|
-
const data = {
|
|
137
|
+
const data = {
|
|
138
|
+
...queryParam,
|
|
139
|
+
...pageParam,
|
|
140
|
+
orderParamList,
|
|
141
|
+
organizationIdForEqual: props.organization.id,
|
|
142
|
+
// 查询用户存在的角色id
|
|
143
|
+
selectUserExistsRoleIdForEqual: ((_a = props.param) == null ? void 0 : _a.isDisableSelectExistsRole) && ((_b = props.param) == null ? void 0 : _b.selectUserExistsRoleId)
|
|
144
|
+
};
|
|
138
145
|
const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectPage`, data);
|
|
139
146
|
return res.data.data;
|
|
140
147
|
};
|
|
@@ -27,6 +27,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27
27
|
modelValue: modelValue.value,
|
|
28
28
|
isMultiple: true,
|
|
29
29
|
isShowInput: true,
|
|
30
|
+
// 是否禁止选择已存在的角色
|
|
31
|
+
isDisableSelectExistsRole: true,
|
|
30
32
|
...props.param,
|
|
31
33
|
initList: initList.value
|
|
32
34
|
}));
|
|
@@ -34,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
36
|
if (modelValue.value) {
|
|
35
37
|
if (!componentParam.value.isMultiple) {
|
|
36
38
|
if (modelValue.value != "0") {
|
|
37
|
-
let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/
|
|
39
|
+
let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectInfo`, { params: { id: modelValue.value } });
|
|
38
40
|
const info = res.data.data;
|
|
39
41
|
inputValue.value = info.name;
|
|
40
42
|
initList.value = [info];
|
|
@@ -42,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
44
|
} else {
|
|
43
45
|
let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
|
|
44
46
|
if (idList.length > 0) {
|
|
45
|
-
let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/
|
|
47
|
+
let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectInfoList`, idList);
|
|
46
48
|
const infoList = res.data.data;
|
|
47
49
|
let names = "";
|
|
48
50
|
for (let index in infoList) {
|