create-jnrs-template-vue 1.2.4 → 1.2.5
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/jnrs-template-vue/README.md +1 -1
- package/jnrs-template-vue/package.json +4 -4
- package/jnrs-template-vue/src/assets/styles/common.scss +12 -0
- package/jnrs-template-vue/src/assets/styles/init.scss +0 -12
- package/jnrs-template-vue/src/components/common/CardTable.vue +2 -5
- package/jnrs-template-vue/src/components/common/ImageView.vue +1 -1
- package/jnrs-template-vue/src/components/common/PdfView.vue +1 -1
- package/jnrs-template-vue/src/layout/BlankLayout.vue +2 -2
- package/jnrs-template-vue/src/layout/RouterTabs.vue +3 -13
- package/jnrs-template-vue/src/layout/SideMenu.vue +1 -1
- package/jnrs-template-vue/src/layout/TopHeader.vue +1 -1
- package/jnrs-template-vue/src/locales/zhCn.ts +2 -2
- package/jnrs-template-vue/src/views/demos/crud/index.vue +2 -2
- package/jnrs-template-vue/src/views/login/index.vue +25 -14
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jnrs-template-vue",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "JNRS
|
|
3
|
+
"version": "1.2.5",
|
|
4
|
+
"description": "JNRS 信息化管理系统",
|
|
5
5
|
"author": "Talia-Tan",
|
|
6
6
|
"private": true,
|
|
7
7
|
"type": "module",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@element-plus/icons-vue": "^2.3.2",
|
|
22
|
-
"@jnrs/shared": "1.1.
|
|
23
|
-
"@jnrs/vue-core": "1.2.
|
|
22
|
+
"@jnrs/shared": "1.1.10",
|
|
23
|
+
"@jnrs/vue-core": "1.2.5",
|
|
24
24
|
"@vueuse/core": "^14.1.0",
|
|
25
25
|
"element-plus": "^2.11.9",
|
|
26
26
|
"pinia": "^3.0.4",
|
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
* 业务功能通用样式表
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
/*
|
|
6
|
+
* 禁止用户选中页面元素
|
|
7
|
+
*/
|
|
8
|
+
.no_select {
|
|
9
|
+
-khtml-user-drag: none;
|
|
10
|
+
-webkit-user-drag: none;
|
|
11
|
+
-webkit-user-select: none;
|
|
12
|
+
-moz-user-select: none;
|
|
13
|
+
-ms-user-select: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
5
17
|
.topBarBtn {
|
|
6
18
|
position: relative;
|
|
7
19
|
margin: 0 8px;
|
|
@@ -39,15 +39,3 @@ body {
|
|
|
39
39
|
min-width: 1280px;
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
/*
|
|
44
|
-
* 禁止用户选中页面元素
|
|
45
|
-
*/
|
|
46
|
-
.no-select {
|
|
47
|
-
-khtml-user-drag: none;
|
|
48
|
-
-webkit-user-drag: none;
|
|
49
|
-
-webkit-user-select: none;
|
|
50
|
-
-moz-user-select: none;
|
|
51
|
-
-ms-user-select: none;
|
|
52
|
-
user-select: none;
|
|
53
|
-
}
|
|
@@ -37,10 +37,9 @@ const getTable = debounce(async () => {
|
|
|
37
37
|
})
|
|
38
38
|
tableData.value = res.list.map((item) => ({
|
|
39
39
|
...item,
|
|
40
|
-
newImageFiles: item.imageDocument?.attachments
|
|
41
|
-
newAttachmentFile: item.attachmentDocument?.attachments
|
|
40
|
+
newImageFiles: item.imageDocument?.attachments,
|
|
41
|
+
newAttachmentFile: item.attachmentDocument?.attachments
|
|
42
42
|
}))
|
|
43
|
-
console.log(456)
|
|
44
43
|
total.value = res.count
|
|
45
44
|
} catch (error) {
|
|
46
45
|
console.error(error)
|
|
@@ -50,8 +49,6 @@ const getTable = debounce(async () => {
|
|
|
50
49
|
}, 300)
|
|
51
50
|
|
|
52
51
|
onActivated(() => {
|
|
53
|
-
console.log(123)
|
|
54
|
-
|
|
55
52
|
getTable()
|
|
56
53
|
})
|
|
57
54
|
</script>
|
|
@@ -99,19 +99,9 @@ const handleTabClick = (tab: TabsPaneContext) => {
|
|
|
99
99
|
</script>
|
|
100
100
|
|
|
101
101
|
<template>
|
|
102
|
-
<div class="routerTabs">
|
|
103
|
-
<el-tabs
|
|
104
|
-
v-
|
|
105
|
-
type="card"
|
|
106
|
-
@tab-remove="removeTab"
|
|
107
|
-
@tab-click="handleTabClick"
|
|
108
|
-
>
|
|
109
|
-
<el-tab-pane
|
|
110
|
-
v-for="item in menuTabs"
|
|
111
|
-
:key="item.name"
|
|
112
|
-
:name="item.name"
|
|
113
|
-
:closable="!isHome(item)"
|
|
114
|
-
>
|
|
102
|
+
<div class="routerTabs no_select">
|
|
103
|
+
<el-tabs v-model="activeRouterName" type="card" @tab-remove="removeTab" @tab-click="handleTabClick">
|
|
104
|
+
<el-tab-pane v-for="item in menuTabs" :key="item.name" :name="item.name" :closable="!isHome(item)">
|
|
115
105
|
<template #label>
|
|
116
106
|
<span>{{ tabLabel(item) }}</span>
|
|
117
107
|
</template>
|
|
@@ -13,7 +13,7 @@ const route = useRoute()
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
|
-
<el-aside class="sideMenu">
|
|
16
|
+
<el-aside class="sideMenu no_select">
|
|
17
17
|
<div class="logo" :class="{ logo_collapse: menuCollapse }">
|
|
18
18
|
<img class="logo_img" src="@/assets/images/common/jnrs-white.svg" alt="jnrs" />
|
|
19
19
|
<span class="logo_text">{{ $t('main.title') }}</span>
|
|
@@ -77,8 +77,8 @@ const getTable = debounce(async () => {
|
|
|
77
77
|
})
|
|
78
78
|
tableData.value = res.list.map((item) => ({
|
|
79
79
|
...item,
|
|
80
|
-
newImageFiles: item.imageDocument?.attachments
|
|
81
|
-
newAttachmentFile: item.attachmentDocument?.attachments
|
|
80
|
+
newImageFiles: item.imageDocument?.attachments,
|
|
81
|
+
newAttachmentFile: item.attachmentDocument?.attachments
|
|
82
82
|
}))
|
|
83
83
|
total.value = res.count
|
|
84
84
|
} catch (error) {
|
|
@@ -81,7 +81,7 @@ const submitForm = async () => {
|
|
|
81
81
|
</script>
|
|
82
82
|
|
|
83
83
|
<template>
|
|
84
|
-
<div class="
|
|
84
|
+
<div class="login no_select">
|
|
85
85
|
<div class="topFixed_right">
|
|
86
86
|
<el-icon class="topBarBtn" title="全局偏好设置" @click="showGlobalSetting()">
|
|
87
87
|
<el-icon><Setting /></el-icon>
|
|
@@ -131,7 +131,7 @@ const submitForm = async () => {
|
|
|
131
131
|
</el-form>
|
|
132
132
|
<div class="greeting">{{ $t('login.greeting') }}</div>
|
|
133
133
|
</div>
|
|
134
|
-
<div class="
|
|
134
|
+
<div class="copyright">Powered by JNRS TECH 2026</div>
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
137
137
|
</div>
|
|
@@ -139,7 +139,7 @@ const submitForm = async () => {
|
|
|
139
139
|
</template>
|
|
140
140
|
|
|
141
141
|
<style scoped lang="scss">
|
|
142
|
-
.
|
|
142
|
+
.login {
|
|
143
143
|
position: relative;
|
|
144
144
|
width: 100%;
|
|
145
145
|
height: 100%;
|
|
@@ -169,8 +169,6 @@ const submitForm = async () => {
|
|
|
169
169
|
align-items: center;
|
|
170
170
|
justify-content: space-around;
|
|
171
171
|
padding: 8px 16px;
|
|
172
|
-
// background: var(--jnrs-card-primary);
|
|
173
|
-
// border-radius: 10px;
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
.card {
|
|
@@ -184,7 +182,6 @@ const submitForm = async () => {
|
|
|
184
182
|
height: 500px;
|
|
185
183
|
border-radius: 15px;
|
|
186
184
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
187
|
-
background: radial-gradient(circle at center, #232a4c, #000);
|
|
188
185
|
overflow: hidden;
|
|
189
186
|
|
|
190
187
|
.card_left {
|
|
@@ -193,9 +190,8 @@ const submitForm = async () => {
|
|
|
193
190
|
align-items: center;
|
|
194
191
|
width: 50%;
|
|
195
192
|
height: 100%;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
// background-size: 100% 100%;
|
|
193
|
+
background: radial-gradient(circle at center, #232a4c, #000);
|
|
194
|
+
box-shadow: 3px 0 6px rgba(0, 0, 0, 0.3);
|
|
199
195
|
|
|
200
196
|
.card_left_mid {
|
|
201
197
|
width: 50%;
|
|
@@ -233,9 +229,8 @@ const submitForm = async () => {
|
|
|
233
229
|
top: 0;
|
|
234
230
|
width: 100%;
|
|
235
231
|
height: 100%;
|
|
236
|
-
|
|
237
|
-
backdrop-filter: blur(
|
|
238
|
-
-webkit-backdrop-filter: blur(4px);
|
|
232
|
+
backdrop-filter: blur(2px);
|
|
233
|
+
-webkit-backdrop-filter: blur(2px);
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
.card_right_mid {
|
|
@@ -289,12 +284,28 @@ const submitForm = async () => {
|
|
|
289
284
|
}
|
|
290
285
|
}
|
|
291
286
|
|
|
292
|
-
.
|
|
287
|
+
.copyright {
|
|
293
288
|
position: absolute;
|
|
294
289
|
bottom: 5px;
|
|
295
290
|
font-size: 12px;
|
|
296
291
|
text-transform: uppercase;
|
|
297
|
-
color:
|
|
292
|
+
color: var(--jnrs-font-primary-01);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.light {
|
|
298
|
+
.card_right {
|
|
299
|
+
&::after {
|
|
300
|
+
background: var(--jnrs-card-primary-06);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.dark {
|
|
306
|
+
.card_right {
|
|
307
|
+
&::after {
|
|
308
|
+
background: var(--jnrs-card-primary-03);
|
|
298
309
|
}
|
|
299
310
|
}
|
|
300
311
|
}
|