| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="construction-view"> |
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="NVR" prop="nvrId"> |
| | | <nvr v-model="queryParams.nvrId" :schoolId="schoolId"></nvr> |
| | |
| | | <span>{{ scope.$index + (queryParams.pageNum - 1) * queryParams.pageSize + 1 }} </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="MAC" align="center" prop="mac"/> |
| | | <el-table-column label="IP" align="center" prop="ip"/> |
| | | <el-table-column label="端口" align="center" prop="port"/> |
| | | <el-table-column label="登录账户" align="center" prop="loginAccount"/> |
| | | <el-table-column label="NVR" align="center" prop="nvrId_dictText"/> |
| | | <el-table-column label="MAC" min-width="150" align="center" prop="mac"/> |
| | | <el-table-column label="IP" width="130" align="center" prop="ip"/> |
| | | <el-table-column label="端口" width="80" align="center" prop="port"/> |
| | | <el-table-column label="登录账户" min-width="120" align="center" prop="loginAccount"/> |
| | | <el-table-column label="NVR" align="center" prop="nvrId_dictText"> |
| | | <template slot-scope="scope"> |
| | | <el-link type="primary" @click="nvrClick(scope.row)">{{scope.row.nvrId_dictText}}</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="通道" align="center" prop="passageway_dictText"/> |
| | | <el-table-column label="安装位置" align="center" prop="buildingId_dictText"/> |
| | | <el-table-column label="所属单位" align="center" prop="organizationId_dictText"/> |
| | | <el-table-column label="施工批次" align="center" prop="constructionBatchId_dictText"/> |
| | | <el-table-column label="安装位置" min-width="240" align="center" prop="buildingId_dictText"/> |
| | | <el-table-column label="所属单位" min-width="200" align="center" prop="organizationId_dictText"/> |
| | | <el-table-column label="施工批次" min-width="120" align="center" prop="constructionBatchId_dictText"/> |
| | | <!-- <el-table-column label="序列号" align="center" prop="serialNumber" />--> |
| | | <!-- <el-table-column label="型号" align="center" prop="model" />--> |
| | | <!-- <el-table-column label="生产厂商" align="center" prop="manufacturerId_dictText" />--> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" fixed="right" width="180" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | |
| | | /> |
| | | |
| | | <!-- 添加或修改ipc设备对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="700px" :append-to-body="true" :close-on-click-modal="false" |
| | | <el-dialog :title="title" :visible.sync="open" width="900px" :append-to-body="true" :close-on-click-modal="false" |
| | | :destroy-on-close="true"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px" :disabled="disabled"> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="MAC" prop="mac"> |
| | | <el-input v-model="form.mac" placeholder="请输入MAC"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="IP" prop="ip"> |
| | | <el-input v-model="form.ip" placeholder="请输入IP"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="端口" prop="port"> |
| | | <el-input-number v-model="form.port" controls-position="right" :min="0" :max="65535"/> |
| | | </el-form-item> |
| | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 服务器 --> |
| | | <Dialog title="服务器" :visible.sync="nvrOpen" width="700px" :append-to-body="true" :destroy-on-close="true"> |
| | | <nvr-form v-if="nvrOpen" :nvrId="nvrId"></nvr-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="nvrOpen = false">关 闭</el-button> |
| | | </div> |
| | | </Dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import constructionBatch from "../../components/constructionBatch"; |
| | | import manufacturer from "../../components/manufacturer"; |
| | | import nvr from '../../components/nvr' |
| | | import nvrForm from '../../components/nvr/form' |
| | | |
| | | export default { |
| | | name: "Ipc", |
| | |
| | | organization, |
| | | constructionBatch, |
| | | manufacturer, |
| | | nvr |
| | | nvr, |
| | | nvrForm |
| | | }, |
| | | props: { |
| | | schoolId: { |
| | |
| | | ], |
| | | passageway: [] |
| | | }, |
| | | disabled: false |
| | | disabled: false, |
| | | nvrOpen: false, |
| | | nvrId: undefined |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('oa/ipc/export', { |
| | | ...this.queryParams |
| | | }, `ipc_${new Date().getTime()}.xlsx`) |
| | | nvrClick(row) { |
| | | this.nvrId = row.nvrId; |
| | | this.nvrOpen = true; |
| | | } |
| | | } |
| | | }; |