yuang-framework-ui-pc 1.1.110 → 1.1.111

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.
@@ -3,7 +3,6 @@ import { Monitor, Close, Check } from "@element-plus/icons-vue";
3
3
  import RoleList from "./role-list";
4
4
  import { toTree } from "../../utils/core";
5
5
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
6
- import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
7
6
  import { SearchOutlined, ApplicationOutlined } from "../../icons";
8
7
  import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
9
8
  const _hoisted_1 = { style: { "padding": "0 16px 12px 0" } };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import RoleQuery from "./role-query";
3
3
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
4
4
  import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
@@ -56,8 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
56
  width: 90,
57
57
  align: "center",
58
58
  sortable: "custom",
59
- slot: "status",
60
- formatter: (row) => row.status == 1 ? "正常" : "禁用"
59
+ slot: "status"
61
60
  },
62
61
  {
63
62
  prop: "remark",
@@ -111,6 +110,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
111
110
  ]);
112
111
  const selections = ref([]);
113
112
  const tableList = ref([]);
113
+ const statusEnumList = ref([]);
114
+ const getStatusEnumList = () => {
115
+ http.get(`/framework-api/union/framework-data/getStatusEnumList`, {}).then((res) => {
116
+ statusEnumList.value = res.data.data;
117
+ }).catch((ex) => {
118
+ console.error(ex);
119
+ });
120
+ };
121
+ getStatusEnumList();
114
122
  onMounted(() => {
115
123
  initSelectionList();
116
124
  });
@@ -207,15 +215,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
207
215
  })) : createCommentVNode("", true)
208
216
  ]),
209
217
  status: withCtx(({ row }) => [
210
- createVNode(_component_el_tag, {
211
- type: row.status === 1 ? "success" : "danger",
212
- "disable-transitions": true
213
- }, {
214
- default: withCtx(() => [
215
- createTextVNode(toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
216
- ]),
217
- _: 2
218
- }, 1032, ["type"])
218
+ (openBlock(true), createElementBlock(Fragment, null, renderList(statusEnumList.value, (item, index) => {
219
+ return openBlock(), createElementBlock(Fragment, null, [
220
+ row.status == item.value ? (openBlock(), createBlock(_component_el_tag, {
221
+ type: item.tagType,
222
+ "disable-transitions": true,
223
+ key: index
224
+ }, {
225
+ default: withCtx(() => [
226
+ createTextVNode(toDisplayString(item.name), 1)
227
+ ]),
228
+ _: 2
229
+ }, 1032, ["type"])) : createCommentVNode("", true)
230
+ ], 64);
231
+ }), 256))
219
232
  ]),
220
233
  _: 1
221
234
  }, 8, ["columns", "selections"])
@@ -3,7 +3,6 @@ import { EleMessage } from "../utils/message";
3
3
  import RoleDialog from "./components/role-dialog";
4
4
  import { Select } from "@element-plus/icons-vue";
5
5
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
6
- import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  ...{ name: "YuUimsRoleDialog" },
9
8
  __name: "index",
@@ -5,7 +5,6 @@ import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
5
5
  import { Close, Check } from "@element-plus/icons-vue";
6
6
  import { getShortUuid } from "yuang-framework-ui-common/lib/utils/uuidUtils";
7
7
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
8
- import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
9
8
  const _hoisted_1 = { style: { "padding": "0 16px 12px 0" } };
10
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
10
  ...{ name: "UimsUserV2" },
@@ -1,9 +1,8 @@
1
- import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, normalizeStyle, unref, createElementVNode, createBlock, createCommentVNode } from "vue";
1
+ import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, toDisplayString, normalizeStyle, unref, createElementVNode } from "vue";
2
2
  import { User } from "@element-plus/icons-vue";
3
3
  import UserQuery from "./user-query";
4
4
  import { UserOutlined } from "../../icons";
5
5
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
6
- import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
7
6
  import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
8
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
8
  ...{ name: "UimsUserList" },
@@ -83,8 +82,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
82
  width: 110,
84
83
  align: "center",
85
84
  sortable: "custom",
86
- slot: "status",
87
- formatter: (row) => row.status == 1 ? "正常" : "禁用"
85
+ slot: "status"
88
86
  },
89
87
  {
90
88
  prop: "uimsOrganizationUnit.name",
@@ -136,6 +134,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
136
134
  ]);
137
135
  const selections = ref([]);
