Merge remote-tracking branch 'origin/main'

This commit is contained in:
LHD_HY 2025-11-29 17:55:02 +08:00
commit f97458fda1
3 changed files with 18 additions and 62 deletions

View File

@ -55,11 +55,19 @@ export function editBidDataAPI(data) {
}) })
} }
// 招标解析->删除项目数据
export function delProDataAPI(data) {
return request({
url: '/smartBid/analysis/delProData',
method: 'POST',
data
})
}
/* 测试 mq */ /* 测试 mq */
export function testMQAPI(params) { export function testMQAPI(params) {
return request({ return request({
url: '/smartBid/analysis/testAsyncMq2', url: '/smartBid/analysis/testAsyncMq',
method: 'GET', method: 'GET',
params params
}) })

View File

@ -192,10 +192,11 @@ export default {
try { try {
const data = await this.validate(formName) const data = await this.validate(formName)
console.log('data:', data); console.log('data:', data);
const analysisLabelId = this.modelList.find(item => item.id === data.templateId).analysisLabelId;
// //
let formData = { let formData = {
...data, ...data,
analysisLabelId,
allFiles: Object.keys(data) allFiles: Object.keys(data)
.filter(key => key.startsWith('fileList')) .filter(key => key.startsWith('fileList'))
.flatMap(key => .flatMap(key =>

View File

@ -10,14 +10,10 @@
<template slot="tableActions"> <template slot="tableActions">
<el-button @click="handleAdd" v-hasPermi="['analysis:analysis:add']" class="add-btn"><i <el-button @click="handleAdd" v-hasPermi="['analysis:analysis:add']" class="add-btn"><i
class="el-icon-plus"></i> 新建项目</el-button> class="el-icon-plus"></i> 新建项目</el-button>
<!-- <el-button @click="handleOnlyOffice">预览文档</el-button>
<el-button @click="handleDocumentSearch">文档搜索功能</el-button>
<el-button @click="handleDocumentSearchWord">Word文档搜索功能</el-button>
<el-button @click="handleDocumentExcel">Excel文档查看</el-button>
<el-button @click="handleTestMQ">测试MQ</el-button> -->
</template> </template>
<template slot="analysisStatus" slot-scope="{ data }"> <template slot="analysisStatus" slot-scope="{ data }">
<el-tag v-if="data.analysisStatus === '0'" type="info">解析中</el-tag> <el-tag v-if="!data.analysisStatus" type="info">待解析</el-tag>
<el-tag v-else-if="data.analysisStatus === '0'" type="warn">解析中</el-tag>
<el-tag v-else-if="data.analysisStatus === '1'" type="success">解析成功</el-tag> <el-tag v-else-if="data.analysisStatus === '1'" type="success">解析成功</el-tag>
<el-tag v-else-if="data.analysisStatus === '2'" type="danger">解析失败</el-tag> <el-tag v-else-if="data.analysisStatus === '2'" type="danger">解析失败</el-tag>
</template> </template>
@ -51,7 +47,7 @@
import TableModel from '@/components/TableModel2' import TableModel from '@/components/TableModel2'
import { columnsList, formLabel } from './config' import { columnsList, formLabel } from './config'
import { encryptWithSM4 } from '@/utils/sm' 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 OnlyOfficeViewer from '@/views/common/OnlyOfficeViewer.vue'
import AnalysisForm from './components/AnalysisForm.vue' import AnalysisForm from './components/AnalysisForm.vue'
export default { export default {
@ -69,64 +65,16 @@ export default {
sendParams: { sendParams: {
enterpriseId: 2, 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, showAnalysisForm: false,
title: '', title: '',
row: {}, row: {},
selectedRow: null, //
} }
}, },
created() { }, created() { },
methods: { 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() { handleAdd() {
this.title = '新建项目' this.title = '新建项目'
@ -177,7 +125,7 @@ export default {
/** 删除操作 */ /** 删除操作 */
handleDelete(row) { handleDelete(row) {
this.$confirm( this.$confirm(
`确定要删除"${row.toolName}"吗?删除后将无法恢复!`, `确定要删除"${row.proName}"吗?删除后将无法恢复!`,
'操作提示', '操作提示',
{ {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -187,9 +135,8 @@ export default {
customClass: 'delete-confirm-dialog', customClass: 'delete-confirm-dialog',
}, },
).then(() => { ).then(() => {
delDataAPI({ delProDataAPI({
toolId: row.toolId, proId: row.proId,
enterpriseId: this.enterpriseId,
}) })
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code === 200) {