文档服务地址: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 {
data () {
return {
task: null,
isCheck: '1',
// isCheck: '1', 暂时没有用
dialogVisible: false,
executors: [],
file: undefined,
......@@ -73,7 +73,7 @@ export default {
relationId: executor.relation_id,
executor,
piece,
operationSign:1,//作为审核任务标识
operationSign: 1 // 作为审核任务标识
}
function goto (path) {
self.$router.push({ name: path, params })
......
......@@ -5,7 +5,7 @@
<p>发布者:{{task.creator}}</p>
<p>发布时间:{{task.date|formatDate}}</p>
<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">
<el-button
type="primary"
......@@ -29,8 +29,8 @@ export default {
},
data () {
return {
task: null,
isCheck: '0'
task: null
// isCheck: '0' 暂时没有用
}
},
beforeMount () {
......@@ -43,7 +43,7 @@ export default {
task: this.task,
relationId: file.relation_id,
piece,
operationSign:0,//作为审核任务标识
operationSign: 0 // 作为审核任务标识
}
function goto (path) {
self.$router.push({ name: path, params })
......
......@@ -5,7 +5,7 @@
<p>发布者:{{task.creator}}</p>
<p>发布时间:{{task.date|formatDate}}</p>
<el-divider></el-divider>
<pieces-table :task-id="task.id" showProgress>
<pieces-table :task-id="task.id" showProgress withExecutor>
<template v-slot:option="slotProps">
<el-button v-if="!slotProps.file.state" type="primary" size="mini" plain
@click="doOption(slotProps.file,slotProps.piece)"
......@@ -42,7 +42,7 @@ export default {
task: this.task,
relationId: file.relation_id,
piece,
operationSign:0,//作为标注任务标识
operationSign: 0 // 作为标注任务标识
}
function goto (path) {
self.$router.push({ name: path, params })
......
......@@ -51,6 +51,10 @@ export default {
showProgress: {
type: Boolean,
default: false
},
withExecutor: {
type: Boolean,
default: false
}
},
data () {
......@@ -113,7 +117,7 @@ export default {
},
getFiles (pieceId) {
var params = { pieceId }
if (this.showProgress && !this.isCheck) params.executor = this.userId
if (this.withExecutor) params.executor = this.userId
var self = this
this.axios.get('/file/getFiles', {
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