|
@@ -861,7 +861,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- } catch (error) {
|
|
|
+ } catch (error) {
|
|
|
console.log(error);
|
|
|
}
|
|
|
this.loading = false;
|
|
@@ -900,7 +900,7 @@ export default {
|
|
|
};
|
|
|
let res = await technologyMgrApi.getList(obj);
|
|
|
res = res.data;
|
|
|
- // console.log("所有数据:::", res)
|
|
|
+ console.log("所有数据:", res)
|
|
|
if (res.isSuccess) {
|
|
|
for (let i = 0, len = res.data.data.length; i < len; i++) {
|
|
|
let xh = Math.ceil((i + 1) / 4);
|
|
@@ -910,19 +910,25 @@ export default {
|
|
|
// return;
|
|
|
let arr = res.data.data.map((ele) => ele.xh);
|
|
|
arr = Array.from(new Set(arr));
|
|
|
- arr = arr.map((xh) => ({ xh }));
|
|
|
- for (let item of arr) {
|
|
|
- item.children = res.data.data.filter((ele) => ele.xh == item.xh);
|
|
|
+ arr = arr.map((xh) => ({ xh }));
|
|
|
+ for (let item of arr) {
|
|
|
+ item.children = res.data.data.filter((ele) => ele.xh == item.xh);
|
|
|
+ item.children[1].isinput = true;
|
|
|
item.children[2].isadd = true;
|
|
|
-
|
|
|
- item.children[1].isinput = true;
|
|
|
+ if(item.children.length>4){
|
|
|
+ item.children.forEach((ele, index)=>{
|
|
|
+ if(index>2 && index!=item.children.length-1){
|
|
|
+ ele.isdel = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.tableData.data = res.data.data;
|
|
|
|
|
|
if (this.tableData.data == "") {
|
|
|
this.$nextTick(() => this.add());
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.getSpanArr(this.tableData.data);
|
|
|
}
|
|
|
|