zydx-plus 1.35.556 → 1.35.558
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
CHANGED
|
@@ -986,13 +986,15 @@ export default {
|
|
|
986
986
|
// this.editor?.commands.setContent(json2html({node: "root", child: (e === undefined || e === null) ? [] : e}))
|
|
987
987
|
this.editor?.commands.setContent(dataHtml)
|
|
988
988
|
if (this.readOnly) {
|
|
989
|
-
|
|
990
|
-
|
|
989
|
+
// lxq 25.7.14
|
|
990
|
+
// if (this.page) this.editableShow = true
|
|
991
|
+
// setTimeout(() => {
|
|
991
992
|
if (this.page) {
|
|
992
993
|
this.editableShow = false
|
|
994
|
+
console.log('editableShow',this.editableShow)
|
|
993
995
|
this.readOnlyPage()
|
|
994
996
|
}
|
|
995
|
-
}, 300)
|
|
997
|
+
// }, 300)
|
|
996
998
|
}
|
|
997
999
|
setTimeout(() => {
|
|
998
1000
|
this.init = true
|
|
@@ -1005,20 +1007,22 @@ export default {
|
|
|
1005
1007
|
},
|
|
1006
1008
|
readOnly: {
|
|
1007
1009
|
handler: function (e) {
|
|
1008
|
-
|
|
1010
|
+
// lxq 25.7.14
|
|
1011
|
+
// let time = setInterval(() => {
|
|
1009
1012
|
if (this.editor) { // 没有时间以后 停止定时器
|
|
1010
1013
|
this.editor.setOptions({editable: !e})
|
|
1011
1014
|
if (this.page) {
|
|
1012
|
-
setTimeout(() => {
|
|
1015
|
+
// setTimeout(() => {
|
|
1013
1016
|
this.editableShow = !e
|
|
1014
1017
|
if (e) {
|
|
1018
|
+
console.log('readOnlyPage',e)
|
|
1015
1019
|
this.readOnlyPage() // 只读分页
|
|
1016
1020
|
}
|
|
1017
|
-
}, 300)
|
|
1021
|
+
// }, 300)
|
|
1018
1022
|
}
|
|
1019
|
-
clearInterval(time) //停止计时器,清除定时器
|
|
1023
|
+
// clearInterval(time) //停止计时器,清除定时器
|
|
1020
1024
|
}
|
|
1021
|
-
}, 10)
|
|
1025
|
+
// }, 10)
|
|
1022
1026
|
},
|
|
1023
1027
|
deep: true,
|
|
1024
1028
|
immediate: true
|
|
@@ -2158,7 +2162,7 @@ export default {
|
|
|
2158
2162
|
let max = this.wit * 1.6 - 186
|
|
2159
2163
|
let pHeight = 0
|
|
2160
2164
|
let html = ''
|
|
2161
|
-
for (let i = 0; i < data
|
|
2165
|
+
for (let i = 0; i < data?.length; i++) {
|
|
2162
2166
|
if (data[i].className === 'custom-link') { // 分割线
|
|
2163
2167
|
pHeight += 21
|
|
2164
2168
|
html += data[i].outerHTML
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
top: item.leftY + 'px',
|
|
7
7
|
left: item.leftX + 'px',
|
|
8
8
|
transform: 'rotate('+ item.angle +'deg)',
|
|
9
|
-
'border-bottom': (item.border)? '1px solid red' :'1px dashed
|
|
9
|
+
'border-bottom': (item.border)? '1px solid red' :'1px dashed #ccc'
|
|
10
10
|
}"></div>
|
|
11
11
|
<div class="tagging-left">
|
|
12
12
|
<div class="tagging-title">学生作品</div>
|
|
@@ -200,7 +200,6 @@ export default {
|
|
|
200
200
|
// 当前页批注数据ID
|
|
201
201
|
annDataID() {
|
|
202
202
|
this.dataID = []
|
|
203
|
-
console.log('childNodes',this.$refs.tagging.childNodes);
|
|
204
203
|
this.$refs.tagging.childNodes.forEach(item => {
|
|
205
204
|
this.childNode(item)
|
|
206
205
|
})
|
|
@@ -350,7 +349,7 @@ export default {
|
|
|
350
349
|
const className = document.getElementsByClassName('annotation-list')
|
|
351
350
|
const className2 = document.getElementsByClassName(`${id}s`)
|
|
352
351
|
const className3 = document.getElementsByClassName('custom-underline')
|
|
353
|
-
this.classGuidance(className3,'1px dashed #
|
|
352
|
+
this.classGuidance(className3,'1px dashed #ccc',false)
|
|
354
353
|
this.classGuidance(className2,'1px solid #FF0000',true)
|
|
355
354
|
for (let i = 0; i < className.length; i++) {
|
|
356
355
|
className[i].style.border = '1px solid #ccc'
|