Commit ce9636f4 authored by zhanglw's avatar zhanglw

高清贴图

parent 177fc2fd
...@@ -344,16 +344,16 @@ ...@@ -344,16 +344,16 @@
}, },
{ {
"pid": 40, "pid": 40,
"name": "本地高清图 (本地离线)", "name": "单张图片 (本地离线)",
"type": "image", "type": "image",
"url": "/dianziweilan/dianziweilan.jpg", "url": "/diagram.png",
"rectangle": { "rectangle": {
"xmin": 115.34449339, "xmin": 114.125849,
"xmax": 115.383424, "xmax": 114.156450,
"ymin": 39.269255, "ymin": 35.6772263,
"ymax": 39.2829251 "ymax": 35.7064999
}, },
"show": false "show": true
} }
] ]
} }
......
This image diff could not be displayed because it is too large. You can view the blob instead.
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<el-button v-if="query.type==='excel'" size="mini" type="text" icon="el-icon-view" @click="viewTable(scope.row)">在线预览</el-button> <el-button v-if="query.type==='excel'" size="mini" type="text" icon="el-icon-view" @click="viewTable(scope.row)">在线预览</el-button>
<el-button size="mini" type="text" icon="el-icon-download" @click="downloadFile(scope.row)">下载</el-button> <el-button size="mini" type="text" icon="el-icon-download" @click="downloadFile(scope.row)">下载</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="toDelete(scope.row)">删除</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="toDelete(scope.row)">删除</el-button>
<!-- <el-progress type="dashboard" :percentage="scope.row.percentage||20" :color="colors"></el-progress>-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -101,6 +102,7 @@ export default { ...@@ -101,6 +102,7 @@ export default {
name: 'visitPeople', name: 'visitPeople',
data() { data() {
return { return {
colors: [{color: '#f56c6c', percentage: 20}, {color: '#e6a23c', percentage: 40}, {color: '#5cb87a', percentage: 60}, {color: '#1989fa', percentage: 80}, {color: '#6f7ad3', percentage: 100}],
title: '', title: '',
fileUploadApi: '', fileUploadApi: '',
headers: { 'Authorization': getToken() }, headers: { 'Authorization': getToken() },
...@@ -154,9 +156,15 @@ export default { ...@@ -154,9 +156,15 @@ export default {
document.body.removeChild(link); document.body.removeChild(link);
}, },
downloadFile(item) { downloadFile(item) {
if(item.isLoading){
return
}
item.isLoading = true
item.percentage = 0
let strArr = item.fileName.split('.') let strArr = item.fileName.split('.')
HttpReq.truckDispatching.downloadExcelOrFbx({url:item.url, type:this.query.type}).then((res) => { HttpReq.truckDispatching.downloadExcelOrFbx({url:item.url, type:this.query.type}).then((res) => {
this.download(res, strArr[0], strArr[1]||'xlsx') this.download(res, strArr[0], strArr[1]||'xlsx')
item.isLoading = false
}) })
}, },
upload() { upload() {
......
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