yuang-framework-ui-pc 1.1.158 → 1.1.160
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,7 +1,7 @@
|
|
|
1
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
|
+
import { useStatusEnumList, getStatusTagType } from "yuang-framework-ui-common/lib/hooks/framework/frameworkEnum";
|
|
5
5
|
import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
|
|
6
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
...{ name: "UimsUserList" },
|
|
@@ -211,7 +211,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
211
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(statusEnumList), (item, index) => {
|
|
212
212
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
213
213
|
row.status == item.value ? (openBlock(), createBlock(_component_el_tag, {
|
|
214
|
-
type:
|
|
214
|
+
type: unref(getStatusTagType)(row.status),
|
|
215
215
|
"disable-transitions": true,
|
|
216
216
|
key: index
|
|
217
217
|
}, {
|
|
@@ -3,7 +3,7 @@ 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
|
+
import { useStatusEnumList, getStatusTagType } from "yuang-framework-ui-common/lib/hooks/uims/uimsUser";
|
|
7
7
|
import { deepClone } from "yuang-framework-ui-common/lib/utils/objectUtils";
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
...{ name: "UimsUserList" },
|
|
@@ -86,13 +86,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
slot: "status"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
prop: "
|
|
89
|
+
prop: "organizationUnit.name",
|
|
90
90
|
label: "所属单位",
|
|
91
91
|
width: 180,
|
|
92
92
|
align: "center"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
prop: "
|
|
95
|
+
prop: "organizationDept.name",
|
|
96
96
|
label: "所属部门",
|
|
97
97
|
width: 120,
|
|
98
98
|
align: "center"
|
|
@@ -254,7 +254,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
254
254
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(statusEnumList), (item, index) => {
|
|
255
255
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
256
256
|
row.status == item.value ? (openBlock(), createBlock(_component_el_tag, {
|
|
257
|
-
type:
|
|
257
|
+
type: unref(getStatusTagType)(row.status),
|
|
258
258
|
"disable-transitions": true,
|
|
259
259
|
key: index
|
|
260
260
|
}, {
|
|
@@ -212,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
212
212
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(statusEnumList), (item, index) => {
|
|
213
213
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
214
214
|
row.status == item.value ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
215
|
-
type:
|
|
215
|
+
type: vue.unref(frameworkEnum.getStatusTagType)(row.status),
|
|
216
216
|
"disable-transitions": true,
|
|
217
217
|
key: index
|
|
218
218
|
}, {
|
|
@@ -87,13 +87,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
87
|
slot: "status"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
|
-
prop: "
|
|
90
|
+
prop: "organizationUnit.name",
|
|
91
91
|
label: "所属单位",
|
|
92
92
|
width: 180,
|
|
93
93
|
align: "center"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
prop: "
|
|
96
|
+
prop: "organizationDept.name",
|
|
97
97
|
label: "所属部门",
|
|
98
98
|
width: 120,
|
|
99
99
|
align: "center"
|
|
@@ -255,7 +255,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
255
255
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(statusEnumList), (item, index) => {
|
|
256
256
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
257
257
|
row.status == item.value ? (vue.openBlock(), vue.createBlock(_component_el_tag, {
|
|
258
|
-
type:
|
|
258
|
+
type: vue.unref(uimsUser.getStatusTagType)(row.status),
|
|
259
259
|
"disable-transitions": true,
|
|
260
260
|
key: index
|
|
261
261
|
}, {
|