npmapps 1.0.25 → 1.0.26
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/app/.codegraph/daemon.pid +6 -0
- package/app/.eslintrc.js +19 -0
- package/app/README.md +24 -0
- package/app/babel.config.js +5 -0
- package/app/devtool-windows-amd64.zip +0 -0
- package/app/docs/superpowers/plans/2026-05-29-quill-editor.md +836 -0
- package/app/docs/superpowers/specs/2026-05-29-quill-editor-design.md +210 -0
- package/app/docs/superpowers/specs/2026-06-06-lazy-cascader-design.md +400 -0
- package/app/jsconfig.json +19 -0
- package/app/package-lock.json +21347 -0
- package/app/package.json +63 -0
- package/app/postcss.config.js +10 -0
- package/app/public/favicon.ico +0 -0
- package/app/public/index.html +17 -0
- package/app/public//344/270/200/351/224/256/351/273/221/346/232/227.html +136 -0
- package/app/src/App.vue +110 -0
- package/app/src/assets/bpmn-camunda.jpg +0 -0
- package/app/src/assets/css/diagram.less +17 -0
- package/app/src/assets/icon/Icon.less +31 -0
- package/app/src/assets/icon/font/app-codes.css +26 -0
- package/app/src/assets/icon/font/app.eot +0 -0
- package/app/src/assets/icon/font/app.svg +60 -0
- package/app/src/assets/icon/font/app.ttf +0 -0
- package/app/src/assets/icon/font/app.woff +0 -0
- package/app/src/assets/icon/font/app.woff2 +0 -0
- package/app/src/assets/icon/font/config.json +248 -0
- package/app/src/assets/icon/font/source/raw/align-bottom-tool.svg +30 -0
- package/app/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +85 -0
- package/app/src/assets/icon/font/source/raw/align-left-tool.svg +84 -0
- package/app/src/assets/icon/font/source/raw/align-right-tool.svg +80 -0
- package/app/src/assets/icon/font/source/raw/align-top-tool.svg +84 -0
- package/app/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +89 -0
- package/app/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +95 -0
- package/app/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +99 -0
- package/app/src/assets/icon/font/source/raw/set-color-tool.svg +111 -0
- package/app/src/assets/icon/font/source/symbols/align-bottom-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-left-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-right-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-top-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +30 -0
- package/app/src/assets/icon/font/source/symbols/set-color-tool.svg +63 -0
- package/app/src/assets/logo.png +0 -0
- package/app/src/components/EllTable/README.md +70 -0
- package/app/src/components/EllTable/article.md +184 -0
- package/app/src/components/EllTable/index.js +213 -0
- package/app/src/components/FormulaEditor/FunctionSelector.vue +123 -0
- package/app/src/components/FormulaEditor/OperatorSelector.vue +184 -0
- package/app/src/components/FormulaEditor/ParameterSelector.vue +123 -0
- package/app/src/components/FormulaEditor/api.js +69 -0
- package/app/src/components/FormulaEditor/index.vue +435 -0
- package/app/src/components/HelloWorld.vue +58 -0
- package/app/src/components/PageHeader/index.vue +158 -0
- package/app/src/components/Splitter/README.md +144 -0
- package/app/src/components/Splitter/example.vue +88 -0
- package/app/src/components/Splitter/index.vue +203 -0
- package/app/src/components/diagram/ToolBar.vue +357 -0
- package/app/src/components/diagram/customTranslate/customTranslate.js +12 -0
- package/app/src/components/diagram/customTranslate/translationsGerman.js +241 -0
- package/app/src/components/diagram/index.vue +261 -0
- package/app/src/components/diagram/xmlData.js +29 -0
- package/app/src/directives/filldown.js +155 -0
- package/app/src/directives/filldownTable.js +291 -0
- package/app/src/main.js +40 -0
- package/app/src/router/index.js +63 -0
- package/app/src/store/index.js +23 -0
- package/app/src/utils/winBox.js +23 -0
- package/app/src/views/Extend/A.vue +12 -0
- package/app/src/views/Extend/B.vue +10 -0
- package/app/src/views/Extend/MagicalComponentsForELFormItem.vue +87 -0
- package/app/src/views/Extend/index.vue +59 -0
- package/app/src/views/Extend/tableMouseHorizontalWheel.vue +193 -0
- package/app/src/views/Home.vue +37 -0
- package/app/src/views/RouterJump.vue +155 -0
- package/app/src/views/css.vue +57 -0
- package/app/src/views/cssComponents/EllipsisText.vue +83 -0
- package/app/src/views/cssComponents/HoverCard.vue +79 -0
- package/app/src/views/cssComponents/TableHover.vue +140 -0
- package/app/src/views/cssComponents/inputSlo.vue +52 -0
- package/app/src/views/cssComponents/tableFixed.vue +158 -0
- package/app/src/views/echarts/echart-dome.vue +82 -0
- package/app/src/views/echarts/index.vue +118 -0
- package/app/src/views/echarts/pei3d.vue +667 -0
- package/app/src/views/element/bpmn/index.vue +18 -0
- package/app/src/views/element/components/attendanceCycle/index.vue +131 -0
- package/app/src/views/element/components/attendanceGroup/index.vue +147 -0
- package/app/src/views/element/components/attendancePersonnel/index.vue +158 -0
- package/app/src/views/element/components/companyCalendar/index.vue +147 -0
- package/app/src/views/element/components/shift/index.vue +147 -0
- package/app/src/views/element/components/shiftRotationSystem/index.vue +147 -0
- package/app/src/views/element/elTableJsx/columnManagement.vue +340 -0
- package/app/src/views/element/elTableJsx/dialogInput.vue +71 -0
- package/app/src/views/element/elTableJsx/elTableJsx.vue +1826 -0
- package/app/src/views/element/elTableJsx/formTable.vue +598 -0
- package/app/src/views/element/elTableJsx/index.vue +29 -0
- package/app/src/views/element/elTableJsx/simpleTable.vue +192 -0
- package/app/src/views/element/elTableJsx.zip +0 -0
- package/app/src/views/element/index.vue +44 -0
- package/app/src/views/element/lazyCascader/LazyCascader.vue +302 -0
- package/app/src/views/element/lazyCascader/data.js +205 -0
- package/app/src/views/element/lazyCascader/index.vue +315 -0
- package/app/src/views/element/quillEditor/README.md +163 -0
- package/app/src/views/element/quillEditor/example.vue +314 -0
- package/app/src/views/element/quillEditor/index.vue +409 -0
- package/app/src/views/element/quillEditor/toolbar.js +122 -0
- package/app/vue.config.js +15 -0
- package/package.json +1 -1
- package/app/wujie-vue3-child/.claude/settings.local.json +0 -8
- package/app/wujie-vue3-child/.vscode/extensions.json +0 -3
- package/app/wujie-vue3-child/PROJECT_MEMORY.md +0 -427
- package/app/wujie-vue3-child/README.md +0 -5
- package/app/wujie-vue3-child/index.html +0 -13
- package/app/wujie-vue3-child/package-lock.json +0 -5744
- package/app/wujie-vue3-child/package.json +0 -28
- package/app/wujie-vue3-child/public/vite.svg +0 -1
- package/app/wujie-vue3-child/src/App.vue +0 -130
- package/app/wujie-vue3-child/src/assets/vue.svg +0 -1
- package/app/wujie-vue3-child/src/components/HelloWorld.vue +0 -43
- package/app/wujie-vue3-child/src/components/SmartAnchorTabs/index.jsx +0 -224
- package/app/wujie-vue3-child/src/components/SmartAnchorTabs/style.css +0 -154
- package/app/wujie-vue3-child/src/components/tags-view.vue +0 -193
- package/app/wujie-vue3-child/src/components/tags-view1.vue +0 -131
- package/app/wujie-vue3-child/src/directives/aiLoading.js +0 -182
- package/app/wujie-vue3-child/src/hooks/useClickOutside.js +0 -11
- package/app/wujie-vue3-child/src/hooks/useTableDragSort.js +0 -28
- package/app/wujie-vue3-child/src/main.js +0 -18
- package/app/wujie-vue3-child/src/router/index.js +0 -104
- package/app/wujie-vue3-child/src/store/tagsViewStroe.js +0 -34
- package/app/wujie-vue3-child/src/style.css +0 -171
- package/app/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.jsx +0 -108
- package/app/wujie-vue3-child/src/views/aiCoach/collapseExpand/index.module.scss +0 -97
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/README.md +0 -836
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/REFLEX_EXAMPLES.md +0 -728
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.jsx +0 -687
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentPersonnelSelector.module.scss +0 -560
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.jsx +0 -570
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelector.module.scss +0 -330
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.jsx +0 -378
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/DepartmentSelectorV2.module.scss +0 -228
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.jsx +0 -399
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/OptionsSelector.module.scss +0 -252
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.jsx +0 -585
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PersonnelSelector.module.scss +0 -331
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.jsx +0 -392
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/PopoverSelector.module.scss +0 -39
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/README.md +0 -248
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/components/SelectorTrigger.jsx +0 -194
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/index.jsx +0 -1459
- package/app/wujie-vue3-child/src/views/aiCoach/departmentPersonnel/mockData.js +0 -301
- package/app/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.jsx +0 -182
- package/app/wujie-vue3-child/src/views/aiCoach/dialogueSegment/index.module.scss +0 -28
- package/app/wujie-vue3-child/src/views/aiCoach/index.jsx +0 -375
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.jsx +0 -121
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ChartsPanel/index.module.scss +0 -76
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/DonutChart/index.jsx +0 -104
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.jsx +0 -75
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/PracticeTable/index.module.scss +0 -12
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.jsx +0 -62
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankBarChart/index.module.scss +0 -43
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.jsx +0 -29
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingGroup/index.module.scss +0 -5
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.jsx +0 -58
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/RankingList/index.module.scss +0 -85
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.jsx +0 -92
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/ScriptStatsPanel/index.module.scss +0 -56
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.jsx +0 -40
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/StatCardsRow/index.module.scss +0 -53
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsDonut.jsx +0 -106
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/components/echarts/EchartsRankBar.jsx +0 -132
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.jsx +0 -176
- package/app/wujie-vue3-child/src/views/aiCoach/practiceStatus/index.module.scss +0 -96
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.jsx +0 -162
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/CoachReport/index.module.scss +0 -16
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.jsx +0 -29
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ComprehensiveEvaluation/index.module.scss +0 -25
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.jsx +0 -106
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueBubble/index.module.scss +0 -164
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.jsx +0 -182
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DialogueRecord/index.module.scss +0 -203
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.jsx +0 -145
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionDetail/index.module.scss +0 -126
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.jsx +0 -67
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/DimensionScores/index.module.scss +0 -105
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.jsx +0 -81
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ReportHeader/index.module.scss +0 -47
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.jsx +0 -64
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/RoleInfo/index.module.scss +0 -85
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.jsx +0 -39
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/ScoreBadge/index.module.scss +0 -44
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.jsx +0 -83
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/components/SubDimensionItem/index.module.scss +0 -101
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/index.jsx +0 -50
- package/app/wujie-vue3-child/src/views/aiCoach/reportDetail/index.module.scss +0 -25
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/index.jsx +0 -196
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/index.module.scss +0 -41
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.jsx +0 -183
- package/app/wujie-vue3-child/src/views/aiCoach/scriptTable/inputColumn/index.module.scss +0 -115
- package/app/wujie-vue3-child/src/views/child-to-parent.vue +0 -117
- package/app/wujie-vue3-child/src/views/home.vue +0 -53
- package/app/wujie-vue3-child/src/views/jsx/btnSelect/btnSelect.vue +0 -169
- package/app/wujie-vue3-child/src/views/jsx/btnSelect/index.vue +0 -69
- package/app/wujie-vue3-child/src/views/jsx/com.vue +0 -44
- package/app/wujie-vue3-child/src/views/jsx/dialog.jsx +0 -66
- package/app/wujie-vue3-child/src/views/jsx/index.vue +0 -72
- package/app/wujie-vue3-child/src/views/jsx/props.vue +0 -33
- package/app/wujie-vue3-child/src/views/parent-to-child.vue +0 -225
- package/app/wujie-vue3-child/src/views/phone-code.vue +0 -318
- package/app/wujie-vue3-child/src/views/router-jump.vue +0 -123
- package/app/wujie-vue3-child/src/views/test.vue +0 -192
- package/app/wujie-vue3-child/vite.config.js +0 -15
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="parent-to-child">
|
|
3
|
-
<h2 class="page-title">消息接收中心</h2>
|
|
4
|
-
|
|
5
|
-
<div class="message-container">
|
|
6
|
-
<div class="message-section">
|
|
7
|
-
<div class="section-header">
|
|
8
|
-
<h3>全局广播消息</h3>
|
|
9
|
-
<el-button type="primary" size="small" @click="clearGlobalMessages">
|
|
10
|
-
清空消息
|
|
11
|
-
</el-button>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="message-list" v-if="globalMessages.length">
|
|
14
|
-
<div v-for="(msg, index) in globalMessages"
|
|
15
|
-
:key="index"
|
|
16
|
-
class="message-item">
|
|
17
|
-
<div class="message-header">
|
|
18
|
-
<span class="message-time">{{ msg.time }}</span>
|
|
19
|
-
<span class="message-type" :class="msg.type">{{ msg.type }}</span>
|
|
20
|
-
</div>
|
|
21
|
-
<h4 class="message-title">{{ msg.title }}</h4>
|
|
22
|
-
<p class="message-content">{{ msg.message }}</p>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div v-else class="empty-message">
|
|
26
|
-
暂无消息
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div class="message-section">
|
|
31
|
-
<div class="section-header">
|
|
32
|
-
<h3>定向消息</h3>
|
|
33
|
-
<el-button type="primary" size="small" @click="clearDirectMessages">
|
|
34
|
-
清空消息
|
|
35
|
-
</el-button>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="message-list" v-if="directMessages.length">
|
|
38
|
-
<div v-for="(msg, index) in directMessages"
|
|
39
|
-
:key="index"
|
|
40
|
-
class="message-item">
|
|
41
|
-
<div class="message-header">
|
|
42
|
-
<span class="message-time">{{ msg.time }}</span>
|
|
43
|
-
<span class="message-type" :class="msg.type">{{ msg.type }}</span>
|
|
44
|
-
</div>
|
|
45
|
-
<h4 class="message-title">{{ msg.title }}</h4>
|
|
46
|
-
<p class="message-content">{{ msg.message }}</p>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div v-else class="empty-message">
|
|
50
|
-
暂无消息
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<script setup>
|
|
58
|
-
import { ref, onMounted } from 'vue'
|
|
59
|
-
|
|
60
|
-
const globalMessages = ref([])
|
|
61
|
-
const directMessages = ref([])
|
|
62
|
-
|
|
63
|
-
const formatTime = () => {
|
|
64
|
-
const now = new Date()
|
|
65
|
-
return `${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}:${now.getSeconds().toString().padStart(2, '0')}`
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
const clearGlobalMessages = () => {
|
|
69
|
-
globalMessages.value = []
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const clearDirectMessages = () => {
|
|
73
|
-
directMessages.value = []
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
onMounted(() => {
|
|
77
|
-
// 监听全局广播消息
|
|
78
|
-
window.$wujie?.bus.$on('global-message', (data) => {
|
|
79
|
-
globalMessages.value.unshift({
|
|
80
|
-
...data,
|
|
81
|
-
time: formatTime()
|
|
82
|
-
})
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
// 监听定向消息
|
|
86
|
-
window.$wujie?.bus.$on('vue3-child-message', (data) => {
|
|
87
|
-
directMessages.value.unshift({
|
|
88
|
-
...data,
|
|
89
|
-
time: formatTime()
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
})
|
|
93
|
-
</script>
|
|
94
|
-
|
|
95
|
-
<style scoped>
|
|
96
|
-
.parent-to-child {
|
|
97
|
-
padding: 24px;
|
|
98
|
-
background-color: #f5f7fa;
|
|
99
|
-
min-height: 100vh;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.page-title {
|
|
103
|
-
color: #303133;
|
|
104
|
-
margin-bottom: 24px;
|
|
105
|
-
font-size: 24px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.message-container {
|
|
109
|
-
display: grid;
|
|
110
|
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
111
|
-
gap: 24px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.message-section {
|
|
115
|
-
background: white;
|
|
116
|
-
border-radius: 8px;
|
|
117
|
-
padding: 20px;
|
|
118
|
-
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.section-header {
|
|
122
|
-
display: flex;
|
|
123
|
-
justify-content: space-between;
|
|
124
|
-
align-items: center;
|
|
125
|
-
margin-bottom: 16px;
|
|
126
|
-
padding-bottom: 16px;
|
|
127
|
-
border-bottom: 1px solid #ebeef5;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.section-header h3 {
|
|
131
|
-
margin: 0;
|
|
132
|
-
color: #303133;
|
|
133
|
-
font-size: 18px;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.message-list {
|
|
137
|
-
max-height: 500px;
|
|
138
|
-
overflow-y: auto;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.message-item {
|
|
142
|
-
padding: 12px;
|
|
143
|
-
border-bottom: 1px solid #ebeef5;
|
|
144
|
-
transition: background-color 0.3s;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.message-item:hover {
|
|
148
|
-
background-color: #f5f7fa;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.message-time {
|
|
152
|
-
font-size: 12px;
|
|
153
|
-
color: #909399;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.message-content {
|
|
157
|
-
margin: 8px 0 0;
|
|
158
|
-
color: #606266;
|
|
159
|
-
line-height: 1.5;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.empty-message {
|
|
163
|
-
text-align: center;
|
|
164
|
-
color: #909399;
|
|
165
|
-
padding: 30px 0;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* 滚动条样式 */
|
|
169
|
-
.message-list::-webkit-scrollbar {
|
|
170
|
-
width: 6px;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.message-list::-webkit-scrollbar-thumb {
|
|
174
|
-
background: #c0c4cc;
|
|
175
|
-
border-radius: 3px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.message-list::-webkit-scrollbar-track {
|
|
179
|
-
background: #f5f7fa;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.message-header {
|
|
183
|
-
display: flex;
|
|
184
|
-
justify-content: space-between;
|
|
185
|
-
align-items: center;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.message-type {
|
|
189
|
-
padding: 2px 6px;
|
|
190
|
-
border-radius: 4px;
|
|
191
|
-
font-size: 12px;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.message-type.info {
|
|
195
|
-
background-color: #ecf5ff;
|
|
196
|
-
color: #409eff;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.message-type.success {
|
|
200
|
-
background-color: #f0f9eb;
|
|
201
|
-
color: #67c23a;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.message-type.warning {
|
|
205
|
-
background-color: #fdf6ec;
|
|
206
|
-
color: #e6a23c;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.message-type.error {
|
|
210
|
-
background-color: #fef0f0;
|
|
211
|
-
color: #f56c6c;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.message-title {
|
|
215
|
-
margin: 8px 0;
|
|
216
|
-
font-size: 14px;
|
|
217
|
-
color: #303133;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.message-content {
|
|
221
|
-
margin: 8px 0 0;
|
|
222
|
-
color: #606266;
|
|
223
|
-
line-height: 1.5;
|
|
224
|
-
}
|
|
225
|
-
</style>
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<button class="open-dialog-btn" @click="showDialog = true">获取验证码</button>
|
|
4
|
-
|
|
5
|
-
<el-dialog
|
|
6
|
-
v-model="showDialog"
|
|
7
|
-
title="验证码"
|
|
8
|
-
width="400px"
|
|
9
|
-
:show-close="true"
|
|
10
|
-
:close-on-click-modal="false"
|
|
11
|
-
@opened="handleDialogOpened"
|
|
12
|
-
>
|
|
13
|
-
<div class="code-container">
|
|
14
|
-
<div class="code-title">输入短信验证码</div>
|
|
15
|
-
<div class="code-tip">短信验证码发送至 182 **** 1234</div>
|
|
16
|
-
|
|
17
|
-
<div class="code-input-box">
|
|
18
|
-
<el-input
|
|
19
|
-
v-for="(item, index) in 6"
|
|
20
|
-
:key="index"
|
|
21
|
-
v-model="codeArray[index]"
|
|
22
|
-
maxlength="1"
|
|
23
|
-
:input-style="{ textAlign: 'center' }"
|
|
24
|
-
@input="(value) => handleInput(value, index)"
|
|
25
|
-
@keyup.delete="handleDelete(index)"
|
|
26
|
-
ref="inputRefs"
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div class="resend" @click="resendCode">
|
|
31
|
-
{{ counting ? `${counter}s后重新获取` : '重新获取' }}
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<el-button
|
|
35
|
-
type="primary"
|
|
36
|
-
:loading="loading"
|
|
37
|
-
@click="handleSubmit"
|
|
38
|
-
>
|
|
39
|
-
确认
|
|
40
|
-
</el-button>
|
|
41
|
-
</div>
|
|
42
|
-
</el-dialog>
|
|
43
|
-
|
|
44
|
-
<div v-if="submittedCode" class="submitted-code">
|
|
45
|
-
您输入的验证码是: {{ submittedCode }}
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<el-dialog
|
|
49
|
-
v-model="dialogVisible"
|
|
50
|
-
title="提示"
|
|
51
|
-
width="30%"
|
|
52
|
-
:before-close="handleClose"
|
|
53
|
-
@opened="handleDialogOpened"
|
|
54
|
-
>
|
|
55
|
-
<span>{{ dialogMessage }}</span>
|
|
56
|
-
<template #footer>
|
|
57
|
-
<span class="dialog-footer">
|
|
58
|
-
<el-button ref="cancelBtn" @click="dialogVisible = false">取消</el-button>
|
|
59
|
-
<el-button type="primary" ref="confirmBtn" @click="confirmDialog">
|
|
60
|
-
确定
|
|
61
|
-
</el-button>
|
|
62
|
-
</span>
|
|
63
|
-
</template>
|
|
64
|
-
</el-dialog>
|
|
65
|
-
</div>
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<script setup>
|
|
69
|
-
import { ref, onUnmounted, nextTick } from 'vue'
|
|
70
|
-
import { ElMessage } from 'element-plus'
|
|
71
|
-
|
|
72
|
-
const showDialog = ref(false)
|
|
73
|
-
const codeArray = ref(['', '', '', '', '', ''])
|
|
74
|
-
const inputRefs = ref([])
|
|
75
|
-
const counter = ref(60)
|
|
76
|
-
const counting = ref(false)
|
|
77
|
-
let timer = null
|
|
78
|
-
|
|
79
|
-
const handleInput = (value, index) => {
|
|
80
|
-
// 确保输入为数字
|
|
81
|
-
if (!/^\d*$/.test(value)) {
|
|
82
|
-
codeArray.value[index] = ''
|
|
83
|
-
return
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// 更新值
|
|
87
|
-
codeArray.value[index] = value.slice(0, 1)
|
|
88
|
-
|
|
89
|
-
// 自动跳转到下一个输入框
|
|
90
|
-
if (value && index < 5) {
|
|
91
|
-
inputRefs.value[index + 1]?.focus()
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const handleDelete = (index) => {
|
|
96
|
-
if (codeArray.value[index] === '' && index > 0) {
|
|
97
|
-
inputRefs.value[index - 1]?.focus()
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// 重新发送验证码
|
|
102
|
-
const resendCode = () => {
|
|
103
|
-
if (counting.value) return
|
|
104
|
-
counting.value = true
|
|
105
|
-
counter.value = 60
|
|
106
|
-
timer = setInterval(() => {
|
|
107
|
-
if (counter.value > 0) {
|
|
108
|
-
counter.value--
|
|
109
|
-
} else {
|
|
110
|
-
counting.value = false
|
|
111
|
-
clearInterval(timer)
|
|
112
|
-
}
|
|
113
|
-
}, 1000)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// 替换原来的 alert 为 ElMessage
|
|
117
|
-
const showMessage = (message, type = 'warning') => {
|
|
118
|
-
ElMessage({
|
|
119
|
-
message,
|
|
120
|
-
type,
|
|
121
|
-
})
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// 弹窗相关状态
|
|
125
|
-
const dialogVisible = ref(false)
|
|
126
|
-
const dialogMessage = ref('')
|
|
127
|
-
const submittedCode = ref('') // 用于存储提交的验证码
|
|
128
|
-
const confirmBtn = ref(null)
|
|
129
|
-
|
|
130
|
-
const handleClose = () => {
|
|
131
|
-
dialogVisible.value = false
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// 处理弹窗打开时自动聚焦确认按钮
|
|
135
|
-
const handleDialogOpened = () => {
|
|
136
|
-
nextTick(() => {
|
|
137
|
-
if (inputRefs.value && inputRefs.value[0]) {
|
|
138
|
-
inputRefs.value[0].focus()
|
|
139
|
-
}
|
|
140
|
-
})
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const confirmDialog = () => {
|
|
144
|
-
dialogVisible.value = false
|
|
145
|
-
// 保存验证码到显示区域
|
|
146
|
-
submittedCode.value = codeArray.value.join('')
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// 确认提交
|
|
150
|
-
const handleSubmit = async () => {
|
|
151
|
-
if (codeArray.value.some(code => !code)) {
|
|
152
|
-
ElMessage.warning('验证码不能为空')
|
|
153
|
-
return
|
|
154
|
-
}
|
|
155
|
-
try {
|
|
156
|
-
// 这里是你的验证逻辑
|
|
157
|
-
// await verifyCode()
|
|
158
|
-
|
|
159
|
-
// 保存并显示验证码
|
|
160
|
-
submittedCode.value = codeArray.value.join('')
|
|
161
|
-
// 关闭弹窗
|
|
162
|
-
showDialog.value = false
|
|
163
|
-
ElMessage.success('验证成功')
|
|
164
|
-
} catch (error) {
|
|
165
|
-
ElMessage.error('验证失败')
|
|
166
|
-
} finally {
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// 组件销毁时清除定时器
|
|
171
|
-
onUnmounted(() => {
|
|
172
|
-
if (timer) {
|
|
173
|
-
clearInterval(timer)
|
|
174
|
-
}
|
|
175
|
-
})
|
|
176
|
-
</script>
|
|
177
|
-
|
|
178
|
-
<style scoped>
|
|
179
|
-
.phone-code-dialog {
|
|
180
|
-
position: fixed;
|
|
181
|
-
top: 0;
|
|
182
|
-
left: 0;
|
|
183
|
-
width: 100%;
|
|
184
|
-
height: 100%;
|
|
185
|
-
z-index: 999;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.dialog-mask {
|
|
189
|
-
position: absolute;
|
|
190
|
-
top: 0;
|
|
191
|
-
left: 0;
|
|
192
|
-
width: 100%;
|
|
193
|
-
height: 100%;
|
|
194
|
-
background: rgba(0, 0, 0, 0.5);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.dialog-content {
|
|
198
|
-
position: absolute;
|
|
199
|
-
left: 50%;
|
|
200
|
-
top: 50%;
|
|
201
|
-
transform: translate(-50%, -50%);
|
|
202
|
-
width: 90%;
|
|
203
|
-
max-width: 320px;
|
|
204
|
-
background: #fff;
|
|
205
|
-
border-radius: 12px;
|
|
206
|
-
overflow: hidden;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.close-icon {
|
|
210
|
-
position: absolute;
|
|
211
|
-
right: 10px;
|
|
212
|
-
top: 10px;
|
|
213
|
-
font-size: 24px;
|
|
214
|
-
color: #999;
|
|
215
|
-
cursor: pointer;
|
|
216
|
-
z-index: 1;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.code-container {
|
|
220
|
-
width: 100%;
|
|
221
|
-
padding: 20px;
|
|
222
|
-
box-sizing: border-box;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.code-title {
|
|
226
|
-
font-size: 18px;
|
|
227
|
-
font-weight: bold;
|
|
228
|
-
margin-bottom: 8px;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.code-tip {
|
|
232
|
-
color: #666;
|
|
233
|
-
font-size: 14px;
|
|
234
|
-
margin-bottom: 20px;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.code-input-box {
|
|
238
|
-
display: flex;
|
|
239
|
-
justify-content: space-between;
|
|
240
|
-
margin-bottom: 20px;
|
|
241
|
-
gap: 8px;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.code-input-box input {
|
|
245
|
-
width: 40px;
|
|
246
|
-
height: 40px;
|
|
247
|
-
border: 1.5px solid #ddd;
|
|
248
|
-
border-radius: 8px;
|
|
249
|
-
text-align: center;
|
|
250
|
-
font-size: 18px;
|
|
251
|
-
transition: all 0.3s;
|
|
252
|
-
background-color: #f8f9fa;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.code-input-box input:focus {
|
|
256
|
-
border-color: #ff4d4f;
|
|
257
|
-
outline: none;
|
|
258
|
-
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
|
259
|
-
background-color: #fff;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/* 修改input类型为tel,但仍然保留number的样式控制 */
|
|
263
|
-
.code-input-box input[type="tel"] {
|
|
264
|
-
-moz-appearance: textfield;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.code-input-box input::-webkit-outer-spin-button,
|
|
268
|
-
.code-input-box input::-webkit-inner-spin-button {
|
|
269
|
-
-webkit-appearance: none;
|
|
270
|
-
margin: 0;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.resend {
|
|
274
|
-
text-align: right;
|
|
275
|
-
color: #1890ff;
|
|
276
|
-
font-size: 14px;
|
|
277
|
-
cursor: pointer;
|
|
278
|
-
margin-bottom: 20px;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.confirm-btn {
|
|
282
|
-
width: 100%;
|
|
283
|
-
height: 44px;
|
|
284
|
-
background: #ff4d4f;
|
|
285
|
-
color: #fff;
|
|
286
|
-
border: none;
|
|
287
|
-
border-radius: 22px;
|
|
288
|
-
font-size: 16px;
|
|
289
|
-
cursor: pointer;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.confirm-btn:active {
|
|
293
|
-
opacity: 0.8;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.open-dialog-btn {
|
|
297
|
-
padding: 8px 20px;
|
|
298
|
-
background: #ff4d4f;
|
|
299
|
-
color: #fff;
|
|
300
|
-
border: none;
|
|
301
|
-
border-radius: 4px;
|
|
302
|
-
font-size: 14px;
|
|
303
|
-
cursor: pointer;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.open-dialog-btn:active {
|
|
307
|
-
opacity: 0.8;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.submitted-code {
|
|
311
|
-
margin-top: 20px;
|
|
312
|
-
padding: 10px;
|
|
313
|
-
background-color: #f0f9eb;
|
|
314
|
-
border-radius: 4px;
|
|
315
|
-
color: #67c23a;
|
|
316
|
-
font-size: 14px;
|
|
317
|
-
}
|
|
318
|
-
</style>
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex-container">
|
|
3
|
-
<div class="container">
|
|
4
|
-
<h1>子应用路由跳转</h1>
|
|
5
|
-
<el-input v-model="url" placeholder="请输入地址"></el-input>
|
|
6
|
-
<el-input v-model="name" placeholder="请输入姓名"></el-input>
|
|
7
|
-
<el-input v-model="age" placeholder="请输入年龄" type="number"></el-input>
|
|
8
|
-
<el-select v-model="selectedApp" placeholder="请选择应用">
|
|
9
|
-
<el-option label="main" value="main"></el-option>
|
|
10
|
-
<el-option label="vue3-child-copy" value="vue3-child-copy"></el-option>
|
|
11
|
-
<el-option label="vue2-child" value="vue2-child"></el-option>
|
|
12
|
-
</el-select>
|
|
13
|
-
<el-button type="primary" @click="jumpToMain">跳转到主应用</el-button>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="route-params">
|
|
16
|
-
<h1>接收到的路由参数:</h1>
|
|
17
|
-
<p>路径: {{ $route.path }}</p>
|
|
18
|
-
<p v-for="(item,key) in $route.query" :key="item">{{ key }}:{{ item }}</p>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script setup>
|
|
24
|
-
import { ref } from 'vue'
|
|
25
|
-
import { ElInput, ElButton, ElSelect, ElOption } from 'element-plus'
|
|
26
|
-
const url = ref('/router-jump')
|
|
27
|
-
const name = ref('name')
|
|
28
|
-
const age = ref('age')
|
|
29
|
-
const selectedApp = ref('main')
|
|
30
|
-
const jumpToMain = () => {
|
|
31
|
-
window.$wujie?.bus.$emit('router-jump-to-main', {
|
|
32
|
-
app: selectedApp.value,
|
|
33
|
-
path: url.value,
|
|
34
|
-
query: {
|
|
35
|
-
name: name.value,
|
|
36
|
-
age: age.value
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<style scoped>
|
|
46
|
-
.container {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: column;
|
|
49
|
-
align-items: center;
|
|
50
|
-
gap: 20px;
|
|
51
|
-
padding: 20px;
|
|
52
|
-
background-color: #f8f8f8;
|
|
53
|
-
border-radius: 10px;
|
|
54
|
-
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
|
55
|
-
width: 45%;
|
|
56
|
-
margin: 0;
|
|
57
|
-
transition: box-shadow 0.3s ease-in-out;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
h1 {
|
|
61
|
-
color: #333;
|
|
62
|
-
margin-bottom: 20px;
|
|
63
|
-
font-family: 'Helvetica Neue', Arial, sans-serif;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
el-input, el-select {
|
|
67
|
-
width: 100%;
|
|
68
|
-
border: 1px solid #ccc;
|
|
69
|
-
border-radius: 5px;
|
|
70
|
-
padding: 10px;
|
|
71
|
-
transition: border-color 0.3s ease-in-out;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
el-input:focus, el-select:focus {
|
|
75
|
-
border-color: #007BFF;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
el-button {
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 40px;
|
|
81
|
-
background-color: #007BFF;
|
|
82
|
-
color: white;
|
|
83
|
-
border: none;
|
|
84
|
-
border-radius: 5px;
|
|
85
|
-
transition: background-color 0.3s ease-in-out;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
el-button:hover {
|
|
89
|
-
background-color: #0056b3;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.route-params {
|
|
93
|
-
padding: 20px;
|
|
94
|
-
background-color: #eef2f7;
|
|
95
|
-
border-radius: 8px;
|
|
96
|
-
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
97
|
-
width: 45%;
|
|
98
|
-
margin: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.route-params h1 {
|
|
102
|
-
color: #007BFF;
|
|
103
|
-
font-size: 24px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.route-params p {
|
|
107
|
-
font-size: 16px;
|
|
108
|
-
color: #333;
|
|
109
|
-
margin-bottom: 10px;
|
|
110
|
-
background-color: #fff;
|
|
111
|
-
padding: 10px;
|
|
112
|
-
border-radius: 5px;
|
|
113
|
-
border: 1px solid #ccc;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.flex-container {
|
|
117
|
-
display: flex;
|
|
118
|
-
justify-content: space-around;
|
|
119
|
-
align-items: flex-start;
|
|
120
|
-
padding: 20px;
|
|
121
|
-
gap: 20px;
|
|
122
|
-
}
|
|
123
|
-
</style>
|