*
lsh
2025-10-24 e36b8abdfbdfc1ea021eb83237cb5ff5c13f7e59
src/main/webapp/views/index.html
@@ -147,8 +147,20 @@
                            <el-button
                                    type="danger"
                                    size="small"
                                    @click="taskDelete(scope.row)">
                                    @click.native="taskDelete(scope.row)">
                                删除
                            </el-button>
                        </template>
                    </el-table-column>
                    <el-table-column
                            label="操作"
                            type="template">
                        <template slot-scope="scope">
                            <el-button
                                    type="danger"
                                    size="small"
                                    @click.native="taskDelete1(scope.row)">
                                初始化
                            </el-button>
                        </template>
                    </el-table-column>
@@ -380,18 +392,30 @@
                    this.getValueSystem()
                    this.getLicenseDays()
                    // 高频更新:小车和设备位置(1秒)
                    setInterval(() => {
                        this.getTableDataRgv()
                        this.getTableDataDev()
                        this.getTableDataTrack()
                        this.getTableDataLeft()
                        this.getTableDataLeft1()
                        this.getTableDataRight()
                    }, 1500)
                    // 低频更新:任务列表等(5秒)
                    setInterval(() => {
                        this.getTableDataLeft1()
                        this.getTableDataRight1()
                        this.getValueSystem()
                        this.getLicenseDays()
                    }, 10*1000)
                    }, 1000)
                    // 低频更新:许可证信息(30秒)
                    setInterval(() => {
                        this.getLicenseDays()
                    }, 30000)
                    // 低频更新:许可证信息(30秒)
                    setInterval(() => {
                        this.getTableDataTrack()
                    }, 60*60*1000)
                },
                // 获取容器实际尺寸
                updateContainerSize() {
@@ -505,6 +529,32 @@
                        });
                    });
                },
                taskDelete1(row) {
                    let that = this;
                    that.$confirm('确认要初始化该任务吗?', '提示', {
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        type: 'warning'
                    }).then(() => {
                        $.ajax({
                            url: baseUrl + "/rgv/disable/task/delete1",
                            headers: {'token': localStorage.getItem('token')},
                            method: 'POST',
                            data: {
                                wrkNo: row.wrkNo
                            },
                            success: function (res) {
                                if (res.code === 200) {
                                    that.$message.success('初始化成功');
                                    // 删除当前行
                                    // that.tableDataRight.splice(that.tableDataRight.indexOf(row), 1);
                                } else {
                                    that.$message.error('初始化失败');
                                }
                            }
                        });
                    });
                },
                toggleStatus(index, row) {
                    let that = this;
                    const currentStatus = row.status;