富文本编辑证书

20231126-yw
薛宇 2 years ago
parent 4c7262235d
commit 965b85e25a

@ -209,12 +209,11 @@ export default {
};
},
components: {
draggable,
ElImageViewer
// draggable,
// ElImageViewer
},
methods: {
submitUpload() {
this.$refs["dataForm"].validate(valid => {
if (valid) {
if (this.formData.auditStatus == 1) {
@ -239,22 +238,25 @@ export default {
onConfirmSubmit(val) {
this.formData.repeatUpload = val;
console.log(this.formData)
if (this.$isNotBlank(this.formData.filePath)) {
if (this.$refs.upload.uploadFiles.length > 0) {
this.$refs.upload.submit();
this.onSubmit();
} else {
this.onSubmit();
}
} else {
console.log(this.$refs.upload.uploadFiles.length);
if (this.$refs.upload.uploadFiles.length > 0) {
this.$refs.upload.submit();
} else {
this.$message.warning(`请选择文件`);
}
}
this.onSubmit();
// this.formData.repeatUpload = val;
// console.log(this.formData)
// if (this.$isNotBlank(this.formData.filePath)) {
// if (this.$refs.upload.uploadFiles.length > 0) {
// this.$refs.upload.submit();
// this.onSubmit();
// } else {
// this.onSubmit();
// }
//
// } else {
// console.log(this.$refs.upload.uploadFiles.length);
// if (this.$refs.upload.uploadFiles.length > 0) {
// this.$refs.upload.submit();
// } else {
// this.$message.warning(``);
// }
// }
},
@ -271,9 +273,11 @@ export default {
this.formData.manufacturerIdFk = this.inputQuery.manufacturerIdFk;
this.formData.productIdFk = this.inputQuery.productId;
}
if (this.formData.auditStatus != 1)
if (this.formData.auditStatus != 1){
this.formData.auditStatus = "6";
this.formData.filePath = this.$refs.editorRef.html
this.formData.filePath = this.$refs.editorRef.html
}
if (this.editTye == 1) {
insertCompanyCert(this.formData).then(response => {
this.loading = false;

@ -515,17 +515,19 @@ export default {
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
},
showImgViewer(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList=[];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList=response.data;
}
});
this.imgViewerVisible = true;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
let newWindow = window.open();
newWindow.document.write(row.filePath)
// this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
// this.imgList=[];
// previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
// if (response.code === 20000) {
// this.imgList=response.data;
// }
// });
// this.imgViewerVisible = true;
// const m = (e) => { e.preventDefault() };
// document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", m, false); //
},
closeImgViewer() {
this.imgViewerVisible = false;

@ -493,19 +493,21 @@ export default {
}
,
showImgViewer(row) {
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList = [];
previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList=response.data;
}
});
this.imgViewerVisible = true;
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
let newWindow = window.open();
newWindow.document.write(row.filePath)
// this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
// this.imgList = [];
// previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
// if (response.code === 20000) {
// this.imgList=response.data;
// }
// });
// this.imgViewerVisible = true;
// const m = (e) => {
// e.preventDefault()
// };
// document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", m, false); //
},
closeImgViewer() {
this.imgViewerVisible = false;

@ -550,20 +550,21 @@ export default {
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1;
},
showImgViewer(row) {
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList = [];
previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList=response.data;
}
});
this.imgViewerVisible = true;
const m = (e) => {
e.preventDefault()
};
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
let newWindow = window.open();
newWindow.document.write(row.filePath)
// this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
// this.imgList = [];
// previewImage({imageUrl: row.filePath, certFileUrl: this.certFileUrl}).then(response => {
// if (response.code === 20000) {
// this.imgList=response.data;
// }
// });
// this.imgViewerVisible = true;
// const m = (e) => {
// e.preventDefault()
// };
// document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", m, false); //
},
closeImgViewer() {
this.imgViewerVisible = false;

@ -602,7 +602,6 @@ export default {
showImgViewer(row) {
let newWindow = window.open();
newWindow.document.write(row.filePath)
console.log(row.filePath)
// this.certFileUrl = this.BASE_URL + '/udiwms/image/register/file/getImage?type=image2&name='
// this.imgList = []
// previewImage({ imageUrl: row.filePath, certFileUrl: this.certFileUrl }).then(response => {

@ -560,17 +560,19 @@ export default {
indexOf(ext.toLowerCase()) !== -1;
},
showImgViewer(row){
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
this.imgList=[];
previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
if (response.code === 20000) {
this.imgList=response.data;
}
});
this.imgViewerVisible = true;
const m = (e) => { e.preventDefault() };
document.body.style.overflow = 'hidden';
document.addEventListener("touchmove", m, false); //
let newWindow = window.open();
newWindow.document.write(row.filePath)
// this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
// this.imgList=[];
// previewImage({imageUrl:row.filePath,certFileUrl:this.certFileUrl}).then(response => {
// if (response.code === 20000) {
// this.imgList=response.data;
// }
// });
// this.imgViewerVisible = true;
// const m = (e) => { e.preventDefault() };
// document.body.style.overflow = 'hidden';
// document.addEventListener("touchmove", m, false); //
},
closeImgViewer(){
this.imgViewerVisible = false;

@ -669,19 +669,21 @@ export default {
'png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
},
showImgViewer(row) {
this.certFileUrl = this.BASE_URL + '/udiwms/image/register/file/getImage?type=image2&name='
this.imgList = []
previewImage({ imageUrl: row.filePath, certFileUrl: this.certFileUrl }).then(response => {
if (response.code === 20000) {
this.imgList = response.data
}
})
this.imgViewerVisible = true
const m = (e) => {
e.preventDefault()
}
document.body.style.overflow = 'hidden'
document.addEventListener('touchmove', m, false) //
let newWindow = window.open();
newWindow.document.write(row.filePath)
// this.certFileUrl = this.BASE_URL + '/udiwms/image/register/file/getImage?type=image2&name='
// this.imgList = []
// previewImage({ imageUrl: row.filePath, certFileUrl: this.certFileUrl }).then(response => {
// if (response.code === 20000) {
// this.imgList = response.data
// }
// })
// this.imgViewerVisible = true
// const m = (e) => {
// e.preventDefault()
// }
// document.body.style.overflow = 'hidden'
// document.addEventListener('touchmove', m, false) //
},
closeImgViewer() {
this.imgViewerVisible = false

Loading…
Cancel
Save