<template>
|
<el-card shadow="never" class="aui-card--fill">
|
<div class="mod-hik-device">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form-item>
|
<el-input v-model="dataForm.location" :placeholder="$t('hikDevice.location')" clearable></el-input>
|
</el-form-item>
|
<el-form-item>
|
<el-input v-model="dataForm.ipAddress" :placeholder="$t('hikDevice.ipAddress')" clearable></el-input>
|
</el-form-item>
|
<el-form-item>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
</el-form-item>
|
<el-form-item>
|
<el-button v-if="$hasPermission('hikvision:device:save')" type="primary" @click="openForm()">{{
|
$t('add') }}
|
</el-button>
|
</el-form-item>
|
<el-form-item>
|
<el-button>
|
<a href="/hikvision/WebSDK_V3.3.0(231027)/demo/codebase/HCWebSDKPlugin.exe" download="HCWebSDKPlugin.exe">
|
下载插件
|
</a>
|
</el-button>
|
</el-form-item>
|
</el-form>
|
<el-table
|
id="listTable"
|
v-loading="dataListLoading"
|
:data="dataList"
|
border
|
style="width: 100%;">
|
<el-table-column type="index" header-align="center" align="center" width="50" label="序号"></el-table-column>
|
<el-table-column prop="codeNum" header-align="center" align="center" :label="$t('hikDevice.codeNum')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="deviceType" header-align="center" align="left" :label="$t('hikDevice.deviceType')"
|
min-width="200"></el-table-column>
|
<el-table-column prop="activationStatus" header-align="center" align="center"
|
:label="$t('hikDevice.activationStatus')" min-width="100"></el-table-column>
|
<el-table-column prop="location" header-align="center" align="left" :label="$t('hikDevice.location')"
|
min-width="200"></el-table-column>
|
<el-table-column prop="ability" header-align="center" align="left" :label="$t('hikDevice.ability')"
|
min-width="200"></el-table-column>
|
<el-table-column prop="ipAddress" header-align="center" align="center" :label="$t('hikDevice.ipAddress')"
|
min-width="150"></el-table-column>
|
<el-table-column prop="port" header-align="center" align="center" :label="$t('hikDevice.port')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="enhancementPort" header-align="center" align="center"
|
:label="$t('hikDevice.enhancementPort')" min-width="100"></el-table-column>
|
<el-table-column prop="softwareVersion" header-align="center" align="center"
|
:label="$t('hikDevice.softwareVersion')" min-width="100"></el-table-column>
|
<el-table-column prop="ipv4Gateway" header-align="center" align="center" :label="$t('hikDevice.ipv4Gateway')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="httpPort" header-align="center" align="center" :label="$t('hikDevice.httpPort')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="serialNumber" header-align="center" align="center" :label="$t('hikDevice.serialNumber')"
|
min-width="200"></el-table-column>
|
<el-table-column prop="subnetMask" header-align="center" align="center" :label="$t('hikDevice.subnetMask')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="physicalAddress" header-align="center" align="center"
|
:label="$t('hikDevice.physicalAddress')" min-width="100"></el-table-column>
|
<el-table-column prop="channelNumber" header-align="center" align="center"
|
:label="$t('hikDevice.channelNumber')" min-width="100"></el-table-column>
|
<el-table-column prop="dspVersion" header-align="center" align="center" :label="$t('hikDevice.dspVersion')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="menuRoute" header-align="center" align="center" :label="$t('hikDevice.menuRoute')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="sort" header-align="center" align="center" :label="$t('hikDevice.sort')"
|
min-width="100"></el-table-column>
|
<el-table-column prop="isShow" header-align="center" align="center" :label="$t('hikDevice.isShow')"
|
min-width="100">
|
<template slot-scope="scope">
|
<el-tag v-if="scope.row.isShow === '1'" size="small">是</el-tag>
|
<el-tag v-else size="small" type="danger">否</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="100">
|
<template slot-scope="scope">
|
<el-button v-if="$hasPermission('hikvision:device:update')" type="text" size="small"
|
@click="openForm(scope.row.id)">修改
|
</el-button>
|
<el-button v-if="$hasPermission('hikvision:device:delete')" type="text" size="small"
|
@click="handleDelete(scope.row.id)">删除
|
</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
<el-pagination
|
:current-page="page"
|
:page-sizes="[10, 20, 50, 100]"
|
:page-size="limit"
|
:total="total"
|
layout="total, sizes, prev, pager, next, jumper"
|
@size-change="pageSizeChangeHandle"
|
@current-change="pageCurrentChangeHandle">
|
</el-pagination>
|
</div>
|
<!-- 弹窗, 新增 / 修改 -->
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
</el-card>
|
</template>
|
|
<script>
|
import mixinViewModule from '@/mixins/view-module'
|
import AddOrUpdate from './device-add-or-update'
|
|
export default {
|
mixins: [mixinViewModule],
|
data() {
|
return {
|
mixinViewModuleOptions: {
|
getDataListURL: '/iailab-iems-coal-proddisp/hikvision/device/page',
|
getDataListIsPage: true,
|
deleteURL: '/iailab-iems-coal-proddisp/hikvision/device',
|
deleteIsBatch: true,
|
},
|
dataForm: {
|
location: '',
|
ipAddress: '',
|
}
|
}
|
},
|
components: {
|
AddOrUpdate
|
},
|
methods: {}
|
}
|
</script>
|