1
huanghongfeng
10 天以前 eaa07b80e3400da9be84e9a7a834e56d829a625b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<template>
  <div class="title">设备初始化</div>
 
  <div>
    <el-button type="danger" v-on:click="InNormal" plain style="margin-left: 50px">入库继续任务</el-button>
    <el-button type="danger" v-on:click="InAbnormal" plain style="margin-left: 50px">入库异常排除</el-button>
  </div>
 
</template>
 
<script>
import VolBox from "@/components/basic/VolBox.vue";
export default {
  components: {
    "vol-box": VolBox,
  },
  data() {
    return {
      //初始化RGV
      DeviceName: "",
      DBType: "",
    };
  },
  methods: {
    InNormal() {
      var param = {
        DelKeys: [],
        Extra: true
      }
      this.http
        .post("api/RgvOperation/WriteInNormal", {}, "数据处理中...")
        .then((x) => {
          if (x.status) {
            this.$Message.success('成功.');
            this.$parent.refresh();
          } else {
            return this.$Message.error(x.message);
          }
        });
    },
    InAbnormal() {
      var param = {
        DelKeys: [],
        Extra: true
      }
      this.http
        .post("api/RgvOperation/WriteInAbnormal", {}, "数据处理中...")
        .then((x) => {
          if (x.status) {
            this.$Message.success('成功.');
            this.$parent.refresh();
          } else {
            return this.$Message.error(x.message);
          }
        });
    }
  },
 
};
</script>
 
<style scoped>
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 20%;
  margin-top: 10px;
  margin-left: 10px;
}
 
.title {
  font-size: 28px;
  color: orange;
}
</style>