diff --git a/src/views/compilation/knowledge/index.vue b/src/views/compilation/knowledge/index.vue index 4a39459..77b3599 100644 --- a/src/views/compilation/knowledge/index.vue +++ b/src/views/compilation/knowledge/index.vue @@ -40,9 +40,6 @@ 导入 - @@ -108,7 +105,7 @@ - + @@ -262,6 +259,9 @@ export default { ], scsj: [ { required: true, message: "上传时间不能为空", trigger: "change" } + ], + fj: [ + { required: true, message: "附件不能为空", trigger: "blur" } ] }, // 文件类型映射 @@ -285,7 +285,7 @@ export default { // 设置上传的请求头部 headers: { Authorization: "Bearer " + getToken() }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + "", + url: process.env.VUE_APP_BASE_API + "/gysl/xmzsk/import", }, }; }, @@ -409,9 +409,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); - }).catch(error => { - console.error('API Request Error:', error); - }); + }).catch(error => { }); } } }); @@ -463,10 +461,15 @@ export default { if (this.form.lx !== '3') { this.form.wz = undefined; this.select = 'http'; + // 更新 fj 的校验规则 + this.rules.fj[0].required = true; } else { this.setProtocolType(this.form.wz); + // 更新 fj 的校验规则 + this.rules.fj[0].required = false; } }, + /**导出 */ // handleExport() { // this.download( @@ -484,7 +487,7 @@ export default { /** 下载模板操作 */ importTemplate() { this.download( - "/gysl/ml/importTemplate", + "/gysl/xmzsk/importTemplate", {}, `知识库导入模板${new Date().getTime()}.xlsx` ); diff --git a/src/views/compilation/onecailiao/index.vue b/src/views/compilation/onecailiao/index.vue index 87c77f8..69deb0e 100644 --- a/src/views/compilation/onecailiao/index.vue +++ b/src/views/compilation/onecailiao/index.vue @@ -18,9 +18,9 @@ - 查询 - 重置 + 重置 @@ -30,7 +30,7 @@
- + @@ -38,7 +38,7 @@ @@ -52,7 +52,7 @@

{{ previewData.title }}

- 返回 + 返回
diff --git a/src/views/compilation/reporting/index.vue b/src/views/compilation/reporting/index.vue index b4abe46..bd29d70 100644 --- a/src/views/compilation/reporting/index.vue +++ b/src/views/compilation/reporting/index.vue @@ -18,9 +18,9 @@ - 查询 - 重置 + 重置 @@ -30,15 +30,13 @@
- - @@ -52,7 +50,7 @@

{{ previewData.title }}

- 返回 + 返回
diff --git a/src/views/components/ProjectDetails/Basic.vue b/src/views/components/ProjectDetails/Basic.vue index 3f858d1..78767b0 100644 --- a/src/views/components/ProjectDetails/Basic.vue +++ b/src/views/components/ProjectDetails/Basic.vue @@ -45,14 +45,14 @@ - + - + 落图 @@ -64,12 +64,12 @@ - + - + @@ -95,36 +95,36 @@ - + - + - + - + - + - + @@ -139,7 +139,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -170,14 +170,14 @@ - + - + @@ -194,10 +194,10 @@ - + - + diff --git a/src/views/components/ProjectDetails/Buildings.vue b/src/views/components/ProjectDetails/Buildings.vue index 696e980..d881904 100644 --- a/src/views/components/ProjectDetails/Buildings.vue +++ b/src/views/components/ProjectDetails/Buildings.vue @@ -13,8 +13,7 @@ style="width: 0.6rem; height: 0.6rem; margin-right: 4px;"> 新增 - 编辑 {{ building.name }} -
@@ -114,7 +113,7 @@ - + @@ -129,55 +128,55 @@ - + - + - + - + - + - + - + - + - + @@ -200,7 +199,7 @@ - + @@ -419,18 +418,17 @@ export default { }; }, fetchBuildings() { - // console.log('Fetching data for xmId:', this.xmId); + getjzxxinformationByxmId({ xmId: this.xmId }) .then(response => { - // console.log('API response:', response); + if (response.code === 200 && response.data) { - this.buildings = Object.values(response.data); // 将对象转换为数组 - // console.log('Buildings data after assignment:', this.buildings); + this.buildings = Object.values(response.data); // 默认选中第一个楼栋 if (this.buildings.length > 0) { this.selectedBuilding = this.buildings[0]; } - } else {} + } else { } }) }, @@ -574,17 +572,6 @@ export default { text-transform: none; } -.tagitem { - width: 6.25rem; - height: 2rem; - background: #FAFAFA; - border-radius: 2.13rem 2.13rem 2.13rem 2.13rem; - display: flex; - justify-content: space-around; - align-items: center; - cursor: pointer; -} - .tagitem { width: 6.25rem; height: 2rem; @@ -616,7 +603,4 @@ export default { background-color: rgba(43, 98, 241, 0.1); } -.important-building { - background-color: rgba(43, 98, 241, 0.1); -} \ No newline at end of file diff --git a/src/views/components/ProjectDetails/Liver.vue b/src/views/components/ProjectDetails/Liver.vue index 602484c..8eb51a6 100644 --- a/src/views/components/ProjectDetails/Liver.vue +++ b/src/views/components/ProjectDetails/Liver.vue @@ -6,7 +6,7 @@ 现场实况
-
+