Compare commits

..

No commits in common. "7d8406e9573d030323fd8e63f936639b45dc6ab2" and "18e67398ec682f13d15096c3ea302e2545862e85" have entirely different histories.

1 changed files with 6 additions and 34 deletions

View File

@ -67,16 +67,18 @@
<span v-else-if="row.APPLY_STATUS==-98">已作废未进行气体检测</span> <span v-else-if="row.APPLY_STATUS==-98">已作废未进行气体检测</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="350"> <el-table-column label="操作" align="center" width="230">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="danger" icon="el-icon-delete" @click="handleDelete(row)"></el-button>
<el-button type="primary" icon="el-icon-plus" @click="goChart(row)"></el-button> <el-button type="primary" icon="el-icon-plus" @click="goChart(row)"></el-button>
<el-button type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORK_ID)"></el-button> <el-button type="primary" icon="el-icon-document" size="mini" @click="goDetail(row.HOTWORK_ID)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="page-btn-group"> <div class="page-btn-group">
<div/> <div>
<!-- <el-button v-show="add" type="primary" icon="el-icon-plus" @click="handleAdd"></el-button>-->
<!-- <el-button v-show="del" type="danger" icon="el-icon-delete" plain @click="batchDel"></el-button>-->
</div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" /> <pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
</div> </div>
<el-dialog :visible.sync="dialogFormShow " :title="dialogType==='add'?'查看流程图':'新增'" width="1550px"> <el-dialog :visible.sync="dialogFormShow " :title="dialogType==='add'?'查看流程图':'新增'" width="1550px">
@ -166,6 +168,7 @@
</div> </div>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- <el-button @click="dialogFormShow = false"> </el-button>-->
<el-button type="primary" @click="dialogFormShow = false"> </el-button> <el-button type="primary" @click="dialogFormShow = false"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -391,37 +394,6 @@ export default {
goDetail(id) { goDetail(id) {
this.$parent.activeName = 'Detail' this.$parent.activeName = 'Detail'
this.$parent.HOTWORK_ID = id this.$parent.HOTWORK_ID = id
},
handleDelete(row) {
if ((+row.APPLY_STATUS) >= 7) {
this.$message({
message: '数据已到验收阶段,暂不支持删除',
type: 'error'
})
} else {
this.$confirm('是否确定删除此条数据', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
})
this.listLoading = true
requestFN(
'/hotwork/cfd/deleteInFlow', { HOTWORK_ID: row.HOTWORK_ID }
).then((data) => {
this.$message.error('删除成功')
this.listLoading = false
this.getList()
}).catch((e) => {
this.listLoading = false
})
}).catch(() => {
this.$message({ type: 'info', message: '已取消删除' })
})
}
} }
} }
} }