yuang-framework-ui-pc 1.1.112 → 1.1.114
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, 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
|
+
import { useStatusEnumList } from "yuang-framework-ui-common/lib/hooks/framework/frameworkEnum";
|
|
4
5
|
import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
...{ name: "UimsUserList" },
|
|
@@ -110,15 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
111
|
]);
|
|
111
112
|
const selections = ref([]);
|
|
112
113
|
const tableList = ref([]);
|
|
113
|
-
const statusEnumList =
|
|
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
|
+
const { statusEnumList } = useStatusEnumList();
|
|
122
115
|
onMounted(() => {
|
|
123
116
|
initSelectionList();
|
|
124
117
|
});
|
|
@@ -215,7 +208,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
215
208
|
})) : createCommentVNode("", true)
|
|
216
209
|
]),
|
|
217
210
|
status: withCtx(({ row }) => [
|
|
218
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(statusEnumList
|
|
211
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(statusEnumList), (item, index) => {
|
|
219
212
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
220
213
|
row.status == item.value ? (openBlock(), createBlock(_component_el_tag, {
|
|
221
214
|
type: item.tagType,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, createBlock, createCommentVNode, createTextVNode, toDisplayString, normalizeStyle,
|
|
1
|
+
import { defineComponent, ref, onMounted, watch, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createCommentVNode, createTextVNode, toDisplayString, normalizeStyle, 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 { useStatusEnumList } from "yuang-framework-ui-common/lib/hooks/uims/uimsUser";
|
|
6
7
|
import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
...{ name: "UimsUserList" },
|
|
@@ -134,15 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
134
135
|
]);
|
|
135
136
|
const selections = ref([]);
|
|
136
137
|
const tableList = ref([]);
|
|
137
|
-
const statusEnumList =
|
|
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();
|
|
138
|
+
const { statusEnumList } = useStatusEnumList();
|
|
146
139
|
onMounted(() => {
|
|
147
140
|
initSelectionList();
|
|
148
141
|
});
|
|
@@ -258,7 +251,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
258
251
|
}, null, 8, ["src", "icon", "style"])
|
|
259
252
|
]),
|
|
260
253
|
status: withCtx(({ row }) => [
|
|
261
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(statusEnumList
|
|
254
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(statusEnumList), (item, index) => {
|
|
262
255
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
263
256
|
row.status == item.value ? (openBlock(), createBlock(_component_el_tag, {
|
|
264
257
|
type: item.tagType,
|
|
@@ -2,6 +2,7 @@
|
|
|
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 frameworkEnum = require("yuang-framework-ui-common/lib/hooks/framework/frameworkEnum");
|
|
5
6
|
const objectUtils = require("yuang-framework-ui-common/lib/utils/objectUtils");
|
|
6
7
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
7
8
|
...{ name: "UimsUserList" },
|
|
@@ -111,15 +112,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
112
|
]);
|
|
112
113
|
const selections = vue.ref([]);
|
|
113
114
|
const tableList = vue.ref([]);
|
|
114
|
-
const statusEnumList =
|
|
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();
|
|
115
|
+
const { statusEnumList } = frameworkEnum.useStatusEnumList();
|
|
123
116
|
vue.onMounted(() => {
|
|
124
117
|
initSelectionList();
|
|
125
118
|
});
|
|
@@ -216,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
216
209
|
})) : vue.createCommentVNode("", true)
|
|
217
210
|
]),
|
|
218
211
|
status: vue.withCtx(({ row }) => [
|
|
219
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(statusEnumList
|
|
212
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(statusEnumList), (item, index) => {
|
|
220
213
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
221
214
|
row.status == item.value ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
222
215
|
type: item.tagType,
|
|
@@ -4,6 +4,7 @@ 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 uimsUser = require("yuang-framework-ui-common/lib/hooks/uims/uimsUser");
|
|
7
8
|
const objectUtils = require("yuang-framework-ui-common/lib/utils/objectUtils");
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
10
|
...{ name: "UimsUserList" },
|
|
@@ -135,15 +136,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
135
136
|
]);
|
|
136
137
|
const selections = vue.ref([]);
|
|
137
138
|
const tableList = vue.ref([]);
|
|
138
|
-
const statusEnumList =
|
|
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();
|
|
139
|
+
const { statusEnumList } = uimsUser.useStatusEnumList();
|
|
147
140
|
vue.onMounted(() => {
|
|
148
141
|
initSelectionList();
|
|
149
142
|
});
|
|
@@ -259,7 +252,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
259
252
|
}, null, 8, ["src", "icon", "style"])
|
|
260
253
|
]),
|
|
261
254
|
status: vue.withCtx(({ row }) => [
|
|
262
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(statusEnumList
|
|
255
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(statusEnumList), (item, index) => {
|
|
263
256
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
264
257
|
row.status == item.value ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
265
258
|
type: item.tagType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuang-framework-ui-pc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite --host --config vite.global.ts --mode dev",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"xgplayer": "^3.0.20",
|
|
79
79
|
"xgplayer-hls": "^3.0.20",
|
|
80
80
|
"xgplayer-music": "^3.0.20",
|
|
81
|
-
"yuang-framework-ui-common": "^1.0.
|
|
81
|
+
"yuang-framework-ui-common": "^1.0.101"
|
|
82
82
|
},
|
|
83
83
|
"main": "lib/index.cjs",
|
|
84
84
|
"module": "es/index.js",
|