|
@@ -1,54 +1,70 @@
|
|
<template>
|
|
<template>
|
|
<!-- 分配任务3(可做公共组件) -->
|
|
<!-- 分配任务3(可做公共组件) -->
|
|
- <div style="padding:20px;height:100%;background:white">
|
|
|
|
- <div class="header1">
|
|
|
|
- <div>
|
|
|
|
- <span>总件数:{{ totalNumber }}</span>
|
|
|
|
- <span> 剩余件数:{{ leaveNumber }}</span>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <label>任务类型:</label>
|
|
|
|
- <el-select v-model="taskType">
|
|
|
|
- <el-option label="对比任务" value="3"></el-option>
|
|
|
|
- <el-option label="标引任务" value="0"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </div>
|
|
|
|
- <!-- 平均分配 -->
|
|
|
|
- <div>
|
|
|
|
- <!-- <el-button type="primary" size="small" style="height:40px" @click="handleConfirm">平均分配</el-button> -->
|
|
|
|
- <el-button @click="getPerson">添加人员</el-button>
|
|
|
|
- <el-button @click="finish" v-if="params">完成</el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div style="padding:20px;height:100%;background:white;display: flex;">
|
|
|
|
+ <div class="" v-show="showRight" :style="{width:showRight?'300px':'0px'}">
|
|
|
|
+ <showColumn :projectId="projectId"></showColumn>
|
|
</div>
|
|
</div>
|
|
- <div style="margin-top:20px">
|
|
|
|
- <el-table v-if="showTable" :data="tableData" v-loading="loading" style="width: 100%" border>
|
|
|
|
- <el-table-column prop="name" label="人员名称" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column prop="tenantName" label="所属租户" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column prop="email" label="邮箱" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column prop="patentNum" label="件数" align="center" show-overflow-tooltip>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span v-if="scope.row.vVisible">{{ scope.row.patentNum }}</span>
|
|
|
|
- <span v-if="!scope.row.vVisible">
|
|
|
|
- <el-input v-model="scope.row.patentNum2" size="small" placeholder="请输入件数"></el-input>
|
|
|
|
- </span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="操作" align="center" width="300px">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div class="special">
|
|
|
|
- <el-button v-if="scope.row.vVisible" class="items" @click.native="edit(scope.row)"
|
|
|
|
- :disabled="scope.row.isChoose">编辑</el-button>
|
|
|
|
- <el-button v-else class="items" @click.native="save(scope.row)">保存</el-button>
|
|
|
|
- <el-button @click="chosePatentFile(scope.row)" v-if="scope.row.isChoose != true">选择</el-button>
|
|
|
|
- <el-tooltip v-else class="item" effect="dark" content="取消选择的专利" placement="top">
|
|
|
|
- <el-button @click="cancelChoose(scope.row)">取消</el-button>
|
|
|
|
|
|
+ <el-container :style="{width:showRight?'calc( 100% - 300px )':'100%'}">
|
|
|
|
+ <el-header class="header1">
|
|
|
|
+ <!-- <div > -->
|
|
|
|
+ <div style="display: flex;align-items: center;">
|
|
|
|
+ <div style="margin-right: 10px;">
|
|
|
|
+ <el-tooltip class="item" effect="dark" :content="(showRight ? '隐藏' : '显示') + '右侧自定义栏位'" placement="top">
|
|
|
|
+ <i :class="showRight ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
|
|
|
|
+ style="font-size: 25px; margin-left: 10px;color: #2f2f2f; cursor: pointer"
|
|
|
|
+ @click="showRight = !showRight"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
- <el-button @click="removePerson(scope)" type="danger">移除</el-button>
|
|
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <span>总件数:{{ totalNumber }}</span>
|
|
|
|
+ <span> 剩余件数:{{ leaveNumber }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <label>任务类型:</label>
|
|
|
|
+ <el-select v-model="taskType">
|
|
|
|
+ <el-option label="对比任务" value="3"></el-option>
|
|
|
|
+ <el-option label="标引任务" value="0"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 平均分配 -->
|
|
|
|
+ <div>
|
|
|
|
+ <el-button @click="getPerson">添加人员</el-button>
|
|
|
|
+ <el-button @click="finish" v-if="params">完成</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- </div> -->
|
|
|
|
+ </el-header>
|
|
|
|
+ <el-main>
|
|
|
|
+ <div style="margin-top:20px">
|
|
|
|
+ <el-table v-if="showTable" :data="tableData" v-loading="loading" style="width: 100%" border>
|
|
|
|
+ <el-table-column prop="name" label="人员名称" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column prop="tenantName" label="所属租户" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column prop="email" label="邮箱" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column prop="patentNum" label="件数" align="center" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-if="scope.row.vVisible">{{ scope.row.patentNum }}</span>
|
|
|
|
+ <span v-if="!scope.row.vVisible">
|
|
|
|
+ <el-input v-model="scope.row.patentNum2" size="small" placeholder="请输入件数"></el-input>
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center" width="300px">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div class="special">
|
|
|
|
+ <el-button v-if="scope.row.vVisible" class="items" @click.native="edit(scope.row)"
|
|
|
|
+ :disabled="scope.row.isChoose">编辑</el-button>
|
|
|
|
+ <el-button v-else class="items" @click.native="save(scope.row)">保存</el-button>
|
|
|
|
+ <el-button @click="chosePatentFile(scope.row)" v-if="scope.row.isChoose != true">选择</el-button>
|
|
|
|
+ <el-tooltip v-else class="item" effect="dark" content="取消选择的专利" placement="top">
|
|
|
|
+ <el-button @click="cancelChoose(scope.row)">取消</el-button>
|
|
|
|
+ </el-tooltip>
|
|
|
|
+ <el-button @click="removePerson(scope)" type="danger">移除</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ </el-main>
|
|
|
|
+ </el-container>
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -77,15 +93,19 @@ import { mapGetters } from 'vuex'
|
|
import personList from '@/views/components/dialog/person.vue'
|
|
import personList from '@/views/components/dialog/person.vue'
|
|
import checkPatent from '../../checkPatent/checkPatent.vue'
|
|
import checkPatent from '../../checkPatent/checkPatent.vue'
|
|
import examine from '@/views/components/dialog/examine.vue'
|
|
import examine from '@/views/components/dialog/examine.vue'
|
|
|
|
+import showColumn from './showColumn.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
personList,
|
|
personList,
|
|
checkPatent,
|
|
checkPatent,
|
|
examine,
|
|
examine,
|
|
|
|
+ showColumn,
|
|
},
|
|
},
|
|
props: ['projectId',],
|
|
props: ['projectId',],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ //
|
|
|
|
+ showRight: false,
|
|
totalNumber: 0,//总件数
|
|
totalNumber: 0,//总件数
|
|
leaveNumber: 0,//剩余件数
|
|
leaveNumber: 0,//剩余件数
|
|
// 任务类型
|
|
// 任务类型
|
|
@@ -109,7 +129,6 @@ export default {
|
|
showTable: true,
|
|
showTable: true,
|
|
// 完成???
|
|
// 完成???
|
|
params: {},
|
|
params: {},
|
|
-
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -131,7 +150,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 倒计时
|
|
// 倒计时
|
|
- out(){
|
|
|
|
|
|
+ out() {
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
if (this.countdown == 0) {
|
|
if (this.countdown == 0) {
|
|
this.$router.replace("/AllReport");
|
|
this.$router.replace("/AllReport");
|
|
@@ -236,7 +255,7 @@ export default {
|
|
// 发送任务
|
|
// 发送任务
|
|
handleSave(form) {
|
|
handleSave(form) {
|
|
let params = {
|
|
let params = {
|
|
- projectId:this.projectId,
|
|
|
|
|
|
+ projectId: this.projectId,
|
|
taskType: this.taskType,
|
|
taskType: this.taskType,
|
|
...form,
|
|
...form,
|
|
stringRequest: {},//检索内容条件
|
|
stringRequest: {},//检索内容条件
|