138
136
  const tableList = ref([]);
137
+ const statusEnumList = ref([]);
138
+ const getStatusEnumList = () => {
139
+ http.get(`/framework-api/union/framework-data/getStatusEnumList`, {}).then((res) => {
140
+ statusEnumList.value = res.data.data;
141
+ }).catch((ex) => {
142
+ console.error(ex);
143
+ });
144
+ };
145
+ getStatusEnumList();
139
146
  onMounted(() => {
140
147
  initSelectionList();
141
148
  });
@@ -251,15 +258,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
251
258
  }, null, 8, ["src", "icon", "style"])
252
259
  ]),
253
260
  status: withCtx(({ row }) => [
254
- createVNode(_component_el_tag, {
255
- type: row.status === 1 ? "success" : "danger",
256
- "disable-transitions": true
257
- }, {
258
- default: withCtx(() => [
259
- createTextVNode(toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
260
- ]),
261
- _: 2
262
- }, 1032, ["type"])
261
+ (openBlock(true), createElementBlock(Fragment, null, renderList(statusEnumList.value, (item, index) => {
262
+ return openBlock(), createElementBlock(Fragment, null, [
263
+ row.status == item.value ? (openBlock(), createBlock(_component_el_tag, {
264
+ type: item.tagType,
265
+ "disable-transitions": true,
266
+ key: index
267
+ }, {
268
+ default: withCtx(() => [
269
+ createTextVNode(toDisplayString(item.name), 1)
270
+ ]),
271
+ _: 2
272
+ }, 1032, ["type"])) : createCommentVNode("", true)
273
+ ], 64);
274
+ }), 256))
263
275
  ]),
264
276
  _: 1
265
277
  }, 8, ["columns", "selections"])
@@ -3,7 +3,6 @@ import { EleMessage } from "../utils/message";
3
3
  import { Select } from "@element-plus/icons-vue";
4
4
  import UserDialog from "./components/user-dialog";
5
5
  import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
6
- import { application } from "yuang-framework-ui-common/lib/config/applicationConfig";
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  ...{ name: "YuUimsUserDialog" },
9
8
  __name: "index",
@@ -4,7 +4,6 @@ const iconsVue = require("@element-plus/icons-vue");
4
4
  const RoleList = require("./role-list");
5
5
  const core = require("../../utils/core");
6
6
  const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
7
- const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
8
7
  const icons = require("../../icons");
9
8
  const objectUtils = require("yuang-framework-ui-common/lib/utils/objectUtils");
10
9
  const _hoisted_1 = { style: { "padding": "0 16px 12px 0" } };
@@ -37,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
37
36
  const queryPage = async () => {
38
37
  let data = { parentIdForEqual: "0", nameForLike: applicationName.value };
39
38
  isLoading.value = true;
40
- const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-application/selectPage`, data);
39
+ const res = await httpConfig.http.post(`/uims-api/admin/uims-application/selectPage`, data);
41
40
  isLoading.value = false;
42
41
  const listData = [
43
42
  {
@@ -2,7 +2,6 @@
2
2
  const vue = require("vue");
3
3
  const RoleQuery = require("./role-query");
4
4
  const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
5
- const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
6
5
  const objectUtils = require("yuang-framework-ui-common/lib/utils/objectUtils");
7
6
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
8
7
  ...{ name: "UimsUserList" },
@@ -58,8 +57,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
58
57
  width: 90,
59
58
  align: "center",
60
59
  sortable: "custom",
61
- slot: "status",
62
- formatter: (row) => row.status == 1 ? "正常" : "禁用"
60
+ slot: "status"
63
61
  },
64
62
  {
65
63
  prop: "remark",
@@ -113,6 +111,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
113
111
  ]);
114
112
  const selections = vue.ref([]);
115
113
  const tableList = vue.ref([]);
114
+ const statusEnumList = vue.ref([]);
115
+ const getStatusEnumList = () => {
116
+ httpConfig.http.get(`/framework-api/union/framework-data/getStatusEnumList`, {}).then((res) => {
117
+ statusEnumList.value = res.data.data;
118
+ }).catch((ex) => {
119
+ console.error(ex);
120
+ });
121
+ };
122
+ getStatusEnumList();
116
123
  vue.onMounted(() => {
117
124
  initSelectionList();
118
125
  });
@@ -133,7 +140,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
133
140
  // 是否排除所有人角色
134
141
  isExcludeEveryOne: true
135
142
  };
136
- const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectPage`, data);
143
+ const res = await httpConfig.http.post(`/uims-api/admin/uims-role/selectPage`, data);
137
144
  tableList.value = res.data.data.records;
