feat: 分页隐藏,调试功能修改

dev
xiangcongshuai 6 months ago
parent 8c030b288e
commit e01224d018

@ -9,7 +9,7 @@
<template> <template>
<div ref="screenRef" v-clickoutside="handleClose" class="screen-body"> <div ref="screenRef" v-clickoutside="handleClose" class="screen-body">
<div v-if="title" class="title">{{ title }}</div> <div v-if="title" class="title">{{ title }}</div>
<el-form label-width="80px" label-position="left" size="mini"> <el-form label-width="80px" label-position="left" size="mini" @submit.native.prevent>
<el-row :gutter="10" type="flex" class="search_header" style="align-items: stretch"> <el-row :gutter="10" type="flex" class="search_header" style="align-items: stretch">
<el-col class="search_left"> <el-col class="search_left">
<el-row :gutter="40"> <el-row :gutter="40">

@ -5,7 +5,7 @@ const network = {
// 默认的接口地址 如果是开发环境和生产环境走vab-mock-server当然你也可以选择自己配置成需要的接口地址 // 默认的接口地址 如果是开发环境和生产环境走vab-mock-server当然你也可以选择自己配置成需要的接口地址
baseURL: baseURL:
process.env.NODE_ENV === 'development' process.env.NODE_ENV === 'development'
? 'http://192.168.10.138:9978/fu-hsi-server' ? 'http://192.168.10.138:8097/fu-hsi-server'
: '/fuHsiApi', : '/fuHsiApi',
// 配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8 // 配后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
contentType: 'application/json;charset=UTF-8', contentType: 'application/json;charset=UTF-8',

@ -13,7 +13,7 @@
</div> </div>
</div> </div>
<div class="proofread-content"> <div class="proofread-content">
<div class="left-tree"> <div v-if="treeData.length > 0" class="left-tree">
<el-tree <el-tree
ref="tree" ref="tree"
:data="treeData" :data="treeData"
@ -25,7 +25,8 @@
@node-click="handleNodeClick" @node-click="handleNodeClick"
/> />
</div> </div>
<div class="mid-content"> <el-skeleton v-else :rows="16" class="left-tree" />
<div v-if="selectList.length > 0" class="mid-content">
<div class="left"> <div class="left">
<el-scrollbar v-if="selectList.length > 0" class="left-scroll"> <el-scrollbar v-if="selectList.length > 0" class="left-scroll">
<vuedraggable v-model="selectList" animation="400" class="img_list" @end="handleDragEnd"> <vuedraggable v-model="selectList" animation="400" class="img_list" @end="handleDragEnd">
@ -64,7 +65,8 @@
<span class="boder4" /> <span class="boder4" />
</div> </div>
</div> </div>
<div class="FormInfo"> <el-skeleton v-if="selectList.length === 0" :rows="16" class="mid-content" />
<div v-if="level" class="FormInfo">
<el-form v-if="level === '2'" ref="form" :model="selectInfo.evidenceInfo" :rules="rules" label-width="100px" style="margin-top: 10px"> <el-form v-if="level === '2'" ref="form" :model="selectInfo.evidenceInfo" :rules="rules" label-width="100px" style="margin-top: 10px">
<el-row :gutter="10" class="form-content"> <el-row :gutter="10" class="form-content">
<el-col :span="24"> <el-col :span="24">

@ -74,14 +74,14 @@
</template> </template>
</vxe-grid> </vxe-grid>
<div style="text-align: center"> <!-- <div style="text-align: center">
<cs-page <cs-page
:page.sync="queryForm.page" :page.sync="queryForm.page"
:limit.sync="queryForm.size" :limit.sync="queryForm.size"
:total="queryForm.total" :total="queryForm.total"
@pagination="fetchData" @pagination="fetchData"
/> />
</div> </div> -->
</div> </div>
<AddFolder ref="AddFolderRef" @addOk="addOk" /> <AddFolder ref="AddFolderRef" @addOk="addOk" />
<!--编辑/新增证据--> <!--编辑/新增证据-->
@ -209,8 +209,8 @@ export default {
const params = { const params = {
caseId: this.caseId, caseId: this.caseId,
evidenceName: this.searchName, evidenceName: this.searchName,
pageNum: this.queryForm.page, pageNum: 1,
pageSize: this.queryForm.size, pageSize: 99999,
directoryId: this.selectId === '1' ? '' : this.selectId directoryId: this.selectId === '1' ? '' : this.selectId
} }
queryEvidenceList(params).then(res => { queryEvidenceList(params).then(res => {

@ -34,20 +34,20 @@
<template #result="{row}"> <template #result="{row}">
<div v-if="row.newFlag" style="padding: 10px 0;"> <div v-if="row.newFlag" style="padding: 10px 0;">
<el-badge value="new" class="item"> <el-badge value="new" class="item">
<el-tag :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag> <el-tag :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '存在' : '不存在': '未评估' }}</el-tag>
</el-badge> </el-badge>
</div> </div>
<el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag> <el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '存在' : '不存在': '未评估' }}</el-tag>
</template> </template>
</vxe-grid> </vxe-grid>
<div style="text-align: center"> <!-- <div style="text-align: center">
<cs-page <cs-page
:page.sync="queryForm.page" :page.sync="queryForm.page"
:limit.sync="queryForm.size" :limit.sync="queryForm.size"
:total="queryForm.total" :total="queryForm.total"
@pagination="fetchData" @pagination="fetchData"
/> />
</div> </div> -->
<record-details ref="details" /> <record-details ref="details" />
</div> </div>
</template> </template>
@ -81,10 +81,10 @@ export default {
name: '未评估', name: '未评估',
id: '0' id: '0'
}, { }, {
name: '符合', name: '存在',
id: '1' id: '1'
}, { }, {
name: '不符合', name: '不存在',
id: '2' id: '2'
}], }],
gridOptions: { gridOptions: {
@ -120,7 +120,7 @@ export default {
isExpand: { isExpand: {
handler: function(newVal, oldVal) { handler: function(newVal, oldVal) {
if (newVal !== oldVal) { if (newVal !== oldVal) {
this.tableHeight(this.isExpand ? 590 : 370) this.tableHeight(this.isExpand ? 550 : 330)
} }
}, },
immediate: true immediate: true
@ -159,7 +159,7 @@ export default {
atomicName: this.atomicName, atomicName: this.atomicName,
indexSource: this.indexSource indexSource: this.indexSource
} }
queryIndexDetail(params, this.queryForm.page, this.queryForm.size).then(res => { queryIndexDetail(params, this.queryForm.page, 99999).then(res => {
this.gridOptions.data = res.data.records this.gridOptions.data = res.data.records
this.queryForm.total = res.data.total this.queryForm.total = res.data.total
}) })

@ -34,22 +34,22 @@
<template #result="{row}"> <template #result="{row}">
<div v-if="row.newFlag" style="padding: 10px 0;"> <div v-if="row.newFlag" style="padding: 10px 0;">
<el-badge value="new" class="item"> <el-badge value="new" class="item">
<el-tag :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag> <el-tag :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '存在' : '不存在': '未评估' }}</el-tag>
</el-badge> </el-badge>
</div> </div>
<el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag> <el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '存在' : '不存在': '未评估' }}</el-tag>
</template> </template>
</vxe-grid> </vxe-grid>
<div style="text-align: center"> <!-- <div style="text-align: center">
<cs-page <cs-page
:page.sync="queryForm.page" :page.sync="queryForm.page"
:limit.sync="queryForm.size" :limit.sync="queryForm.size"
:total="queryForm.total" :total="queryForm.total"
@pagination="fetchData" @pagination="fetchData"
/> />
</div> </div> -->
<record-details ref="details" /> <record-details ref="details" />
</div> </div>
</template> </template>
@ -83,10 +83,10 @@ export default {
name: '未评估', name: '未评估',
id: '0' id: '0'
}, { }, {
name: '符合', name: '存在',
id: '1' id: '1'
}, { }, {
name: '不符合', name: '不存在',
id: '2' id: '2'
}], }],
gridOptions: { gridOptions: {
@ -123,7 +123,7 @@ export default {
isExpand: { isExpand: {
handler: function(newVal, oldVal) { handler: function(newVal, oldVal) {
if (newVal !== oldVal) { if (newVal !== oldVal) {
this.tableHeight(this.isExpand ? 590 : 370) this.tableHeight(this.isExpand ? 550 : 330)
} }
}, },
immediate: true immediate: true
@ -162,7 +162,7 @@ export default {
atomicName: this.atomicName, atomicName: this.atomicName,
indexSource: this.indexSource indexSource: this.indexSource
} }
queryIndexDetail(params, this.queryForm.page, this.queryForm.size).then(res => { queryIndexDetail(params, this.queryForm.page, 99999).then(res => {
this.gridOptions.data = res.data.records this.gridOptions.data = res.data.records
this.queryForm.total = res.data.total this.queryForm.total = res.data.total
}) })

@ -34,20 +34,20 @@
<template #result="{row}"> <template #result="{row}">
<div v-if="row.newFlag" style="padding: 10px 0;"> <div v-if="row.newFlag" style="padding: 10px 0;">
<el-badge value="new" class="item"> <el-badge value="new" class="item">
<el-tag :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag> <el-tag :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '存在' : '不存在': '未评估' }}</el-tag>
</el-badge> </el-badge>
</div> </div>
<el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '符合' : '不符合': '未评估' }}</el-tag> <el-tag v-else :type="row.indexResult === 'true' ? 'success' : 'error'">{{ row.indexResult?row.indexResult=== 'true' ? '存在' : '不存在': '未评估' }}</el-tag>
</template> </template>
</vxe-grid> </vxe-grid>
<div style="text-align: center"> <!-- <div style="text-align: center">
<cs-page <cs-page
:page.sync="queryForm.page" :page.sync="queryForm.page"
:limit.sync="queryForm.size" :limit.sync="queryForm.size"
:total="queryForm.total" :total="queryForm.total"
@pagination="fetchData" @pagination="fetchData"
/> />
</div> </div> -->
<record-details ref="details" /> <record-details ref="details" />
</div> </div>
</template> </template>
@ -120,7 +120,7 @@ export default {
isExpand: { isExpand: {
handler: function(newVal, oldVal) { handler: function(newVal, oldVal) {
if (newVal !== oldVal) { if (newVal !== oldVal) {
this.tableHeight(this.isExpand ? 580 : 370) this.tableHeight(this.isExpand ? 540 : 330)
} }
}, },
immediate: true immediate: true
@ -159,7 +159,7 @@ export default {
atomicName: this.atomicName, atomicName: this.atomicName,
indexSource: this.indexSource indexSource: this.indexSource
} }
queryIndexDetail(params, this.queryForm.page, this.queryForm.size).then(res => { queryIndexDetail(params, this.queryForm.page, 999999).then(res => {
this.gridOptions.data = res.data.records this.gridOptions.data = res.data.records
this.queryForm.total = res.data.total this.queryForm.total = res.data.total
}) })

@ -282,12 +282,12 @@ export default {
const score = item['totalScore'] const score = item['totalScore']
let statusName = '' let statusName = ''
if (score) { if (score) {
statusName = '已处理' statusName = '已分析'
} else { } else {
if (item['isAnalysing']) { if (item['isAnalysing']) {
statusName = '正在分析' statusName = '正在分析'
} else { } else {
statusName = '待处理' statusName = '未分析'
} }
} }
return statusName return statusName

@ -12,12 +12,18 @@
<img src="@/assets/common/file_empty.png" alt=""> <img src="@/assets/common/file_empty.png" alt="">
<span>暂无结果请在右侧输入调试内容或上传文档</span> <span>暂无结果请在右侧输入调试内容或上传文档</span>
</div> </div>
<div v-if="dataList.length > 0" class="data-list"> <div v-if="dataList.length > 0 && dataInfo.type === '1'" class="data-list">
<div v-for="(item,index) in dataList" :key="index" class="data-item"> <div v-for="(item,index) in dataList" :key="index" class="data-item">
<div class="left">{{ item.attrName }}</div> <div class="left">{{ item.attrName }}</div>
<div class="right">{{ item.attrValue }}</div> <div class="right">{{ item.attrValue }}</div>
</div> </div>
</div> </div>
<div v-if="dataList.length > 0 && dataInfo.type === '2'" class="data-list">
<vxe-grid
ref="entityTable"
v-bind="entityOptions"
/>
</div>
</div> </div>
</div> </div>
<div class="right"> <div class="right">
@ -77,6 +83,16 @@ export default {
action: `${baseURL}/minio/uploadFile`, action: `${baseURL}/minio/uploadFile`,
accept: '.txt,.doc,.docx' accept: '.txt,.doc,.docx'
}, },
//
entityOptions: {
columns: [
{ title: '头节点', field: 'headEntityName' },
{ title: '关系', field: 'relation' },
{ title: '尾节点', field: 'tailEntityName' }
],
data: []
},
token: getAccessToken(), token: getAccessToken(),
fileId: '', fileId: '',
fileList: [], fileList: [],
@ -121,20 +137,32 @@ export default {
this.$message.error('请上传文件或者输入调试内容!') this.$message.error('请上传文件或者输入调试内容!')
return return
} }
const loading = this.$baseLoading(1, '调试中...')
const params = { const params = {
text: this.text, ...this.dataInfo,
type: this.dataInfo.type, // type: this.dataInfo.type,
prompt: this.dataInfo.prompt, // prompt: this.dataInfo.prompt,
extractAttributes: this.dataInfo.extractAttributes, // extractAttributes: this.dataInfo.extractAttributes,
fileId: this.fileId fileId: this.fileId,
text: this.text
} }
if (params.type === '2') { if (params.type === '2') {
params.tripleList = this.list params.tripleList = this.list
} }
promptDebugging(params).then(res => { promptDebugging(params).then(res => {
if (res.code === 200) { loading.close()
if (res.code === 200 && res.data) {
this.dataList = res.data this.dataList = res.data
if (this.dataInfo.type === '2') {
this.entityOptions.data = res.data
for (const item of this.entityOptions.data) {
item.headEntityName = item.headEntity.name
item.tailEntityName = item.tailEntity.name
}
}
} }
}).catch(() => {
loading.close()
}) })
} }
} }

@ -63,10 +63,8 @@ export default {
} }
} }
}, },
activated() {
this.fetchData()
},
mounted() { mounted() {
this.fetchData()
this.tableHeight(390) this.tableHeight(390)
}, },
methods: { methods: {

Loading…
Cancel
Save