修改训教

This commit is contained in:
shidongli 2024-07-10 10:44:01 +08:00
parent 66cab65b8b
commit 0b83a9e596

View File

@ -433,7 +433,7 @@
v-model="form.propagandaContent" v-model="form.propagandaContent"
:min-height="192" :min-height="192"
style="width: 800px" style="width: 800px"
@input="checkContentLength"
/> />
<!-- <editor <!-- <editor
v-model="form.propagandaContent" 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 //list
selectAgencyinfo() { selectAgencyinfo() {
let query = { let query = {