1
李喆(开发组)
2025-07-10 d4c4a585e4179cb9e0b4f099c71bcadae63bf010
src/views/basesetting/machine.vue
@@ -23,7 +23,7 @@
      <template #menu="scope">
        <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleEdit(scope.row, scope.index)">编辑</el-button>
        <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleDel(scope.row, scope.index)">删除</el-button>
        <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleView(scope.row, scope.index)">产生机床回传机构树</el-button>
        <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleUp(scope.row, scope.index)">产生机床回传机构树</el-button>
      </template>
      <template #status="{ row }">
@@ -46,6 +46,7 @@
export default {
  data() {
    var that = this;
    var aurl = "/blade-system/dept/lazy-list";
    return {
      machineTitle: "新增",
      isAdd: true,
@@ -174,7 +175,7 @@
              label: 'deptName',
              value: 'id'
            },
            dicUrl: `/blade-system/dept/lazy-list`
            dicUrl: aurl
          },
          {
            label: '生产商',
@@ -258,7 +259,7 @@
          this.editBox = true;
        },
        error => {
          this.loading = false;
        }
      );
    },
@@ -279,7 +280,28 @@
          done();
        },
        error => {
          this.loading = false;
        }
      );
    },
    handleUp(row,index) {
      this.loading = true;
      axios({
        url: '/blade-mdm/machine/gen-fileback-dirs',
        method: 'post',
        params: {id: row.id},
      }).then(
        res => {
          this.loading = false;
          this.$message({
            type: 'success',
            message: '操作成功!',
          });
          this.onLoad();
          done();
        },
        error => {
          this.loading = false;
        }
      );
    },