|
@@ -29,7 +29,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="onSubmit">查询</el-button>
|
|
|
- <el-button type="primary" @click="create">创建</el-button>
|
|
|
+ <el-button type="primary" @click="create">创建项目</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table :data="tableData" style="width: 100%">
|
|
@@ -39,28 +39,38 @@
|
|
|
<template #default="scope">
|
|
|
<el-tag type="info" v-if="scope.row.status === 0">未开始</el-tag>
|
|
|
<el-tag type="primary" v-if="scope.row.status === 1">文件已导入</el-tag>
|
|
|
- <el-tag type="success" v-if="scope.row.status === 3">审核成功</el-tag>
|
|
|
- <el-tag type="warning" v-if="scope.row.status === 2">审核中</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.status === 3">对比完成</el-tag>
|
|
|
+ <el-tag type="warning" v-if="scope.row.status === 2">对比中</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="address" label="操作">
|
|
|
<template #default="scope">
|
|
|
- <el-button-group class="ml-4">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="scope.row.status < 1"
|
|
|
- @click="() => importFilesFun(scope.row.id)"
|
|
|
- >
|
|
|
- 导入
|
|
|
- </el-button>
|
|
|
- <el-button type="warning" @click="() => updetail(scope.row)">修改</el-button>
|
|
|
- <el-button type="warning" @click="() => getDetail(scope.row)">查看</el-button>
|
|
|
- <el-popconfirm title="确定删除该项目?" @confirm="deleteProject(scope.row.id)">
|
|
|
- <template #reference>
|
|
|
- <el-button type="danger">删除</el-button>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
- </el-button-group>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ v-if="scope.row.status < 1"
|
|
|
+ :icon="Notification"
|
|
|
+ plain
|
|
|
+ @click="() => importFilesFun(scope.row.id)"
|
|
|
+ >
|
|
|
+ 导入文件
|
|
|
+ </el-button>
|
|
|
+ <!-- <el-button size="small" type="warning" @click="() => updetail(scope.row)" plain>修改</el-button> -->
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status === 3"
|
|
|
+ size="small"
|
|
|
+ type="warning"
|
|
|
+ @click="() => getDetail(scope.row)"
|
|
|
+ :icon="Tickets"
|
|
|
+ plain
|
|
|
+ >
|
|
|
+ 查看结果
|
|
|
+ </el-button>
|
|
|
+ <el-popconfirm title="确定删除该项目?" @confirm="deleteProject(scope.row.id)">
|
|
|
+ <template #reference>
|
|
|
+ <el-button size="small" type="danger" plain :icon="Delete">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-popconfirm>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -128,6 +138,7 @@ import {
|
|
|
} from '../../api/plagiarismCheck';
|
|
|
import header_local from '../allMedia/components/header.vue';
|
|
|
import { ElMessage, ElLoading } from 'element-plus';
|
|
|
+import { Delete, Tickets, Notification } from '@element-plus/icons-vue';
|
|
|
import { ref } from 'vue';
|
|
|
const dialogVisible = ref(false);
|
|
|
const showimport = ref(false);
|
|
@@ -196,7 +207,7 @@ const createPro = () => {
|
|
|
proName.value = '';
|
|
|
getProList();
|
|
|
});
|
|
|
- (typeof importId === 'number') &&
|
|
|
+ typeof importId === 'number' &&
|
|
|
upList({
|
|
|
id: importId,
|
|
|
projectName: proName.value
|