diff --git a/src/views/analysis/components/AnalysisDetail.vue b/src/views/analysis/components/AnalysisDetail.vue index 77db5ec..94277fc 100644 --- a/src/views/analysis/components/AnalysisDetail.vue +++ b/src/views/analysis/components/AnalysisDetail.vue @@ -8,8 +8,14 @@
@@ -86,8 +92,12 @@
+ + + @@ -97,12 +107,14 @@ import { getProDetailAPI,getBidListAPI } from '@/api/analysis/analysis' import { formLabel, detailColumnsList } from '../config' import TableModel from '@/components/TableModel2' import BidForm from './BidForm.vue' +import ProForm from './ProForm.vue' export default { name: 'AnalysisDetail', components: { TableModel, - BidForm + BidForm, + ProForm }, data() { return { @@ -115,6 +127,7 @@ export default { proId: decryptWithSM4(this.$route.query.proId), }, showBidForm: false, + showProForm: false, title: '', rowData: {}, } @@ -142,16 +155,29 @@ export default { const obj = { path: "/analysis" } this.$tab.closeOpenPage(obj) }, - // 编辑 + // 编辑标段 handleUpdate(data) { this.title = '编辑' this.rowData = data this.showBidForm = true }, + /* 搜索操作 */ handleQuery() { + this.rowData = {} this.$refs.detailTableRef.getTableList() }, + /* 更新项目信息 */ + handleProQuery(data){ + this.rowData = {} + this.detailData = data + }, + /* 编辑项目信息 */ + handleEditProject() { + this.title = '编辑' + this.rowData = this.detailData + this.showProForm = true + }, } } @@ -240,8 +266,15 @@ export default { .card-header { display: flex; align-items: center; + justify-content: space-between; gap: 8px; + .card-header-left { + display: flex; + align-items: center; + gap: 8px; + } + .header-icon { font-size: 20px; color: #409EFF; @@ -253,6 +286,17 @@ export default { font-weight: 600; color: #303133; } + + .edit-btn { + color: #409EFF; + font-size: 14px; + font-weight: 500; + padding: 0; + + &:hover { + color: #66b1ff; + } + } } .analysis-detail-content { diff --git a/src/views/analysis/components/ProForm.vue b/src/views/analysis/components/ProForm.vue index 91f8d17..bbf931f 100644 --- a/src/views/analysis/components/ProForm.vue +++ b/src/views/analysis/components/ProForm.vue @@ -9,8 +9,8 @@ maxlength="64"> - + - - + + + :autosize="{ minRows: 5, maxRows: 8 }" maxlength="512"> @@ -42,7 +42,7 @@