@utogether/udp-core 1.0.3 → 1.0.4-beta.1
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/dist/{403-D6H3sArg.js → 403-CH-5FVhN.js} +1 -1
- package/dist/{404-DTyfysQ2.js → 404-CFk6Ivq-.js} +1 -1
- package/dist/{500-DKaVDaBm.js → 500-DRjSNKN3.js} +1 -1
- package/dist/{AuthorityInfo-DQULR69Y.js → AuthorityInfo-DxNFwxdz.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CzAnoTnO.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BI2PKcqq.js} +1 -1
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-BzIh29KB.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js} +32 -24
- package/dist/{Company-BWFrR-Cq.js → Company-DGFD7_MF.js} +3 -3
- package/dist/{CompanyPanel-Dh814lsw.js → CompanyPanel-BHXndpIr.js} +1 -1
- package/dist/{Department-DagPxerl.js → Department-CFcjdf8m.js} +3 -3
- package/dist/{DepartmentPanel-BVy2YGED.js → DepartmentPanel-DrBtJClY.js} +1 -1
- package/dist/{DesignPanel-DKfjfj2S.js → DesignPanel-EAKuwOqp.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D-a8W08Y.js → DesignPanel.vue_vue_type_style_index_0_lang-BOP4Q41a.js} +2 -2
- package/dist/{DictView-CE5nEiKu.js → DictView-CpRvxDO0.js} +1 -1
- package/dist/{InvOrganization-CZk_EbFZ.js → InvOrganization-DZC9aKKv.js} +1 -1
- package/dist/{Org-BO8jfnqN.js → Org-D5heLogi.js} +1 -1
- package/dist/{Preview-DYJaP96f.js → Preview-DWuThn2_.js} +1 -1
- package/dist/{ReportDefine-DZXbs7iX.js → ReportDefine-FeHx3B-B.js} +1 -1
- package/dist/{ReportDesign-CSdqOQ1D.js → ReportDesign-Deo5AK76.js} +2 -2
- package/dist/{ReportQuery-_Vdt3CnA.js → ReportQuery-WK5BPREv.js} +1 -1
- package/dist/{ReportQueryFrom-BWKddh9p.js → ReportQueryFrom-BcbRvwcp.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DbdGwioi.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DEXuBXHO.js} +1 -1
- package/dist/{ReportTemplate-DS-DGao8.js → ReportTemplate-DAk0qIJq.js} +1 -1
- package/dist/{Role-BM0kEu7y.js → Role-sSVr8txF.js} +3 -3
- package/dist/{RoleAssign-Cp05HUWn.js → RoleAssign-gg9O7P1_.js} +3 -3
- package/dist/{RolePanel-hXeshcCZ.js → RolePanel-D2M-Wc-X.js} +1 -1
- package/dist/{RolePanel-DeuHpCdK.js → RolePanel-DsyVPcoq.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CNyWCIJm.js → RolePanel.vue_vue_type_script_setup_true_lang-C4fuYoIS.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Bf0pSCTN.js → RolePanel.vue_vue_type_script_setup_true_lang-RR24avbF.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BiKe39xG.js → ScrollPanel.vue_vue_type_style_index_0_lang-6v5vVx-e.js} +1 -1
- package/dist/{Staff-DLltLFMl.js → Staff-DTDrOuE0.js} +3 -3
- package/dist/{StaffInfo-pfELaI_i.js → StaffInfo-B2H_6lwQ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BKKdNggm.js → StaffInfo.vue_vue_type_script_setup_true_lang-BkDRBn9p.js} +1 -1
- package/dist/{StaffPanel-D3Pk28JN.js → StaffPanel-dpmnAD0A.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-D9HLeyKe.js → StaffPanel.vue_vue_type_script_setup_true_lang-dgV9B37R.js} +2 -2
- package/dist/{SysUser-BOh7ejz3.js → SysUser-BjpQdzSo.js} +2 -2
- package/dist/{SysUserPanel-RElVo0BV.js → SysUserPanel-C5IHO7JB.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DoW0v5y9.js → SysUserPanel.vue_vue_type_script_setup_true_lang-HvJ4Hrps.js} +1 -1
- package/dist/{SystemMenu-DZneBqKO.js → SystemMenu-D7W9E8SF.js} +52 -49
- package/dist/{UserInfo-D9qo_f_9.js → UserInfo-D_lbSbUh.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CY4dtMnZ.js → UserInfo.vue_vue_type_style_index_0_lang-NLl8VJ5I.js} +1 -1
- package/dist/{childView-CmlGxD9G.js → childView-B1XV2jZ7.js} +1 -1
- package/dist/{childView-DStrPumM.js → childView-LQllG9vw.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Dtv1rrdP.js → childView.vue_vue_type_style_index_0_lang-DN19uWOO.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9k694be.js → childView.vue_vue_type_style_index_0_lang-Dpo_nfX9.js} +1 -1
- package/dist/{code-rule-CxzgQDH_.js → code-rule-DkKKcosO.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-kbyRTz97.js → cron-task-bGVrr2Jg.js} +1 -1
- package/dist/{frameView-BawZlIge.js → frameView-B3n2JXTj.js} +1 -1
- package/dist/{index-nkstuOxE.js → index-DYT0k5Sg.js} +3562 -961
- package/dist/{layoutView-DVGqPJmA.js → layoutView-bh22tftc.js} +144 -145
- package/dist/{log-in-j2PZGLQH.js → log-in-Dk_xyZ_l.js} +1 -1
- package/dist/{log-out-DIJU-Vpf.js → log-out-CERhlqtr.js} +1 -1
- package/dist/{login-DvmHMcgD.js → login-C5EJWWLi.js} +124 -134
- package/dist/{lov-view-C-dIDLh8.js → lov-view-BNGHpq-d.js} +2 -2
- package/dist/{menuInfo-D0mcKmrT.js → menuInfo-2DBTH6Vf.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CbwS7aGl.js → menuInfo.vue_vue_type_style_index_0_lang-KtLS__XM.js} +37 -35
- package/dist/{pda-app-BjvyTDkw.js → pda-app-BzmHIT9A.js} +1 -1
- package/dist/{resource-BknIxaTQ.js → resource-D6UY8vN8.js} +1 -1
- package/dist/{su-welcome-CwtvamZC.js → su-welcome-okexK2W2.js} +1 -1
- package/dist/{sys-config-CCKhGcCL.js → sys-config-9F_C1LzR.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +73 -65
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/index.ts +2 -1
- package/src/layout/components/lay-content/index.vue +136 -143
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
- package/src/layout/layoutView.vue +7 -6
- package/src/main.ts +2 -2
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +19 -1
- package/src/style/vxetable.scss +356 -348
- package/src/views/system/menu/AuthorityPanel.vue +142 -140
- package/src/views/system/menu/SystemMenu.vue +10 -1
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/ulogin/login.vue +34 -23
|
@@ -1,143 +1,136 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2021-12-23 17:33:20
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
6
|
-
* @Description: 主页面
|
|
7
|
-
-->
|
|
8
|
-
<script setup lang="ts">
|
|
9
|
-
import { h, computed, Transition, defineComponent } from 'vue';
|
|
10
|
-
import { useGlobal } from '@utogether/utils';
|
|
11
|
-
import { useI18n } from 'vue-i18n';
|
|
12
|
-
import { useTags } from '../../hooks/useTag';
|
|
13
|
-
import backTop from '../../../assets/svg/back_top.svg?component';
|
|
14
|
-
import { usePermissionStoreHook } from '../../../store/modules/permission';
|
|
15
|
-
|
|
16
|
-
const props = defineProps({
|
|
17
|
-
fixedHeader: Boolean
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
const { showModel } = useTags();
|
|
21
|
-
const { t } = useI18n();
|
|
22
|
-
const { $storage, $config } = useGlobal();
|
|
23
|
-
|
|
24
|
-
const keepAlive = computed(() => {
|
|
25
|
-
return $config?.KeepAlive;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const transitions = computed(() => {
|
|
29
|
-
return route => {
|
|
30
|
-
return route.meta.transition;
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const hideTabs = computed(() => {
|
|
35
|
-
return $storage?.configure.hideTabs;
|
|
36
|
-
});
|
|
37
|
-
const layout = computed(() => {
|
|
38
|
-
return $storage?.layout.layout === 'vertical';
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const getSectionStyle = computed(() => {
|
|
42
|
-
// 在iframe中默认就是审批
|
|
43
|
-
return window.top === window.self
|
|
44
|
-
? [
|
|
45
|
-
hideTabs.value && layout ? 'padding-top: 48px;' : '',
|
|
46
|
-
!hideTabs.value && layout
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.app-main {
|
|
127
|
-
position: relative;
|
|
128
|
-
width: 100%;
|
|
129
|
-
height: 100vh;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.main-content {
|
|
140
|
-
/* padding: 6px; */
|
|
141
|
-
height: 100%;
|
|
142
|
-
}
|
|
143
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-12-23 17:33:20
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-12-18 09:35:26
|
|
6
|
+
* @Description: 主页面
|
|
7
|
+
-->
|
|
8
|
+
<script setup lang="ts">
|
|
9
|
+
import { h, computed, Transition, defineComponent } from 'vue';
|
|
10
|
+
import { useGlobal } from '@utogether/utils';
|
|
11
|
+
import { useI18n } from 'vue-i18n';
|
|
12
|
+
import { useTags } from '../../hooks/useTag';
|
|
13
|
+
import backTop from '../../../assets/svg/back_top.svg?component';
|
|
14
|
+
import { usePermissionStoreHook } from '../../../store/modules/permission';
|
|
15
|
+
|
|
16
|
+
const props = defineProps({
|
|
17
|
+
fixedHeader: Boolean
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const { showModel } = useTags();
|
|
21
|
+
const { t } = useI18n();
|
|
22
|
+
const { $storage, $config } = useGlobal();
|
|
23
|
+
|
|
24
|
+
const keepAlive = computed(() => {
|
|
25
|
+
return $config?.KeepAlive;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const transitions = computed(() => {
|
|
29
|
+
return route => {
|
|
30
|
+
return route.meta.transition;
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const hideTabs = computed(() => {
|
|
35
|
+
return $storage?.configure.hideTabs;
|
|
36
|
+
});
|
|
37
|
+
const layout = computed(() => {
|
|
38
|
+
return $storage?.layout.layout === 'vertical';
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const getSectionStyle = computed(() => {
|
|
42
|
+
// 在iframe中默认就是审批
|
|
43
|
+
return window.top === window.self
|
|
44
|
+
? [
|
|
45
|
+
hideTabs.value && layout ? 'padding-top: 48px;' : '',
|
|
46
|
+
!hideTabs.value && layout ? (showModel.value == 'chrome' ? 'padding-top: 85px;' : 'padding-top: 81px;') : '',
|
|
47
|
+
hideTabs.value && !layout.value ? 'padding-top: 48px' : '',
|
|
48
|
+
!hideTabs.value && !layout.value
|
|
49
|
+
? showModel.value == 'chrome'
|
|
50
|
+
? 'padding-top: 85px;'
|
|
51
|
+
: 'padding-top: 81px;'
|
|
52
|
+
: '',
|
|
53
|
+
props.fixedHeader ? '' : 'padding-top: 0;'
|
|
54
|
+
]
|
|
55
|
+
: 'padding-top: 0';
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const transitionMain = defineComponent({
|
|
59
|
+
props: {
|
|
60
|
+
route: {
|
|
61
|
+
type: undefined,
|
|
62
|
+
required: true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
render() {
|
|
66
|
+
const transitionName = transitions.value(this.route)?.name || 'fade-transform';
|
|
67
|
+
const enterTransition = transitions.value(this.route)?.enterTransition;
|
|
68
|
+
const leaveTransition = transitions.value(this.route)?.leaveTransition;
|
|
69
|
+
return h(
|
|
70
|
+
Transition,
|
|
71
|
+
{
|
|
72
|
+
name: enterTransition ? 'pure-classes-transition' : transitionName,
|
|
73
|
+
enterActiveClass: enterTransition ? `animate__animated ${enterTransition}` : undefined,
|
|
74
|
+
leaveActiveClass: leaveTransition ? `animate__animated ${leaveTransition}` : undefined,
|
|
75
|
+
mode: 'out-in',
|
|
76
|
+
appear: true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
default: () => [this.$slots.default()]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<template>
|
|
87
|
+
<section :class="[props.fixedHeader ? 'app-main' : 'app-main-nofixed-header']" :style="getSectionStyle">
|
|
88
|
+
<router-view>
|
|
89
|
+
<template #default="{ Component, route }">
|
|
90
|
+
<el-scrollbar v-if="props.fixedHeader">
|
|
91
|
+
<template #default>
|
|
92
|
+
<div class="h-full">
|
|
93
|
+
<el-backtop :title="t('message.udp.backtop')" style="z-index: 100" target=".app-main .el-scrollbar__wrap">
|
|
94
|
+
<backTop />
|
|
95
|
+
</el-backtop>
|
|
96
|
+
<transitionMain :route="route">
|
|
97
|
+
<keep-alive v-if="keepAlive" :include="usePermissionStoreHook().cachePageList">
|
|
98
|
+
<component :is="Component" :key="route.fullPath" class="main-content" />
|
|
99
|
+
</keep-alive>
|
|
100
|
+
<component :is="Component" v-else :key="route.fullPath" class="main-content" />
|
|
101
|
+
</transitionMain>
|
|
102
|
+
</div>
|
|
103
|
+
</template>
|
|
104
|
+
</el-scrollbar>
|
|
105
|
+
<div v-else>
|
|
106
|
+
<transitionMain :route="route">
|
|
107
|
+
<keep-alive v-if="keepAlive" :include="usePermissionStoreHook().cachePageList">
|
|
108
|
+
<component :is="Component" :key="route.fullPath" class="main-content" />
|
|
109
|
+
</keep-alive>
|
|
110
|
+
<component :is="Component" v-else :key="route.fullPath" class="main-content" />
|
|
111
|
+
</transitionMain>
|
|
112
|
+
</div>
|
|
113
|
+
</template>
|
|
114
|
+
</router-view>
|
|
115
|
+
</section>
|
|
116
|
+
</template>
|
|
117
|
+
|
|
118
|
+
<style scoped>
|
|
119
|
+
.app-main {
|
|
120
|
+
position: relative;
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 100vh;
|
|
123
|
+
overflow-x: hidden;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.app-main-nofixed-header {
|
|
127
|
+
position: relative;
|
|
128
|
+
width: 100%;
|
|
129
|
+
min-height: 100vh;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.main-content {
|
|
133
|
+
/* padding: 6px; */
|
|
134
|
+
height: 100%;
|
|
135
|
+
}
|
|
136
|
+
</style>
|
|
@@ -19,7 +19,7 @@ const props = defineProps({
|
|
|
19
19
|
const sysConfig = storageLocal.getItem(kSYSCONFIG) || {};
|
|
20
20
|
|
|
21
21
|
const title = sysConfig['title'];
|
|
22
|
-
const showTitle = sysConfig['showTitle'];
|
|
22
|
+
const showTitle = ref(sysConfig['showTitle']);
|
|
23
23
|
const logo = ref(sysConfig['logo'] || utogether);
|
|
24
24
|
</script>
|
|
25
25
|
|
|
@@ -132,8 +132,7 @@ const layoutHeader = defineComponent({
|
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
default: () => [
|
|
135
|
-
!settingHook.hiddenSideBar &&
|
|
136
|
-
(layout.value.includes('vertical') || layout.value.includes('mix'))
|
|
135
|
+
!settingHook.hiddenSideBar && (layout.value.includes('vertical') || layout.value.includes('mix'))
|
|
137
136
|
? h(navbar)
|
|
138
137
|
: null,
|
|
139
138
|
!settingHook.hiddenSideBar && layout.value.includes('horizontal') ? h(Horizontal) : null,
|
|
@@ -153,9 +152,7 @@ const layoutHeader = defineComponent({
|
|
|
153
152
|
@click="useAppStoreHook().toggleSideBar()"
|
|
154
153
|
/>
|
|
155
154
|
<Vertical
|
|
156
|
-
v-show="
|
|
157
|
-
inIframe && !settingHook.hiddenSideBar && (layout.includes('vertical') || layout.includes('mix'))
|
|
158
|
-
"
|
|
155
|
+
v-show="inIframe && !settingHook.hiddenSideBar && (layout.includes('vertical') || layout.includes('mix'))"
|
|
159
156
|
/>
|
|
160
157
|
<div :class="['main-container', settingHook.hiddenSideBar ? 'main-hidden' : '']">
|
|
161
158
|
<div v-if="set.fixedHeader">
|
|
@@ -166,7 +163,11 @@ const layoutHeader = defineComponent({
|
|
|
166
163
|
<el-scrollbar v-else>
|
|
167
164
|
<template #default>
|
|
168
165
|
<div class="h-full">
|
|
169
|
-
<el-backtop
|
|
166
|
+
<el-backtop
|
|
167
|
+
:title="t('message.udp.backtop')"
|
|
168
|
+
style="z-index: 100"
|
|
169
|
+
target=".main-container .el-scrollbar__wrap"
|
|
170
|
+
>
|
|
170
171
|
<backTop />
|
|
171
172
|
</el-backtop>
|
|
172
173
|
<layout-header v-if="inIframe" />
|
package/src/main.ts
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
// utLov2,
|
|
37
37
|
// UtDivider,
|
|
38
38
|
// UtModalForm2
|
|
39
|
-
|
|
39
|
+
FormUpload2,
|
|
40
40
|
// UtForm2,
|
|
41
41
|
UtGrid2
|
|
42
42
|
// UtContent2
|
|
@@ -95,7 +95,7 @@ const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
|
95
95
|
// app.component('UtForm2', UtForm2);
|
|
96
96
|
// app.component('UtModalGrid2', UtModalGrid2);
|
|
97
97
|
// .component('UtIconSelect', UtIconSelect)
|
|
98
|
-
|
|
98
|
+
app.component('FormUpload2', FormUpload2);
|
|
99
99
|
// .component('UtCalendar', UtCalendar)
|
|
100
100
|
// app.component('UtContent2', UtContent2);
|
|
101
101
|
// app.component('UtStampBadge2', UtStampBadge2);
|
package/src/plugins/i18n/zh.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: levi7754 levi7754@163.com
|
|
3
3
|
* @Date: 2024-06-05 14:32:03
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-12-
|
|
5
|
+
* @LastEditTime: 2025-12-09 08:57:02
|
|
6
6
|
* @FilePath: /udp-front/packages/udp-core/src/plugins/vxe-table/index.ts
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: wei.li
|
|
3
3
|
* @Date: 2021-12-01 09:18:50
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-12-
|
|
5
|
+
* @LastEditTime: 2025-12-15 16:03:35
|
|
6
6
|
* @Description: file content
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -605,6 +605,7 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
|
|
|
605
605
|
renderTableEdit(renderOpts: VxeColumnPropTypes.EditRender, params) {
|
|
606
606
|
const { row, column } = params;
|
|
607
607
|
const { props, events } = renderOpts;
|
|
608
|
+
debugger;
|
|
608
609
|
|
|
609
610
|
/**
|
|
610
611
|
* @description: 点击清空按钮时触发
|
|
@@ -629,6 +630,23 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
|
|
|
629
630
|
|
|
630
631
|
// 可编辑显示模板
|
|
631
632
|
renderTableCell(renderOpts, params) {
|
|
633
|
+
const { row, column } = params;
|
|
634
|
+
const { props } = renderOpts;
|
|
635
|
+
debugger;
|
|
636
|
+
return [
|
|
637
|
+
<form-upload2
|
|
638
|
+
record={row}
|
|
639
|
+
field={column.field}
|
|
640
|
+
size="mini"
|
|
641
|
+
{...props}
|
|
642
|
+
mode="image"
|
|
643
|
+
render-mode="column"
|
|
644
|
+
data-status="detail"
|
|
645
|
+
/>
|
|
646
|
+
];
|
|
647
|
+
},
|
|
648
|
+
// 默认显示模板
|
|
649
|
+
renderDefault(renderOpts, params) {
|
|
632
650
|
const { row, column } = params;
|
|
633
651
|
const { props } = renderOpts;
|
|
634
652
|
return [
|