文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit b4fbb34a by Wang Yuhang

跳转参数bug修改

parent 89f5380c
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
data () { data () {
return { return {
task: null, task: null,
isCheck: '1', // isCheck: '1', 暂时没有用
dialogVisible: false, dialogVisible: false,
executors: [], executors: [],
file: undefined, file: undefined,
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
relationId: executor.relation_id, relationId: executor.relation_id,
executor, executor,
piece, piece,
operationSign:1,//作为审核任务标识 operationSign: 1 // 作为审核任务标识
} }
function goto (path) { function goto (path) {
self.$router.push({ name: path, params }) self.$router.push({ name: path, params })
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<p>发布者:{{task.creator}}</p> <p>发布者:{{task.creator}}</p>
<p>发布时间:{{task.date|formatDate}}</p> <p>发布时间:{{task.date|formatDate}}</p>
<el-divider></el-divider> <el-divider></el-divider>
<pieces-table :task-id="task.id" :userId="$store.state.userInfo.userId"> <pieces-table :task-id="task.id" withExecutor>
<template v-slot:option="slotProps"> <template v-slot:option="slotProps">
<el-button <el-button
type="primary" type="primary"
...@@ -29,8 +29,8 @@ export default { ...@@ -29,8 +29,8 @@ export default {
}, },
data () { data () {
return { return {
task: null, task: null
isCheck: '0' // isCheck: '0' 暂时没有用
} }
}, },
beforeMount () { beforeMount () {
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
task: this.task, task: this.task,
relationId: file.relation_id, relationId: file.relation_id,
piece, piece,
operationSign:0,//作为审核任务标识 operationSign: 0 // 作为审核任务标识
} }
function goto (path) { function goto (path) {
self.$router.push({ name: path, params }) self.$router.push({ name: path, params })
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<p>发布者:{{task.creator}}</p> <p>发布者:{{task.creator}}</p>
<p>发布时间:{{task.date|formatDate}}</p> <p>发布时间:{{task.date|formatDate}}</p>
<el-divider></el-divider> <el-divider></el-divider>
<pieces-table :task-id="task.id" showProgress> <pieces-table :task-id="task.id" showProgress withExecutor>
<template v-slot:option="slotProps"> <template v-slot:option="slotProps">
<el-button v-if="!slotProps.file.state" type="primary" size="mini" plain <el-button v-if="!slotProps.file.state" type="primary" size="mini" plain
@click="doOption(slotProps.file,slotProps.piece)" @click="doOption(slotProps.file,slotProps.piece)"
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
task: this.task, task: this.task,
relationId: file.relation_id, relationId: file.relation_id,
piece, piece,
operationSign:0,//作为标注任务标识 operationSign: 0 // 作为标注任务标识
} }
function goto (path) { function goto (path) {
self.$router.push({ name: path, params }) self.$router.push({ name: path, params })
......
...@@ -51,6 +51,10 @@ export default { ...@@ -51,6 +51,10 @@ export default {
showProgress: { showProgress: {
type: Boolean, type: Boolean,
default: false default: false
},
withExecutor: {
type: Boolean,
default: false
} }
}, },
data () { data () {
...@@ -113,7 +117,7 @@ export default { ...@@ -113,7 +117,7 @@ export default {
}, },
getFiles (pieceId) { getFiles (pieceId) {
var params = { pieceId } var params = { pieceId }
if (this.showProgress && !this.isCheck) params.executor = this.userId if (this.withExecutor) params.executor = this.userId
var self = this var self = this
this.axios.get('/file/getFiles', { this.axios.get('/file/getFiles', {
params params
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment