招标解析
This commit is contained in:
parent
7d3d6b0333
commit
fccadb88b1
|
|
@ -55,6 +55,14 @@ 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) {
|
||||||
|
|
|
||||||
|
|
@ -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 =>
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,6 @@
|
||||||
<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> -->
|
|
||||||
<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" type="info">待解析</el-tag>
|
<el-tag v-if="!data.analysisStatus" type="info">待解析</el-tag>
|
||||||
|
|
@ -53,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 {
|
||||||
|
|
@ -71,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 = '新建项目'
|
||||||
|
|
@ -179,7 +125,7 @@ export default {
|
||||||
/** 删除操作 */
|
/** 删除操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$confirm(
|
this.$confirm(
|
||||||
`确定要删除"${row.toolName}"吗?删除后将无法恢复!`,
|
`确定要删除"${row.proName}"吗?删除后将无法恢复!`,
|
||||||
'操作提示',
|
'操作提示',
|
||||||
{
|
{
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|
@ -189,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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue