严智鑫
2024-09-11 916f102b39d6f2e1ce591fd5cdd4204ee6ec9ab0
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!--  打标机  -->
<script setup>
import request from "@/utils/request";
import { ElMessage } from "element-plus";
</script>
<script>
export default {
  mounted() {
    //获取数据
    var data="ProcessId="+"P24032508";
    request.get("/TidyUpGlassModule/SelectTerritoryInfo?"+data).then((res) => {
      if (res.code == 200) {
        for(var i=0;i<res.data.length;i++){
          //遍历数据
        }   
        f1();
      } else {
        ElMessage.warning(res.msg)
        router.push("/login");
      }
    });
  },
  methods: {
    //方法
    f1() {
       
    }
  }
}
 
 
</script>
<template>
  <div ref="content">
    <div id="div-title" style="font-size: 20px; font-weight: bold; margin:10px 0 10px 0;padding-left: 20px;">
      自动打标机
    </div>
    <hr/>
    <br>
    <div id="search">
      <!-- 功能 -->
      <el-button type="primary" id="searchButton">开工</el-button>
      <el-button type="primary" id="searchButton">上线</el-button>
      <el-button type="primary" id="searchButton">下线</el-button>
      <el-button type="primary" id="searchButton">破损</el-button>
      <el-button type="primary" id="searchButton">完工</el-button>
    </div>
    <div id="main-body" style="min-height:240px;">
      <!-- 表格内容 -->
       <el-table :data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129',textAlign:'center'}">
        <el-table-column prop="date" label="序号"  />
        <el-table-column prop="name" label="工程号"  />
        <el-table-column prop="name" label="玻璃类型"  />
        <el-table-column prop="name" label="玻璃编号" />
        <el-table-column prop="name" label="长"  />
        <el-table-column prop="name" label="宽" />
        <el-table-column prop="name" label="厚"  />
        <el-table-column prop="name" label="状态" />
      </el-table>
    </div>
  
    <div id="main-body" style="height: 100%;">
      <!-- 画图内容 -->
       <el-image style="width: 100%; height: 460px;" src="../../src/assets/自动打标机.png"></el-image>
    </div>
  </div>
</template>
 
<style scoped>
table{
  text-align: center;
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
#main-body{
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  margin-top: 25px;
}
#searchButton{
  width: 100px;
  height: 40px;
  font-size: 16px;
  border-radius: 5px;
  background-color: #409EFF;
  color: #fff;
  border: none;
  cursor: pointer;
}
</style>