From bfe20c4cb7f2471262a5a7eb354216205b93e734 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Tue, 7 May 2024 09:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../checkKecheng/dqxqkcDetail.vue | 10 - .../checkKecheng/dqxqkcMain.vue | 10 - .../checkKecheng/dqxqkcMenu.vue | 4 +- src/views/zuoye/webAll/JianceForm.vue | 38 --- src/views/zy/zyCcjg/ZyCcjg.api.ts | 72 +++++ src/views/zy/zyCcjg/ZyCcjg.data.ts | 187 +++++++++++++ src/views/zy/zyCcjg/ZyCcjgList.vue | 215 +++++++++++++++ src/views/zy/zyCcjg/components/ZyCcjgForm.vue | 235 ++++++++++++++++ .../zy/zyCcjg/components/ZyCcjgModal.vue | 75 ++++++ src/views/zy/zyInfo/ZyInfoList.vue | 252 +++++++++--------- src/views/zy/zyInfo/components/ZyInfoForm.vue | 26 +- .../zy/zyInfoStudent/ZyInfoStudentList.vue | 15 +- .../zyInfoStudent/ZyInfoStudentListModal.vue | 64 +++++ 13 files changed, 1005 insertions(+), 198 deletions(-) create mode 100644 src/views/zy/zyCcjg/ZyCcjg.api.ts create mode 100644 src/views/zy/zyCcjg/ZyCcjg.data.ts create mode 100644 src/views/zy/zyCcjg/ZyCcjgList.vue create mode 100644 src/views/zy/zyCcjg/components/ZyCcjgForm.vue create mode 100644 src/views/zy/zyCcjg/components/ZyCcjgModal.vue create mode 100644 src/views/zy/zyInfoStudent/ZyInfoStudentListModal.vue diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue index ddb0cd6..9f43f52 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcDetail.vue @@ -23,16 +23,6 @@ const { rwbh } = query;//获取传递参数 let router = useRouter(); - - function getGzt(type){ - console.log(`🚀 ~ getGzt ~ type:`, type) - // var href = "/site/dqkcDetail"; - var href = "/site/dqkcDqzy"; - if(type=='dqzy'){ - href = "/site/dqkcDqzy"; - } - router.push(href); - } //进入就加载 onMounted(() => { diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMain.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMain.vue index 0e9203e..dfc0886 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMain.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMain.vue @@ -38,16 +38,6 @@ const { rwbh } = query;//获取传递参数 let router = useRouter(); - - function getGzt(type){ - console.log(`🚀 ~ getGzt ~ type:`, type) - // var href = "/site/dqkcDetail"; - var href = "/site/dqkcDqzy"; - if(type=='dqzy'){ - href = "/site/dqkcDqzy"; - } - router.push(href); - } //进入就加载 onMounted(() => { diff --git a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue index 90777f0..e5ed927 100644 --- a/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue +++ b/src/views/site/renKeJiaoCheng/checkKecheng/dqxqkcMenu.vue @@ -4,7 +4,7 @@ @@ -62,7 +62,7 @@ if(type=='dqzy'){ href = "/zy/dqkcDqzy"; } - router.push(href); + router.push({path:href,query: {rwbh}}); } //进入就加载 diff --git a/src/views/zuoye/webAll/JianceForm.vue b/src/views/zuoye/webAll/JianceForm.vue index a307004..6c6c88f 100644 --- a/src/views/zuoye/webAll/JianceForm.vue +++ b/src/views/zuoye/webAll/JianceForm.vue @@ -41,9 +41,6 @@ 上传并查重 查询检测结果 - @@ -71,9 +68,6 @@ 上传并查重 查询检测结果 - @@ -99,16 +93,7 @@ 上传并检测 - - -
@@ -138,20 +123,6 @@
- @@ -192,7 +163,6 @@ confirmLoading.value = true; console.log('sub--->',formData); defHttp.post({ url: '/blZycc/blZycc/zyccUpload', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) formData.paperid = res.paperid; formData.content = res.message; confirmLoading.value = false; @@ -201,14 +171,12 @@ //外网提交 function handleWwtj(){ defHttp.post({ url: '/blZycc/blZycc/wwKsjc', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) }); } //外网查询检测结果 function handleWwcxjcjg(){ confirmLoading.value = true; defHttp.post({ url: '/blZycc/blZycc/wwCxjcjg', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) var resHtml = ""; if(res.filestateid=='0'){ resHtml = resHtml+"检测状态:未检测
"; @@ -244,7 +212,6 @@ function handleNeiwang() { confirmLoading.value = true; defHttp.post({ url: '/blZycc/blZycc/xfwbdUpload', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) formData.xnpaperid = res.paperid; formData.xncontent = res.message; confirmLoading.value = false; @@ -253,14 +220,12 @@ //内网提交 function handleNwtj(){ defHttp.post({ url: '/blZycc/blZycc/xfwbdKsjc', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) }); } //内网查询检测结果 function handleNwcxjcjg(){ confirmLoading.value = true; defHttp.post({ url: '/blZycc/blZycc/xfwbdCxjcjg', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) var resHtml = ""; if(res.filestateid=='0'){ resHtml = resHtml+"检测状态:未检测
"; @@ -297,7 +262,6 @@ function handleAigc() { confirmLoading.value = true; defHttp.post({ url: '/blZycc/blZycc/aigcUpload', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) formData.aigcpaperid = res.paperid; formData.aigccontent = res.message; confirmLoading.value = false; @@ -306,14 +270,12 @@ //AIGC提交检测 function handleAigcTj(){ defHttp.post({ url: '/blZycc/blZycc/aigcKsjc', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) }); } //AIGC检测结果查询 function handleAigccxjcjg(){ confirmLoading.value = true; defHttp.post({ url: '/blZycc/blZycc/aigcCxjcjg', params: formData, }).then((res) => { - console.log(`🚀 ~ saveOrUpdate ~ res:`, res) var resHtml = ""; if(res.filestateid=='0'){ resHtml = resHtml+"检测状态:未检测
"; diff --git a/src/views/zy/zyCcjg/ZyCcjg.api.ts b/src/views/zy/zyCcjg/ZyCcjg.api.ts new file mode 100644 index 0000000..88faac6 --- /dev/null +++ b/src/views/zy/zyCcjg/ZyCcjg.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/zyCcjg/zyCcjg/list', + save='/zyCcjg/zyCcjg/add', + edit='/zyCcjg/zyCcjg/edit', + deleteOne = '/zyCcjg/zyCcjg/delete', + deleteBatch = '/zyCcjg/zyCcjg/deleteBatch', + importExcel = '/zyCcjg/zyCcjg/importExcel', + exportXls = '/zyCcjg/zyCcjg/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/zy/zyCcjg/ZyCcjg.data.ts b/src/views/zy/zyCcjg/ZyCcjg.data.ts new file mode 100644 index 0000000..08f7ac2 --- /dev/null +++ b/src/views/zy/zyCcjg/ZyCcjg.data.ts @@ -0,0 +1,187 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '学生作业', + align: "center", + dataIndex: 'zyStuId' + }, + { + title: '报告编号', + align: "center", + dataIndex: 'paperguid' + }, + { + title: '文件名', + align: "center", + dataIndex: 'papertitle' + }, + { + title: '检测状态(1:检测中,2:检测完成,3:检测失败,0:未检测)', + align: "center", + dataIndex: 'filestateid' + }, + { + title: '检测进度', + align: "center", + dataIndex: 'detectprogress' + }, + { + title: '相似率', + align: "center", + dataIndex: 'percentage' + }, + { + title: '引用率', + align: "center", + dataIndex: 'quotepercentage' + }, + { + title: '复写率', + align: "center", + dataIndex: 'duplicatepercentage' + }, + { + title: '自写率', + align: "center", + dataIndex: 'ownpercentage' + }, + { + title: '文档检测完成时间', + align: "center", + dataIndex: 'checkdate' + }, + { + title: '论文字数', + align: "center", + dataIndex: 'paperword' + }, + { + title: '在线报告查看地址', + align: "center", + dataIndex: 'paperviewurl' + }, + { + title: '报告下载地址', + align: "center", + dataIndex: 'paperdownurl' + }, + { + title: '他引率', + align: "center", + dataIndex: 'otherquoterate' + }, + { + title: '自引率', + align: "center", + dataIndex: 'selfquoterate' + }, + { + title: '专业术语率', + align: "center", + dataIndex: 'proWordRate' + }, + { + title: '查重类型(0外网 1内网 2aigc)', + align: "center", + dataIndex: 'ccType' + }, +]; + +//查询数据 +export const searchFormSchema: FormSchema[] = [ +]; + +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '报告编号', + field: 'paperguid', + component: 'Input', + }, + { + label: '文件名', + field: 'papertitle', + component: 'Input', + }, + { + label: '检测状态(1:检测中,2:检测完成,3:检测失败,0:未检测)', + field: 'filestateid', + component: 'Input', + }, + { + label: '检测进度', + field: 'detectprogress', + component: 'Input', + }, + { + label: '相似率', + field: 'percentage', + component: 'Input', + }, + { + label: '引用率', + field: 'quotepercentage', + component: 'Input', + }, + { + label: '复写率', + field: 'duplicatepercentage', + component: 'Input', + }, + { + label: '自写率', + field: 'ownpercentage', + component: 'Input', + }, + { + label: '文档检测完成时间', + field: 'checkdate', + component: 'Input', + }, + { + label: '论文字数', + field: 'paperword', + component: 'Input', + }, + { + label: '在线报告查看地址', + field: 'paperviewurl', + component: 'Input', + }, + { + label: '报告下载地址', + field: 'paperdownurl', + component: 'Input', + }, + { + label: '他引率', + field: 'otherquoterate', + component: 'Input', + }, + { + label: '自引率', + field: 'selfquoterate', + component: 'Input', + }, + { + label: '专业术语率', + field: 'proWordRate', + component: 'Input', + }, + { + label: '查重类型(0外网 1内网 2aigc)', + field: 'ccType', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, +]; diff --git a/src/views/zy/zyCcjg/ZyCcjgList.vue b/src/views/zy/zyCcjg/ZyCcjgList.vue new file mode 100644 index 0000000..27efdd9 --- /dev/null +++ b/src/views/zy/zyCcjg/ZyCcjgList.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/zy/zyCcjg/components/ZyCcjgForm.vue b/src/views/zy/zyCcjg/components/ZyCcjgForm.vue new file mode 100644 index 0000000..65b044c --- /dev/null +++ b/src/views/zy/zyCcjg/components/ZyCcjgForm.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/src/views/zy/zyCcjg/components/ZyCcjgModal.vue b/src/views/zy/zyCcjg/components/ZyCcjgModal.vue new file mode 100644 index 0000000..18c1fd4 --- /dev/null +++ b/src/views/zy/zyCcjg/components/ZyCcjgModal.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/views/zy/zyInfo/ZyInfoList.vue b/src/views/zy/zyInfo/ZyInfoList.vue index 5040a44..b98e2bb 100644 --- a/src/views/zy/zyInfo/ZyInfoList.vue +++ b/src/views/zy/zyInfo/ZyInfoList.vue @@ -1,5 +1,5 @@ @@ -247,4 +240,9 @@ text-align: center } } + .ellipsis { + overflow: hidden; /* 确保超出容器的内容被裁剪 */ + white-space: nowrap; /* 确保文本在一行内显示 */ + text-overflow: ellipsis; /* 超出部分显示省略号 */ +} diff --git a/src/views/zy/zyInfo/components/ZyInfoForm.vue b/src/views/zy/zyInfo/components/ZyInfoForm.vue index 2d9bba0..20584b2 100644 --- a/src/views/zy/zyInfo/components/ZyInfoForm.vue +++ b/src/views/zy/zyInfo/components/ZyInfoForm.vue @@ -14,7 +14,7 @@
- + @@ -63,14 +63,19 @@ + +