Fixiaobai
2023-09-14 d0dfd0feb2914fb969722b2521763a23288081a4
src/components/view/equipmentmaintain.vue
@@ -263,7 +263,7 @@
                <el-table
                    :data="tableData"
                    style="width: 100%;margin-bottom: 20px;height: 600px;overflow: auto;"
                    row-key="name"
                    row-key="rowId"
                    border
                    @select="selectTr"
                    @selection-change="handleSelectionChange"
@@ -549,12 +549,21 @@
         }).then(res => {
            this.tableData = res.data;
                console.log(this.tableData);
                this.formatData(res.data)
         })
         },
            modify(){
                this.modifyevent = true
            },
            formatData(data){
                let arr = data;
                for(var i=0;i<arr.length;i++){
                        arr[i].rowId = Math.random();
                        if(arr[i].children != undefined){
                        this.formatData(arr[i].children);
                        }
                    }
                },
            //delQueById
            delQueById() {
            this.$axios.post(this.$api.url.delQueById,{