<script lang="ts" setup>
|
import {Search} from "@element-plus/icons-vue";
|
import {reactive} from "vue";
|
import {useRouter} from "vue-router"
|
const router = useRouter()
|
import { WebSocketHost ,host} from '@/utils/constants'
|
import { ref, onMounted , onBeforeUnmount} from "vue";
|
import { initializeWebSocket, closeWebSocket } from '@/utils/WebSocketService';
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { tr } from "element-plus/es/locale";
|
const dialogFormVisible = ref(false)
|
const dialogFormVisiblea = ref(false)
|
const dialogFormVisibleb = ref(false)
|
const tableData = ref([])
|
const tableDatab = ref([])
|
const tableDatac = ref([])
|
const tableDatad = ref([])
|
const tableDatae = ref([])
|
const adjustedRects = ref([]);
|
const height = ref([]);
|
|
const carposition1 = ref(60);
|
const carposition2 = ref(220);
|
const carposition3 = ref(60);
|
const carposition4 = ref(260);
|
const timers1 =ref(true);
|
const timers2 =ref(true);
|
const timers3 =ref(true);
|
const timers4 =ref(true);
|
const cellshow5=ref(false);
|
const c1=ref(false);
|
const c2=ref(false);
|
const cellshow1=ref(true);
|
const cellshow2=ref(true);
|
const cellshow3=ref(true);
|
const cellshow4=ref(true);
|
const million=ref(0);
|
const million1=ref(0);
|
const million3=ref(0);
|
const million4=ref(0);
|
const cell1=ref(true);
|
const cell2=ref(true);
|
const cell3=ref(true);
|
const cell4=ref(true);
|
const cell5=ref(true);
|
const cell6=ref(true);
|
const cell7=ref(true);
|
const cell8=ref(true);
|
|
const currentPage4 = ref(4)
|
const pageSize4 = ref(100)
|
|
const dialogForm = () => {
|
ElMessageBox.confirm(
|
'确定要急停吗?',
|
'提示',
|
{
|
confirmButtonText: '是',
|
cancelButtonText: '否',
|
type: 'warning',
|
}
|
)
|
.then(() => {
|
ElMessage({
|
type: 'success',
|
message: '急停成功!',
|
})
|
})
|
.catch(() => {
|
ElMessage({
|
type: 'info',
|
message: '急停失败',
|
})
|
})
|
}
|
|
var timer=setInterval(() => {
|
// console.log(million.value,million1.value);
|
million.value+=1;
|
if(million.value-million1.value!==12){
|
|
if(million.value-million1.value>=2){
|
if(carposition1.value==220){
|
timers1.value=false;
|
}else if(carposition1.value==60){
|
timers1.value=true;
|
}
|
if(timers1.value==true){
|
carposition1.value=carposition1.value+16;
|
}else{
|
carposition1.value=carposition1.value-16;
|
}
|
|
|
if(carposition2.value==220){
|
timers2.value=false;
|
}else if(carposition2.value==60){
|
timers2.value=true;
|
}
|
if(timers2.value==true){
|
carposition2.value+=16;
|
}else{
|
carposition2.value-=16;
|
}
|
}else{
|
|
}
|
}else{
|
million1.value=million.value;
|
|
if(cellshow1.value==true){
|
cellshow1.value=false;
|
}else{
|
cellshow1.value=true;
|
}
|
if(cellshow2.value==true){
|
cellshow2.value=false;
|
}else{
|
cellshow2.value=true;
|
}
|
}
|
|
}, 1000);
|
|
var timer=setInterval(() => {
|
// console.log(million3.value,million4.value);
|
million3.value+=1;
|
if(million3.value-million4.value!==12){
|
|
if(million3.value-million4.value>=2){
|
if(carposition3.value==260){
|
timers3.value=false;
|
}else if(carposition3.value==60){
|
timers3.value=true;
|
}
|
if(timers3.value==true){
|
carposition3.value=carposition3.value+20;
|
}else{
|
carposition3.value=carposition3.value-20;
|
}
|
|
|
if(carposition4.value==260){
|
timers4.value=false;
|
}else if(carposition4.value==60){
|
timers4.value=true;
|
}
|
if(timers4.value==true){
|
carposition4.value+=20;
|
}else{
|
carposition4.value-=20;
|
}
|
}else{
|
|
}
|
}else{
|
million4.value=million3.value;
|
if(cellshow5.value==true){
|
cellshow5.value=false;
|
|
}else{
|
cellshow5.value=true;
|
|
}
|
if(cellshow3.value==true){
|
cellshow3.value=false;
|
}else{
|
cellshow3.value=true;
|
}
|
if(cellshow4.value==true){
|
cellshow4.value=false;
|
}else{
|
cellshow4.value=true;
|
}
|
}
|
|
}, 1000);
|
|
const getTableRow = (row,type) =>{
|
switch (type) {
|
case 'edit' :{
|
//alert('我接收到子组件传送的编辑信息')
|
router.push({path: '/main/returns/createReturns', query: { ReturnID: 'TH24010101' }})
|
break
|
}
|
case 'delete':{
|
alert('我接收到子组件传送的删除信息')
|
break
|
}
|
}
|
}
|
|
|
const socketUrl = `ws://${WebSocketHost}:${host}/api/cacheVerticalGlass/api/talk/slicecage`;
|
// 定义消息处理函数,更新 receivedData 变量
|
const handleMessage = (data) => {
|
// 更新 tableData 的数据
|
tableDatac.value = data.bigStorageCageDetailsOutTask[0]
|
tableDatad.value = data.bigStorageCageDetailsFeedTask[0]
|
tableData.value = data.bigStorageCageInfo[0]
|
tableDatab.value = data.temperingGlassInfoList[0]
|
tableDatae.value = data.bigStorageCageUsage[0]
|
adjustedRects.value = data.bigStorageCageInfo1[0]
|
// adjustedRects.value = data.bigStorageCageInfo1[0].map(rect => ({
|
// ...rect, // 复制原始对象的其他属性
|
// height: rect.length *0.5,
|
|
// }));
|
window.localStorage.setItem('length', data.bigStorageCageInfo1[0].length)
|
let length = window.localStorage.getItem('length')
|
console.log(length);
|
|
};
|
// function getRectHeight(length: number) {
|
// return length > 0 ? 29 / length : 29;
|
// }
|
// 初始化 WebSocket,并传递消息处理函数
|
onMounted(() => {
|
// fetchFlowCardId();
|
// fetchTableData(); // 获取数据
|
initializeWebSocket(socketUrl, handleMessage);
|
});
|
function getStatusType(enableState: number) {
|
switch (enableState) {
|
case 0:
|
return 'warning';
|
case 1:
|
return 'success';
|
}
|
}
|
function getStatusText(enableState: number) {
|
switch (enableState) {
|
case 0:
|
return '禁用';
|
case 1:
|
return '启用';
|
}
|
}
|
function getStatusTypea(ishorizontal: number) {
|
switch (ishorizontal) {
|
case 0:
|
return 'warning';
|
case 1:
|
return 'success';
|
}
|
}
|
function getStatusTexta(ishorizontal: number) {
|
switch (ishorizontal) {
|
case 0:
|
return '不接受';
|
case 1:
|
return '接受';
|
}
|
}
|
function getStatusTypeb(state: number) {
|
switch (state) {
|
case 0:
|
return 'success';
|
case 1:
|
return 'primary';
|
}
|
}
|
function getStatusTextb(state: number) {
|
switch (state) {
|
case 0:
|
return '出片完成';
|
case 1:
|
return '等待中';
|
case 2:
|
return '等待中';
|
}
|
}
|
onBeforeUnmount(() => {
|
console.log("关闭了")
|
closeWebSocket();
|
});
|
</script>
|
|
<template>
|
<div style="height: 700px;">
|
<!-- <el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="primary" @click="dialogFormVisible = true">手动进片</el-button> -->
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="primary" @click="dialogFormVisiblea = true">理片笼信息</el-button>
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="success" @click="dialogFormVisibleb = true">出片队列</el-button>
|
<!-- <el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="danger">终止进片</el-button> -->
|
<!-- <el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="danger">终止出片</el-button> -->
|
<!-- <el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="danger" @click="dialogForm">软急停</el-button> -->
|
|
<el-card style="flex: 1;margin-left: 10px;margin-top: 5px;" v-loading="loading">
|
<div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;max-height: 100px;">
|
<el-table height="100%" ref="table"
|
:data="tableDatac" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="bigStorageCageOutTask.glassId" align="center" label="出片玻璃ID" min-width="80" />
|
<el-table-column prop="bigStorageCageOutTask.startSlot" align="center" label="起始位置" min-width="120" />
|
<el-table-column prop="bigStorageCageOutTask.endSlot" align="center" label="目标位置" min-width="120" />
|
<el-table-column prop="bigStorageCageOutTask.trainNumber" align="center" label="车次" min-width="120" />
|
<el-table-column prop="bigStorageCageOutTask.serialNumber" align="center" label="序号" min-width="120" />
|
<el-table-column prop="bigStorageCageOutTask.taskState" align="center" label="任务状态" min-width="157">
|
<template #default="scope">
|
<el-tag type="success" >{{ scope.row.bigStorageCageOutTask.taskState==0?"等待进片":"进行中" }}</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column fixed="right" label="结束任务" align="center" width="150">
|
<template #default="scope">
|
<el-button size="mini" type="text" plain @click="handleBindRack(scope.row)">完成任务</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
</div>
|
</el-card>
|
<el-card style="flex: 1;margin-left: 10px;margin-top: 3px;" v-loading="loading">
|
<div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;max-height: 100px;">
|
<el-table height="100%" ref="table"
|
@selection-change="handleSelectionChange"
|
:data="tableDatad" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="bigStorageCageFeedTask.glassId" align="center" label="进片玻璃ID" min-width="80" />
|
<el-table-column prop="bigStorageCageFeedTask.tragetSlot" align="center" label="目标位置" min-width="120" />
|
<!-- <el-table-column prop="task_type" align="center" label="任务类型" min-width="120" />没有返回字段 -->
|
<el-table-column prop="bigStorageCageFeedTask.taskState" align="center" label="任务状态" min-width="120">
|
<template #default="scope">
|
<el-tag type="success" >{{ scope.row.bigStorageCageFeedTask.taskState==0?"等待进片":"进行中" }}</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column prop="bigStorageCageFeedTask.line" align="center" label="线路" min-width="120" />
|
<el-table-column fixed="right" label="结束任务" align="center" width="150">
|
<template #default="scope">
|
<el-button size="mini" type="text" plain @click="handleBindRack(scope.row)">完成任务</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
</div>
|
</el-card>
|
<div style="padding: 10px;display: flex;height:110px;">
|
<div v-for="(item, index) in tableDatae" :key="index" id="occupy">
|
<el-col style="text-align:left;font-weight: bold;">#{{ item.device_id }}</el-col>
|
<el-col style="text-align:left;display:flex;justify-content: space-between;align-items: center;">
|
<span>使用率</span><span>{{ item.percentage }}</span>
|
</el-col>
|
<hr style="width:80%;margin: 0 auto;" />
|
<el-col style="text-align:left;display:flex;justify-content: space-between;align-items: center;">
|
<span>空闲(格子数)</span><span>{{ item.count }}</span>
|
</el-col>
|
</div>
|
</div>
|
<!-- <div id="awatch">
|
<img src="../../assets/cp.png" alt="" style="width: 70%;height: 70%;margin-left: 160px;">
|
</div> -->
|
<!-- // 父级框 -->
|
<div class="img-dlpl" >
|
<div class="img-car1" :style="'z-index:999;left:247px;top:' + carposition1 + 'px;position:absolute;'">
|
<div v-show="cellshow1" style="margin-top:10px;width:200px;height:5px;background-color:#409EFF;"></div>
|
</div>
|
<div v-show="c1" class="img-car2" :style="'z-index:999;left:704px;top:' + carposition2 + 'px;position:absolute;'">
|
<div v-show="cellshow2" style="margin-top:10px;width:200px;height:5px;background-color:#409EFF;"></div>
|
</div>
|
|
<div v-show="c2" class="img-car3" :style="'z-index:999;left:247px;top:' + carposition3 + 'px;position:absolute;'">
|
<div v-show="cellshow3" style="margin-top:10px;width:220px;height:5px;background-color:#409EFF;"></div>
|
</div>
|
<div class="img-car4" :style="'z-index:999;left:704px;top:' + carposition4 + 'px;position:absolute;'">
|
<div v-show="cellshow4" style="margin-top:10px;width:200px;height:5px;background-color:#409EFF;"></div>
|
</div>
|
<div v-show="cell1" style="width: 227px;height: 29px;position: absolute;top:55px;left: 465px;">
|
<div
|
v-for="(item, index) in adjustedRects"
|
:key="index"
|
:style="{
|
top: `1px`, width: `227px`,
|
backgroundColor: '#409EFF',
|
height: `height`+ `px`
|
}"
|
>
|
</div>
|
<!-- <div
|
v-for="(item, index) in adjustedRects"
|
height: `${rect.height}px`,
|
:key="index"
|
:style="{
|
width: '227px',
|
height: '1px',
|
backgroundColor: '#409EFF',
|
top: '1px'
|
}"
|
>
|
</div> -->
|
</div>
|
<!-- <div v-show="cell2" style="width: 227px;height: 29px;position: absolute;top:86px;left: 465px;background-color: #409EFF;">
|
</div>
|
<div v-show="cell3" style="width: 227px;height: 29px;position: absolute;top:117px;left: 465px;background-color: #409EFF;">
|
</div>
|
<div v-show="cell4" style="width: 227px;height: 29px;position: absolute;top:148px;left: 465px;background-color: #409EFF;">
|
</div>
|
<div v-show="cell5" style="width: 227px;height: 29px;position: absolute;top:208px;left: 465px;background-color: #409EFF;">
|
</div>
|
<div v-show="cell6" style="width: 227px;height: 29px;position: absolute;top:238px;left: 465px;background-color: #409EFF;">
|
</div>
|
<div v-show="cell7" style="width: 227px;height: 29px;position: absolute;top:269px;left: 465px;background-color: #409EFF;">
|
</div>
|
<div v-show="cell8" style="width: 227px;height: 29px;position: absolute;top:300px;left: 465px;background-color: #409EFF;">
|
</div> -->
|
</div>
|
|
</div>
|
<el-dialog v-model="dialogFormVisible" top="12vh" width="85%" title="请确认玻璃信息" >
|
<div style="margin-left: 50px;margin-bottom: 10px;">
|
<div style="display: flex;">
|
<p style="margin-top: 4px;">确认状态:</p>
|
<el-button style="margin-left: 10px;size: mini;" type="success">允许</el-button>
|
<el-button style="margin-left: 10px;size: mini;" type="danger">不允许</el-button>
|
<p style="margin-left: 60px;margin-top: 4px;">当前状态:</p>
|
<div style="margin-top: 4px; margin-left: 10px;">手动</div>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">切换</el-button>
|
<el-input placeholder="请输入玻璃id" style="width: 180px;size: mini;margin-left: 60px;"></el-input>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">添加</el-button>
|
<p style="margin-left: 60px;margin-top: 4px;">玻璃id:</p>
|
<el-input style="width: 180px;size: mini;margin-left: 30px;"></el-input>
|
</div>
|
<div style="display: flex;">
|
<p style="margin-left: 290px;margin-top: 20px;font-weight: bold;">上片位</p>
|
<p style="margin-left: 630px;margin-top: 20px;font-weight: bold;">扫码位</p>
|
</div>
|
<div style="display: flex;">
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">当前信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">修改信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">修改信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">当前信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
</div>
|
</div>
|
<template #footer>
|
<div id="dialog-footer">
|
<el-button type="primary" @click="dialogFormVisible = false">
|
确认
|
</el-button>
|
<el-button @click="dialogFormVisible = false">取消</el-button>
|
</div>
|
</template>
|
</el-dialog>
|
<el-dialog v-model="dialogFormVisiblea" top="10vh" width="85%" title="理片笼信息" >
|
<!-- <el-input placeholder="请输入工程号" style="width: 180px;size: mini;"></el-input> -->
|
<!-- <el-button style="margin-left: 10px;size: mini;" type="primary">查询</el-button> -->
|
<el-table ref="table" style="margin-top: 20px;height: 500px;"
|
@selection-change="handleSelectionChange"
|
:data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="id" align="center" label="大理片笼表ID" min-width="80" />
|
<el-table-column prop="deviceId" align="center" label="理片笼号" min-width="120" />
|
<el-table-column prop="slot" align="center" label="栅格号" min-width="120" />
|
<el-table-column
|
align="center"
|
label="启用状态"
|
min-width="80"
|
prop="enableState"
|
>
|
<template #default="scope">
|
<el-tag :type="getStatusType(scope.row.enableState)">
|
{{ getStatusText(scope.row.enableState) }}
|
</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column prop="remainWidth" align="center" label="剩余宽度" min-width="120" />
|
</el-table>
|
<div id="demo-pagination-block">
|
<el-pagination
|
style="margin-left: 850px;"
|
v-model:current-page="currentPage4"
|
v-model:page-size="pageSize4"
|
:page-sizes="[100, 200, 300, 400]"
|
:small="small"
|
:disabled="disabled"
|
:background="background"
|
layout="total, sizes, prev, pager, next, jumper"
|
:total="400"
|
@size-change="handleSizeChange"
|
@current-change="handleCurrentChange"
|
/>
|
</div>
|
</el-dialog>
|
<el-dialog v-model="dialogFormVisibleb" top="10vh" width="85%" title="出片队列" >
|
<div style="display: flex;">
|
<p style="margin-top: 3px;">队列状态:</p>
|
<p style="margin-top: 3px;">开始</p>
|
<el-button style="margin-left: 10px;size: mini;" type="danger">停止</el-button>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">添加</el-button>
|
</div>
|
<el-table ref="table" style="margin-top: 20px;height: 500px;"
|
:data="tableDatab" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="id" fixed align="center" label="钢化小片信息表id" min-width="150"/>
|
<!-- <el-table-column prop="glass_id" align="center" label="玻璃id" min-width="120" /> -->
|
<el-table-column prop="flowcardId" fixed align="center" label="流程卡" min-width="120" />
|
<el-table-column prop="glassType" align="center" label="流程卡玻璃类型" min-width="150" />
|
<el-table-column prop="width" align="center" label="宽" min-width="80" />
|
<el-table-column prop="height" align="center" label="高" min-width="80" />
|
<el-table-column prop="thickness" align="center" label="厚度" min-width="80" />
|
<el-table-column prop="filmsid" align="center" label="膜系" min-width="80" />
|
<!-- <el-table-column prop="ishorizontal" align="center" label="钢化是否接受横放" min-width="150" /> -->
|
<el-table-column
|
align="center"
|
label="钢化是否接受横放"
|
min-width="150"
|
prop="ishorizontal"
|
>
|
<template #default="scope">
|
<el-tag :type="getStatusTypea(scope.row.ishorizontal)">
|
{{ getStatusTexta(scope.row.ishorizontal) }}
|
</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column prop="temperingLayoutId" align="center" label="钢化版图id" min-width="120" />
|
<el-table-column prop="temperingFeedSequence" align="center" label="钢化版图片序" min-width="120" />
|
<el-table-column prop="xCoordinate" align="center" label="x坐标" min-width="80" />
|
<el-table-column prop="yCoordinate" align="center" label="y坐标" min-width="80" />
|
<el-table-column prop="angle" align="center" label="旋转角度(逆时针)" min-width="150" />
|
<!-- <el-table-column prop="state" align="center" label="状态" min-width="80" /> -->
|
<el-table-column
|
align="center"
|
label="状态"
|
min-width="80"
|
prop="state"
|
>
|
<template #default="scope">
|
<el-tag :type="getStatusTypeb(scope.row.state)">
|
{{ getStatusTextb(scope.row.state) }}
|
</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column fixed="right" label="操作" align="center" width="150">
|
<template #default="scope">
|
<el-button size="mini" type="text" plain @click="handleBindRack(scope.row)">添加</el-button>
|
<el-button size="mini" type="text" plain @click="handleBindRacka(scope.row)">删除</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
</el-dialog>
|
|
</template>
|
<style scoped>
|
|
#dt { display:block; float:left;line-height: 20px;margin-left: 100px;}
|
#dta { display:block; float:left;line-height: 20px;margin-left: 80%;}
|
#dialog-footer{
|
text-align: center;
|
margin-top: -15px;
|
}
|
#message{
|
text-align: center;
|
align-items: center;
|
color: black;
|
width: 200px;
|
height: 100px;
|
background-color: #337ecc;
|
margin-left: 28%;
|
}
|
#awatch{
|
height: 450px;
|
}
|
#occupy {
|
height: 100%;
|
width: 15%;
|
background-color: white;
|
margin: 0px 8px 0px 8px;
|
border: 1px #EBEEF5 solid;
|
text-align: center;
|
padding: 5px;
|
}
|
#biao {
|
font-size: 12px;
|
}
|
#zhi {
|
font-size: 18px;
|
font-weight: bold;
|
}
|
#demo-pagination-block + #demo-pagination-block {
|
margin-top: 10px;
|
}
|
#demo-pagination-block #demonstration {
|
margin-bottom: 16px;
|
}
|
::-webkit-scrollbar {
|
width: 0 !important;
|
}
|
::-webkit-scrollbar {
|
width: 0 !important;height: 0;
|
}
|
.img-list{
|
|
position:relative;
|
}
|
.data-img{
|
@apply float-none ;
|
|
width:100%;
|
height:16rem;
|
background: rgba(0, 0, 0, 0);
|
opacity: 1;
|
border-radius: 0.5rem 0.5rem 0px 0px;
|
|
}
|
.check-img{
|
position: absolute;
|
width: 3.3125rem;
|
height: 2.9375rem;
|
top:20rem;
|
right: 57rem;
|
z-index: 10;
|
|
}
|
.check-imga{
|
position: absolute;
|
width: 3.3125rem;
|
height: 2.9375rem;
|
top:15rem;
|
right: 28.5rem;
|
z-index: 10;
|
|
}
|
.vertical {
|
width: 45px;
|
height: 25px;
|
background-color: #409EFF;
|
top: 485px; /* 初始位置 */
|
left: 899px; /* 水平居中 */
|
transform: translateX(-50%);
|
animation: move-vertical 6s infinite; /* 从上到下动画,持续6秒,无限循环 */
|
}
|
|
@keyframes move-vertical {
|
0% {
|
top: 485px; /* 起始位置 */
|
}
|
100% {
|
top: calc(100% - 210px); /* 从上到下结束位置 */
|
}
|
}
|
|
.img-dlpl{
|
margin-left: 200px;
|
background-image:url('../../assets/dlpl.png');
|
background-repeat: no-repeat;
|
background-attachment: local;
|
min-height: 400px;
|
width: 1200px;
|
max-width: 100%;
|
background-size: 1200px 400px;
|
overflow: hidden;
|
position:relative
|
}
|
.img-car1{
|
background-image:url('../../assets/lp.png');
|
position: absolute;
|
background-repeat: no-repeat;
|
background-attachment: local;
|
min-height: 200px;
|
width: 200px;
|
max-width: 100%;
|
background-size: 200px 70px;
|
overflow: hidden;
|
position:relative
|
}
|
.img-car2{
|
background-image:url('../../assets/lpa.png');
|
position: absolute;
|
background-repeat: no-repeat;
|
background-attachment: local;
|
min-height: 200px;
|
width: 200px;
|
max-width: 100%;
|
background-size: 200px 70px;
|
overflow: hidden;
|
position:relative
|
}
|
.img-car3{
|
background-image:url('../../assets/lp.png');
|
position: absolute;
|
background-repeat: no-repeat;
|
background-attachment: local;
|
min-height: 200px;
|
width: 200px;
|
max-width: 100%;
|
background-size: 200px 70px;
|
overflow: hidden;
|
position:relative
|
}
|
.img-car4{
|
background-image:url('../../assets/lpa.png');
|
position: absolute;
|
background-repeat: no-repeat;
|
background-attachment: local;
|
min-height: 200px;
|
width: 200px;
|
max-width: 100%;
|
background-size: 200px 70px;
|
overflow: hidden;
|
position:relative
|
}
|
</style>
|