zydx-plus 1.35.594 → 1.35.596
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/package.json +1 -1
- package/src/components/chat/src/chat.vue +1 -1
- package/src/components/editor/src/editor.vue +4 -4
- package/src/components/editor2/src/editor.vue +1 -1
- package/src/index.js +1 -4
- package/src/components/biz_header/index.js +0 -6
- package/src/components/biz_header/src/bizHeader.vue +0 -306
- package/src/components/biz_header/src/button_name.js +0 -3842
package/package.json
CHANGED
|
@@ -349,7 +349,7 @@ export default {
|
|
|
349
349
|
},
|
|
350
350
|
async getAccessToken(v) {
|
|
351
351
|
return axios({
|
|
352
|
-
url: `/${
|
|
352
|
+
url: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/voice/getBaiduToken`,
|
|
353
353
|
method: 'post',
|
|
354
354
|
headers: {
|
|
355
355
|
'Authorization': localStorage.getItem('sessionId') || sessionStorage.getItem('sessionId'),
|
|
@@ -897,7 +897,7 @@ export default {
|
|
|
897
897
|
headers: {
|
|
898
898
|
Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
|
|
899
899
|
},
|
|
900
|
-
server: `/${
|
|
900
|
+
server: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/open/function/lessonResource/editOfficeFile`,
|
|
901
901
|
// server: '/zydx/lessonResource/editOfficeFile',
|
|
902
902
|
}
|
|
903
903
|
}
|
|
@@ -906,7 +906,7 @@ export default {
|
|
|
906
906
|
type: Object,
|
|
907
907
|
default: () => {
|
|
908
908
|
return {
|
|
909
|
-
server: `/${
|
|
909
|
+
server: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/lessonResource/upload/img`,
|
|
910
910
|
headers: {
|
|
911
911
|
Authorization: localStorage.getItem("remember") === "1" ? localStorage.getItem('sessionId') : sessionStorage.getItem('sessionId')
|
|
912
912
|
},
|
|
@@ -925,7 +925,7 @@ export default {
|
|
|
925
925
|
type: Object,
|
|
926
926
|
default: () => {
|
|
927
927
|
return {
|
|
928
|
-
server: `/${
|
|
928
|
+
server: `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/fileanex/uploadfile`,
|
|
929
929
|
fieldName: 'file',
|
|
930
930
|
maxFileSize: 100 * 1024 * 1024,
|
|
931
931
|
meta: {},
|
|
@@ -4025,7 +4025,7 @@ export default {
|
|
|
4025
4025
|
const xhr = new XMLHttpRequest()
|
|
4026
4026
|
// xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
|
|
4027
4027
|
// xhr.setRequestHeader('Authorization', '4a7ab02c-11b7-420f-bf85-ac5549b2aa81')
|
|
4028
|
-
xhr.open('GET', `/${
|
|
4028
|
+
xhr.open('GET', `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/voice/getVoideKey`)
|
|
4029
4029
|
xhr.setRequestHeader('Authorization', token)
|
|
4030
4030
|
this.error = true
|
|
4031
4031
|
xhr.onreadystatechange = () => {
|
|
@@ -725,7 +725,7 @@ export default {
|
|
|
725
725
|
const xhr = new XMLHttpRequest()
|
|
726
726
|
// xhr.open('GET', 'http://192.168.15.124:8888/zydx/voice/getDesKeyId')
|
|
727
727
|
// xhr.setRequestHeader('Authorization', '7a129186-7e51-431d-b965-735dfed8e459')
|
|
728
|
-
xhr.open('GET', `/${
|
|
728
|
+
xhr.open('GET', `/${window.linkApi.apiPrefix?window.linkApi.apiPrefix:'zydx'}/voice/getVoideKey`)
|
|
729
729
|
xhr.setRequestHeader('Authorization', token)
|
|
730
730
|
this.error = true
|
|
731
731
|
xhr.onreadystatechange = () => {
|
package/src/index.js
CHANGED
|
@@ -16,7 +16,6 @@ import flip from './components/flip/index';
|
|
|
16
16
|
import editor from './components/editor/index';
|
|
17
17
|
import tab from './components/tab/index';
|
|
18
18
|
import mind from './components/mind/index';
|
|
19
|
-
import bizHeader from './components/biz_header/index';
|
|
20
19
|
import editor2 from './components/editor2/index';
|
|
21
20
|
import dragPopup from './components/dragPopup/index';
|
|
22
21
|
import dragPopup2 from './components/dragPopup2/index';
|
|
@@ -55,7 +54,6 @@ const components = [
|
|
|
55
54
|
editor,
|
|
56
55
|
tab,
|
|
57
56
|
mind,
|
|
58
|
-
bizHeader,
|
|
59
57
|
editor2,
|
|
60
58
|
dragPopup,
|
|
61
59
|
bizTaskInfo,
|
|
@@ -89,7 +87,7 @@ function install(app) {
|
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
export default {
|
|
92
|
-
version: '1.35.
|
|
90
|
+
version: '1.35.596',
|
|
93
91
|
install,
|
|
94
92
|
Calendar,
|
|
95
93
|
Message,
|
|
@@ -109,7 +107,6 @@ export default {
|
|
|
109
107
|
editor,
|
|
110
108
|
tab,
|
|
111
109
|
mind,
|
|
112
|
-
bizHeader,
|
|
113
110
|
editor2,
|
|
114
111
|
dragPopup,
|
|
115
112
|
bizTaskInfo,
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @描述: 动作资源统一右侧header
|
|
3
|
-
* @创建时间: 2023-05-05 11:19:00
|
|
4
|
-
* @内容:
|
|
5
|
-
* @必传值:名字/类型/默认值/作用
|
|
6
|
-
* @非必传值:actionId: 动作ID
|
|
7
|
-
selectItem: 选中节点
|
|
8
|
-
tabType: 0班级 2 个人
|
|
9
|
-
selectBtnIndex: 选中按钮标识
|
|
10
|
-
catalogList: 目录集合。 需要带 children
|
|
11
|
-
headerType: 0动作或者1资源或者2学生端
|
|
12
|
-
* @回调事件:clickRightBtn: 按钮点击事件 回参有 选中节点,选中标识,选中按钮的名字,当前点击节点结合
|
|
13
|
-
* @组件内方法:
|
|
14
|
-
*/
|
|
15
|
-
<template>
|
|
16
|
-
<div class="headLevel">
|
|
17
|
-
<div v-for="(item, index) in nodeList" :key="index" class="borderBottom1cccccc padding0_10 box_sizing_border_box" v-show="getShow(item)">
|
|
18
|
-
<zydx-topic-dry :is_hide="true">
|
|
19
|
-
<template v-slot:title_slot><span class="fontSize16" :title="item.name" :class="'level'+item.level">{{item.name}}{{ item.suffixName? ':':'' }}</span><span v-if="item.suffixName" class="fontSize12">{{ item.suffixName }}</span></template>
|
|
20
|
-
<template v-slot:button_slot v-if="isShowBtn">
|
|
21
|
-
<template v-for="(buttonInfo, buttonIndex) in initConfig(item).buttonList[tabType]">
|
|
22
|
-
<template v-if="buttonInfo instanceof Object" v-for="(childButtonInfo, childButtonIndex) in buttonInfo">
|
|
23
|
-
<!-- 在课上渲染的 -->
|
|
24
|
-
<button class="defaultButton"
|
|
25
|
-
:class="{'active theme-text' : (childButtonIndex === getSelectBtnIndex && selectItem.level === item.level) && (headerType === 2 && isHasDemandContent && childButtonIndex === 'demand' || headerType === 2 && childButtonIndex !== 'demand' || headerType !== 2), 'defaultDisableButton': headerType === 2 && !isHasDemandContent && childButtonIndex === 'demand' }"
|
|
26
|
-
v-if="item.level === 0 && buttonIndex === 'headLevel' && childButtonIndex !== 'default'"
|
|
27
|
-
@click="clickRightBtn(item, childButtonIndex, childButtonInfo)"
|
|
28
|
-
v-html="childButtonInfo"
|
|
29
|
-
/>
|
|
30
|
-
<!-- 单独在最低节点设置的按钮 -->
|
|
31
|
-
<button :ref="childButtonIndex + item.catalogId" class="defaultButton"
|
|
32
|
-
:class="{'active theme-text' : childButtonIndex === getSelectBtnIndex && selectItem.level === item.level && ((isHasResContent && childButtonIndex === 'viewResource' || childButtonIndex !== 'viewResource') || (childButtonIndex === 'score' && scoreFlag === '3' || childButtonIndex !== 'score') || (childButtonIndex === 'analysis' && analysisFlag === '3' || childButtonIndex !== 'analysis') || (childButtonIndex === 'power' && powerFlag === '3' || childButtonIndex !== 'power')), 'defaultDisableButton': !isHasResContent && childButtonIndex === 'viewResource' || childButtonIndex === 'score' && scoreFlag === '0' || childButtonIndex === 'analysis' && analysisFlag === '0' || childButtonIndex === 'power' && powerFlag === '0'}"
|
|
33
|
-
v-if="item.level !== 0 && (!item.children || item.children.length === 0) && buttonIndex === 'lowLevel' && childButtonIndex !== 'default' && (tabType === 2 && childButtonIndex !=='analysis' || tabType === 0)"
|
|
34
|
-
@click="clickRightBtn(item, childButtonIndex, childButtonInfo)"
|
|
35
|
-
v-html="childButtonInfo"
|
|
36
|
-
/>
|
|
37
|
-
<!-- 在非课和非最低节点 -->
|
|
38
|
-
<button class="defaultButton"
|
|
39
|
-
:class="childButtonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active theme-text' : ''"
|
|
40
|
-
v-if="item.level !== 0 && item.children && item.children.length !== 0 && buttonIndex === 'otherLevel' && childButtonIndex !== 'default'"
|
|
41
|
-
@click="clickRightBtn(item, childButtonIndex, childButtonInfo)"
|
|
42
|
-
v-html="childButtonInfo"
|
|
43
|
-
/>
|
|
44
|
-
</template>
|
|
45
|
-
<template v-else-if="buttonInfo != null && buttonInfo.constructor === String">
|
|
46
|
-
<button class="defaultButton"
|
|
47
|
-
:class="buttonIndex === getSelectBtnIndex && selectItem.level === item.level? 'active theme-text' : ''"
|
|
48
|
-
v-if="buttonIndex !== 'level0btn' && buttonInfo != null"
|
|
49
|
-
@click="clickRightBtn(item, buttonIndex, buttonInfo)"
|
|
50
|
-
v-html="buttonInfo"
|
|
51
|
-
/>
|
|
52
|
-
</template>
|
|
53
|
-
</template>
|
|
54
|
-
</template>
|
|
55
|
-
</zydx-topic-dry>
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script>
|
|
61
|
-
import zydxTopicDry from "../../titleBox/src/zydxTopicDry"
|
|
62
|
-
import zydxInput from '../../input/src/input.vue'
|
|
63
|
-
import buttonName from "./button_name"
|
|
64
|
-
export default {
|
|
65
|
-
name: "zydx-head-level",
|
|
66
|
-
mixins: [buttonName],
|
|
67
|
-
props: {
|
|
68
|
-
isTeacherReview: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: true
|
|
71
|
-
},
|
|
72
|
-
actionId: {
|
|
73
|
-
type: String,
|
|
74
|
-
required: true
|
|
75
|
-
},
|
|
76
|
-
// 选中的节点
|
|
77
|
-
selectItem: {
|
|
78
|
-
type: Object,
|
|
79
|
-
required: true
|
|
80
|
-
},
|
|
81
|
-
// 班级还是个人
|
|
82
|
-
tabType: {
|
|
83
|
-
type: Number,
|
|
84
|
-
default: 0
|
|
85
|
-
},
|
|
86
|
-
// 选中的按钮标识
|
|
87
|
-
selectBtnIndex: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: ''
|
|
90
|
-
},
|
|
91
|
-
// 是否显示操作按钮
|
|
92
|
-
isShowBtn: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: false
|
|
95
|
-
},
|
|
96
|
-
// 目录树集合
|
|
97
|
-
catalogList: {
|
|
98
|
-
type: Array,
|
|
99
|
-
required: true
|
|
100
|
-
},
|
|
101
|
-
// 0动作或者1资源或者2学生端
|
|
102
|
-
headerType: {
|
|
103
|
-
type: Number,
|
|
104
|
-
required: true
|
|
105
|
-
},
|
|
106
|
-
isHasDemandContent: { // 学生端要求是否有内容
|
|
107
|
-
type: Boolean,
|
|
108
|
-
default: true
|
|
109
|
-
},
|
|
110
|
-
isHasResContent: { // 教师端-演示阅读、教学互动-模块最低节点资源列表是否有内容
|
|
111
|
-
type: Boolean,
|
|
112
|
-
default: true
|
|
113
|
-
},
|
|
114
|
-
scoreFlag: {
|
|
115
|
-
type: String,
|
|
116
|
-
default: '3'
|
|
117
|
-
},
|
|
118
|
-
analysisFlag: {
|
|
119
|
-
type: String,
|
|
120
|
-
default: '3'
|
|
121
|
-
},
|
|
122
|
-
powerFlag: {
|
|
123
|
-
type: String,
|
|
124
|
-
default: '3'
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
data() {
|
|
128
|
-
return {
|
|
129
|
-
searchContent: '',
|
|
130
|
-
isShowSearch: false,
|
|
131
|
-
nodeList: []
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
computed: {
|
|
135
|
-
getSelectBtnIndex () {
|
|
136
|
-
if (this.selectBtnIndex === '') {
|
|
137
|
-
let buttonIndex = '';
|
|
138
|
-
let buttonList = this.initConfig(this.selectItem).buttonList[this.tabType];
|
|
139
|
-
if (this.selectItem.level === 0 && buttonList.headLevel) {
|
|
140
|
-
buttonIndex = buttonList.headLevel.default;
|
|
141
|
-
this.clickRightBtn(this.selectItem, buttonIndex, buttonList.headLevel[buttonIndex]);
|
|
142
|
-
} else if(this.selectItem.level != 0 && (!this.selectItem.children || this.selectItem.children.length === 0) && buttonList.lowLevel) {
|
|
143
|
-
buttonIndex = buttonList.lowLevel.default;
|
|
144
|
-
this.clickRightBtn(this.selectItem, buttonIndex, buttonList.lowLevel[buttonIndex]);
|
|
145
|
-
} else {
|
|
146
|
-
if (buttonList.otherLevel) {
|
|
147
|
-
buttonIndex = buttonList.otherLevel.default;
|
|
148
|
-
this.clickRightBtn(this.selectItem, buttonIndex, buttonList.otherLevel[buttonIndex]);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return buttonIndex;
|
|
152
|
-
} else {
|
|
153
|
-
return this.selectBtnIndex;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
mounted: function () {
|
|
158
|
-
this.selectNode(this.selectItem)
|
|
159
|
-
},
|
|
160
|
-
watch: {
|
|
161
|
-
actionId: {
|
|
162
|
-
deep: true,
|
|
163
|
-
handler: function (val) {
|
|
164
|
-
this.selectNode(this.selectItem)
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
selectItem: {
|
|
168
|
-
deep: true,
|
|
169
|
-
handler: function (val) {
|
|
170
|
-
this.selectNode(this.selectItem)
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
methods: {
|
|
175
|
-
getShow(item) {
|
|
176
|
-
if (this.headerType === 2 && (this.actionId == 'action_notes' || this.actionId == 'action_lesson013' || this.actionId == 'action_lesson055' || this.actionId == 'action_lesson056') || this.actionId === 'resource_lesson_knowledge' || this.actionId === 'resource_lesson_rhyme') {
|
|
177
|
-
if (!item.children || item.children.length == 0) {
|
|
178
|
-
return false
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return true;
|
|
182
|
-
},
|
|
183
|
-
// 选择节点
|
|
184
|
-
selectNode: function (node) {
|
|
185
|
-
this.nodeList = []
|
|
186
|
-
this.recursionNode(node.catalogId)
|
|
187
|
-
this.nodeList = this.nodeList.reverse()
|
|
188
|
-
// 考勤管理去掉节级
|
|
189
|
-
if (this.actionId === 'action_checktime') {
|
|
190
|
-
this.nodeList = this.nodeList.filter(item => item.level !== 2)
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
// 递归节点
|
|
194
|
-
recursionNode: function (catalogId) {
|
|
195
|
-
let node = this.getNode(catalogId)
|
|
196
|
-
if (node) {
|
|
197
|
-
this.nodeList.push(node)
|
|
198
|
-
if (node.pcatalogId && node.pcatalogId !== -1) {
|
|
199
|
-
this.recursionNode(node.pcatalogId)
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
// 获取节点
|
|
204
|
-
getNode: function (catalogId) {
|
|
205
|
-
let node = null
|
|
206
|
-
this.catalogList.forEach(item => {
|
|
207
|
-
if (item.catalogId === catalogId) {
|
|
208
|
-
node = item
|
|
209
|
-
}
|
|
210
|
-
})
|
|
211
|
-
return node
|
|
212
|
-
},
|
|
213
|
-
clickRightBtn (selectItem, selectBtnIndex, selectBtnName) {
|
|
214
|
-
// if(selectBtnIndex == this.selectBtnIndex && selectItem == this.selectItem) {
|
|
215
|
-
// return false;
|
|
216
|
-
// }
|
|
217
|
-
this.$emit('clickRightBtn', {selectItem, selectBtnIndex, selectBtnName, 'nodeList': this.nodeList});
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
components: {zydxTopicDry, zydxInput}
|
|
221
|
-
}
|
|
222
|
-
</script>
|
|
223
|
-
|
|
224
|
-
<style scoped>
|
|
225
|
-
.borderBottom1cccccc {
|
|
226
|
-
border-bottom: 1px #cccccc solid !important;
|
|
227
|
-
}
|
|
228
|
-
/*.z-button {*/
|
|
229
|
-
/*margin: 1px;*/
|
|
230
|
-
/*width: auto;*/
|
|
231
|
-
/*min-width: 60px;*/
|
|
232
|
-
/*max-width: 60px;*/
|
|
233
|
-
/*text-overflow: ellipsis;*/
|
|
234
|
-
/*white-space: nowrap;*/
|
|
235
|
-
/*overflow: hidden;*/
|
|
236
|
-
/*height: 20px;*/
|
|
237
|
-
/*background-color: #FFFFFF;*/
|
|
238
|
-
/*color: #000000;*/
|
|
239
|
-
/*border: #000000 1px solid;*/
|
|
240
|
-
/*line-height: 18px;*/
|
|
241
|
-
/*border-radius: 3px;*/
|
|
242
|
-
/*font-size: 12px !important;*/
|
|
243
|
-
/*letter-spacing: 0px !important;*/
|
|
244
|
-
/*text-align: center;*/
|
|
245
|
-
/*padding: 0 5px;*/
|
|
246
|
-
/*font-weight: normal;*/
|
|
247
|
-
/*cursor: pointer;*/
|
|
248
|
-
/*}*/
|
|
249
|
-
|
|
250
|
-
.defaultButton {
|
|
251
|
-
width: auto;
|
|
252
|
-
min-width: 60px;
|
|
253
|
-
height: 20px;
|
|
254
|
-
font-size: 12px;
|
|
255
|
-
line-height: 20px;
|
|
256
|
-
border: 1px solid #000;
|
|
257
|
-
color: #000;
|
|
258
|
-
border-radius: 3px;
|
|
259
|
-
text-align: center;
|
|
260
|
-
cursor: pointer;
|
|
261
|
-
background-color: #fff;
|
|
262
|
-
user-select: none;
|
|
263
|
-
margin: 1px;
|
|
264
|
-
box-sizing: border-box;
|
|
265
|
-
}
|
|
266
|
-
.defaultDisableButton {
|
|
267
|
-
width: auto;
|
|
268
|
-
min-width: 60px;
|
|
269
|
-
height: 20px;
|
|
270
|
-
font-size: 12px;
|
|
271
|
-
line-height: 20px;
|
|
272
|
-
color: #717171;
|
|
273
|
-
border: #717171 1px solid;
|
|
274
|
-
border-radius: 3px;
|
|
275
|
-
text-align: center;
|
|
276
|
-
cursor: pointer;
|
|
277
|
-
background-color: #fff;
|
|
278
|
-
user-select: none;
|
|
279
|
-
margin: 1px;
|
|
280
|
-
box-sizing: border-box;
|
|
281
|
-
pointer-events: none;
|
|
282
|
-
/*禁止点击*/
|
|
283
|
-
}
|
|
284
|
-
.active{
|
|
285
|
-
/* color: rgba(0, 255, 0, 1) !important; */
|
|
286
|
-
}
|
|
287
|
-
.padding0_10 {
|
|
288
|
-
padding: 0px 10px;
|
|
289
|
-
}
|
|
290
|
-
.fontSize16 {
|
|
291
|
-
font-size: 16px;
|
|
292
|
-
}
|
|
293
|
-
.level0 {
|
|
294
|
-
font-weight: bold;
|
|
295
|
-
}
|
|
296
|
-
.level1 {
|
|
297
|
-
font-weight: bold;
|
|
298
|
-
}
|
|
299
|
-
.box_sizing_border_box {
|
|
300
|
-
box-sizing: border-box;
|
|
301
|
-
height: 30px;
|
|
302
|
-
}
|
|
303
|
-
.fontSize12{
|
|
304
|
-
font-size: 12px;
|
|
305
|
-
}
|
|
306
|
-
</style>
|