From fccadb88b1626dcc9cc3cdaa3cb8fe05c3b6dfcb Mon Sep 17 00:00:00 2001
From: cwchen <1048842385@qq.com>
Date: Sat, 29 Nov 2025 17:39:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8B=9B=E6=A0=87=E8=A7=A3=E6=9E=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/analysis/analysis.js | 8 +++
.../analysis/components/AnalysisForm.vue | 3 +-
src/views/analysis/index.vue | 65 ++-----------------
3 files changed, 15 insertions(+), 61 deletions(-)
diff --git a/src/api/analysis/analysis.js b/src/api/analysis/analysis.js
index 0f38784..acab6ca 100644
--- a/src/api/analysis/analysis.js
+++ b/src/api/analysis/analysis.js
@@ -55,6 +55,14 @@ export function editBidDataAPI(data) {
})
}
+// 招标解析->删除项目数据
+export function delProDataAPI(data) {
+ return request({
+ url: '/smartBid/analysis/delProData',
+ method: 'POST',
+ data
+ })
+}
/* 测试 mq */
export function testMQAPI(params) {
diff --git a/src/views/analysis/components/AnalysisForm.vue b/src/views/analysis/components/AnalysisForm.vue
index b23f2b7..e404cfb 100644
--- a/src/views/analysis/components/AnalysisForm.vue
+++ b/src/views/analysis/components/AnalysisForm.vue
@@ -192,10 +192,11 @@ export default {
try {
const data = await this.validate(formName)
console.log('data:', data);
-
+ const analysisLabelId = this.modelList.find(item => item.id === data.templateId).analysisLabelId;
// 所有校验通过,组装完整数据
let formData = {
...data,
+ analysisLabelId,
allFiles: Object.keys(data)
.filter(key => key.startsWith('fileList'))
.flatMap(key =>
diff --git a/src/views/analysis/index.vue b/src/views/analysis/index.vue
index f7388f9..fecdcba 100644
--- a/src/views/analysis/index.vue
+++ b/src/views/analysis/index.vue
@@ -10,12 +10,6 @@
新建项目
-
- 测试MQ
待解析
@@ -53,7 +47,7 @@
import TableModel from '@/components/TableModel2'
import { columnsList, formLabel } from './config'
import { encryptWithSM4 } from '@/utils/sm'
-import { listAPI, delDataAPI, testMQAPI } from '@/api/analysis/analysis'
+import { listAPI, delProDataAPI, testMQAPI } from '@/api/analysis/analysis'
import OnlyOfficeViewer from '@/views/common/OnlyOfficeViewer.vue'
import AnalysisForm from './components/AnalysisForm.vue'
export default {
@@ -71,64 +65,16 @@ export default {
sendParams: {
enterpriseId: 2,
},
- showViewer: false,
- documentUrl: 'http://192.168.0.14:9090/smart-bid/technicalSolutionDatabase/2025/11/03/716d9f3d89434c56bc49296dbbccc226.docx',
- documentTitle: '716d9f3d89434c56bc49296dbbccc226.docx',
- documentKey: '716d9f3d89434c56bc49296dbbccc226',
- mode: 'edit',
- type: 'desktop', // desktop, mobile embedded
showAnalysisForm: false,
title: '',
row: {},
- selectedRow: null, // 单选框选中的行数据
}
},
created() { },
methods: {
- handleDocumentReady() {
- console.log('文档已准备就绪');
- },
- handleAppReady() {
- console.log('应用已准备就绪');
- },
- handleError(error) {
- console.error('发生错误:', error);
- this.$message.error('文档加载失败');
- },
- handleInitialized(editor) {
- console.log('编辑器已初始化', editor);
- },
- handleOnlyOffice() {
- this.$router.push({
- name: 'TestOnlyOffice',
- })
- },
- handleDocumentSearch() {
- this.$router.push({
- name: 'DocumentSearch',
- })
- },
- handleDocumentSearchWord() {
- this.$router.push({
- name: 'DocumentSearchWord',
- })
- },
- handleDocumentExcel() {
- this.$router.push({
- name: 'DocumentExcel',
- })
- },
- handleTestMQ() {
- testMQAPI().then(res => {
- if (res.code === 200) {
- this.$message.success('测试MQ成功')
- } else {
- this.$message.error(res.msg || '测试MQ失败')
- }
- })
- },
+
/** 新增按钮操作 */
handleAdd() {
this.title = '新建项目'
@@ -179,7 +125,7 @@ export default {
/** 删除操作 */
handleDelete(row) {
this.$confirm(
- `确定要删除"${row.toolName}"吗?删除后将无法恢复!`,
+ `确定要删除"${row.proName}"吗?删除后将无法恢复!`,
'操作提示',
{
confirmButtonText: '确定',
@@ -189,9 +135,8 @@ export default {
customClass: 'delete-confirm-dialog',
},
).then(() => {
- delDataAPI({
- toolId: row.toolId,
- enterpriseId: this.enterpriseId,
+ delProDataAPI({
+ proId: row.proId,
})
.then((res) => {
if (res.code === 200) {