zydx-plus 1.33.434 → 1.33.435
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
|
@@ -425,6 +425,12 @@ export function butJson(editor, data) {
|
|
|
425
425
|
childMenuKeys: [],
|
|
426
426
|
html: `<p data-signId="enclosure"><span style="font-weight: 700;font-size: 16px;">附件列表:</span></p>`
|
|
427
427
|
},
|
|
428
|
+
{
|
|
429
|
+
name: '插入白板',
|
|
430
|
+
key: 'paint',
|
|
431
|
+
childMenuKeys: [],
|
|
432
|
+
html: ''
|
|
433
|
+
}
|
|
428
434
|
],
|
|
429
435
|
}
|
|
430
436
|
}
|
|
@@ -565,6 +565,7 @@
|
|
|
565
565
|
</zydx-drag-popup>-->
|
|
566
566
|
|
|
567
567
|
</div>
|
|
568
|
+
<Paint v-if="paintShow" title="插入白板" @exportImg="exportImg" :uploadImage="uploadImage" :url="uploadImage?.url" @cancel="paintCancel"></Paint>
|
|
568
569
|
</template>
|
|
569
570
|
|
|
570
571
|
<script lang="jsx">
|
|
@@ -613,6 +614,7 @@ import MarginNarrow from "../src/margin-narrow.vue";
|
|
|
613
614
|
import MarginStandard from "../src/margin-standard.vue";
|
|
614
615
|
import MarginWide from "../src/margin-wide.vue";
|
|
615
616
|
import isSelect from "../src/isSelect.vue";
|
|
617
|
+
import Paint from '../../paint/src/paint'
|
|
616
618
|
|
|
617
619
|
const img = require('./image/annotation.png')
|
|
618
620
|
export default {
|
|
@@ -630,7 +632,7 @@ export default {
|
|
|
630
632
|
zydxColoring,
|
|
631
633
|
zydxDragPopup,
|
|
632
634
|
zydxSelect,
|
|
633
|
-
delSvg, editSvg, viewSvg
|
|
635
|
+
delSvg, editSvg, viewSvg,Paint
|
|
634
636
|
},
|
|
635
637
|
beforeUnmount() {
|
|
636
638
|
this.editor.destroy()
|
|
@@ -641,6 +643,7 @@ export default {
|
|
|
641
643
|
},
|
|
642
644
|
data() {
|
|
643
645
|
return {
|
|
646
|
+
paintShow: false,
|
|
644
647
|
pageMarginSvg: [
|
|
645
648
|
{
|
|
646
649
|
iconName: 'MarginStandard',
|
|
@@ -1343,6 +1346,20 @@ export default {
|
|
|
1343
1346
|
},
|
|
1344
1347
|
emits: ['confirm', 'enclosure', 'enlDownload', 'enlSee'],
|
|
1345
1348
|
methods: {
|
|
1349
|
+
// 插入白板数据
|
|
1350
|
+
exportImg(e) {
|
|
1351
|
+
this.uploadFile(e, this.uploadImage).then(r => {
|
|
1352
|
+
this.paintShow = false
|
|
1353
|
+
this.uploadImage.customInsert(r, (e) => {
|
|
1354
|
+
this.imgUrl = e
|
|
1355
|
+
this.imgPopType = 'insertImage'
|
|
1356
|
+
this.imgConfirm()
|
|
1357
|
+
})
|
|
1358
|
+
})
|
|
1359
|
+
},
|
|
1360
|
+
paintCancel() {
|
|
1361
|
+
this.paintShow = false
|
|
1362
|
+
},
|
|
1346
1363
|
selectMargin(selectItem) {
|
|
1347
1364
|
this.pageMarginSvg.forEach(item => {
|
|
1348
1365
|
item.isSelect = item.title === selectItem.title;
|
|
@@ -3208,6 +3225,9 @@ export default {
|
|
|
3208
3225
|
if (key.key === 'group-upload') {
|
|
3209
3226
|
this.isShowUpload = true
|
|
3210
3227
|
}
|
|
3228
|
+
if (key.key === 'paint') {
|
|
3229
|
+
this.paintShow = true
|
|
3230
|
+
}
|
|
3211
3231
|
// 添加图片
|
|
3212
3232
|
if (key.key === 'group-image') {
|
|
3213
3233
|
if (childKey.key === 'insertImage') {
|
|
@@ -4105,9 +4125,6 @@ label {
|
|
|
4105
4125
|
height: 10px;
|
|
4106
4126
|
}
|
|
4107
4127
|
|
|
4108
|
-
:deep(.imgCont) {
|
|
4109
|
-
line-height: 0 !important;
|
|
4110
|
-
}
|
|
4111
4128
|
|
|
4112
4129
|
.img-pop {
|
|
4113
4130
|
position: absolute;
|
|
@@ -4540,7 +4557,10 @@ li {
|
|
|
4540
4557
|
align-items: flex-start;
|
|
4541
4558
|
font-size: 12px;
|
|
4542
4559
|
}
|
|
4543
|
-
|
|
4560
|
+
:deep(p:has(>img)) {
|
|
4561
|
+
line-height: 0 !important;
|
|
4562
|
+
text-indent: 0 !important;
|
|
4563
|
+
}
|
|
4544
4564
|
.tip-btnBox > div {
|
|
4545
4565
|
width: 60px;
|
|
4546
4566
|
height: 20px;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
</label>
|
|
16
16
|
<button v-else class="buts" @click="toolTap(item.key)">{{ item.title }}</button>
|
|
17
17
|
</div>
|
|
18
|
+
<button class="buts" @click="toolTap('paint')">插入白板</button>
|
|
18
19
|
<button v-if="voiceShow" class="buts" @mousedown.stop="speechDown" @click="voice()"
|
|
19
20
|
:style="{color: (voiceStatus)? '#4B0C77' :'#000'}">{{ voiceStatus ? '关闭语音' : '语音输入' }}
|
|
20
21
|
</button>
|
|
@@ -215,6 +215,10 @@ export default {
|
|
|
215
215
|
url: {
|
|
216
216
|
type: String,
|
|
217
217
|
default: ''
|
|
218
|
+
},
|
|
219
|
+
uploadImage: {
|
|
220
|
+
type: Object,
|
|
221
|
+
default: () => {}
|
|
218
222
|
}
|
|
219
223
|
},
|
|
220
224
|
emits: ['cancel','exportImg'],
|
|
@@ -366,14 +370,20 @@ export default {
|
|
|
366
370
|
let formData = new FormData();
|
|
367
371
|
formData.append('file', file);
|
|
368
372
|
// xhr.open('POST', 'https://192.168.8.81:8081/zydx/latex/get')
|
|
369
|
-
// xhr.setRequestHeader('Authorization', '
|
|
373
|
+
// xhr.setRequestHeader('Authorization', '80f6a0c2-eb43-4f4a-8f3e-ab3bf7b447be')
|
|
370
374
|
xhr.open('GET', '/zydx/latex/get')
|
|
371
375
|
xhr.setRequestHeader('Authorization', token)
|
|
372
376
|
this.error = true
|
|
373
377
|
xhr.onreadystatechange = () => {
|
|
374
378
|
if (xhr.readyState === 4) {
|
|
375
379
|
if (xhr.status === 200) {
|
|
376
|
-
|
|
380
|
+
if(this.url) {
|
|
381
|
+
rl(`${this.url}${JSON.parse(xhr.responseText).data}`)
|
|
382
|
+
}else {
|
|
383
|
+
this.uploadImage.customInsert(JSON.parse(xhr.responseText), (r) => {
|
|
384
|
+
rl(r)
|
|
385
|
+
})
|
|
386
|
+
}
|
|
377
387
|
}
|
|
378
388
|
}
|
|
379
389
|
}
|