注释多余日志

des
吕天方 5 months ago
parent d641c38044
commit 6ec3a4114f

@ -85,9 +85,9 @@ const componentChild = {
} }
conf["on-success"] = (response, file, fileList) => { conf["on-success"] = (response, file, fileList) => {
// 在上传成功后的回调函数中可以执行你的业务逻辑 // 在上传成功后的回调函数中可以执行你的业务逻辑
console.log('上传成功', response); // console.log('上传成功', response);
console.log('上传成功2', file); // console.log('上传成功2', file);
console.log('上传成功3', fileList); // console.log('上传成功3', fileList);
let listtow = [] let listtow = []
fileList.forEach(item => { fileList.forEach(item => {
listtow.push(item.response.fileName) listtow.push(item.response.fileName)
@ -98,9 +98,9 @@ const componentChild = {
conf["on-success"] = (response, file, fileList) => { conf["on-success"] = (response, file, fileList) => {
// 在上传成功后的回调函数中可以执行你的业务逻辑 // 在上传成功后的回调函数中可以执行你的业务逻辑
console.log('上传成功', response); // console.log('上传成功', response);
console.log('上传成功2', file); // console.log('上传成功2', file);
console.log('上传成功3', fileList); // console.log('上传成功3', fileList);
let listtow = [] let listtow = []
fileList.forEach(item => { fileList.forEach(item => {
listtow.push(item.response.fileName) listtow.push(item.response.fileName)
@ -110,8 +110,8 @@ const componentChild = {
}; };
conf["on-remove"] = (response, fileList) => { conf["on-remove"] = (response, fileList) => {
// 在上传成功后的回调函数中可以执行你的业务逻辑 // 在上传成功后的回调函数中可以执行你的业务逻辑
console.log('移除', response); // console.log('移除', response);
console.log('移除成功3', fileList); // console.log('移除成功3', fileList);
let listtow = [] let listtow = []
fileList.forEach(item => { fileList.forEach(item => {
listtow.push(item.response.fileName) listtow.push(item.response.fileName)
@ -124,7 +124,7 @@ const componentChild = {
} }
conf["on-preview"] = (response, fileList) => { conf["on-preview"] = (response, fileList) => {
// 在上传成功后的回调函数中可以执行你的业务逻辑 // 在上传成功后的回调函数中可以执行你的业务逻辑
console.log('点击', response); // console.log('点击', response);
window.open( process.env.VUE_APP_BASE_API + response.response.fileName) window.open( process.env.VUE_APP_BASE_API + response.response.fileName)
// 这里可以根据需要执行其他操作,例如更新界面或显示消息 // 这里可以根据需要执行其他操作,例如更新界面或显示消息
}; };
@ -145,7 +145,7 @@ const componentChild = {
valuelist.push(obj) valuelist.push(obj)
}) })
conf["file-list"] = valuelist conf["file-list"] = valuelist
console.log(888, conf); // console.log(888, conf);
} }
return list return list
} }

@ -363,7 +363,7 @@ export default {
// console.log('this.templateInfo: ', this.templateInfo); // console.log('this.templateInfo: ', this.templateInfo);
getBasicInfo({ enterpriseId: this.$store.state.user.enterpriseId }).then((response) => { getBasicInfo({ enterpriseId: this.$store.state.user.enterpriseId }).then((response) => {
this.baseInfo = response.data this.baseInfo = response.data
console.log(this.baseInfo); // console.log(this.baseInfo);
}) })
// getOpenInterface({ templateRecordId: templateRecordId }).then((response) => { // getOpenInterface({ templateRecordId: templateRecordId }).then((response) => {
// this.openInterfaceInfo = response.data // this.openInterfaceInfo = response.data
@ -400,10 +400,10 @@ export default {
function validatePhoneNumber(text, phoneNumber) { function validatePhoneNumber(text, phoneNumber) {
const pattern = text const pattern = text
const regex = new RegExp(pattern.slice(1, -1)); // pattern const regex = new RegExp(pattern.slice(1, -1)); // pattern
console.log("yanzhengyanzheneg ", regex.test(phoneNumber)); // console.log("yanzhengyanzheneg ", regex.test(phoneNumber));
return regex.test(phoneNumber); return regex.test(phoneNumber);
} }
console.log(this.$refs.ismybuild.drawingList); // console.log(this.$refs.ismybuild.drawingList);
let drawingList = this.$refs.ismybuild.drawingList let drawingList = this.$refs.ismybuild.drawingList
// //
for (let index = 0; index < drawingList.length; index++) { for (let index = 0; index < drawingList.length; index++) {
@ -433,7 +433,7 @@ export default {
templateRecordId: this.templateRecordId templateRecordId: this.templateRecordId
} }
systemfill(obj).then(res => { systemfill(obj).then(res => {
console.log(999, res); // console.log(999, res);
if (res.code == 200) { if (res.code == 200) {
this.$router.go(-1); this.$router.go(-1);
} }

@ -1366,7 +1366,7 @@ export default {
this.templateRecordId = templateRecordId this.templateRecordId = templateRecordId
let { data } = await getTemplateInfo({ templateId: templateId }) let { data } = await getTemplateInfo({ templateId: templateId })
this.templateInfo = data this.templateInfo = data
console.log(7777, this.templateInfo); // console.log(7777, this.templateInfo);
this.$refs.ismybuild.jsonOpen(this.templateInfo.templateJson) this.$refs.ismybuild.jsonOpen(this.templateInfo.templateJson)
switch (this.templateId) { switch (this.templateId) {
case '2': case '2':
@ -1388,7 +1388,7 @@ export default {
// console.log('this.templateInfo: ', this.templateInfo); // console.log('this.templateInfo: ', this.templateInfo);
getBasicInfo({ enterpriseId: this.$store.state.user.enterpriseId }).then((response) => { getBasicInfo({ enterpriseId: this.$store.state.user.enterpriseId }).then((response) => {
this.baseInfo = response.data this.baseInfo = response.data
console.log(this.baseInfo); // console.log(this.baseInfo);
}) })
getOpenInterface({ templateRecordId: templateRecordId }).then((response) => { getOpenInterface({ templateRecordId: templateRecordId }).then((response) => {
this.openInterfaceInfo = response.data this.openInterfaceInfo = response.data
@ -1425,10 +1425,10 @@ export default {
function validatePhoneNumber(text, phoneNumber) { function validatePhoneNumber(text, phoneNumber) {
const pattern = text const pattern = text
const regex = new RegExp(pattern.slice(1, -1)); // pattern const regex = new RegExp(pattern.slice(1, -1)); // pattern
console.log("yanzhengyanzheneg ", regex.test(phoneNumber)); // console.log("yanzhengyanzheneg ", regex.test(phoneNumber));
return regex.test(phoneNumber); return regex.test(phoneNumber);
} }
console.log(this.$refs.ismybuild.drawingList); // console.log(this.$refs.ismybuild.drawingList);
let drawingList = this.$refs.ismybuild.drawingList let drawingList = this.$refs.ismybuild.drawingList
// //
for (let index = 0; index < drawingList.length; index++) { for (let index = 0; index < drawingList.length; index++) {
@ -1458,7 +1458,7 @@ export default {
templateRecordId: this.templateRecordId templateRecordId: this.templateRecordId
} }
systemfill(obj).then(res => { systemfill(obj).then(res => {
console.log(999, res); // console.log(999, res);
}) })
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {

@ -1,3 +1,11 @@
<!--
* @Descripttion:
* @version:
* @Author: JC9527
* @Date: 2024-07-29 10:38:56
* @LastEditors: JC9527
* @LastEditTime: 2024-08-02 09:46:21
-->
<template> <template>
<div> <div>
@ -69,7 +77,7 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
onOpen() { onOpen() {
console.log("dakai"); // console.log("dakai");
if (this.showFileName) { if (this.showFileName) {
this.formData.fileName = `${+new Date()}.vue` this.formData.fileName = `${+new Date()}.vue`
} }
@ -77,11 +85,11 @@ export default {
onClose() { onClose() {
}, },
close(e) { close(e) {
console.log("123132"); // console.log("123132");
this.$emit('update:visible', false) this.$emit('update:visible', false)
}, },
handleConfirm() { handleConfirm() {
console.log("成功"); // console.log("");
this.$refs.elForm.validate(valid => { this.$refs.elForm.validate(valid => {
if (!valid) return if (!valid) return
this.$emit('confirm', { ...this.formData }) this.$emit('confirm', { ...this.formData })

@ -148,7 +148,7 @@ export default {
// console.log(list); // console.log(list);
list.forEach(item => { list.forEach(item => {
if (item.tag == "el-upload") { if (item.tag == "el-upload") {
console.log(item); // console.log(item);
item.action = process.env.VUE_APP_BASE_API + item.action + ""; item.action = process.env.VUE_APP_BASE_API + item.action + "";
item.headers.Authorization = 'Bearer ' + getToken() item.headers.Authorization = 'Bearer ' + getToken()
} }
@ -322,7 +322,7 @@ export default {
showJson() { showJson() {
this.AssembleFormData() this.AssembleFormData()
// 使使 // 使使
console.log(this.formData); // console.log(this.formData);
localStorage.setItem("myJSON", JSON.stringify(this.formData)) localStorage.setItem("myJSON", JSON.stringify(this.formData))
const { level, responsibilityUnit, useStart, useEnd, templateName } = this.dialogForm; const { level, responsibilityUnit, useStart, useEnd, templateName } = this.dialogForm;

@ -478,7 +478,7 @@ export default {
getDeclarationRecords({ id }).then((response) => { getDeclarationRecords({ id }).then((response) => {
let templateJson = JSON.parse(response.data.bmsDeclarationRecords.templateJson) let templateJson = JSON.parse(response.data.bmsDeclarationRecords.templateJson)
console.log(templateJson); // console.log(templateJson);
if (this.pageType != "edit") { if (this.pageType != "edit") {
templateJson.fields.forEach(item => { templateJson.fields.forEach(item => {
if (item.hasOwnProperty('disabled')) { if (item.hasOwnProperty('disabled')) {
@ -820,10 +820,10 @@ export default {
function validatePhoneNumber(text, phoneNumber) { function validatePhoneNumber(text, phoneNumber) {
const pattern = text const pattern = text
const regex = new RegExp(pattern.slice(1, -1)); // pattern const regex = new RegExp(pattern.slice(1, -1)); // pattern
console.log("yanzhengyanzheneg ", regex.test(phoneNumber)); // console.log("yanzhengyanzheneg ", regex.test(phoneNumber));
return regex.test(phoneNumber); return regex.test(phoneNumber);
} }
console.log(this.$refs.ismybuild.drawingList); // console.log(this.$refs.ismybuild.drawingList);
let drawingList = this.$refs.ismybuild.drawingList let drawingList = this.$refs.ismybuild.drawingList
// //
for (let index = 0; index < drawingList.length; index++) { for (let index = 0; index < drawingList.length; index++) {
@ -853,7 +853,7 @@ export default {
templateRecordId: this.templateRecordId templateRecordId: this.templateRecordId
} }
systemfillupdate(obj).then(res => { systemfillupdate(obj).then(res => {
console.log(999, res); // console.log(999, res);
if (res.code == 200) { if (res.code == 200) {
this.$router.go(-1); this.$router.go(-1);
} }
@ -936,7 +936,7 @@ export default {
data.url = response.fileName; data.url = response.fileName;
this.uploadListThree.push(data); this.uploadListThree.push(data);
this.form.fileListThree = this.fileListThree; this.form.fileListThree = this.fileListThree;
console.log("this.fileListThree: ", this.fileListThree); // console.log("this.fileListThree: ", this.fileListThree);
}); });
}, },
/* 上传四 */ /* 上传四 */
@ -1183,7 +1183,7 @@ export default {
let imgHeight = 592.28 / contentWidth * contentHeight let imgHeight = 592.28 / contentWidth * contentHeight
let pageData = canvas.toDataURL('image/jpeg', 1.0) let pageData = canvas.toDataURL('image/jpeg', 1.0)
let PDF = new JsPDF('p', 'pt', 'a4') // [592.28 * 841.89] let PDF = new JsPDF('p', 'pt', 'a4') // [592.28 * 841.89]
console.log(pageData); // console.log(pageData);
if (leftHeight < pageHeight) { if (leftHeight < pageHeight) {
PDF.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight) PDF.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight)
} else { } else {

@ -80,7 +80,7 @@ export default {
templateJson: JSON.stringify(myJSON) templateJson: JSON.stringify(myJSON)
} }
systemfilluploadFile(obj).then(res => { systemfilluploadFile(obj).then(res => {
console.log(999, res); // console.log(999, res);
if (res.code == 200) { if (res.code == 200) {
this.close() this.close()
this.$message({ this.$message({

Loading…
Cancel
Save