| | |
| | | min-width="100" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | |
| | | <!-- ~当三个值都有 --> |
| | | <div v-if="row.standvalue&&row.uppervalue&&row.lowervalue&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)"> |
| | | <!-- <div v-if="row[(index + 1) + '/' + dialogTableNumberCol]>=row.lowervalue&&row[(index + 1) + '/' + dialogTableNumberCol]<=row.uppervalue">--> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | <div style="display: flex;align-items: center"> |
| | | <i |
| | | :class="row.check_result==='OK'?'el-icon-success':'el-icon-error'" |
| | | :style="{color:row.check_result==='OK'?$store.state.settings.theme:'red'}" |
| | | style="margin-right: 2px" |
| | | /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | |
| | | <!-- ~当只有标准值和上限值时 --> |
| | | <div v-else-if="row.standvalue&&row.uppervalue&&row.lowervalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | </div> |
| | | <!-- ~当只有标准值和下限值时--> |
| | | <div v-else-if="row.standvalue&&row.lowervalue&&row.uppervalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | </div> |
| | | <!-- <!– ~当三个值都有 –>--> |
| | | <!-- <div v-if="row.standvalue&&row.uppervalue&&row.lowervalue&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)">--> |
| | | <!-- <!– <div v-if="row[(index + 1) + '/' + dialogTableNumberCol]>=row.lowervalue&&row[(index + 1) + '/' + dialogTableNumberCol]<=row.uppervalue">–>--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | |
| | | <!-- ~当只有上限值和下限值时--> |
| | | <div v-else-if="row.uppervalue&&row.lowervalue&&row.standvalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | </div> |
| | | <!-- ~当只有标准值时 --> |
| | | <div v-else-if="row.standvalue&&row.uppervalue===''&&row.lowervalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])===parseFloat(row.standvalue)"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | </div> |
| | | <!-- ~当只有上限值时 --> |
| | | <div v-else-if="row.uppervalue&&row.lowervalue===''&&row.standvalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | </div> |
| | | <!-- <!– ~当只有标准值和上限值时 –>--> |
| | | <!-- <div v-else-if="row.standvalue&&row.uppervalue&&row.lowervalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)">--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <!-- <!– ~当只有标准值和下限值时–>--> |
| | | <!-- <div v-else-if="row.standvalue&&row.lowervalue&&row.uppervalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)">--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | |
| | | <!-- ~当只有下限值时 --> |
| | | <div v-else-if="row.lowervalue&& row.uppervalue===''&&row.standvalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)"> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div></div> |
| | | <!-- <!– ~当只有上限值和下限值时–>--> |
| | | <!-- <div v-else-if="row.uppervalue&&row.lowervalue&&row.standvalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)">--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <!-- <!– ~当只有标准值时 –>--> |
| | | <!-- <div v-else-if="row.standvalue&&row.uppervalue===''&&row.lowervalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])===parseFloat(row.standvalue)">--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <!-- <!– ~当只有上限值时 –>--> |
| | | <!-- <div v-else-if="row.uppervalue&&row.lowervalue===''&&row.standvalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])<=parseFloat(row.uppervalue)">--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | |
| | | <div v-else> |
| | | <div style="display: flex;align-items: center"> |
| | | <i class="el-icon-error" style="color: red;margin-right: 2px" /> |
| | | {{ row[(index + 1) + '/' + dialogTableNumberCol] }} |
| | | </div> |
| | | </div> |
| | | <!-- <!– ~当只有下限值时 –>--> |
| | | <!-- <div v-else-if="row.lowervalue&& row.uppervalue===''&&row.standvalue===''&&parseFloat(row[(index + 1) + '/' + dialogTableNumberCol])>=parseFloat(row.lowervalue)">--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-success" :style="{color:$store.state.settings.theme}" style="margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div></div>--> |
| | | |
| | | <!-- <div v-else>--> |
| | | <!-- <div style="display: flex;align-items: center">--> |
| | | <!-- <i class="el-icon-error" style="color: red;margin-right: 2px" />--> |
| | | <!-- {{ row[(index + 1) + '/' + dialogTableNumberCol] }}--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | |
| | | </template> |
| | | </el-table-column> |