138
145
  return res.data.data;
139
146
  };
@@ -209,15 +216,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
209
216
  })) : vue.createCommentVNode("", true)
210
217
  ]),
211
218
  status: vue.withCtx(({ row }) => [
212
- vue.createVNode(_component_el_tag, {
213
- type: row.status === 1 ? "success" : "danger",
214
- "disable-transitions": true
215
- }, {
216
- default: vue.withCtx(() => [
217
- vue.createTextVNode(vue.toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
218
- ]),
219
- _: 2
220
- }, 1032, ["type"])
219
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(statusEnumList.value, (item, index) => {
220
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
221
+ row.status == item.value ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
222
+ type: item.tagType,
223
+ "disable-transitions": true,
224
+ key: index
225
+ }, {
226
+ default: vue.withCtx(() => [
227
+ vue.createTextVNode(vue.toDisplayString(item.name), 1)
228
+ ]),
229
+ _: 2
230
+ }, 1032, ["type"])) : vue.createCommentVNode("", true)
231
+ ], 64);
232
+ }), 256))
221
233
  ]),
222
234
  _: 1
223
235
  }, 8, ["columns", "selections"])
@@ -4,7 +4,6 @@ const message = require("../utils/message");
4
4
  const RoleDialog = require("./components/role-dialog");
5
5
  const iconsVue = require("@element-plus/icons-vue");
6
6
  const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
7
- const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
8
7
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
8
  ...{ name: "YuUimsRoleDialog" },
10
9
  __name: "index",
