| | |
| | | <el-dialog title="过程图" :visible.sync="flowOpen" width="1200px" append-to-body> |
| | | <div> |
| | | <el-steps :active="ywAuditingList.length != 0 ? 3 : ywHandleList.length != 0 ? 2 : 1" :space="500"> |
| | | <el-step title="产生工单"> |
| | | <el-step :title="getTitle1()"> |
| | | <template slot="description"> |
| | | <div> |
| | | <div class="row flow-item-x"> |
| | |
| | | </div> |
| | | </template> |
| | | </el-step> |
| | | <el-step title="运维处理"> |
| | | <el-step :title="getTitle2()"> |
| | | <template slot="description"> |
| | | <div style="max-height: 450px;overflow-y: scroll"> |
| | | <div v-for="(item, index) in ywHandleList" :key="index"> |
| | |
| | | }, |
| | | ywHandleList: [], |
| | | ywAuditingList: [], |
| | | beforeReportMsg: '', |
| | | afterReportMsg: '', |
| | | reportFormRules: { |
| | | reportContent: [ |
| | | { required: true, message: '报备内容不能为空', trigger: 'blur' } |
| | |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | getTitle1() { |
| | | return '产生工单' + (this.beforeReportMsg ? '(' + this.beforeReportMsg + ')' : '') |
| | | }, |
| | | getTitle2() { |
| | | return '运维处理' + (this.afterReportMsg ? '(' + this.afterReportMsg + ')' : '') |
| | | }, |
| | | openDrawer(item) { |
| | | this.ywData = { |
| | | content: '', |
| | |
| | | if (response.data) { |
| | | this.ywAuditingList = response.data.auditingList |
| | | this.ywHandleList = response.data.ywList |
| | | this.afterReportMsg = response.data.afterReportMsg |
| | | this.beforeReportMsg = response.data.beforeReportMsg |
| | | this.flowOpen = true |
| | | } |
| | | }) |