|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div id="init-window" style="position:relative; min-height:95vh; background:#F2F3F6;">
|
|
|
<div style="background: #FFFFFF; z-index:9999;">
|
|
|
- <router-view />
|
|
|
+ <!-- <router-view /> -->
|
|
|
</div>
|
|
|
<div style="position: absolute;width: 100%;">
|
|
|
<div style="background:#F2F3F6;">
|
|
@@ -442,13 +442,13 @@ export default {
|
|
|
} else {
|
|
|
switch (e) {
|
|
|
case 1: // 查看
|
|
|
- this.$router.push({ path: '/Platform/useCasePage/useCasePage/queryUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
|
|
|
+ this.$router.push({ path: '/Platform/useCasePage/queryUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
|
|
|
break
|
|
|
case 2: // 编辑
|
|
|
- this.$router.push({ path: '/Platform/useCasePage/useCasePage/createUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
|
|
|
+ this.$router.push({ path: '/Platform/useCasePage/createUse', query: { id: ele.id, caseFolderId: ele.caseFolderId }})
|
|
|
break
|
|
|
case 3: // 新增
|
|
|
- this.$router.push({ path: '/Platform/useCasePage/useCasePage/createUse', query: { data: this.startId }})
|
|
|
+ this.$router.push({ path: '/Platform/useCasePage/createUse', query: { data: this.startId }})
|
|
|
break
|
|
|
}
|
|
|
}
|
|
@@ -607,19 +607,20 @@ export default {
|
|
|
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 => {
|
|
|
- console.error(res.url)
|
|
|
- window.open(res.url)
|
|
|
- this.grid_xmind.push({ 'name': f.name, 'url': 'http:' + res.url })
|
|
|
- var xmind_code = {
|
|
|
- id: this.startId,
|
|
|
- xmindUrl: JSON.stringify(this.grid_xmind),
|
|
|
- modifier: this.userInformation
|
|
|
- }
|
|
|
- updateXmindUrl(xmind_code).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.$message({ type: 'success', message: '导入成功' })
|
|
|
+ console.log(res.url)
|
|
|
+ if (res.url) {
|
|
|
+ this.grid_xmind.push({ 'name': f.name, 'url': 'http:' + res.url })
|
|
|
+ var xmind_code = {
|
|
|
+ id: this.startId,
|
|
|
+ xmindUrl: JSON.stringify(this.grid_xmind),
|
|
|
+ modifier: this.userInformation
|
|
|
}
|
|
|
- })
|
|
|
+ updateXmindUrl(xmind_code).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message({ type: 'success', message: '导入成功' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
} else {
|
|
|
this.$message({ type: 'error', message: '导入失败,不支持文件类型(只支持xmind)' })
|