wuyouming666
2024-04-16 0d35ca6cbe31b2cb2010b66b086acc1cb19ae270
UI-Project/src/views/UnLoadGlass/loadmachinerack.vue
@@ -99,7 +99,7 @@
//获取流程卡号
const fetchFlowCardId = async () => {
  try {
    const response = await unloadrequest.get('/api/downWorkstation/getflowCardId');
    const response = await unloadrequest.get('/api/unLoadGlass/getflowCardId');
    console.log(response)
    if (response.code === 200) {
      flowCardOptions.value = response.data.map(item => ({ flowcard_id: item.flowcard_id }));
@@ -113,7 +113,7 @@
//确认
const handleConfirm = async () => {
  try {
    const response = await unloadrequest.post('/api/downWorkstation/updateFlowCardId', {
    const response = await unloadrequest.post('/api/unLoadGlass/updateFlowCardId', {
      workstationId: workstationId.value,
      flowCardId: flowCardId.value
    }); 
@@ -147,7 +147,7 @@
//清除内容
const handleclear = async () => {
    try {
        const response = await unloadrequest.post('/api/downWorkstation/clear', {
        const response = await unloadrequest.post('/api/unLoadGlass/clear', {
            workstationId: workstationId.value,
        });
@@ -180,7 +180,7 @@
const fetchTableData = async () => {
  try {
    // 发送获取表格数据的请求,并等待响应
    const response = await unloadrequest.get('/api/downWorkstation/getone');
    const response = await unloadrequest.get('/api/unLoadGlass/getone');
    // 检查响应状态
    if (response.code === 200) {
@@ -202,7 +202,7 @@
initWebSocket();
onMounted(fetchTableData);
//setInterval(fetchTableData, 2000)
setInterval(fetchTableData, 2000)
const open = () => {
  ElMessageBox.confirm(