2025-04-16 23:06:01 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div class="titleBox">
|
2025-07-04 11:19:35 +08:00
|
|
|
|
<PageTitle title="情报语义分析"></PageTitle>
|
2025-04-16 23:06:01 +08:00
|
|
|
|
</div>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
<div class="flex just-between">
|
|
|
|
|
|
<!-- 左边 -->
|
2025-07-06 15:07:33 +08:00
|
|
|
|
<div class="ww49" style="min-width: 647px;">
|
2025-07-04 11:19:35 +08:00
|
|
|
|
<div ref="searchBox">
|
2025-07-06 15:07:33 +08:00
|
|
|
|
<Search :searchArr="searchConfiger" @submit="onSearch">
|
|
|
|
|
|
<el-button type="primary" @click="addForm('add',null)">新增</el-button>
|
|
|
|
|
|
</Search>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tabBox">
|
|
|
|
|
|
<MyTable
|
|
|
|
|
|
:tableData="pageData.tableData"
|
|
|
|
|
|
:tableColumn="pageData.tableColumn"
|
2025-07-06 15:07:33 +08:00
|
|
|
|
:tableHeight="pageData.tableHeight1"
|
2025-07-04 11:19:35 +08:00
|
|
|
|
:key="pageData.keyCount"
|
|
|
|
|
|
:tableConfiger="pageData.tableConfiger"
|
|
|
|
|
|
:controlsWidth="pageData.controlsWidth"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #controls="{ row }">
|
2025-07-06 15:07:33 +08:00
|
|
|
|
<el-link type="primary" @click="addForm('edit', row.id)">编辑</el-link>
|
|
|
|
|
|
<el-link type="danger" @click="delDictItem(row.id)">删除</el-link>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</MyTable>
|
2025-07-18 15:41:15 +08:00
|
|
|
|
<div class="txetBox">
|
2025-07-19 18:37:07 +08:00
|
|
|
|
{{ container.text }}
|
2025-07-18 15:41:15 +08:00
|
|
|
|
</div>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
<div class="footBnt">
|
2025-07-18 10:54:07 +08:00
|
|
|
|
<el-button type="primary" @click="showText = true">导入</el-button>
|
2025-07-18 15:41:15 +08:00
|
|
|
|
<span class="relative ml10">
|
|
|
|
|
|
<el-button type="primary" v-loading="btnLoading" @click="handleFx">语义分析</el-button>
|
|
|
|
|
|
<span v-if="btnLoading" class="f12 absolute nowrap" style="color: #333333; left: 92px;bottom: 5px;">数据解析中......</span>
|
|
|
|
|
|
</span>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 右边表格 -->
|
|
|
|
|
|
<div class="ww49">
|
|
|
|
|
|
<div ref="searchBox">
|
2025-07-19 15:34:47 +08:00
|
|
|
|
<Search :searchArr="searchConfigerR" @submit="onSearchR" />
|
2025-07-04 11:19:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="tabBox">
|
|
|
|
|
|
<MyTable
|
2025-07-19 14:06:46 +08:00
|
|
|
|
:tableData="pageData.tableDataR"
|
|
|
|
|
|
:tableColumn="pageData.tableColumnR"
|
2025-07-04 11:19:35 +08:00
|
|
|
|
:tableHeight="pageData.tableHeight"
|
|
|
|
|
|
:key="pageData.keyCount"
|
2025-07-19 14:06:46 +08:00
|
|
|
|
element-loading-text="模型加载中......"
|
2025-07-04 11:19:35 +08:00
|
|
|
|
:tableConfiger="pageData.tableConfigerR"
|
2025-07-18 15:41:15 +08:00
|
|
|
|
:controlsWidth="pageData.controlsWidthR"
|
2025-07-04 11:19:35 +08:00
|
|
|
|
>
|
2025-07-19 15:34:47 +08:00
|
|
|
|
<template #xlLx="{row}">
|
|
|
|
|
|
<DictTag :tag="false" :value="row.xlLx" :options="D_GS_XS_LX" />
|
|
|
|
|
|
</template>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
<template #controls="{ row }">
|
2025-07-18 15:41:15 +08:00
|
|
|
|
<el-link type="primary" @click="lookdetail('edit', row)">编辑</el-link>
|
2025-07-19 15:34:47 +08:00
|
|
|
|
<el-link type="primary" @click="lookdetail('detail', row)">详情</el-link>
|
2025-07-06 15:07:33 +08:00
|
|
|
|
<el-link type="danger" @click="delDictItemRight(row.id)">删除</el-link>
|
2025-07-04 11:19:35 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</MyTable>
|
|
|
|
|
|
<Pages
|
|
|
|
|
|
@changeNo="changeNo"
|
|
|
|
|
|
@changeSize="changeSize"
|
|
|
|
|
|
:tableHeight="pageData.tableHeight"
|
2025-07-19 15:49:31 +08:00
|
|
|
|
:pageConfiger="{ ...pageData.pageConfigerR }"
|
2025-07-04 11:19:35 +08:00
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2025-04-16 23:06:01 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<!-- 编辑详情 -->
|
|
|
|
|
|
<EditAddForm ref="detailDiloag" @updateDate="getList" />
|
2025-07-19 17:08:53 +08:00
|
|
|
|
<Detail ref="detailForm" @change="getjxListR" v-if="isShow" :dic="{D_BZ_SF,D_BZ_XB,D_GS_XS_LY,D_BZ_SSZT,D_GS_XS_LX ,D_GS_XS_QTLX}" />
|
2025-07-18 10:54:07 +08:00
|
|
|
|
<!-- 文字解析 -->
|
|
|
|
|
|
<ExtractionText v-model="showText" @change="getText"></ExtractionText>
|
2025-04-16 23:06:01 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2025-07-18 10:54:07 +08:00
|
|
|
|
import ExtractionText from "@/components/ExtractionText/index.vue";
|
2025-04-16 23:06:01 +08:00
|
|
|
|
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
|
|
|
|
|
import MyTable from "@/components/aboutTable/MyTable.vue";
|
|
|
|
|
|
import Pages from "@/components/aboutTable/Pages.vue";
|
|
|
|
|
|
import Search from "@/components/aboutTable/Search.vue";
|
|
|
|
|
|
import EditAddForm from "./components/editAddForm.vue";
|
2025-07-18 15:41:15 +08:00
|
|
|
|
import Detail from "./components/detail.vue";
|
|
|
|
|
|
import { qcckGet, qcckPost, ParsingText } from "@/api/qcckApi.js";
|
2025-04-16 23:06:01 +08:00
|
|
|
|
import { reactive, ref, onMounted, getCurrentInstance } from "vue";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
2025-07-18 15:41:15 +08:00
|
|
|
|
const {D_GS_ZDQT_FXDJ,D_GS_XS_ZLLX,D_GS_XS_CZZT,D_GS_XS_LY, D_BZ_SSZT,D_BZ_SF,D_GS_XS_LX ,D_GS_XS_QTLX,D_BZ_XB,D_BZ_XSSHZT} = proxy.$dict("D_GS_ZDQT_FXDJ","D_GS_XS_ZLLX","D_GS_XS_CZZT","D_GS_XS_LY","D_BZ_SSZT","D_BZ_SF","D_GS_XS_LX","D_GS_XS_QTLX","D_BZ_XB","D_BZ_XSSHZT"); //获取字典数据
|
2025-04-16 23:06:01 +08:00
|
|
|
|
const detailDiloag = ref();
|
2025-07-18 15:41:15 +08:00
|
|
|
|
const detailForm = ref();
|
2025-04-16 23:06:01 +08:00
|
|
|
|
const searchBox = ref(); //搜索框
|
2025-07-18 10:54:07 +08:00
|
|
|
|
const showText = ref(false);
|
2025-07-18 15:41:15 +08:00
|
|
|
|
const isShow = ref(false);
|
2025-04-16 23:06:01 +08:00
|
|
|
|
const searchConfiger = ref([
|
2025-07-04 11:19:35 +08:00
|
|
|
|
{
|
|
|
|
|
|
label: "语义名称",
|
|
|
|
|
|
prop: "yymc",
|
|
|
|
|
|
placeholder: "请输入语义名称",
|
|
|
|
|
|
showType: "input"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "要素类型",
|
|
|
|
|
|
prop: "yslx",
|
2025-07-19 17:08:53 +08:00
|
|
|
|
placeholder: "请输入要素类型",
|
|
|
|
|
|
showType: "input"
|
2025-07-04 11:19:35 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "要素名称",
|
|
|
|
|
|
prop: "ysmc",
|
|
|
|
|
|
placeholder: "请输入要素名称",
|
|
|
|
|
|
showType: "input"
|
|
|
|
|
|
}
|
2025-04-16 23:06:01 +08:00
|
|
|
|
]);
|
2025-07-19 15:34:47 +08:00
|
|
|
|
const searchConfigerR = ref([
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "线索名称",
|
|
|
|
|
|
prop: "xsMc",
|
|
|
|
|
|
placeholder: "请输入线索名称",
|
|
|
|
|
|
showType: "input"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "线索类型",
|
|
|
|
|
|
prop: "xlLx",
|
|
|
|
|
|
placeholder: "请选择线索类型",
|
|
|
|
|
|
showType: "select",
|
|
|
|
|
|
options:D_GS_XS_LX
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
label: "内容关键字",
|
|
|
|
|
|
prop: "xsNr",
|
|
|
|
|
|
placeholder: "请输入内容关键字",
|
|
|
|
|
|
showType: "input"
|
|
|
|
|
|
}
|
|
|
|
|
|
]);
|
2025-04-16 23:06:01 +08:00
|
|
|
|
const queryFrom = ref({});
|
2025-07-19 15:34:47 +08:00
|
|
|
|
const queryFromR = ref({});
|
2025-07-19 18:37:07 +08:00
|
|
|
|
const container = ref({})
|
2025-07-18 15:41:15 +08:00
|
|
|
|
const btnLoading = ref(false)
|
|
|
|
|
|
const prsentText = ref(null)
|
2025-04-16 23:06:01 +08:00
|
|
|
|
const pageData = reactive({
|
2025-07-06 15:07:33 +08:00
|
|
|
|
tableData: [], //表格数据
|
2025-07-19 14:06:46 +08:00
|
|
|
|
tableDataR: [], //表格数据
|
2025-04-16 23:06:01 +08:00
|
|
|
|
keyCount: 0,
|
|
|
|
|
|
tableConfiger: {
|
|
|
|
|
|
rowHieght: 61,
|
2025-07-06 15:07:33 +08:00
|
|
|
|
showSelectType: "null",
|
2025-04-16 23:06:01 +08:00
|
|
|
|
loading: false
|
|
|
|
|
|
},
|
2025-07-06 15:07:33 +08:00
|
|
|
|
tableHeight1:300,
|
2025-07-04 11:19:35 +08:00
|
|
|
|
tableConfigerR: {
|
|
|
|
|
|
rowHieght: 61,
|
|
|
|
|
|
showSelectType: null,
|
|
|
|
|
|
loading: false
|
|
|
|
|
|
},
|
2025-07-19 15:34:47 +08:00
|
|
|
|
pageConfigerR: {
|
2025-07-19 15:49:31 +08:00
|
|
|
|
total: 0,
|
2025-04-16 23:06:01 +08:00
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
pageCurrent: 1
|
|
|
|
|
|
}, //分页
|
2025-07-16 11:03:44 +08:00
|
|
|
|
controlsWidth: 120, //操作栏宽度
|
2025-07-18 15:41:15 +08:00
|
|
|
|
controlsWidthR: 140, //操作栏宽度
|
2025-04-16 23:06:01 +08:00
|
|
|
|
tableColumn: [
|
2025-07-06 15:07:33 +08:00
|
|
|
|
{ label: "语义名称", prop: "yymc",showOverflowTooltip:true },
|
|
|
|
|
|
{ label: "要素类型", prop: "yslx",showOverflowTooltip:true },
|
|
|
|
|
|
{ label: "要素名称", prop: "ysmc",showOverflowTooltip:true },
|
|
|
|
|
|
{ label: "要素描述", prop: "ysms",showOverflowTooltip:true },
|
2025-07-16 11:03:44 +08:00
|
|
|
|
],
|
2025-07-19 14:06:46 +08:00
|
|
|
|
tableColumnR: [
|
2025-07-19 15:34:47 +08:00
|
|
|
|
{ label: "线索名称", prop: "xsMc",showOverflowTooltip:true },
|
|
|
|
|
|
{ label: "线索类型", prop: "xlLx",showOverflowTooltip:true,showSolt:true },
|
|
|
|
|
|
{ label: "指向地点", prop: "zxdz",showOverflowTooltip:true },
|
|
|
|
|
|
{ label: "线索内容", prop: "xsNr",showOverflowTooltip:true },
|
2025-07-16 11:03:44 +08:00
|
|
|
|
],
|
2025-04-16 23:06:01 +08:00
|
|
|
|
});
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
tabHeightFn();
|
2025-07-06 15:07:33 +08:00
|
|
|
|
getList();
|
2025-07-19 15:34:47 +08:00
|
|
|
|
getjxListR();
|
2025-04-16 23:06:01 +08:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// 搜索
|
2025-07-04 11:19:35 +08:00
|
|
|
|
const onSearch = (val) => {
|
|
|
|
|
|
queryFrom.value = { ...val };
|
|
|
|
|
|
getList();
|
|
|
|
|
|
};
|
2025-04-16 23:06:01 +08:00
|
|
|
|
|
2025-07-06 15:07:33 +08:00
|
|
|
|
|
2025-07-04 11:19:35 +08:00
|
|
|
|
const getList = () => {
|
2025-07-06 15:07:33 +08:00
|
|
|
|
pageData.tableConfiger.loading = true;
|
|
|
|
|
|
qcckGet(queryFrom.value,'/mosty-gsxt/qbyy/selectList').then((res)=>{
|
|
|
|
|
|
pageData.tableData = res || [];
|
|
|
|
|
|
pageData.tableConfiger.loading = false;
|
|
|
|
|
|
})
|
2025-07-04 11:19:35 +08:00
|
|
|
|
};
|
2025-04-16 23:06:01 +08:00
|
|
|
|
|
2025-07-19 15:34:47 +08:00
|
|
|
|
// 搜索
|
|
|
|
|
|
const onSearchR = (val) => {
|
|
|
|
|
|
queryFromR.value = { ...val };
|
|
|
|
|
|
pageData.tableConfigerR.pageCurrent = 1;
|
|
|
|
|
|
getjxListR();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2025-07-19 17:08:53 +08:00
|
|
|
|
// 获取数据
|
2025-07-19 15:34:47 +08:00
|
|
|
|
const getjxListR = () => {
|
|
|
|
|
|
pageData.tableConfigerR.loading = true;
|
2025-07-19 17:08:53 +08:00
|
|
|
|
let params = { ...queryFromR.value, cjLx:2, }
|
|
|
|
|
|
qcckGet(params,'/mosty-gsxt/qbcj/selectPage').then((res)=>{
|
2025-07-19 15:34:47 +08:00
|
|
|
|
pageData.tableDataR = res.records || [];
|
2025-07-19 15:49:31 +08:00
|
|
|
|
pageData.pageConfigerR.total = res.total;
|
2025-07-19 15:34:47 +08:00
|
|
|
|
pageData.tableConfigerR.loading = false;
|
|
|
|
|
|
}).catch(()=>{
|
|
|
|
|
|
pageData.tableConfigerR.loading = false;
|
|
|
|
|
|
})
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2025-04-16 23:06:01 +08:00
|
|
|
|
// 删除
|
2025-07-06 15:07:33 +08:00
|
|
|
|
const delDictItem = (id) => {
|
|
|
|
|
|
proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => {
|
|
|
|
|
|
qcckPost({id},'/mosty-gsxt/qbyy/delete').then(()=>{
|
|
|
|
|
|
proxy.$message({ type: "success", message: "删除成功" });
|
|
|
|
|
|
getList();
|
|
|
|
|
|
})
|
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 删除右边
|
|
|
|
|
|
const delDictItemRight = (id) => {
|
2025-07-19 15:34:47 +08:00
|
|
|
|
proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => {
|
|
|
|
|
|
qcckPost({id},'/mosty-gsxt/qbcj/delete').then(()=>{
|
|
|
|
|
|
proxy.$message({ type: "success", message: "删除成功" });
|
|
|
|
|
|
getjxListR();
|
|
|
|
|
|
})
|
|
|
|
|
|
}).catch(() => {});
|
2025-07-04 11:19:35 +08:00
|
|
|
|
};
|
2025-04-16 23:06:01 +08:00
|
|
|
|
|
2025-07-06 15:07:33 +08:00
|
|
|
|
|
|
|
|
|
|
// 新增数据 -- 左边
|
|
|
|
|
|
const addForm = (type, id) =>{
|
|
|
|
|
|
detailDiloag.value.init(type, id);
|
|
|
|
|
|
}
|
2025-07-18 15:41:15 +08:00
|
|
|
|
// 新增数据 -- 左边
|
|
|
|
|
|
const lookdetail = (type, row) =>{
|
|
|
|
|
|
isShow.value = true;
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
detailForm.value.init(type, row);
|
|
|
|
|
|
},500)
|
|
|
|
|
|
}
|
2025-07-06 15:07:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const changeNo = (val) => {
|
2025-07-19 15:34:47 +08:00
|
|
|
|
pageData.pageConfigerR.pageCurrent = val;
|
|
|
|
|
|
getListR();
|
2025-07-06 15:07:33 +08:00
|
|
|
|
};
|
|
|
|
|
|
const changeSize = (val) => {
|
2025-07-19 15:34:47 +08:00
|
|
|
|
pageData.pageConfigerR.pageSize = val;
|
|
|
|
|
|
getListR();
|
2025-07-06 15:07:33 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-18 15:41:15 +08:00
|
|
|
|
// 提取数据
|
|
|
|
|
|
const getText = (val) =>{
|
|
|
|
|
|
prsentText.value = null; //先清空
|
2025-07-19 18:37:07 +08:00
|
|
|
|
container.value = val;
|
|
|
|
|
|
let obj = {
|
2025-07-18 15:41:15 +08:00
|
|
|
|
"model": "deepseek-reasoner",
|
|
|
|
|
|
"messages": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"role": "system",
|
2025-07-23 15:14:50 +08:00
|
|
|
|
"content": "# 角色定位\n你是一名资深警务人员,尤其擅长对警情、案件、线索等非结构化文本数据进行阅读理解,并从中提取各种对象特征信息进行结构化,并总结各种对象之间的关联关系。\n## - person:人物 - id:唯一值 - name:姓名 - enName:英文姓名 - nickName:绰号 - aliasName:别名 - screenName:网名 - idcard:身份证号码 - phoneNo:手机号码 - bankCard:银行卡号 - passporNumber:护照号码 - permanentResidenceAddress:户籍地址 - residenceAddress:现住地址- jbxx:基本信息- id:唯一值 - xsmc:线索名称 - xslx:线索类型 - qbly:情报来源 - kssj:开始时间 - jssj:结束时间 - qtlx:群体类型 - qtmc:群体名称 - sjrs:设计人数 - sbdw:送报单- yjtq:语义提取 "
|
2025-07-18 15:41:15 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"role": "user",
|
|
|
|
|
|
"content": "# 任务\n根据警情信息识别对象信息,以及对象之间的关联关系。最后以json形式输出,不要做任何解释。直接给出完整的json\n## 注意\n- 各种不同类型的对象分别用对象数组存储;\n- 对象之间的关系存储在relation数组中;\n\n# 警情信息\n - "
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"max_tokens": 4096,
|
|
|
|
|
|
"stream": false
|
|
|
|
|
|
}
|
2025-07-23 15:14:50 +08:00
|
|
|
|
let marks = (pageData.tableData.splice(0,10).map(v=> '- '+v.yymc)).join(' ');
|
2025-07-19 19:42:46 +08:00
|
|
|
|
obj.messages[0].content = obj.messages[0].content + marks + "## 注意点\n- 地址信息能够根据上下文信息按照省、市、县、街道/乡镇、路名分段补全并标准化。例如:四川省 成都市 高新区 桂溪街道 交子大道11号\n- 对象之间的关联关系由对象类型、对象id、关系类型、目标对象类型、目标对象id 5个属性组成。\n"
|
2025-07-19 15:34:47 +08:00
|
|
|
|
// 拼接字典 线索类型:
|
2025-07-19 14:06:46 +08:00
|
|
|
|
let xslx = '线索类型是一个字典,字典内容包括:' + (D_GS_XS_LX.value.map(item=>item.dm+':'+item.zdmc).join(','))+'\n'
|
|
|
|
|
|
let qbLy = '情报来源是一个字典,字典内容包括:' + (D_GS_XS_LY.value.map(item=>item.dm+':'+item.zdmc).join(','))+'\n'
|
|
|
|
|
|
let sszt = '所属专题是一个字典,字典内容包括:' + (D_BZ_SSZT.value.map(item=>item.dm+':'+item.zdmc).join(','))+'\n'
|
2025-07-19 17:08:53 +08:00
|
|
|
|
let time = '时间必须按照 YYYY-MM-DD HH:mm:ss 的格式 \n'
|
|
|
|
|
|
obj.messages[0].content = obj.messages[0].content + xslx + qbLy + sszt + time;
|
2025-08-27 17:26:29 +08:00
|
|
|
|
obj.messages[1].content = obj.messages[1].content + val.text
|
2025-07-18 15:41:15 +08:00
|
|
|
|
prsentText.value = obj;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const handleFx = () => {
|
|
|
|
|
|
if(!prsentText.value) return proxy.$message({ type: "warning", message: "请先上传要解析的文件" });;
|
|
|
|
|
|
btnLoading.value = true;
|
2025-07-19 14:06:46 +08:00
|
|
|
|
pageData.tableConfigerR.loading = true;
|
2025-07-18 15:41:15 +08:00
|
|
|
|
ParsingText( prsentText.value,(res)=>{
|
2025-07-19 14:06:46 +08:00
|
|
|
|
pageData.tableConfigerR.loading = false;
|
2025-07-18 15:41:15 +08:00
|
|
|
|
btnLoading.value = false;
|
|
|
|
|
|
let content = res.data.choices[0].message.content;
|
|
|
|
|
|
let message = null;
|
|
|
|
|
|
try{
|
|
|
|
|
|
message = content ? JSON.parse(content):''
|
|
|
|
|
|
}catch(err){
|
2025-07-19 14:06:46 +08:00
|
|
|
|
proxy.$message({ type: "danger", message: "解析异常,请重新上传解析" });
|
2025-07-18 15:41:15 +08:00
|
|
|
|
}
|
2025-07-19 19:42:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-07-19 14:06:46 +08:00
|
|
|
|
if(!message) return proxy.$message({ type: "danger", message: "解析异常,请重新上传解析" });
|
2025-07-19 19:42:46 +08:00
|
|
|
|
|
|
|
|
|
|
let marks = '';
|
|
|
|
|
|
let arr = message.yjtq || []
|
|
|
|
|
|
arr.forEach(item=>{
|
|
|
|
|
|
for(let key in item){
|
|
|
|
|
|
marks = marks+ key+':'+ item[key]+' , '
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2025-08-27 17:26:29 +08:00
|
|
|
|
let params = {
|
2025-07-19 14:06:46 +08:00
|
|
|
|
...message.jbxx[0],
|
|
|
|
|
|
ryList:message.ryList,
|
2025-07-19 17:08:53 +08:00
|
|
|
|
cjLx:2,
|
2025-07-19 19:42:46 +08:00
|
|
|
|
xsNr:container.value.text+' , ' + marks,
|
2025-07-19 18:37:07 +08:00
|
|
|
|
fjdz:container.value.fjdz
|
2025-07-19 14:06:46 +08:00
|
|
|
|
}
|
|
|
|
|
|
qcckPost(params,'/mosty-gsxt/qbcj/add').then((res)=>{
|
2025-07-19 18:37:07 +08:00
|
|
|
|
container.value = {};
|
2025-07-19 15:34:47 +08:00
|
|
|
|
getjxListR()
|
2025-07-19 14:06:46 +08:00
|
|
|
|
})
|
2025-07-18 15:41:15 +08:00
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-04-16 23:06:01 +08:00
|
|
|
|
// 表格高度计算
|
|
|
|
|
|
const tabHeightFn = () => {
|
2025-07-04 11:19:35 +08:00
|
|
|
|
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 280;
|
2025-04-16 23:06:01 +08:00
|
|
|
|
window.onresize = function () {
|
|
|
|
|
|
tabHeightFn();
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
2025-07-04 11:19:35 +08:00
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.footBnt{
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 10px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
2025-07-06 15:07:33 +08:00
|
|
|
|
.txetBox{
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 50px;
|
|
|
|
|
|
height: 210px;
|
2025-07-18 15:41:15 +08:00
|
|
|
|
width: calc(100% - 20px);
|
2025-07-06 15:07:33 +08:00
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
box-sizing: border-box;
|
2025-07-18 15:41:15 +08:00
|
|
|
|
border: 2px dashed #ccc;
|
|
|
|
|
|
margin: 0 10px;
|
|
|
|
|
|
color: #333;
|
2025-07-06 15:07:33 +08:00
|
|
|
|
}
|
2025-07-04 11:19:35 +08:00
|
|
|
|
</style>
|
|
|
|
|
|
|
2025-04-16 23:06:01 +08:00
|
|
|
|
<style>
|
|
|
|
|
|
.el-loading-mask {
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.5) !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|