wangfei
2025-02-20 f550836b6e5648e32b4bbbd5c81fee2bd9f5f069
tag标签获取及返回空判断显示
1个文件已修改
28 ■■■■■ 已修改文件
UI-Project/src/views/hollow/hollowequipmenttwo.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI-Project/src/views/hollow/hollowequipmenttwo.vue
@@ -494,7 +494,13 @@
      <el-table ref="table" style="margin-top: 20px;height: 400px;"
                :data="tableDatax" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
        <el-table-column prop="formulaName" fixed align="center" :label="$t('hellow.formulaNamep')"/>
        <el-table-column prop="filmRemove" fixed align="center" :label="$t('Mounting.removalmethodp')"/>
        <el-table-column prop="filmRemove" align="center" :label="$t('Mounting.removalmethodp')" min-width="110">
      <template #default="scope">
        <el-tag :type="getcasOnea(scope.row.filmRemove)">
          {{ getStatuscasOnea(scope.row.filmRemove) }}
        </el-tag>
      </template>
    </el-table-column>
        <el-table-column prop="topRemove" align="center" :label="$t('hellow.topRemovep')"> </el-table-column>
        <el-table-column prop="bottomRemove" align="center" :label="$t('hellow.bottomRemovep')"> </el-table-column>
        <el-table-column prop="leftRemove" align="center" :label="$t('hellow.leftRemovep')"> </el-table-column>
@@ -612,6 +618,26 @@
    closeWebSocket(socket);
  }
});
function getcasOnea(filmRemove) {
  switch (filmRemove) {
    case 1:
      return 'success';
    case 0:
      return 'warning';
    default:
      return 'info';
  }
}
function getStatuscasOnea(filmRemove) {
  switch (filmRemove) {
    case 1:
      return t('Mounting.removal');
    case 0:
      return t('Mounting.noremoval');
    default:
      return '';
  }
}
// 开始任务 
const handleBinda = (row) => {
  blinda.value = true;