@@ -40,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
40
39
  if (modelValue.value) {
41
40
  if (!componentParam.value.isMultiple) {
42
41
  if (modelValue.value != "0") {
43
- let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectInfo`, { params: { id: modelValue.value } });
42
+ let res = await httpConfig.http.get(`/uims-api/admin/uims-role/selectInfo`, { params: { id: modelValue.value } });
44
43
  const info = res.data.data;
45
44
  inputValue.value = info.name;
46
45
  initList.value = [info];
@@ -48,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
48
47
  } else {
49
48
  let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
50
49
  if (idList.length > 0) {
51
- let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-role/selectInfoList`, idList);
50
+ let res = await httpConfig.http.post(`/uims-api/admin/uims-role/selectInfoList`, idList);
52
51
  const infoList = res.data.data;
53
52
  let names = "";
54
53
  for (let index in infoList) {
@@ -6,7 +6,6 @@ const objectUtils = require("yuang-framework-ui-common/lib/utils/objectUtils");
6
6
  const iconsVue = require("@element-plus/icons-vue");
7
7
  const uuidUtils = require("yuang-framework-ui-common/lib/utils/uuidUtils");
8
8
  const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
9
- const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
10
9
  const _hoisted_1 = { style: { "padding": "0 16px 12px 0" } };
11
10
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
11
  ...{ name: "UimsUserV2" },
@@ -46,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
45
  if (node.level == 0) {
47
46
  isLoading.value = true;
48
47
  }
49
- const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectPage`, data);
48
+ const res = await httpConfig.http.post(`/uims-api/admin/uims-organization/selectPage`, data);
50
49
  if (node.level == 0) {
51
50
  isLoading.value = false;
52
51
  }
@@ -68,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
68
67
  if (queryCondition) {
69
68
  queryCondition.parentId = listData[0].id || "0";
70
69
  queryCondition.levelNum = listData[0].levelNum + 1;
71
- httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-organization/selectPage`, queryCondition).then((res2) => {
70
+ httpConfig.http.post(`/uims-api/admin/uims-organization/selectPage`, queryCondition).then((res2) => {
72
71
  var _a2;
73
72
  (_a2 = treeRef == null ? void 0 : treeRef.value) == null ? void 0 : _a2.updateKeyChildren(queryCondition == null ? void 0 : queryCondition.parentId, res2.data.data.records);
74
73
  });
@@ -4,7 +4,6 @@ const iconsVue = require("@element-plus/icons-vue");
4
4
  const UserQuery = require("./user-query");
5
5
  const icons = require("../../icons");
6
6
  const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
7
- const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
8
7
  const objectUtils = require("yuang-framework-ui-common/lib/utils/objectUtils");
9
8
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
9
  ...{ name: "UimsUserList" },
@@ -84,8 +83,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
84
83
  width: 110,
85
84
  align: "center",
86
85
  sortable: "custom",
87
- slot: "status",
88
- formatter: (row) => row.status == 1 ? "正常" : "禁用"
86
+ slot: "status"
89
87
  },
90
88
  {
91
89
  prop: "uimsOrganizationUnit.name",
@@ -137,6 +135,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
137
135
  ]);
138
136
  const selections = vue.ref([]);
139
137
  const tableList = vue.ref([]);
138
+ const statusEnumList = vue.ref([]);
139
+ const getStatusEnumList = () => {
140
+ httpConfig.http.get(`/framework-api/union/framework-data/getStatusEnumList`, {}).then((res) => {
141
+ statusEnumList.value = res.data.data;
142
+ }).catch((ex) => {
143
+ console.error(ex);
144
+ });
145
+ };
146
+ getStatusEnumList();
140
147
  vue.onMounted(() => {
141
148
  initSelectionList();
142
149
  });
@@ -156,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
156
163
  // 查询用户存在的角色id
157
164
  selectUserExistsRoleIdForEqual: ((_a = props.param) == null ? void 0 : _a.isDisableSelectUserOfExistsRole) && ((_b = props.param) == null ? void 0 : _b.selectUserExistsRoleId)
158
165
  };
159
- const res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectPage`, data);
166
+ const res = await httpConfig.http.post(`/uims-api/admin/uims-user/selectPage`, data);
160
167
  tableList.value = res.data.data.records;
161
168
  return res.data.data;
162
169
  };
@@ -252,15 +259,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
252
259
  }, null, 8, ["src", "icon", "style"])
253
260
  ]),
254
261
  status: vue.withCtx(({ row }) => [
255
- vue.createVNode(_component_el_tag, {
256
- type: row.status === 1 ? "success" : "danger",
257
- "disable-transitions": true
258
- }, {
259
- default: vue.withCtx(() => [
260
- vue.createTextVNode(vue.toDisplayString(row.status === 1 ? "正常" : "禁用"), 1)
261
- ]),
262
- _: 2
263
- }, 1032, ["type"])
262
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(statusEnumList.value, (item, index) => {
263
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
264
+ row.status == item.value ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
265
+ type: item.tagType,
266
+ "disable-transitions": true,
267
+ key: index
268
+ }, {
269
+ default: vue.withCtx(() => [
270
+ vue.createTextVNode(vue.toDisplayString(item.name), 1)
271
+ ]),
272
+ _: 2
273
+ }, 1032, ["type"])) : vue.createCommentVNode("", true)
274
+ ], 64);
275
+ }), 256))
264
276
  ]),
265
277
  _: 1
266
278
  }, 8, ["columns", "selections"])
@@ -4,7 +4,6 @@ const message = require("../utils/message");
4
4
  const iconsVue = require("@element-plus/icons-vue");
5
5
  const UserDialog = require("./components/user-dialog");
6
6
  const httpConfig = require("yuang-framework-ui-common/lib/config/httpConfig");
7
- const applicationConfig = require("yuang-framework-ui-common/lib/config/applicationConfig");
8
7
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
8
  ...{ name: "YuUimsUserDialog" },
10
9
  __name: "index",
@@ -42,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
42
41
  if (modelValue.value) {
43
42
  if (!componentParam.value.isMultiple) {
44
43
  if (modelValue.value != "0") {
45
- let res = await httpConfig.http.get(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectInfo`, { params: { id: modelValue.value } });
44
+ let res = await httpConfig.http.get(`/uims-api/admin/uims-user/selectInfo`, { params: { id: modelValue.value } });
46
45
  const info = res.data.data;
47
46
  inputValue.value = info.name;
48
47
  initList.value = [info];
@@ -50,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
50
49
  } else {
51
50
  let idList = modelValue.value.split("|").filter((item) => item.trim() !== "");
52
51
  if (idList.length > 0) {
53
- let res = await httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/uims-api/admin/uims-user/selectInfoList`, idList);
52
+ let res = await httpConfig.http.post(`/uims-api/admin/uims-user/selectInfoList`, idList);
54
53
  const infoList = res.data.data;
55
54
  let names = "";
56
55
  for (let index in infoList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.110",
3
+ "version": "1.1.111",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",