|
@@ -1536,7 +1536,7 @@ export default {
|
|
},
|
|
},
|
|
async wbsTreeSort () {//修改排序
|
|
async wbsTreeSort () {//修改排序
|
|
const { data: res } = await wbsTreeSort(this.sort)
|
|
const { data: res } = await wbsTreeSort(this.sort)
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.sortTag = false
|
|
this.sortTag = false
|
|
this.sortTag2 = false
|
|
this.sortTag2 = false
|
|
@@ -1545,14 +1545,14 @@ export default {
|
|
},
|
|
},
|
|
async findWbsTreeSameLevel (parentId) {//查询当前节点的同级节点
|
|
async findWbsTreeSameLevel (parentId) {//查询当前节点的同级节点
|
|
const { data: res } = await findWbsTreeSameLevel({ parentId })
|
|
const { data: res } = await findWbsTreeSameLevel({ parentId })
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.sort = res.data
|
|
this.sort = res.data
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async getLazytree () {//冲洗获取wbs树
|
|
async getLazytree () {//冲洗获取wbs树
|
|
const { data: res } = await getLazytree(this.id, 0, this.userInfo.tenant_id)
|
|
const { data: res } = await getLazytree(this.id, 0, this.userInfo.tenant_id)
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.treeData = res.data
|
|
this.treeData = res.data
|
|
}
|
|
}
|
|
@@ -1580,14 +1580,14 @@ export default {
|
|
},
|
|
},
|
|
async findWbsTreeTableSameLevel (id) {//查询表单
|
|
async findWbsTreeTableSameLevel (id) {//查询表单
|
|
const { data: res } = await findWbsTreeTableSameLevel({ id })
|
|
const { data: res } = await findWbsTreeTableSameLevel({ id })
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.sort = res.data
|
|
this.sort = res.data
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async wbsTreeTableSort () {//表单排序
|
|
async wbsTreeTableSort () {//表单排序
|
|
const { data: res } = await wbsTreeTableSort(this.sort)
|
|
const { data: res } = await wbsTreeTableSort(this.sort)
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.excelSortTag = true
|
|
this.excelSortTag = true
|
|
this.excelSortTag2 = true
|
|
this.excelSortTag2 = true
|
|
@@ -1641,7 +1641,7 @@ export default {
|
|
this.updateNode();
|
|
this.updateNode();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- console.log('error submit!!');
|
|
|
|
|
|
+ //console.log('error submit!!');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -1802,7 +1802,7 @@ export default {
|
|
});
|
|
});
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- console.log('error submit!!');
|
|
|
|
|
|
+ //console.log('error submit!!');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -2324,18 +2324,18 @@ export default {
|
|
},
|
|
},
|
|
async parameters (wbsId) {//获取接待你参数列表
|
|
async parameters (wbsId) {//获取接待你参数列表
|
|
const { data: res } = await parameters({ wbsId })
|
|
const { data: res } = await parameters({ wbsId })
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.nodeInfoTable = res.data
|
|
this.nodeInfoTable = res.data
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async saveOrUpdateBatch (da) {//保存
|
|
async saveOrUpdateBatch (da) {//保存
|
|
const { data: res } = await saveOrUpdateBatch(da)
|
|
const { data: res } = await saveOrUpdateBatch(da)
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
},
|
|
},
|
|
async keymap () {//节点参数枚举
|
|
async keymap () {//节点参数枚举
|
|
const { data: res } = await keymap()
|
|
const { data: res } = await keymap()
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code = 200) {
|
|
if (res.code = 200) {
|
|
this.namelist = res.data
|
|
this.namelist = res.data
|
|
}
|
|
}
|
|
@@ -2373,7 +2373,7 @@ export default {
|
|
this.ImportElementFile = []
|
|
this.ImportElementFile = []
|
|
},
|
|
},
|
|
ElementChange (file, fileList) {//文件上传时的钩子
|
|
ElementChange (file, fileList) {//文件上传时的钩子
|
|
- console.log(fileList);
|
|
|
|
|
|
+ //console.log(fileList);
|
|
if (this.ImportElementFile.length == 0) {
|
|
if (this.ImportElementFile.length == 0) {
|
|
this.ImportElementFile = fileList
|
|
this.ImportElementFile = fileList
|
|
}
|
|
}
|
|
@@ -2383,18 +2383,18 @@ export default {
|
|
},
|
|
},
|
|
async importwbsTreeFormBatch (da) {
|
|
async importwbsTreeFormBatch (da) {
|
|
const { data: res } = await importwbsTreeFormBatch(da)
|
|
const { data: res } = await importwbsTreeFormBatch(da)
|
|
- console.log();
|
|
|
|
|
|
+ //console.log();
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message({
|
|
this.$message({
|
|
type: "success",
|
|
type: "success",
|
|
- message: "新增元素成功!"
|
|
|
|
|
|
+ message: "导入成功!"
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
async exportBatchTemplate () {
|
|
async exportBatchTemplate () {
|
|
const res = await exportBatchTemplate()
|
|
const res = await exportBatchTemplate()
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.downloadExcel(res.data, '导入元素模板')
|
|
this.downloadExcel(res.data, '导入元素模板')
|
|
}
|
|
}
|
|
@@ -2449,7 +2449,7 @@ export default {
|
|
},
|
|
},
|
|
async updateBatchNodeTableInfo (da) {//共有编辑元素
|
|
async updateBatchNodeTableInfo (da) {//共有编辑元素
|
|
const { data: res } = await updateBatchNodeTableInfo(da)
|
|
const { data: res } = await updateBatchNodeTableInfo(da)
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.editElementFormTag = false
|
|
this.editElementFormTag = false
|
|
this.updateNodeTable()
|
|
this.updateNodeTable()
|