|
@@ -10,7 +10,7 @@
|
|
|
<el-icon
|
|
<el-icon
|
|
|
size="large"
|
|
size="large"
|
|
|
color="#008000"
|
|
color="#008000"
|
|
|
- @click="openRegion('创建区域', '')"
|
|
|
|
|
|
|
+ @click="openRegion($t.value.createArea, '')"
|
|
|
>
|
|
>
|
|
|
<Plus />
|
|
<Plus />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
@@ -36,7 +36,7 @@
|
|
|
<div style="display: flex;justify-content: space-between; align-items: center;width: 100%">
|
|
<div style="display: flex;justify-content: space-between; align-items: center;width: 100%">
|
|
|
<span>{{ item.lot_name }}}</span>
|
|
<span>{{ item.lot_name }}}</span>
|
|
|
<div>
|
|
<div>
|
|
|
- <el-icon @click.stop="openRegion('编辑区域', item)">
|
|
|
|
|
|
|
+ <el-icon @click.stop="openRegion($t.value.editArea, item)">
|
|
|
<edit />
|
|
<edit />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
<el-icon @click.stop="deleteRegion(item.ID)">
|
|
<el-icon @click.stop="deleteRegion(item.ID)">
|
|
@@ -67,7 +67,7 @@
|
|
|
icon="Plus"
|
|
icon="Plus"
|
|
|
text
|
|
text
|
|
|
type="success"
|
|
type="success"
|
|
|
- @click="openPosition('岗亭新增','')"
|
|
|
|
|
|
|
+ @click="openPosition($t.value.GuardAdd,'')"
|
|
|
>
|
|
>
|
|
|
{{ $t.value.new }}
|
|
{{ $t.value.new }}
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -119,7 +119,7 @@
|
|
|
text
|
|
text
|
|
|
type="primary"
|
|
type="primary"
|
|
|
icon="edit"
|
|
icon="edit"
|
|
|
- @click="openPosition('岗亭编辑', scope.row)"
|
|
|
|
|
|
|
+ @click="openPosition($t.value.GuardEdit, scope.row)"
|
|
|
>
|
|
>
|
|
|
{{ $t.value.modify }}
|
|
{{ $t.value.modify }}
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -157,7 +157,7 @@
|
|
|
icon="Plus"
|
|
icon="Plus"
|
|
|
text
|
|
text
|
|
|
type="success"
|
|
type="success"
|
|
|
- @click="openChannel('通道新增','')"
|
|
|
|
|
|
|
+ @click="openChannel($t.value.addPassage,'')"
|
|
|
>{{ $t.value.new }}
|
|
>{{ $t.value.new }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -224,7 +224,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
icon="edit"
|
|
icon="edit"
|
|
|
text
|
|
text
|
|
|
- @click="openChannel('通道编辑', scope.row)"
|
|
|
|
|
|
|
+ @click="openChannel($t.value.editPassage, scope.row)"
|
|
|
>{{ $t.value.modify }}
|
|
>{{ $t.value.modify }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
@@ -259,7 +259,7 @@
|
|
|
icon="Plus"
|
|
icon="Plus"
|
|
|
text
|
|
text
|
|
|
type="success"
|
|
type="success"
|
|
|
- @click="openDevice('新增设备','')"
|
|
|
|
|
|
|
+ @click="openDevice($t.value.addDevice,'')"
|
|
|
>{{ $t.value.new }}
|
|
>{{ $t.value.new }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -338,7 +338,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
icon="edit"
|
|
icon="edit"
|
|
|
text
|
|
text
|
|
|
- @click="openDevice('编辑设备', scope.row)"
|
|
|
|
|
|
|
+ @click="openDevice($t.value.editDevice, scope.row)"
|
|
|
>{{ $t.value.modify }}
|
|
>{{ $t.value.modify }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
@@ -600,20 +600,20 @@
|
|
|
:title="regionTitle"
|
|
:title="regionTitle"
|
|
|
width="500"
|
|
width="500"
|
|
|
>
|
|
>
|
|
|
- <el-form label-width="90">
|
|
|
|
|
- <el-form-item label="区域编码:">
|
|
|
|
|
|
|
+ <el-form label-width="120">
|
|
|
|
|
+ <el-form-item :label="$t.value.Area_Code + ':'">
|
|
|
<el-input v-model="regionData.lot_code" />
|
|
<el-input v-model="regionData.lot_code" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="区域名称:">
|
|
|
|
|
|
|
+ <el-form-item :label="$t.value.areaName + ':'">
|
|
|
<el-input v-model="regionData.lot_name" />
|
|
<el-input v-model="regionData.lot_name" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="区域容量:">
|
|
|
|
|
|
|
+ <el-form-item :label="$t.value.areaCapacity + ':'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="regionData.capacity"
|
|
v-model="regionData.capacity"
|
|
|
type="number"
|
|
type="number"
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="备注:">
|
|
|
|
|
|
|
+ <el-form-item :label="$t.value.Remarks + ':'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="regionData.description"
|
|
v-model="regionData.description"
|
|
|
type="textarea"
|
|
type="textarea"
|
|
@@ -660,7 +660,7 @@ const handleClick = () => {
|
|
|
}
|
|
}
|
|
|
const positionShow = ref(false)
|
|
const positionShow = ref(false)
|
|
|
|
|
|
|
|
-const positionTitle = ref('岗亭新增')
|
|
|
|
|
|
|
+const positionTitle = ref(t.value.GuardAdd)
|
|
|
// 岗亭数据.......................................
|
|
// 岗亭数据.......................................
|
|
|
const positionRegionName = ref('')
|
|
const positionRegionName = ref('')
|
|
|
const positionData = reactive({
|
|
const positionData = reactive({
|
|
@@ -675,7 +675,7 @@ const guardTotal = ref(0)
|
|
|
|
|
|
|
|
const positionList = reactive([])
|
|
const positionList = reactive([])
|
|
|
const addPosition = () => {
|
|
const addPosition = () => {
|
|
|
- if (positionTitle.value === '岗亭新增') {
|
|
|
|
|
|
|
+ if (positionTitle.value === t.value.GuardAdd) {
|
|
|
if (positionData.parking_lot_id === 0) {
|
|
if (positionData.parking_lot_id === 0) {
|
|
|
ElMessage.error('请选择停车区域')
|
|
ElMessage.error('请选择停车区域')
|
|
|
return
|
|
return
|
|
@@ -721,7 +721,7 @@ const changePositionRegion = (val) => {
|
|
|
const openPosition = (head, data) => {
|
|
const openPosition = (head, data) => {
|
|
|
positionTitle.value = head
|
|
positionTitle.value = head
|
|
|
positionShow.value = true
|
|
positionShow.value = true
|
|
|
- if (head === '岗亭编辑') {
|
|
|
|
|
|
|
+ if (head === t.value.GuardEdit) {
|
|
|
positionData.id = data.ID
|
|
positionData.id = data.ID
|
|
|
positionData.booth_code = data.booth_code
|
|
positionData.booth_code = data.booth_code
|
|
|
positionData.booth_name = data.booth_name
|
|
positionData.booth_name = data.booth_name
|
|
@@ -827,7 +827,7 @@ const channelData = reactive({
|
|
|
booth_id: 0,
|
|
booth_id: 0,
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-const channelTitle = ref('通道新增')
|
|
|
|
|
|
|
+const channelTitle = ref(t.value.addPassage)
|
|
|
|
|
|
|
|
const channelList = reactive([])
|
|
const channelList = reactive([])
|
|
|
|
|
|
|
@@ -842,7 +842,7 @@ const channelTotal = ref(0)
|
|
|
const openChannel = (head, data) => {
|
|
const openChannel = (head, data) => {
|
|
|
channelTitle.value = head
|
|
channelTitle.value = head
|
|
|
channelShow.value = true
|
|
channelShow.value = true
|
|
|
- if (head === '通道编辑') {
|
|
|
|
|
|
|
+ if (head === t.value.editPassage) {
|
|
|
channelData.id = data.ID
|
|
channelData.id = data.ID
|
|
|
channelData.channel_code = data.channel_code
|
|
channelData.channel_code = data.channel_code
|
|
|
channelData.channel_name = data.channel_name
|
|
channelData.channel_name = data.channel_name
|
|
@@ -866,7 +866,7 @@ const openChannel = (head, data) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
const channelOperation = () => {
|
|
const channelOperation = () => {
|
|
|
- if (channelTitle.value === '通道新增') {
|
|
|
|
|
|
|
+ if (channelTitle.value === t.value.addPassage) {
|
|
|
if (channelData.booth_id === 0) {
|
|
if (channelData.booth_id === 0) {
|
|
|
ElMessage.error('请选择岗亭')
|
|
ElMessage.error('请选择岗亭')
|
|
|
return
|
|
return
|
|
@@ -876,7 +876,6 @@ const channelOperation = () => {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
addChannel(channelData).then(res => {
|
|
addChannel(channelData).then(res => {
|
|
|
- console.log('添加通道操作', res.data)
|
|
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
ElMessage.success('添加成功')
|
|
ElMessage.success('添加成功')
|
|
|
channelShow.value = false
|
|
channelShow.value = false
|
|
@@ -979,7 +978,7 @@ const deviceShow = ref(false)
|
|
|
const openDevice = (head, data) => {
|
|
const openDevice = (head, data) => {
|
|
|
deviceTitle.value = head
|
|
deviceTitle.value = head
|
|
|
deviceShow.value = true
|
|
deviceShow.value = true
|
|
|
- if (head === '编辑设备') {
|
|
|
|
|
|
|
+ if (head === t.value.editDevice) {
|
|
|
deviceData.id = data.ID
|
|
deviceData.id = data.ID
|
|
|
deviceData.device_code = data.device_code
|
|
deviceData.device_code = data.device_code
|
|
|
deviceData.device_name = data.device_name
|
|
deviceData.device_name = data.device_name
|
|
@@ -1014,7 +1013,7 @@ const openDevice = (head, data) => {
|
|
|
const deviceOperation = async() => {
|
|
const deviceOperation = async() => {
|
|
|
deviceData.baud_rate = Number(deviceData.baud_rate)
|
|
deviceData.baud_rate = Number(deviceData.baud_rate)
|
|
|
deviceData.port = Number(deviceData.port)
|
|
deviceData.port = Number(deviceData.port)
|
|
|
- if (deviceTitle.value === '新增设备') {
|
|
|
|
|
|
|
+ if (deviceTitle.value === t.value.addDevice) {
|
|
|
await addDevice(deviceData).then(res => {
|
|
await addDevice(deviceData).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
ElMessage.success('添加成功')
|
|
ElMessage.success('添加成功')
|
|
@@ -1144,11 +1143,11 @@ const regionData = reactive({
|
|
|
description: ''
|
|
description: ''
|
|
|
})
|
|
})
|
|
|
const regionShow = ref(false)
|
|
const regionShow = ref(false)
|
|
|
-const regionTitle = ref('创建区域')
|
|
|
|
|
|
|
+const regionTitle = ref(t.value.createArea)
|
|
|
const openRegion = (head, data) => {
|
|
const openRegion = (head, data) => {
|
|
|
regionTitle.value = head
|
|
regionTitle.value = head
|
|
|
regionShow.value = true
|
|
regionShow.value = true
|
|
|
- if (head === '编辑区域') {
|
|
|
|
|
|
|
+ if (head === t.value.editArea) {
|
|
|
regionData.id = data.ID
|
|
regionData.id = data.ID
|
|
|
regionData.lot_code = data.lot_code
|
|
regionData.lot_code = data.lot_code
|
|
|
regionData.lot_name = data.lot_name
|
|
regionData.lot_name = data.lot_name
|
|
@@ -1162,7 +1161,7 @@ const openRegion = (head, data) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
const regionOperation = async() => {
|
|
const regionOperation = async() => {
|
|
|
- if (regionTitle.value === '创建区域') {
|
|
|
|
|
|
|
+ if (regionTitle.value === t.value.createArea) {
|
|
|
regionData.capacity = Number(regionData.capacity)
|
|
regionData.capacity = Number(regionData.capacity)
|
|
|
await addPullOver(regionData).then(res => {
|
|
await addPullOver(regionData).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|