From 6ec3a4114fbffdd947b8e37e88c7363538aaecea Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 2 Aug 2024 09:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=A4=9A=E4=BD=99=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/generator/render.js | 20 +++++++++---------- .../declareAddContent/index.vue | 8 ++++---- .../declareAddContent/indexcopy.vue | 10 +++++----- .../ismybuild/CodeTypeDialog.vue | 14 ++++++++++--- .../declareAddContent/ismybuild/index.vue | 4 ++-- .../declareDetailContent/index.vue | 12 +++++------ .../records/components/index.vue | 2 +- 7 files changed, 39 insertions(+), 31 deletions(-) diff --git a/src/utils/generator/render.js b/src/utils/generator/render.js index 74edb5c..2808625 100644 --- a/src/utils/generator/render.js +++ b/src/utils/generator/render.js @@ -85,9 +85,9 @@ const componentChild = { } conf["on-success"] = (response, file, fileList) => { // 在上传成功后的回调函数中可以执行你的业务逻辑 - console.log('上传成功', response); - console.log('上传成功2', file); - console.log('上传成功3', fileList); + // console.log('上传成功', response); + // console.log('上传成功2', file); + // console.log('上传成功3', fileList); let listtow = [] fileList.forEach(item => { listtow.push(item.response.fileName) @@ -98,9 +98,9 @@ const componentChild = { conf["on-success"] = (response, file, fileList) => { // 在上传成功后的回调函数中可以执行你的业务逻辑 - console.log('上传成功', response); - console.log('上传成功2', file); - console.log('上传成功3', fileList); + // console.log('上传成功', response); + // console.log('上传成功2', file); + // console.log('上传成功3', fileList); let listtow = [] fileList.forEach(item => { listtow.push(item.response.fileName) @@ -110,8 +110,8 @@ const componentChild = { }; conf["on-remove"] = (response, fileList) => { // 在上传成功后的回调函数中可以执行你的业务逻辑 - console.log('移除', response); - console.log('移除成功3', fileList); + // console.log('移除', response); + // console.log('移除成功3', fileList); let listtow = [] fileList.forEach(item => { listtow.push(item.response.fileName) @@ -124,7 +124,7 @@ const componentChild = { } conf["on-preview"] = (response, fileList) => { // 在上传成功后的回调函数中可以执行你的业务逻辑 - console.log('点击', response); + // console.log('点击', response); window.open( process.env.VUE_APP_BASE_API + response.response.fileName) // 这里可以根据需要执行其他操作,例如更新界面或显示消息 }; @@ -145,7 +145,7 @@ const componentChild = { valuelist.push(obj) }) conf["file-list"] = valuelist - console.log(888, conf); + // console.log(888, conf); } return list } diff --git a/src/views/onlineDeclaration/declareAddContent/index.vue b/src/views/onlineDeclaration/declareAddContent/index.vue index 3324a5e..e1cd7d7 100644 --- a/src/views/onlineDeclaration/declareAddContent/index.vue +++ b/src/views/onlineDeclaration/declareAddContent/index.vue @@ -363,7 +363,7 @@ export default { // console.log('this.templateInfo: ', this.templateInfo); getBasicInfo({ enterpriseId: this.$store.state.user.enterpriseId }).then((response) => { this.baseInfo = response.data - console.log(this.baseInfo); + // console.log(this.baseInfo); }) // getOpenInterface({ templateRecordId: templateRecordId }).then((response) => { // this.openInterfaceInfo = response.data @@ -400,10 +400,10 @@ export default { function validatePhoneNumber(text, phoneNumber) { const pattern = text 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); } - console.log(this.$refs.ismybuild.drawingList); + // console.log(this.$refs.ismybuild.drawingList); let drawingList = this.$refs.ismybuild.drawingList // 循环所有内容 for (let index = 0; index < drawingList.length; index++) { @@ -433,7 +433,7 @@ export default { templateRecordId: this.templateRecordId } systemfill(obj).then(res => { - console.log(999, res); + // console.log(999, res); if (res.code == 200) { this.$router.go(-1); } diff --git a/src/views/onlineDeclaration/declareAddContent/indexcopy.vue b/src/views/onlineDeclaration/declareAddContent/indexcopy.vue index 5c47619..133f663 100644 --- a/src/views/onlineDeclaration/declareAddContent/indexcopy.vue +++ b/src/views/onlineDeclaration/declareAddContent/indexcopy.vue @@ -1366,7 +1366,7 @@ export default { this.templateRecordId = templateRecordId let { data } = await getTemplateInfo({ templateId: templateId }) this.templateInfo = data - console.log(7777, this.templateInfo); + // console.log(7777, this.templateInfo); this.$refs.ismybuild.jsonOpen(this.templateInfo.templateJson) switch (this.templateId) { case '2': @@ -1388,7 +1388,7 @@ export default { // console.log('this.templateInfo: ', this.templateInfo); getBasicInfo({ enterpriseId: this.$store.state.user.enterpriseId }).then((response) => { this.baseInfo = response.data - console.log(this.baseInfo); + // console.log(this.baseInfo); }) getOpenInterface({ templateRecordId: templateRecordId }).then((response) => { this.openInterfaceInfo = response.data @@ -1425,10 +1425,10 @@ export default { function validatePhoneNumber(text, phoneNumber) { const pattern = text 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); } - console.log(this.$refs.ismybuild.drawingList); + // console.log(this.$refs.ismybuild.drawingList); let drawingList = this.$refs.ismybuild.drawingList // 循环所有内容 for (let index = 0; index < drawingList.length; index++) { @@ -1458,7 +1458,7 @@ export default { templateRecordId: this.templateRecordId } systemfill(obj).then(res => { - console.log(999, res); + // console.log(999, res); }) this.$refs["form"].validate(valid => { if (valid) { diff --git a/src/views/onlineDeclaration/declareAddContent/ismybuild/CodeTypeDialog.vue b/src/views/onlineDeclaration/declareAddContent/ismybuild/CodeTypeDialog.vue index e852a95..f6392dc 100644 --- a/src/views/onlineDeclaration/declareAddContent/ismybuild/CodeTypeDialog.vue +++ b/src/views/onlineDeclaration/declareAddContent/ismybuild/CodeTypeDialog.vue @@ -1,3 +1,11 @@ +