|
@@ -3389,21 +3389,6 @@ const handleFileChange = async (event) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// const exportdesignvar = () => {
|
|
|
-// const params = {
|
|
|
-// transCode: 'MDO0080',
|
|
|
-// pid: pid.value
|
|
|
-// }
|
|
|
-
|
|
|
-// downloadFile(params)
|
|
|
-// .then(() => {
|
|
|
-// ElMessage.success('导出成功')
|
|
|
-// })
|
|
|
-// .catch(() => {
|
|
|
-// ElMessage.error('导出失败')
|
|
|
-// })
|
|
|
-// }
|
|
|
-
|
|
|
|
|
|
const exportdesignvar = () => {
|
|
|
try {
|
|
@@ -3490,6 +3475,13 @@ const getissue = () => {
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
if (res.rows.length === 0) {
|
|
|
+ Sidebarref.value.datatree[0].children[0].children.forEach((item, index) => {
|
|
|
+ if (item.label === '设计变量') {
|
|
|
+ Sidebarref.value.datatree[0].children[0].children[index].children = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
+ designtable.value = [];
|
|
|
+ return;
|
|
|
} else {
|
|
|
let item1 = {
|
|
|
id: "1-1-" + 1,
|
|
@@ -3548,6 +3540,13 @@ const getyueshu = () => {
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
if (res.rows.length === 0) {
|
|
|
+ Sidebarref.value.datatree[0].children[0].children.forEach((item, index) => {
|
|
|
+ if (item.label === '约束条件') {
|
|
|
+ Sidebarref.value.datatree[0].children[0].children[index].children = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
+ tableData.value = [];
|
|
|
+ return;
|
|
|
} else {
|
|
|
let item2 = {
|
|
|
id: "1-2-" + 2,
|
|
@@ -3607,6 +3606,13 @@ const getmub = () => {
|
|
|
request(params)
|
|
|
.then((res) => {
|
|
|
if (res.rows.length === 0) {
|
|
|
+ Sidebarref.value.datatree[0].children[0].children.forEach((item, index) => {
|
|
|
+ if (item.label === '目标函数') {
|
|
|
+ Sidebarref.value.datatree[0].children[0].children[index].children = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
+ eloptimize.value = [];
|
|
|
+ return;
|
|
|
} else {
|
|
|
let item2 = {
|
|
|
id: "1-3-" + 3,
|