文档服务地址: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 @@
</pieces-table>
</div>
<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="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="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="exportOriginal">原始图片</el-button>
<el-button v-show="dialogVisible && 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="exportLabel">标注后的图片</el-button>
<el-button v-show="dialogVisible && piece.type === '文本'" type="primary" size="mini" plain @click="exportText">文本文件</el-button>
<el-button v-show="dialogVisible && piece.type === '文本'" type="primary" size="mini" plain @click="exportLabelText">标注文件</el-button>
</el-dialog>
</div>
</template>
......@@ -85,15 +85,15 @@ export default {
this.piece = piece
},
exportOriginal () {
var relationId = this.exportInfo.relation_id
var relationId = this.file.relation_id
download(`http://localhost:9100/api/image/export/original/${relationId}`)
},
exportJson () {
var relationId = this.exportInfo.relation_id
var relationId = this.file.relation_id
download(`http://localhost:9100/api/image/export/json/${relationId}`)
},
exportLabel () {
var relationId = this.exportInfo.relation_id
var relationId = this.file.relation_id
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