| | |
| | | <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> |
| | |
| | | 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; |