| | |
| | | <template> |
| | | <div class="main"> |
| | | <div> |
| | | <searchBar v-if="searchType" :search-type="searchType" @handleSearch="handleSearch" @handleAdd="handleOpenDialog(null,'add')" /> |
| | | <searchBar |
| | | v-if="searchType" |
| | | :search-type="searchType" |
| | | @handleSearch="handleSearch" |
| | | @handleAdd="handleOpenDialog(null,'add')" |
| | | /> |
| | | <div class="tab"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | size="mini" |
| | | max-height="680" |
| | | style="width: 100%" |
| | | :header-cell-style="{ |
| | | color: '#101111', fontSize: '16px' |
| | |
| | | label="状态" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag v-if="scope.row.state===40" type="success" size="medium "> |
| | | <el-tag |
| | | v-if="scope.row.state===40" |
| | | type="success" |
| | | size="medium " |
| | | > |
| | | {{ stateFormatter(scope.row) }} |
| | | </el-tag> |
| | | <el-tag v-if="scope.row.state===50" type="danger" size="medium "> |
| | | <el-tag |
| | | v-if="scope.row.state===50" |
| | | type="danger" |
| | | size="medium " |
| | | > |
| | | {{ stateFormatter(scope.row) }} |
| | | </el-tag> |
| | | <el-tag v-if="scope.row.state===9" type="info" size="medium "> |
| | | <el-tag |
| | | v-if="scope.row.state===9" |
| | | type="info" |
| | | size="medium " |
| | | > |
| | | {{ stateFormatter(scope.row) }} |
| | | </el-tag> |
| | | <el-tag v-if="scope.row.state===20" type="warning" size="medium "> |
| | | <el-tag |
| | | v-if="scope.row.state===20" |
| | | type="warning" |
| | | size="medium " |
| | | > |
| | | {{ stateFormatter(scope.row) }} |
| | | </el-tag> |
| | | <el-tag v-if="scope.row.state===10" type="warning" size="medium "> |
| | | <el-tag |
| | | v-if="scope.row.state===10" |
| | | type="warning" |
| | | size="medium " |
| | | > |
| | | {{ stateFormatter(scope.row) }} |
| | | </el-tag> |
| | | <el-tag v-if="scope.row.state===30" type="warning" size="medium "> |
| | | <el-tag |
| | | v-if="scope.row.state===30" |
| | | type="warning" |
| | | size="medium " |
| | | > |
| | | {{ stateFormatter(scope.row) }} |
| | | </el-tag> |
| | | </template> |
| | |
| | | <template slot-scope="scope"> |
| | | <div> {{ scope.row.escalationName }}</div> |
| | | <div> {{ updatUnitIdFormatter(scope.row) }}</div> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | label="操作" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="medium" @click="openWorkOrdinDialog(scope.row,'detail')">详情</el-button> |
| | | <el-button v-if="scope.row.state===30&&scope.row.isApprove===1" type="text" size="medium" @click="openWorkOrdinDialog(scope.row,'approve')">审批</el-button> |
| | | <el-button |
| | | type="text" |
| | | size="medium" |
| | | @click="openWorkOrdinDialog(scope.row,'detail')" |
| | | > |
| | | 详情 |
| | | </el-button> |
| | | <el-button |
| | | v-if="scope.row.state===30&&scope.row.isApprove===1" |
| | | type="text" |
| | | size="medium" |
| | | @click="openWorkOrdinDialog(scope.row,'approve')" |
| | | > |
| | | 审批 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | /> |
| | | </div> |
| | | </div> |
| | | <workOrderInformation v-if="workOrdinDialogVisible" :dialog-data="dialogData" :visible.sync="workOrdinDialogVisible" @handeleSumit="handeleWorkSumbit" /> |
| | | <workOrderInformation |
| | | v-if="workOrdinDialogVisible" |
| | | :dialog-data="dialogData" |
| | | :visible.sync="workOrdinDialogVisible" |
| | | @handeleSumit="handeleWorkSumbit" |
| | | /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | |
| | | } |
| | | </style> |
| | | |