|
@@ -431,7 +431,7 @@ export default {
|
|
|
user: { id:null,name:''}
|
|
|
},
|
|
|
excelshow: false,
|
|
|
-
|
|
|
+
|
|
|
expandedKeys:[],//默认展开的节点
|
|
|
excelId:'',
|
|
|
treeNode: {},
|
|
@@ -459,7 +459,6 @@ export default {
|
|
|
id: '',//清表树ID
|
|
|
extension: '', //文件名称
|
|
|
fileUrl: '',//文件路径
|
|
|
-
|
|
|
import:null,
|
|
|
},
|
|
|
fileList: [],//选中的文件
|
|
@@ -533,16 +532,17 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getFile() {
|
|
|
- this.excelshow = true
|
|
|
- // getAction('/file/selectById', { id: this.id }).then(res => {
|
|
|
- this.exceloption.isEdit = false
|
|
|
- this.exceloption.lang = 'zh-CN'
|
|
|
- this.exceloption.url = this.from.fileUrl
|
|
|
- this.exceloption.title = this.from.extension
|
|
|
- this.exceloption.fileType = 'xlsx'
|
|
|
- this.exceloption.isPrint = false
|
|
|
- this.exceloption.user= { id:12,name:this.userInfo.user_name}
|
|
|
- // })
|
|
|
+ this.excelshow = true
|
|
|
+ this.exceloption.isEdit = true
|
|
|
+ this.exceloption.lang = 'zh-CN'
|
|
|
+ this.exceloption.url = this.from.fileUrl
|
|
|
+ this.exceloption.title = this.from.extension
|
|
|
+ this.exceloption.fileType = 'xlsx'
|
|
|
+ this.exceloption.isPrint = false
|
|
|
+ this.exceloption.user= { id:this.userInfo.id,name:this.userInfo.user_name}
|
|
|
+ // this.exceloption.editUrl = "http://172.31.222.127:8090/blade-manager/exceltab/callbackSave";
|
|
|
+ this.exceloption.editUrl = "http://192.168.0.110:8090/blade-manager/exceltab/callbackSave";
|
|
|
+ this.exceloption.key = this.from.id;
|
|
|
},
|
|
|
//刷新左边树形数据
|
|
|
refreshTree(){
|
|
@@ -566,7 +566,7 @@ export default {
|
|
|
this.updateTreeNewNode()
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
updateTreeNewNode () {
|
|
|
tabLazytree( {
|
|
|
parentId:this.curTreeData.parentId,
|
|
@@ -600,7 +600,7 @@ export default {
|
|
|
newArr=newArr.join(',')
|
|
|
//清表树手动排序
|
|
|
const { data: res } = await exctabSort(newArr);
|
|
|
-
|
|
|
+
|
|
|
console.log(res);
|
|
|
if (res.code == 200) {
|
|
|
this.sortTag = false;
|
|
@@ -763,12 +763,12 @@ export default {
|
|
|
this.from.checkd = true
|
|
|
}
|
|
|
this.fileList = [];
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
this.refreshTree()
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
async deleteExcel (data) {//删除excel表
|
|
|
const { data: res } = await deleteExcel(data)
|
|
@@ -779,9 +779,9 @@ export default {
|
|
|
})
|
|
|
this.detailExcel(this.from.id)
|
|
|
this.refreshTree()
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
//#endregion
|
|
@@ -882,7 +882,7 @@ export default {
|
|
|
id: '',//清表树ID
|
|
|
extension: '', //文件名称
|
|
|
fileUrl: '',//文件路径
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|