|
|
@ -12,9 +12,9 @@ |
|
|
|
<el-col :span="22"> |
|
|
|
<el-form :inline="true" class="demo-form-inline"> |
|
|
|
<el-form-item :inline="true" label="模糊搜索:"> |
|
|
|
<el-input v-model="query.search" placeholder="请输入编码、名称" /> |
|
|
|
<el-input v-model="query.search" placeholder="请输入编码、名称"/> |
|
|
|
</el-form-item> |
|
|
|
<rrOperation /> |
|
|
|
<rrOperation/> |
|
|
|
</el-form> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -32,21 +32,19 @@ |
|
|
|
@select-all="onSelectAll" |
|
|
|
@current-change="clickChange" |
|
|
|
> |
|
|
|
<el-table-column v-if="!isSingle" type="selection" width="55" /> |
|
|
|
<el-table-column v-if="!isSingle" type="selection" width="55"/> |
|
|
|
<el-table-column v-if="isSingle" label="选择" width="55"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-radio v-model="tableRadio" :label="scope.row"><i /></el-radio> |
|
|
|
<el-radio v-model="tableRadio" :label="scope.row"><i/></el-radio> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="device_code" label="设备编码" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="device_name" label="设备名称" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="device_model" label="设备型号" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="device_model" label="设备型号" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="extend_code" label="外部编码" show-overflow-tooltip /> |
|
|
|
<el-table-column prop="point_code" label="设备编码" show-overflow-tooltip/> |
|
|
|
<el-table-column prop="point_name" label="设备名称" show-overflow-tooltip/> |
|
|
|
<!-- <el-table-column prop="extend_code" label="外部编码" show-overflow-tooltip/>--> |
|
|
|
</el-table> |
|
|
|
<!--分页组件--> |
|
|
|
<pagination /> |
|
|
|
<pagination/> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="submit">确 定</el-button> |
|
|
@ -60,13 +58,20 @@ |
|
|
|
import CRUD, { header, presenter } from '@crud/crud' |
|
|
|
import rrOperation from '@crud/RR.operation' |
|
|
|
import pagination from '@crud/Pagination' |
|
|
|
import crudDevice from '@/api/wms/pdm/device' |
|
|
|
import crudPoint from '@/api/wms/sch/point' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'EndPointDialog', |
|
|
|
components: { rrOperation, pagination }, |
|
|
|
cruds() { |
|
|
|
return CRUD({ title: '设备', url: 'api/device', crudMethod: { ...crudDevice }, optShow: {}}) |
|
|
|
return CRUD({ |
|
|
|
title: '点位', url: 'api/point', crudMethod: { ...crudPoint }, |
|
|
|
query: { |
|
|
|
is_have_workder: '1' |
|
|
|
}, |
|
|
|
|
|
|
|
optShow: {} |
|
|
|
}) |
|
|
|
}, |
|
|
|
mixins: [presenter(), header()], |
|
|
|
props: { |
|
|
@ -168,7 +173,7 @@ export default { |
|
|
|
margin-left: auto; |
|
|
|
} |
|
|
|
|
|
|
|
.el-table_body tr.current-row>td { |
|
|
|
.el-table_body tr.current-row > td { |
|
|
|
background-color: #e9e500; |
|
|
|
} |
|
|
|
</style> |
|
|
|