| | |
| | | <zt-table-column-dict prop="taskCompute" label="任务计算" dict="is_or_not"/> |
| | | <zt-table-column-dict prop="reliabDistrib" label="可靠性分布" dict="ReliabDistribType"/> |
| | | <zt-table-column-dict prop="repairDistrib" label="维修分布" dict="RepairDistribType"/> |
| | | <el-table-column prop="operationalStatus" label="运行状态图" align="center"> |
| | | <el-table-column prop="operatImg" label="运行图片" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-image v-if="row.operationalStatus" :src="getPath(row.operationalStatus)" style="height: 50px;width: 50px"></el-image> |
| | | </template > |
| | | </el-table-column> |
| | | <el-table-column prop="standbyState" label="待机状态图" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-image v-if="row.standbyState" :src="getPath(row.standbyState)" style="height: 50px;width: 50px"></el-image> |
| | | </template > |
| | | </el-table-column> |
| | | <el-table-column prop="faultState" label="故障状态图" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-image v-if="row.faultState" :src="getPath(row.faultState)" style="height: 50px;width: 50px"></el-image> |
| | | </template > |
| | | <el-image v-if="row.operatImg" :src="url+row.operatImg" style="height: 50px;width: 50px"></el-image> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="sort" label="排序"/> |
| | | <zt-table-column-handle :table="table"/> |
| | |
| | | |
| | | <script> |
| | | import AddOrUpdate from './TyProductModel-AddOrUpdate' |
| | | import Cookies from "js-cookie"; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`, |
| | | dataForm: { |
| | | operationalStatus:'', |
| | | standbyState:'', |
| | |
| | | return 'text-align: left !important;' |
| | | } |
| | | }, |
| | | getPath(id){ |
| | | console.log(id,'path') |
| | | return `${window.SITE_CONFIG['apiURL']}/sys/oss/content2?fileId=${id}` |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |