|
|
@@ -1,9 +1,13 @@
|
|
|
<template>
|
|
|
<div class="equipment_box">
|
|
|
<div class="tool">
|
|
|
+ <el-button icon="el-icon-refresh" @click="get_equip_list('refresh')" size="small" type="primary"
|
|
|
+ >刷新</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
v-if="$store.state.admin"
|
|
|
icon="el-icon-plus"
|
|
|
+ style="margin:0 5px;"
|
|
|
@click="handle_click_add"
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
@@ -11,7 +15,6 @@
|
|
|
>
|
|
|
<!-- 导出按钮 -->
|
|
|
<export-excel
|
|
|
- style="margin:0 8px;"
|
|
|
v-if="$store.state.admin"
|
|
|
:exportTable="export_table"
|
|
|
:excelName="excel_name"
|
|
|
@@ -182,7 +185,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="3号测力片" align="center">
|
|
|
+ <el-table-column label="3号测力圈" align="center">
|
|
|
<el-table-column prop="direct1" label="伸出位" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.direct1 || '-' }}</span>
|
|
|
@@ -771,27 +774,27 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
prop: 'direct1',
|
|
|
- label: '3号测力片/伸出位',
|
|
|
+ label: '3号测力圈/伸出位',
|
|
|
isExport: true,
|
|
|
},
|
|
|
{
|
|
|
prop: 'direct2',
|
|
|
- label: '3号测力片/缩进位',
|
|
|
+ label: '3号测力圈/缩进位',
|
|
|
isExport: true,
|
|
|
},
|
|
|
{
|
|
|
prop: 'zl_3_no',
|
|
|
- label: '3号测力片/编号',
|
|
|
+ label: '3号测力圈/编号',
|
|
|
isExport: true,
|
|
|
},
|
|
|
{
|
|
|
prop: 'p3',
|
|
|
- label: '3号测力片/状态',
|
|
|
+ label: '3号测力圈/状态',
|
|
|
isExport: true,
|
|
|
},
|
|
|
{
|
|
|
prop: 'd3',
|
|
|
- label: '3号测力片/晶振',
|
|
|
+ label: '3号测力圈/晶振',
|
|
|
isExport: true,
|
|
|
},
|
|
|
],
|
|
|
@@ -1005,7 +1008,7 @@ export default {
|
|
|
return blob
|
|
|
},
|
|
|
// 获取设备列表
|
|
|
- get_equip_list() {
|
|
|
+ get_equip_list(type) {
|
|
|
equip_list()
|
|
|
.then(res => {
|
|
|
this.tableData = res
|
|
|
@@ -1025,6 +1028,7 @@ export default {
|
|
|
item.idx += 1
|
|
|
})
|
|
|
this.export_table = _.cloneDeep(copy_res)
|
|
|
+ if (type == 'refresh') return this.$message.success('刷新成功!')
|
|
|
})
|
|
|
.catch(e => {
|
|
|
console.log(e)
|
|
|
@@ -1330,6 +1334,10 @@ export default {
|
|
|
this.get_equip_list()
|
|
|
this.get_station_list()
|
|
|
},
|
|
|
+ activated() {
|
|
|
+ this.get_equip_list()
|
|
|
+ this.get_station_list()
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|