大件运输联网系统前端代码
guoshilong
2022-12-26 a94f19a21fe2098811339aa916869b0ab923536c
src/views/work/send.vue
@@ -22,6 +22,11 @@
        </el-button>
        <el-button type="text"
                   size="small"
                   icon="el-icon-delete"
                   @click.stop="handleCancel(scope.row)">撤 销
        </el-button>
        <el-button type="text"
                   size="small"
                   icon="el-icon-search"
                   v-if="permission.work_send_follow"
                   @click.stop="handleImage(scope.row,scope.index)">流程图
@@ -42,7 +47,7 @@
<script>
  import {mapGetters} from "vuex";
  import {sendList} from "@/api/work/work";
  import {sendList, withdrawTask} from "@/api/work/work";
  import {flowCategory,flowRoute} from "@/util/flow";
  export default {
@@ -75,7 +80,7 @@
          viewBtn: false,
          delBtn: false,
          dialogWidth: 900,
          menuWidth: 150,
          menuWidth: 200,
          dialogClickModal: false,
          column: [
            {
@@ -126,7 +131,7 @@
      };
    },
    computed: {
      ...mapGetters(["permission", "flowRoutes"]),
      ...mapGetters(["permission", "flowRoutes","userInfo"]),
      ids() {
        let ids = [];
        this.selectionList.forEach(ele => {
@@ -182,6 +187,12 @@
          this.loading = false;
          this.selectionClear();
        });
      },
      handleCancel(row){
        console.log(row)
        withdrawTask(this.userInfo.user_id).then(res=>{
          this.$message(res.data.msg)
        })
      }
    }
  };