|
@@ -129,6 +129,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" min-width="150px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="primary" plain @click="dowload(scope.row, 2)">下载</el-button>
|
|
|
<el-button size="mini" type="primary" plain @click="queryUpdateCreatd(scope.row, 2)">编辑</el-button>
|
|
|
<el-button size="mini" type="danger" plain @click="deleteCaseData(scope.row.id)">删除</el-button>
|
|
|
</template>
|
|
@@ -601,12 +602,11 @@ export default {
|
|
|
var f = obj.files[0]
|
|
|
console.log(f)
|
|
|
var a_name = f.name.split('.')
|
|
|
- console.log(a_name[1])
|
|
|
-
|
|
|
if (a_name[1] === 'xmind') {
|
|
|
var formData_s = new FormData()
|
|
|
formData_s.append('file', f)
|
|
|
- axios.post('http://star.xiaojukeji.com/upload/img.node', formData_s, { headers: { 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryHThrlEy5QnUWvgoq' }}).then(res => {
|
|
|
+ this.grid_xmind.push({ 'name': f.name, 'url': 'http://pt-starfile.didistatic.com/static/starfile/node/hjvKFStkqD1574316045070.xmind' })
|
|
|
+ axios.post('http://star.xiaojukeji.com/upload/img.node', formData_s, { withCredentials: true, headers: { 'Content-Type': 'multipart/form-data' }}).then(res => {
|
|
|
console.log(res.url)
|
|
|
if (res.url) {
|
|
|
this.grid_xmind.push({ 'name': f.name, 'url': 'http:' + res.url })
|