修改训教
This commit is contained in:
parent
66cab65b8b
commit
0b83a9e596
@ -433,7 +433,7 @@
|
||||
v-model="form.propagandaContent"
|
||||
:min-height="192"
|
||||
style="width: 800px"
|
||||
@input="checkContentLength"
|
||||
|
||||
/>
|
||||
<!-- <editor
|
||||
v-model="form.propagandaContent"
|
||||
@ -1076,58 +1076,6 @@ export default {
|
||||
// }
|
||||
// },
|
||||
|
||||
checkContentLength(event) {
|
||||
// console.log(event, "kkkkk")
|
||||
|
||||
// event.preventDefault();
|
||||
|
||||
|
||||
// 自定义处理逻辑,例如只获取纯文本
|
||||
// const text = event.clipboardData.getData('text');
|
||||
// if (text) {
|
||||
// document.execCommand('insertText', false, text);
|
||||
// }
|
||||
|
||||
// e.preventDefault();
|
||||
// console.log(this.form.propagandaContent.length - 7, '0000000000')
|
||||
// if (this.form.propagandaContent.length - 7 > this.maxLength) {
|
||||
// this.$message({
|
||||
// type: "error",
|
||||
// message: "已达到最大输入长度"
|
||||
// });
|
||||
// }
|
||||
// const file = event.target.files[0];
|
||||
// this.compressImage(event)
|
||||
// .then(compressedBlob => {
|
||||
// this.imageUrl = URL.createObjectURL(compressedBlob);
|
||||
// })
|
||||
// .catch(error => {
|
||||
// console.error('Error compressing image:', error);
|
||||
// });},
|
||||
// compressImage(event) {
|
||||
// return new Promise((resolve, reject) => {
|
||||
// const reader = new FileReader();
|
||||
// reader.onload = event => {
|
||||
// const img = new Image();
|
||||
// img.onload = () => {
|
||||
// const canvas = document.createElement('canvas');
|
||||
// const ctx = canvas.getContext('2d');
|
||||
// const maxWidth = 800;
|
||||
// const scale = Math.min(maxWidth / img.width, 1);
|
||||
// canvas.width = img.width * scale;
|
||||
// canvas.height = img.height * scale;
|
||||
// ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
||||
// canvas.toBlob(resolve, 'image/jpeg', 0.7);
|
||||
// };
|
||||
// img.src = event.target.result;
|
||||
// };
|
||||
// reader.readAsDataURL(file);
|
||||
// });
|
||||
|
||||
|
||||
|
||||
},
|
||||
|
||||
//获取医院list
|
||||
selectAgencyinfo() {
|
||||
let query = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user