|
@@ -328,8 +328,8 @@ const getTreeNodeDetail = async ({ id }) => {
|
|
const { error, code, data } = await unitApi.getNodeDetail({ id })
|
|
const { error, code, data } = await unitApi.getNodeDetail({ id })
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
curTreeData.value = getObjValue(data)
|
|
curTreeData.value = getObjValue(data)
|
|
- tableData.value = curTreeData.value['decompositionList']
|
|
|
|
- qualtableData.value = curTreeData.value['linkNodeList']
|
|
|
|
|
|
+ tableData.value = curTreeData.value['decompositionList'] || []
|
|
|
|
+ qualtableData.value = curTreeData.value['linkNodeList'] || []
|
|
rightTreeCheck.value = arrToKey(qualtableData.value, 'wbsTreeId', ',').split(',')
|
|
rightTreeCheck.value = arrToKey(qualtableData.value, 'wbsTreeId', ',').split(',')
|
|
nodeOptions.value.forEach((ele) => {
|
|
nodeOptions.value.forEach((ele) => {
|
|
if (curTreeData.value.nodeType === ele.dictKey) {
|
|
if (curTreeData.value.nodeType === ele.dictKey) {
|
|
@@ -656,14 +656,17 @@ const leadModalSave = async () => {
|
|
const downLoadExel = ()=>{
|
|
const downLoadExel = ()=>{
|
|
if (typevalue.value) {
|
|
if (typevalue.value) {
|
|
if (typevalue.value === '1') {
|
|
if (typevalue.value === '1') {
|
|
- window.open('https://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com//upload/20240307/1430b65643615f80156ec328a9a09ff8.xlsx', '_blank')
|
|
|
|
- } else {
|
|
|
|
- window.open('https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com//upload/20240109/98addbf48d620030504b2cb03b1c24f5.xls', '_blank')
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- window.$message.warning('请先选择模板')
|
|
|
|
- }
|
|
|
|
|
|
+ window.open('https://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com//upload/20240307/1430b65643615f80156ec328a9a09ff8.xlsx', '_blank')
|
|
|
|
+ } else if (typevalue.value === '2') {
|
|
|
|
+ window.open('https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com//upload/20240109/98addbf48d620030504b2cb03b1c24f5.xls', '_blank')
|
|
|
|
+ } else if (typevalue.value === '3') {
|
|
|
|
+ window.open('https://blade-oss-chongqing.oss-cn-shenzhen.aliyuncs.com//upload/20240320/88fc4e47dd3f729b1b71cf79a6db44ae.xlsx', '_blank')
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+ window.$message.warning('请先选择模板')
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
const typeoptions = ref([
|
|
const typeoptions = ref([
|
|
{
|
|
{
|