dsh-total-quality 2.0.55 → 2.0.57
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/CONTRIBUTING.md +51 -47
- package/LICENSE.md +37 -37
- package/README.en.md +32 -30
- package/README.md +90 -88
- package/agent-host.cjs +277 -277
- package/client.js +199 -92
- package/cordis.patch.yml +5 -5
- package/docs/enterprise-onboarding.md +10 -10
- package/docs/technical-reference.md +223 -223
- package/host.cjs +91 -124
- package/llm-bridge.cjs +234 -234
- package/locale/en.json +5 -5
- package/locale/zh.json +5 -5
- package/package.json +3 -2
- package/public/app.css +3 -0
- package/public/app.js +6 -2
- package/public/index.html +8 -9
- package/public/js/api.js +152 -152
- package/public/js/assistant-history.js +62 -62
- package/public/js/material-library.js +100 -100
- package/public/js/mobile-preview.js +119 -0
- package/public/js/pages-company-knowledge.js +9 -32
- package/public/js/pages-core.js +232 -232
- package/public/js/pages-growth.js +148 -148
- package/public/js/pages-qms.js +1 -1
- package/public/js/pages-qtools.js +410 -410
- package/public/js/pages-thanks.js +71 -71
- package/public/js/plugin-updates.js +53 -0
- package/public/js/quality-workflow.js +205 -205
- package/public/js/survey-dates.js +41 -41
- package/public/js/survey-knowledge.js +301 -301
- package/public/js/tool-wizards.js +621 -621
- package/public/js/ui.js +467 -467
- package/public/js/voice-capture-worklet.js +30 -30
- package/public/js/xiaozhi-voice.js +264 -264
- package/public/js/xiaozhi.js +468 -468
- package/public/platform-help.html +426 -426
- package/public/platform-site/assets/0468a68574112812.css +10703 -10703
- package/public/platform-site/assets/159e086d35adfa1c.css +2094 -2094
- package/public/platform-site/assets/169e3159cade0d9f.css +98 -98
- package/public/platform-site/assets/22b917c4a3d4ae3d.svg +14 -14
- package/public/platform-site/assets/476f9254ccf723e7.css +8265 -8265
- package/public/platform-site/assets/85a0a4fb4416ded9.css +120 -120
- package/public/platform-site/assets/a3b272383226f6d9.svg +135 -135
- package/public/platform-site/assets/fd16dc5f3cc9d97e.svg +104 -104
- package/public/platform-site/assets/qip-favicon.svg +5 -5
- package/public/platform-site/index.html +279 -279
- package/public/platform-site/offline.js +261 -261
- package/public/platform-site/qip-brand.css +566 -566
- package/public/platform-site/qip-module-guides.js +237 -237
- package/public/responsive.css +103 -101
- package/public/vendor/markdown-it-15.0.3.LICENSE +22 -22
- package/public/vendor/markdown-it-15.0.3.umd.min.js +13 -13
- package/public/workbench.css +7 -7
- package/public/xiaozhi.css +292 -292
- package/resources/qms-templates/019ffb58f24ed48d.docx +0 -0
- package/resources/qms-templates/04a69165fc15143a.docx +0 -0
- package/resources/qms-templates/09af69358c989a63.docx +0 -0
- package/resources/qms-templates/0e7ac77844e45311.docx +0 -0
- package/resources/qms-templates/12446a1b5e173c71.docx +0 -0
- package/resources/qms-templates/15ae40f67f9a3efc.docx +0 -0
- package/resources/qms-templates/18a69bbebf2ece7f.docx +0 -0
- package/resources/qms-templates/1978faa989134f02.docx +0 -0
- package/resources/qms-templates/1a30e121de752f7b.docx +0 -0
- package/resources/qms-templates/1b88907969ea7d4c.docx +0 -0
- package/resources/qms-templates/1e92b808722bf90a.docx +0 -0
- package/resources/qms-templates/2091cad340dc0e7f.docx +0 -0
- package/resources/qms-templates/271ae1002c896ed7.docx +0 -0
- package/resources/qms-templates/280ce53e5d3b5fcf.docx +0 -0
- package/resources/qms-templates/28ca8e4ede0adf6d.docx +0 -0
- package/resources/qms-templates/2ac6675f3cb1f993.docx +0 -0
- package/resources/qms-templates/2c3b799389909d8b.docx +0 -0
- package/resources/qms-templates/2c51038ba2cc3264.docx +0 -0
- package/resources/qms-templates/30c888851d16d764.docx +0 -0
- package/resources/qms-templates/3459fc4daaa2743d.docx +0 -0
- package/resources/qms-templates/3751dafc335e0e80.docx +0 -0
- package/resources/qms-templates/38798cd4298cd2db.docx +0 -0
- package/resources/qms-templates/38f551f9d738ab0a.docx +0 -0
- package/resources/qms-templates/3c85a23ea17018b4.docx +0 -0
- package/resources/qms-templates/3cdb7d14caf1b852.docx +0 -0
- package/resources/qms-templates/3f23239bb6b3e1db.docx +0 -0
- package/resources/qms-templates/42a5b9efeeaa8007.docx +0 -0
- package/resources/qms-templates/47352aafe9b8dac1.docx +0 -0
- package/resources/qms-templates/495359b1e3cbb8fe.docx +0 -0
- package/resources/qms-templates/4ca6920464785166.docx +0 -0
- package/resources/qms-templates/4ce862582a7791be.docx +0 -0
- package/resources/qms-templates/54c9a02a10991b9e.docx +0 -0
- package/resources/qms-templates/5aeb8fddf5f3693f.docx +0 -0
- package/resources/qms-templates/5d7e5576b0e73be7.docx +0 -0
- package/resources/qms-templates/5db3a40edac37791.docx +0 -0
- package/resources/qms-templates/5ffa21eb78eb6f77.docx +0 -0
- package/resources/qms-templates/60d0fbcb709b7161.docx +0 -0
- package/resources/qms-templates/63e1d3a166756095.docx +0 -0
- package/resources/qms-templates/65c724c080d32f10.docx +0 -0
- package/resources/qms-templates/674bd7826c6cbac2.docx +0 -0
- package/resources/qms-templates/677e851acca1b879.docx +0 -0
- package/resources/qms-templates/6bf15feb1a0d2a8d.docx +0 -0
- package/resources/qms-templates/6c3889c7d0918db9.docx +0 -0
- package/resources/qms-templates/6c4c349eeb0a96a8.docx +0 -0
- package/resources/qms-templates/6c5befbd33f759c1.docx +0 -0
- package/resources/qms-templates/6df8367901347508.docx +0 -0
- package/resources/qms-templates/71db51997037692b.docx +0 -0
- package/resources/qms-templates/78a8ef8c76510c99.docx +0 -0
- package/resources/qms-templates/8397bfd1c0a1b013.docx +0 -0
- package/resources/qms-templates/84d750cf858b60a1.docx +0 -0
- package/resources/qms-templates/880de58a4b334533.docx +0 -0
- package/resources/qms-templates/88c37d1b87d9b78c.docx +0 -0
- package/resources/qms-templates/88e9cd42f1849462.docx +0 -0
- package/resources/qms-templates/8956597403be35b6.docx +0 -0
- package/resources/qms-templates/94675c810a233e1f.docx +0 -0
- package/resources/qms-templates/94dff59dd7ebec6e.docx +0 -0
- package/resources/qms-templates/9670b9cd02141594.docx +0 -0
- package/resources/qms-templates/98c373ebd7b5163d.docx +0 -0
- package/resources/qms-templates/a4078cf2378a9388.docx +0 -0
- package/resources/qms-templates/a5b110c7ef917139.docx +0 -0
- package/resources/qms-templates/aec75820e45774be.docx +0 -0
- package/resources/qms-templates/b31c085e281d230c.docx +0 -0
- package/resources/qms-templates/b7c1c3c72f8ffeef.docx +0 -0
- package/resources/qms-templates/b81b82eaa5c8f422.docx +0 -0
- package/resources/qms-templates/b92a2fa31f75f137.docx +0 -0
- package/resources/qms-templates/b96c54ae9cfffc54.docx +0 -0
- package/resources/qms-templates/bc47cfd626c010e7.docx +0 -0
- package/resources/qms-templates/be60792734afca69.docx +0 -0
- package/resources/qms-templates/c0018d8ae9ad19e1.docx +0 -0
- package/resources/qms-templates/c171027c964c8be3.docx +0 -0
- package/resources/qms-templates/c4b93d71f5d98b4b.docx +0 -0
- package/resources/qms-templates/c531da29fcb3090f.docx +0 -0
- package/resources/qms-templates/c88eddd43358d015.docx +0 -0
- package/resources/qms-templates/cb978da542f0d892.docx +0 -0
- package/resources/qms-templates/ccde4a94532a8d36.docx +0 -0
- package/resources/qms-templates/cf3fb1e20ae6f24d.docx +0 -0
- package/resources/qms-templates/d231b4982fc8113e.docx +0 -0
- package/resources/qms-templates/d3c55aa5ed14055c.docx +0 -0
- package/resources/qms-templates/db45c44a00a13349.docx +0 -0
- package/resources/qms-templates/db849a41210f54e0.docx +0 -0
- package/resources/qms-templates/dba9ce363d83ddc8.docx +0 -0
- package/resources/qms-templates/dca3ea4c95eb2225.docx +0 -0
- package/resources/qms-templates/dfa4220d2b6b8131.docx +0 -0
- package/resources/qms-templates/dfa51222c777734f.docx +0 -0
- package/resources/qms-templates/e07ea511507e14f5.docx +0 -0
- package/resources/qms-templates/e0a2e00c03458dfa.docx +0 -0
- package/resources/qms-templates/e0e802f46b6764d1.docx +0 -0
- package/resources/qms-templates/e53fc85717f2852b.docx +0 -0
- package/resources/qms-templates/e9dd82d5e54520e5.docx +0 -0
- package/resources/qms-templates/ea7bfc22c06d82a9.docx +0 -0
- package/resources/qms-templates/ecf0db9f37294536.docx +0 -0
- package/resources/qms-templates/f05fcfc87e82ff39.docx +0 -0
- package/resources/qms-templates/fb9e56a17c4a4f97.docx +0 -0
- package/resources/qms-templates/manifest.json +932 -0
- package/src/data/seed-sme.js +317 -317
- package/src/data/seed.js +879 -879
- package/src/lib/backup-identity.js +57 -57
- package/src/lib/chat-answer.js +225 -225
- package/src/lib/chat-context.js +99 -99
- package/src/lib/company-library.js +28 -19
- package/src/lib/data-import.js +217 -217
- package/src/lib/data-sources.js +118 -118
- package/src/lib/demo-data.js +27 -1
- package/src/lib/employee-intake.js +84 -84
- package/src/lib/growth.js +53 -53
- package/src/lib/intake-packets.js +119 -119
- package/src/lib/issue-intake.js +88 -88
- package/src/lib/kb-revision.js +214 -214
- package/src/lib/llm.js +279 -279
- package/src/lib/model-error.js +14 -14
- package/src/lib/privacy.js +26 -26
- package/src/lib/qms-drafting.js +194 -194
- package/src/lib/qms-jobs.js +11 -7
- package/src/lib/qms-manual-review.js +185 -185
- package/src/lib/qms-procedure-review.js +109 -109
- package/src/lib/qms-templates.js +358 -326
- package/src/lib/qms.js +369 -369
- package/src/lib/quality-priority.js +100 -100
- package/src/lib/quality-state.js +92 -92
- package/src/lib/quality-workflow.js +65 -65
- package/src/lib/retrieval.js +159 -159
- package/src/lib/spc.js +127 -127
- package/src/lib/voice-hotwords.txt +22 -22
- package/src/lib/voice-text.js +13 -13
- package/src/lib/voice-worker.js +72 -72
- package/src/lib/voice.js +330 -330
- package/src/lib/workbench-notices.js +49 -49
- package/src/lib/workbench.js +103 -106
- package/src/package.json +3 -3
- package/src/tools/analysis.js +306 -306
- package/src/tools/data.js +596 -596
- package/src/tools/docs.js +430 -430
- package/src/tools/registry.js +57 -57
- package/tools-dsh.cjs +153 -153
- package//345/256/211/350/243/205/350/257/264/346/230/216.md +33 -25
- package//346/234/254/346/234/272/347/213/254/347/253/213/345/256/211/350/243/205/350/257/264/346/230/216.md +17 -17
- package//350/207/252/346/243/200.cjs +88 -88
- package/public/js/remote-knowledge.js +0 -165
- package/public/js/workbench-notices.js +0 -67
- package/public/remote-knowledge-help.html +0 -35
- package/public/remote-knowledge.css +0 -40
- package/src/lib/remote-knowledge.js +0 -284
package/client.js
CHANGED
|
@@ -1,92 +1,199 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 质量平台插件 —— Client 半
|
|
3
|
-
* ------------------------------------------------------------------
|
|
4
|
-
* 在左侧栏注册一级入口,在主面板注册整页应用。
|
|
5
|
-
* 应用本体是 Host 半在 /qip-real-workbench/ 提供的完整 Web 应用(真实 REST + SSE),
|
|
6
|
-
* 这里用同源 iframe 承载:样式/脚本完全隔离,不与 Harness 抢全局,
|
|
7
|
-
* 应用里的 fetch('/qip-real-workbench/api/...')、SSE、文件下载都按浏览器同源正常工作。
|
|
8
|
-
*/
|
|
9
|
-
window.__ModuleLoader__.load({
|
|
10
|
-
id:
|
|
11
|
-
factory: (require) => {
|
|
12
|
-
const React = require('react')
|
|
13
|
-
const h = React.createElement
|
|
14
|
-
const BASE = '/qip-real-workbench'
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 质量平台插件 —— Client 半
|
|
3
|
+
* ------------------------------------------------------------------
|
|
4
|
+
* 在左侧栏注册一级入口,在主面板注册整页应用。
|
|
5
|
+
* 应用本体是 Host 半在 /qip-real-workbench/ 提供的完整 Web 应用(真实 REST + SSE),
|
|
6
|
+
* 这里用同源 iframe 承载:样式/脚本完全隔离,不与 Harness 抢全局,
|
|
7
|
+
* 应用里的 fetch('/qip-real-workbench/api/...')、SSE、文件下载都按浏览器同源正常工作。
|
|
8
|
+
*/
|
|
9
|
+
;((bundleId) => window.__ModuleLoader__.load({
|
|
10
|
+
id: bundleId,
|
|
11
|
+
factory: (require) => {
|
|
12
|
+
const React = require('react')
|
|
13
|
+
const h = React.createElement
|
|
14
|
+
const BASE = '/qip-real-workbench'
|
|
15
|
+
const UPDATE_CHANNEL = 'qip-workbench-update'
|
|
16
|
+
|
|
17
|
+
// DSH 入口名与企业品牌相互独立。
|
|
18
|
+
const title = '全质开源质量平台'
|
|
19
|
+
|
|
20
|
+
const FRAME_STYLE = {
|
|
21
|
+
flex: '1 1 0',
|
|
22
|
+
minHeight: 0,
|
|
23
|
+
width: '100%',
|
|
24
|
+
height: '100%',
|
|
25
|
+
border: '0',
|
|
26
|
+
display: 'block',
|
|
27
|
+
background: '#f2f4f8',
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const HOST_STYLE = {
|
|
31
|
+
flex: '1 1 0',
|
|
32
|
+
minHeight: 0,
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flexDirection: 'column',
|
|
35
|
+
overflow: 'hidden',
|
|
36
|
+
background: '#f2f4f8',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async function findUpdate(manager, signal) {
|
|
40
|
+
if (bundleId === 'dsh-total-quality') {
|
|
41
|
+
const answer = await manager.listVersions(bundleId, {}, signal)
|
|
42
|
+
if (!answer.ok || answer.value.status !== 'listed') return null
|
|
43
|
+
const result = answer.value
|
|
44
|
+
const latest = result.versions.find(version => version.bundle && !version.incompatible &&
|
|
45
|
+
!version.prerelease && !version.deprecated)
|
|
46
|
+
return latest ? { from: result.installed, to: latest.version, registry: result.registry, mode: 'npm' } : null
|
|
47
|
+
}
|
|
48
|
+
const response = await fetch(BASE + '/api/plugin-update/release', { signal })
|
|
49
|
+
if (!response.ok) return null
|
|
50
|
+
const { update } = await response.json()
|
|
51
|
+
return update ? { ...update, mode: 'release' } : null
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function createUpdates() {
|
|
55
|
+
const listeners = new Set()
|
|
56
|
+
let session
|
|
57
|
+
let state = { status: 'hidden' }
|
|
58
|
+
|
|
59
|
+
function show(next) {
|
|
60
|
+
state = next
|
|
61
|
+
for (const listener of listeners) listener(state)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
start(manager) {
|
|
66
|
+
const controller = new AbortController()
|
|
67
|
+
const current = { manager, controller }
|
|
68
|
+
session = current
|
|
69
|
+
void findUpdate(manager, controller.signal).then(candidate => {
|
|
70
|
+
if (session !== current || !candidate) return
|
|
71
|
+
current.candidate = candidate
|
|
72
|
+
const { from, to, mode } = candidate
|
|
73
|
+
show({ status: 'available', from, to, mode })
|
|
74
|
+
}).catch(() => {})
|
|
75
|
+
return () => {
|
|
76
|
+
controller.abort()
|
|
77
|
+
if (session !== current) return
|
|
78
|
+
session = undefined
|
|
79
|
+
show({ status: 'hidden' })
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
subscribe(listener) {
|
|
83
|
+
listeners.add(listener)
|
|
84
|
+
listener(state)
|
|
85
|
+
return () => listeners.delete(listener)
|
|
86
|
+
},
|
|
87
|
+
async update() {
|
|
88
|
+
const current = session
|
|
89
|
+
const candidate = current?.candidate
|
|
90
|
+
if (candidate?.mode !== 'npm' || current.updating) return
|
|
91
|
+
const { from, to, registry, mode } = candidate
|
|
92
|
+
if (!window.confirm(`将全质开源质量平台从 ${from} 更新到 ${to}?请先保存正在编辑的内容。`)) return
|
|
93
|
+
current.updating = true
|
|
94
|
+
show({ status: 'updating', from, to, mode })
|
|
95
|
+
let status = 'failed'
|
|
96
|
+
try {
|
|
97
|
+
const answer = await current.manager.updateBundle(bundleId, to, { registry })
|
|
98
|
+
const application = answer.ok && answer.value.result?.application
|
|
99
|
+
if (['applied', 'restart-required', 'overridden'].includes(application)) {
|
|
100
|
+
current.candidate = undefined
|
|
101
|
+
status = application
|
|
102
|
+
}
|
|
103
|
+
} catch { /* Report the failed update in the workbench. */ }
|
|
104
|
+
finally { current.updating = false }
|
|
105
|
+
if (session === current) show({ status, from, to, mode })
|
|
106
|
+
},
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function attachUpdates(frame, updates) {
|
|
111
|
+
const origin = window.location.origin
|
|
112
|
+
let unsubscribe
|
|
113
|
+
let activeDocument
|
|
114
|
+
function receive(event) {
|
|
115
|
+
const child = frame.contentWindow
|
|
116
|
+
const doc = frame.contentDocument
|
|
117
|
+
const message = event.data
|
|
118
|
+
if (event.origin !== origin || !child || event.source !== child ||
|
|
119
|
+
doc?.location?.pathname !== BASE + '/' || message?.channel !== UPDATE_CHANNEL) return
|
|
120
|
+
if (message.action === 'read') {
|
|
121
|
+
unsubscribe?.()
|
|
122
|
+
activeDocument = doc
|
|
123
|
+
unsubscribe = updates.subscribe(state => {
|
|
124
|
+
if (frame.contentDocument === doc) child.postMessage({ channel: UPDATE_CHANNEL, ...state }, origin)
|
|
125
|
+
})
|
|
126
|
+
} else if (message.action === 'update' && activeDocument === doc) {
|
|
127
|
+
void updates.update()
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
window.addEventListener('message', receive)
|
|
131
|
+
return () => {
|
|
132
|
+
unsubscribe?.()
|
|
133
|
+
window.removeEventListener('message', receive)
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function QipPage({ updates }) {
|
|
138
|
+
const frame = React.useRef(null)
|
|
139
|
+
const [src] = React.useState(() => BASE + '/?v=' + Date.now())
|
|
140
|
+
React.useLayoutEffect(() => attachUpdates(frame.current, updates), [updates])
|
|
141
|
+
return h(
|
|
142
|
+
'div',
|
|
143
|
+
{ style: HOST_STYLE },
|
|
144
|
+
h('iframe', {
|
|
145
|
+
ref: frame,
|
|
146
|
+
src,
|
|
147
|
+
title,
|
|
148
|
+
style: FRAME_STYLE,
|
|
149
|
+
allow: 'clipboard-write; microphone',
|
|
150
|
+
}),
|
|
151
|
+
)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function QipIcon() {
|
|
155
|
+
return h(
|
|
156
|
+
'svg',
|
|
157
|
+
{
|
|
158
|
+
width: 20,
|
|
159
|
+
height: 20,
|
|
160
|
+
viewBox: '0 0 24 24',
|
|
161
|
+
fill: 'none',
|
|
162
|
+
stroke: 'currentColor',
|
|
163
|
+
strokeWidth: 1.8,
|
|
164
|
+
strokeLinecap: 'round',
|
|
165
|
+
strokeLinejoin: 'round',
|
|
166
|
+
'aria-hidden': 'true',
|
|
167
|
+
},
|
|
168
|
+
h('path', { d: 'M12 3 5.5 5.8v5.1c0 4.3 2.7 8 6.5 9.3 3.8-1.3 6.5-5 6.5-9.3V5.8L12 3Z' }),
|
|
169
|
+
h('path', { d: 'm9 12 2.1 2.1L15.5 9.6' }),
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
inject: ['slots'],
|
|
175
|
+
apply(ctx) {
|
|
176
|
+
const updates = createUpdates()
|
|
177
|
+
ctx.inject(['remote', 'remote.pluginManager', 'remoteAccess'], scope =>
|
|
178
|
+
scope.remoteAccess.whenAccess('pluginManager/listBundles', () => updates.start(scope.remote.pluginManager)),
|
|
179
|
+
)
|
|
180
|
+
ctx.slots.inject('main', () =>
|
|
181
|
+
ctx.slots.register({ name: 'main', key: 'qip-real-workbench' }, () => h(QipPage, { updates })),
|
|
182
|
+
)
|
|
183
|
+
ctx.slots.inject('sidebar.panellist', () =>
|
|
184
|
+
ctx.slots.register(
|
|
185
|
+
{
|
|
186
|
+
name: 'sidebar.panellist',
|
|
187
|
+
id: 'qip-real-workbench',
|
|
188
|
+
order: 8,
|
|
189
|
+
label: () => title,
|
|
190
|
+
},
|
|
191
|
+
QipIcon,
|
|
192
|
+
),
|
|
193
|
+
)
|
|
194
|
+
},
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
}))('dsh-total-quality')
|
|
198
|
+
|
|
199
|
+
|
package/cordis.patch.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# qip-real-workbench 插件包:Host 行加载 index.js(真数据 / 真模型 / 真文件),
|
|
2
|
-
# 包内 `dsh.client` 声明让 Web 端把 ./client.js 作为浏览器半加载。
|
|
3
|
-
- insert:
|
|
4
|
-
- id: qip-real-workbench
|
|
5
|
-
name: 'dsh-total-quality'
|
|
1
|
+
# qip-real-workbench 插件包:Host 行加载 index.js(真数据 / 真模型 / 真文件),
|
|
2
|
+
# 包内 `dsh.client` 声明让 Web 端把 ./client.js 作为浏览器半加载。
|
|
3
|
+
- insert:
|
|
4
|
+
- id: qip-real-workbench
|
|
5
|
+
name: 'dsh-total-quality'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# 工作台使用与数据迁移
|
|
2
|
-
|
|
3
|
-
1. 在运行 DSH Web 的电脑上安装全质插件,从侧栏打开「全质开源质量平台」。
|
|
4
|
-
2. 在「我」维护企业信息,在「员工成长中心」登记用于事项指派的团队成员。
|
|
5
|
-
3. 在「事项」登记问题、处理整改和验收。用「企业知识库」维护资料与版次,在「数据管理」导入历史业务数据或设置业务数据源。
|
|
6
|
-
4. 读取已有远程知识库时,在「远程知识库」测试地址,再输入已授权的访问密钥。远程连接用于查阅目录、正文和原件。
|
|
7
|
-
|
|
8
|
-
## 业务备份
|
|
9
|
-
|
|
10
|
-
从「数据管理 → 创建并下载备份」保存业务台账和资料。在另一台运行 DSH 的电脑上,可通过同一菜单还原。旧版加密迁移包使用原迁移口令还原业务数据。原事项、附件、成员和审批历史可在相应模块查阅。
|
|
1
|
+
# 工作台使用与数据迁移
|
|
2
|
+
|
|
3
|
+
1. 在运行 DSH Web 的电脑上安装全质插件,从侧栏打开「全质开源质量平台」。
|
|
4
|
+
2. 在「我」维护企业信息,在「员工成长中心」登记用于事项指派的团队成员。
|
|
5
|
+
3. 在「事项」登记问题、处理整改和验收。用「企业知识库」维护资料与版次,在「数据管理」导入历史业务数据或设置业务数据源。
|
|
6
|
+
4. 读取已有远程知识库时,在「远程知识库」测试地址,再输入已授权的访问密钥。远程连接用于查阅目录、正文和原件。
|
|
7
|
+
|
|
8
|
+
## 业务备份
|
|
9
|
+
|
|
10
|
+
从「数据管理 → 创建并下载备份」保存业务台账和资料。在另一台运行 DSH 的电脑上,可通过同一菜单还原。旧版加密迁移包使用原迁移口令还原业务数据。原事项、附件、成员和审批历史可在相应模块查阅。
|