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

dev
xiangcongshuai 2 months ago
parent 8c030b288e
commit e01224d018

@ -9,7 +9,7 @@
<template>
<div ref="screenRef" v-clickoutside="handleClose" class="screen-body">
<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-col class="search_left">
<el-row :gutter="40">

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

@ -13,7 +13,7 @@
</div>
</div>
<div class="proofread-content">
<div class="left-tree">
<div v-if="treeData.length > 0" class="left-tree">
<el-tree
ref="tree"
:data="treeData"
@ -25,7 +25,8 @@
@node-click="handleNodeClick"
/>
</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">
<el-scrollbar v-if="selectList.length > 0" class="left-scroll">
<vuedraggable v-model="selectList" animation="400" class="img_list" @end="handleDragEnd">
@ -64,7 +65,8 @@
<span class="boder4" />
</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-row :gutter="10" class="form-content">
<el-col :span="24">

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

@ -34,20 +34,20 @@
<template #result="{row}">
<div v-if="row.newFlag" style="padding: 10px 0;">
<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>
</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>
</vxe-grid>
<div style="text-align: center">
<!-- <div style="text-align: center">
<cs-page
:page.sync="queryForm.page"
:limit.sync="queryForm.size"
:total="queryForm.total"
@pagination="fetchData"
/>
</div>
</div> -->
<record-details ref="details" />
</div>
</template>
@ -81,10 +81,10 @@ export default {
name: '未评估',
id: '0'
}, {
name: '符合',
name: '存在',
id: '1'
}, {
name: '不符合',
name: '不存在',
id: '2'
}],
gridOptions: {
@ -120,7 +120,7 @@ export default {
isExpand: {
handler: function(newVal, oldVal) {
if (newVal !== oldVal) {
this.tableHeight(this.isExpand ? 590 : 370)
this.tableHeight(this.isExpand ? 550 : 330)
}
},
immediate: true
@ -159,7 +159,7 @@ export default {
atomicName: this.atomicName,
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.queryForm.total = res.data.total
})

@ -34,22 +34,22 @@
<template #result="{row}">
<div v-if="row.newFlag" style="padding: 10px 0;">
<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>
</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>
</vxe-grid>
<div style="text-align: center">
<!-- <div style="text-align: center">
<cs-page
:page.sync="queryForm.page"
:limit.sync="queryForm.size"
:total="queryForm.total"
@pagination="fetchData"
/>
</div>
</div> -->
<record-details ref="details" />
</div>
</template>
@ -83,10 +83,10 @@ export default {
name: '未评估',
id: '0'
}, {
name: '符合',
name: '存在',
id: '1'
}, {
name: '不符合',
name: '不存在',
id: '2'
}],
gridOptions: {
@ -123,7 +123,7 @@ export default {
isExpand: {
handler: function(newVal, oldVal) {
if (newVal !== oldVal) {
this.tableHeight(this.isExpand ? 590 : 370)
this.tableHeight(this.isExpand ? 550 : 330)
}
},
immediate: true
@ -162,7 +162,7 @@ export default {
atomicName: this.atomicName,
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.queryForm.total = res.data.total
})

@ -34,20 +34,20 @@
<template #result="{row}">
<div v-if="row.newFlag" style="padding: 10px 0;">
<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>
</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>
</vxe-grid>
<div style="text-align: center">
<!-- <div style="text-align: center">
<cs-page
:page.sync="queryForm.page"
:limit.sync="queryForm.size"
:total="queryForm.total"
@pagination="fetchData"
/>
</div>
</div> -->
<record-details ref="details" />
</div>
</template>
@ -120,7 +120,7 @@ export default {
isExpand: {
handler: function(newVal, oldVal) {
if (newVal !== oldVal) {
this.tableHeight(this.isExpand ? 580 : 370)
this.tableHeight(this.isExpand ? 540 : 330)
}
},
immediate: true
@ -159,7 +159,7 @@ export default {
atomicName: this.atomicName,
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.queryForm.total = res.data.total
})

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

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

Loading…
Cancel
Save