This commit is contained in:
zhangdingyu
2018-12-05 10:40:07 +08:00
parent fa3c525088
commit 7cdb10d153
4 changed files with 80 additions and 58 deletions

View File

@@ -8,7 +8,7 @@
</el-card>
<el-card>
<el-table :data="List" style="height: 550px" border size="small">
<el-table :data="List" border size="small">
<el-table-column label="设备名称" align="center" >
<template slot-scope="scope">
{{ scope.row.设备名称 }}
@@ -159,6 +159,7 @@
</div>
</el-dialog>
</div>
</template>
<script>
@@ -184,7 +185,8 @@ export default {
{ value: '3', label: 3 },
{ value: '4', label: 4 }],
form: {
设备名称: '', 设备编号: '',
设备名称: '',
设备编号: '',
设备型号: '',
设备性能指标: '',
设备加工能力: '',
@@ -209,9 +211,11 @@ export default {
},
created() {
this.initialization()
this.fetchData()
},
methods: {
fetchData() {
this.List = []
if (this.equipmentName !== '') {
this.check = 1
} else {
@@ -317,6 +321,9 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if (this.List && this.List.length === 1 && this.pageCurrent > 1) {
this.pageCurrent--
}
deleteTable(row.设备流水号).then(response => {
if (response.data[0].result === '1') {
this.$message.success('删除成功')