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

Commit 1ed14dd3 by Wang Yuhang

修改我的任务页面显示bug

parent c4de179e
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
</pieces-table> </pieces-table>
</div> </div>
<el-dialog title="选择导出类型" :visible.sync="dialogVisible" width="40%" > <el-dialog title="选择导出类型" :visible.sync="dialogVisible" width="40%" >
<el-button v-show="piece.type !== '文本'" type="primary" size="mini" plain @click="exportOriginal">原始图片</el-button> <el-button v-show="dialogVisible && piece.type !== '文本'" type="primary" size="mini" plain @click="exportOriginal">原始图片</el-button>
<el-button v-show="piece.type !== '文本'" type="primary" size="mini" plain @click="exportJson">JSON文件</el-button> <el-button v-show="dialogVisible && piece.type !== '文本'" type="primary" size="mini" plain @click="exportJson">JSON文件</el-button>
<el-button v-show="piece.type !== '文本'" type="primary" size="mini" plain @click="exportLabel">标注后的图片</el-button> <el-button v-show="dialogVisible && piece.type !== '文本'" type="primary" size="mini" plain @click="exportLabel">标注后的图片</el-button>
<el-button v-show="piece.type === '文本'" type="primary" size="mini" plain @click="exportText">文本文件</el-button> <el-button v-show="dialogVisible && piece.type === '文本'" type="primary" size="mini" plain @click="exportText">文本文件</el-button>
<el-button v-show="piece.type === '文本'" type="primary" size="mini" plain @click="exportLabelText">标注文件</el-button> <el-button v-show="dialogVisible && piece.type === '文本'" type="primary" size="mini" plain @click="exportLabelText">标注文件</el-button>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -85,15 +85,15 @@ export default { ...@@ -85,15 +85,15 @@ export default {
this.piece = piece this.piece = piece
}, },
exportOriginal () { exportOriginal () {
var relationId = this.exportInfo.relation_id var relationId = this.file.relation_id
download(`http://localhost:9100/api/image/export/original/${relationId}`) download(`http://localhost:9100/api/image/export/original/${relationId}`)
}, },
exportJson () { exportJson () {
var relationId = this.exportInfo.relation_id var relationId = this.file.relation_id
download(`http://localhost:9100/api/image/export/json/${relationId}`) download(`http://localhost:9100/api/image/export/json/${relationId}`)
}, },
exportLabel () { exportLabel () {
var relationId = this.exportInfo.relation_id var relationId = this.file.relation_id
download(`http://localhost:9100/api/image/export/label/${relationId}`) download(`http://localhost:9100/api/image/export/label/${relationId}`)
}, },
// 文本组的下载参数比较复杂,放在这里更方便设置参数 // 文本组的下载参数比较复杂,放在这里更方便设置参数
......
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