jiaozhunjianding
This commit is contained in:
parent
cb2beb1d3e
commit
461f3bd2ce
|
@ -141,6 +141,18 @@ export const asyncRoutes = [
|
|||
name: 'detection ',
|
||||
component: () => import('@/views/em/detection'),
|
||||
meta: { title: '监视和测量设备', icon: 'example', perms: ['index_manage'] }
|
||||
},
|
||||
{
|
||||
path: 'equipment',
|
||||
name: 'equipment',
|
||||
component: () => import('@/views/em/equipment'),
|
||||
meta: { title: '校准检定记录', icon: 'example', perms: ['index_manage'] }
|
||||
},
|
||||
{
|
||||
path: 'detection ',
|
||||
name: 'detection ',
|
||||
component: () => import('@/views/em/detection'),
|
||||
meta: { title: '运维记录', icon: 'example', perms: ['index_manage'] }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -70,6 +70,10 @@
|
|||
<el-table-column label="使用类别">
|
||||
<template slot-scope="scope">{{ usetype_[scope.row.way] }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="校/检状态">
|
||||
<template slot-scope="scope">{{ state_[scope.row.statedm] }}</template>
|
||||
</el-table-column>
|
||||
state_
|
||||
<el-table-column label="保管人">
|
||||
<template slot-scope="scope" v-if="scope.row.keeper_">{{ scope.row.keeper_.username }}</template>
|
||||
</el-table-column>
|
||||
|
@ -329,6 +333,14 @@ export default {
|
|||
value: 2,
|
||||
label: '公用'
|
||||
}],
|
||||
state_:{
|
||||
0:'合格',
|
||||
1:'准用',
|
||||
2:'限用',
|
||||
3:'禁用',
|
||||
4:'停用',
|
||||
5:'封存',
|
||||
},
|
||||
options: [{
|
||||
value: 0,
|
||||
label: '合格'
|
||||
|
|
|
@ -64,7 +64,20 @@
|
|||
<template slot-scope="scope">{{ scope.row.count }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态">
|
||||
<template slot-scope="scope">{{ state_[scope.row.state] }}</template>
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="scope.row.state===0" type="success">
|
||||
{{ state_[scope.row.state] }}
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.state===1" type="warning">
|
||||
{{ state_[scope.row.state] }}
|
||||
</el-tag>
|
||||
<el-tag v-else-if="scope.row.state===2" >
|
||||
{{ state_[scope.row.state] }}
|
||||
</el-tag>
|
||||
<el-tag v-else type="danger">
|
||||
{{ state_[scope.row.state] }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="技术指标">
|
||||
<template slot-scope="scope">{{ scope.row.parameter }}</template>
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
<el-card style="margin-top: 10px">
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
:data="warehouseList.results"
|
||||
:data="customerList.results"
|
||||
border
|
||||
fit
|
||||
stripe
|
||||
|
@ -82,8 +82,8 @@
|
|||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination
|
||||
v-show="warehouseList.count > 0"
|
||||
:total="warehouseList.count"
|
||||
v-show="customerList.count > 0"
|
||||
:total="customerList.count"
|
||||
:page.sync="listQuery.page"
|
||||
:limit.sync="listQuery.page_size"
|
||||
@pagination="getList"
|
||||
|
@ -141,7 +141,10 @@ export default {
|
|||
customerList: {
|
||||
count: 0,
|
||||
},
|
||||
|
||||
listQuery: {
|
||||
page: 1,
|
||||
page_size: 20,
|
||||
},
|
||||
listLoading: true,
|
||||
dialogVisible: false,
|
||||
dialogType: "new",
|
||||
|
@ -162,7 +165,7 @@ export default {
|
|||
this.listLoading = true;
|
||||
getCustomerList(this.listQuery).then((response) => {
|
||||
if (response.data) {
|
||||
this.warehouseList = response.data;
|
||||
this.customerList = response.data;
|
||||
}
|
||||
this.listLoading = false;
|
||||
});
|
||||
|
|
|
@ -74,4 +74,4 @@ class Equipment(CommonBModel):
|
|||
|
||||
def __str__(self):
|
||||
return self.number + '-' + self.name
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue