...
|
...
|
@@ -5,22 +5,22 @@ |
|
|
<div>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="4">
|
|
|
<el-input v-model="bayonet_queryInfo.stationName" prefix-icon="el-icon-search" size="small"
|
|
|
<el-input v-model="bayonet_queryInfo.stationName" prefix-icon="el-icon-search"
|
|
|
placeholder="场站名称" clearable></el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<el-input v-model="bayonet_queryInfo.name" prefix-icon="el-icon-search" size="small"
|
|
|
<el-input v-model="bayonet_queryInfo.name" prefix-icon="el-icon-search"
|
|
|
placeholder="卡口名称" clearable></el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
|
<el-input v-model="bayonet_queryInfo.channel" prefix-icon="el-icon-search" size="small"
|
|
|
<el-input v-model="bayonet_queryInfo.channel" prefix-icon="el-icon-search"
|
|
|
placeholder="通道编号" clearable></el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-button type="success" style="width:120px" size="small" @click="bayonet_getList">
|
|
|
<el-col :span="8" style="margin-left: 50px">
|
|
|
<el-button type="warning" style="width:150px" size="medium" icon="el-icon-plus" @click="bayonet_getList">
|
|
|
查询
|
|
|
</el-button>
|
|
|
<el-button type="primary" style="width:120px" size="small" @click="bayonet_toAddDialog">
|
|
|
<el-button type="primary" style="width:150px" size="medium" icon="el-icon-plus" @click="bayonet_toAddDialog">
|
|
|
卡口添加
|
|
|
</el-button>
|
|
|
</el-col>
|
...
|
...
|
@@ -29,24 +29,26 @@ |
|
|
|
|
|
<!-- 列表区域 -->
|
|
|
<div style="margin-top: 20px;">
|
|
|
<el-table :data="bayonet_page.bayonetList" border size="mini"
|
|
|
<el-table :data="bayonet_page.bayonetList" border
|
|
|
:header-cell-style="{background:'#6F8294',color:'#FFFFFF'}"
|
|
|
style="border-radius: 10px 10px 0px 0px;line-height: 25px;" size="small"
|
|
|
v-loading="bayonet_loading.listLoading" element-loading-text="获取卡口列表,拼命加载中">
|
|
|
<el-table-column type="index" align="center"></el-table-column>
|
|
|
<el-table-column label="场站名称" prop="yard.name" align="center" width="120"></el-table-column>
|
|
|
<el-table-column label="场站名称" prop="yard.name" align="center" width="180"></el-table-column>
|
|
|
<el-table-column label="卡口名称" prop="name" align="center" width="200"></el-table-column>
|
|
|
<el-table-column label="通道编号" prop="channel" align="center" width="200"></el-table-column>
|
|
|
<el-table-column label="卡口类型" prop="type" :formatter="kakoType" align="center" width="200">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="备注信息" prop="remarks" align="center" width="200"></el-table-column>
|
|
|
<el-table-column label="操作" width="140px" align="center">
|
|
|
<el-table-column label="备注信息" prop="remarks" align="center" ></el-table-column>
|
|
|
<el-table-column label="操作" width="200px" align="center" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tooltip effect="dark" content="编辑" placement="top-start" :enterable="false">
|
|
|
<el-button type="text" icon="el-icon-edit" size="mini"
|
|
|
<el-button type="primary" icon="el-icon-edit" size="mini"
|
|
|
@click="bayonet_toEditDialog(scope.$index,scope.row)">编辑
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip effect="dark" content="删除" placement="top-start" :enterable="false">
|
|
|
<el-button type="text" icon="el-icon-delete" size="mini"
|
|
|
<el-button type="danger" icon="el-icon-minus" size="mini"
|
|
|
:loading="bayonet_loading.delLoading"
|
|
|
@click="bayonet_delete(scope.$index,scope.row)">删除
|
|
|
</el-button>
|
...
|
...
|
@@ -77,12 +79,12 @@ |
|
|
<div>
|
|
|
<el-dialog title="卡口添加:"
|
|
|
:visible.sync="bayonet_dialog.addDialog"
|
|
|
style="margin-top: -80px" text-align="center" width="60%"
|
|
|
text-align="center" width="50%"
|
|
|
@close="bayonet_addDialogClosed">
|
|
|
<el-form :inline="true" label-width="150px" status-icon style="margin-top: -10px;" align="center"
|
|
|
:model="bayonet_addForm" :rules="bayonet_addFormRules" ref="bayonet_addFormRef">
|
|
|
<el-form-item label="场站名称:" prop="yardId">
|
|
|
<el-select v-model="bayonet_addForm.yardId" style="width: 300px" clearable size="small"
|
|
|
<el-select v-model="bayonet_addForm.yardId" clearable
|
|
|
placeholder="请选择场站名称">
|
|
|
<el-option
|
|
|
v-for="item in stationNameList"
|
...
|
...
|
@@ -93,18 +95,18 @@ |
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="卡口名称:" prop="name">
|
|
|
<el-input v-model="bayonet_addForm.name" style="width:300px" size="mini" clearable
|
|
|
<el-input v-model="bayonet_addForm.name" clearable
|
|
|
placeholder="请输入卡口名称">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="通道编号:" prop="channel">
|
|
|
<el-input v-model="bayonet_addForm.channel" style="width:300px" size="mini" clearable
|
|
|
<el-input v-model="bayonet_addForm.channel" clearable
|
|
|
placeholder="请输入通道编号">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="卡口类型:" prop="type">
|
|
|
<el-select v-model="bayonet_addForm.type" style="width: 300px" clearable size="small"
|
|
|
<el-select v-model="bayonet_addForm.type" clearable
|
|
|
placeholder="请选择卡口类型">
|
|
|
<el-option
|
|
|
v-for="item in bayonetTypeList"
|
...
|
...
|
@@ -117,17 +119,17 @@ |
|
|
|
|
|
|
|
|
<el-form-item label="备注信息:" prop="remarks">
|
|
|
<el-input v-model="bayonet_addForm.remarks" style="width:300px" clearable size="mini"
|
|
|
type="textarea" :rows="5">
|
|
|
<el-input v-model="bayonet_addForm.remarks" clearable
|
|
|
type="textarea" :rows="5" style="width:300px" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: center;margin-top: -30px">
|
|
|
<el-button type="info" @click="bayonet_dialog.addDialog = false" size="medium"
|
|
|
style="width: 100px">取消
|
|
|
<el-button @click="bayonet_dialog.addDialog = false"
|
|
|
size="medium" style="width: 100px;background-color: #6F8294;color: #ffffff">取消
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="bayonet_add" :loading="bayonet_loading.addLoading"
|
|
|
size="medium" style="width: 100px">保存
|
|
|
<el-button @click="bayonet_add" :loading="bayonet_loading.addLoading"
|
|
|
type="primary" size="medium" style="width: 100px">保存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
...
|
...
|
@@ -136,12 +138,12 @@ |
|
|
<div>
|
|
|
<el-dialog title="卡口修改:"
|
|
|
:visible.sync="bayonet_dialog.editDialog"
|
|
|
style="margin-top: -80px" text-align="center" width="60%"
|
|
|
text-align="center" width="50%"
|
|
|
@close="bayonet_editDialogClosed">
|
|
|
<el-form :inline="true" label-width="150px" status-icon style="margin-top: -10px;" align="center"
|
|
|
:model="bayonet_editForm" :rules="bayonet_editFormRules" ref="bayonet_editFormRef">
|
|
|
<el-form-item label="场站名称:" prop="yardId">
|
|
|
<el-select v-model="bayonet_editForm.yardId" style="width: 300px" clearable size="small"
|
|
|
<el-select v-model="bayonet_editForm.yardId" clearable
|
|
|
placeholder="请选择场站名称">
|
|
|
<el-option
|
|
|
v-for="item in stationNameList"
|
...
|
...
|
@@ -152,17 +154,17 @@ |
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="卡口名称:" prop="name">
|
|
|
<el-input v-model="bayonet_editForm.name" style="width:300px" size="mini" clearable
|
|
|
<el-input v-model="bayonet_editForm.name" clearable
|
|
|
placeholder="请输入卡口名称">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="通道编号:" prop="channel">
|
|
|
<el-input v-model="bayonet_editForm.channel" style="width:300px" size="mini" clearable
|
|
|
<el-input v-model="bayonet_editForm.channel" clearable
|
|
|
placeholder="请输入通道编号">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="卡口类型:" prop="type">
|
|
|
<el-select v-model="bayonet_editForm.type" style="width: 300px" clearable size="small"
|
|
|
<el-select v-model="bayonet_editForm.type" clearable
|
|
|
placeholder="请选择卡口类型">
|
|
|
<el-option
|
|
|
v-for="item in bayonetTypeList"
|
...
|
...
|
@@ -174,17 +176,16 @@ |
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="备注信息:" prop="remarks">
|
|
|
<el-input v-model="bayonet_editForm.remarks" style="width:300px" clearable size="mini"
|
|
|
type="textarea" :rows="5">
|
|
|
<el-input v-model="bayonet_editForm.remarks" clearable
|
|
|
type="textarea" :rows="5" style="width:300px">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: center;margin-top: -30px">
|
|
|
<el-button type="info" @click="bayonet_dialog.editDialog = false" size="medium"
|
|
|
style="width: 100px">取消
|
|
|
<el-button @click="bayonet_dialog.editDialog = false" size="medium" style="width: 100px;background-color: #6F8294;color: #ffffff">取消
|
|
|
</el-button>
|
|
|
<el-button type="primary" @click="bayonet_edit" :loading="bayonet_loading.editLoading"
|
|
|
size="medium" style="width: 100px">保存
|
|
|
<el-button @click="bayonet_edit" :loading="bayonet_loading.editLoading"
|
|
|
type="primary" size="medium" style="width: 100px">保存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
...
|
...
|
@@ -505,4 +506,4 @@ |
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
</style> |
|
|
\ No newline at end of file |
|
|
</style> |
...
|
...
|
|