|
@@ -122,27 +122,20 @@
|
|
|
fixed="left"
|
|
|
width="55"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="depart_name"
|
|
|
- label="所属部门"
|
|
|
- align="center"
|
|
|
- v-if="showColumn.depart_name"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="150"
|
|
|
- />
|
|
|
+
|
|
|
<el-table-column
|
|
|
prop="wind_name"
|
|
|
label="风场名称"
|
|
|
align="center"
|
|
|
- v-if="showColumn.number"
|
|
|
+ v-if="showColumn.wind_name"
|
|
|
:show-overflow-tooltip="true"
|
|
|
width="150"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
prop="fan_number"
|
|
|
- label="风机编号"
|
|
|
+ label="风机机位号"
|
|
|
align="center"
|
|
|
- v-if="showColumn.number"
|
|
|
+ v-if="showColumn.fan_number"
|
|
|
:show-overflow-tooltip="true"
|
|
|
width="150"
|
|
|
/>
|
|
@@ -155,83 +148,35 @@
|
|
|
width="150"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="name"
|
|
|
- label="名称"
|
|
|
+ prop="work_local"
|
|
|
+ label="工作位置"
|
|
|
align="center"
|
|
|
- v-if="showColumn.name"
|
|
|
+ v-if="showColumn.work_local"
|
|
|
:show-overflow-tooltip="true"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="brand"
|
|
|
- label="品牌"
|
|
|
+ prop="parts"
|
|
|
+ label="所属部件"
|
|
|
align="center"
|
|
|
- v-if="showColumn.brand"
|
|
|
+ v-if="showColumn.parts"
|
|
|
:show-overflow-tooltip="true"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="supplier"
|
|
|
- label="供应商"
|
|
|
+ prop="bolt_style"
|
|
|
+ label="螺栓样式"
|
|
|
align="center"
|
|
|
- v-if="showColumn.supplier"
|
|
|
+ v-if="showColumn.bolt_style"
|
|
|
:show-overflow-tooltip="true"
|
|
|
width="120"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="model_type"
|
|
|
- label="型号"
|
|
|
+ prop="boit_type"
|
|
|
+ label="螺栓型号"
|
|
|
align="center"
|
|
|
- v-if="showColumn.model"
|
|
|
+ v-if="showColumn.boit_type"
|
|
|
:show-overflow-tooltip="true"
|
|
|
/>
|
|
|
<el-table-column
|
|
|
- prop="out_date"
|
|
|
- label="出厂日期"
|
|
|
- align="center"
|
|
|
- v-if="showColumn.out_date"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="150"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- prop="is_used"
|
|
|
- label="使用状态"
|
|
|
- align="center"
|
|
|
- v-if="showColumn.is_used"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="120"
|
|
|
- >
|
|
|
- <template slot-scope="record">
|
|
|
- <el-tag type="danger" v-if="record.row.is_used == -1"
|
|
|
- >未使用</el-tag>
|
|
|
- <el-tag type="info" v-if="record.row.is_used == -2"
|
|
|
- >报废</el-tag>
|
|
|
- <el-tag type="success" v-if="record.row.is_used == 1"
|
|
|
- >使用中</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="creator_user"
|
|
|
- label="导入用户"
|
|
|
- align="center"
|
|
|
- v-if="showColumn.creator_user"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- prop="created_at"
|
|
|
- label="添加时间"
|
|
|
- align="center"
|
|
|
- v-if="showColumn.created_at"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="200"
|
|
|
- sortable
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- prop="remark"
|
|
|
- label="备注"
|
|
|
- align="center"
|
|
|
- v-if="showColumn.remark"
|
|
|
- width="100"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
label="操作"
|
|
|
width="150"
|
|
|
align="center"
|
|
@@ -270,16 +215,12 @@
|
|
|
<div class="content">
|
|
|
<div class="head">选择显示字段</div>
|
|
|
<div class="body">
|
|
|
- <el-checkbox v-model="checkList.depart_name" disabled>所属部门</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.wind_name" disabled>所属风场</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.fan_number" disabled>所属风机编号</el-checkbox>
|
|
|
+ <el-checkbox v-model="checkList.wind_name" disabled>风场名称</el-checkbox>
|
|
|
+ <el-checkbox v-model="checkList.fan_number" disabled>风机机位号</el-checkbox>
|
|
|
<el-checkbox v-model="checkList.number">编号</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.name">名称</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.brand">品牌</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.supplier">供应商</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.model_type">型号</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.out_date">出厂日期</el-checkbox>
|
|
|
- <el-checkbox v-model="checkList.is_used">使用状态</el-checkbox>
|
|
|
+ <el-checkbox v-model="checkList.parts">所属部件</el-checkbox>
|
|
|
+ <el-checkbox v-model="checkList.bolt_style">螺丝样式</el-checkbox>
|
|
|
+ <el-checkbox v-model="checkList.boit_type">螺栓型号</el-checkbox>
|
|
|
</div>
|
|
|
<div class="footer">
|
|
|
<el-button size="small" type="primary" plain @click="saveColumn"
|
|
@@ -373,16 +314,13 @@ export default {
|
|
|
// 列的配置化对象,存储配置信息
|
|
|
checkList: {},
|
|
|
showColumn: {
|
|
|
- depart_name: true,
|
|
|
wind_name:true,
|
|
|
fan_number:true,
|
|
|
- alarm_state_text: true,
|
|
|
- net_state:true,
|
|
|
number: true,
|
|
|
- name: true,
|
|
|
- brand: true,
|
|
|
- supplier: true,
|
|
|
- model_type: true,
|
|
|
+ work_local: true,
|
|
|
+ parts:true,
|
|
|
+ bolt_style: true,
|
|
|
+ boit_type: true,
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -470,16 +408,13 @@ export default {
|
|
|
this.checkList = JSON.parse(localStorage.getItem("flangeSet"));
|
|
|
} else {
|
|
|
this.checkList = {
|
|
|
- depart_name: true,
|
|
|
- wind_name:true,
|
|
|
+ wind_name:true,
|
|
|
fan_number:true,
|
|
|
- alarm_state_text: true,
|
|
|
- net_state:true,
|
|
|
number: true,
|
|
|
- name: true,
|
|
|
- brand: true,
|
|
|
- supplier: true,
|
|
|
- model_type: true,
|
|
|
+ work_local: true,
|
|
|
+ parts:true,
|
|
|
+ bolt_style: true,
|
|
|
+ boit_type: true,
|
|
|
};
|
|
|
}
|
|
|
},
|