春风项目四线(合箱线、总装线)
jiang
2024-01-29 bf63d510448c9fa3ec0104acb7c19e136bb839e1
更新返修数据刷新功能
已修改1个文件
11 ■■■■ 文件已修改
jcdm-ui/src/views/main/kb/repairMark/index.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/kb/repairMark/index.vue
@@ -113,6 +113,9 @@
  dicts: ['sys_normal_disable'],
  data(){
    return{
      loading: false,//刷新修改
      activeName: 'first',
      // 返修记录表格数据
@@ -168,13 +171,17 @@
      if(this.ids.length === 0){
        this.$modal.msgSuccess('未选择');
      }else {
        this.loading = true; // 开始加载数据
        this.$modal.msgSuccess('标记完成');
        let queryParams = {
          ids: this.ids
        }
        this.repairRecordList = []
        insertRepairRecordByIds(queryParams).then(response => {
               this.initRepairRecord(); // 刷新返修记录
               this.loading = false; // 结束加载数据
        }).catch(() => {
          this.loading = false; // 结束加载数据
        });
        // this.initRepairRecord()
        // this.getList();
@@ -216,7 +223,7 @@
          type: 'warning'
        });
      }else {
        this.$modal.msgSuccess('搜索');
        // this.$modal.msgSuccess('搜索');
        this.getList();
        this.initRepairRecord();
      }