This commit is contained in:
Zxuyoubin 2024-03-25 16:37:18 +08:00
commit 34059f3d6b
6 changed files with 1710 additions and 23 deletions

View File

@ -33,14 +33,14 @@
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<el-form-item label="组织者" prop="heightInfo">
<el-input
v-model="queryParams.heightInfo"
placeholder="请输入组织者"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="组织者" prop="heightInfo">-->
<!-- <el-input-->
<!-- v-model="queryParams.heightInfo"-->
<!-- placeholder="请输入组织者"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="角度" prop="angle">-->
<!-- <el-input-->
<!-- v-model="queryParams.angle"-->
@ -134,7 +134,7 @@
<el-table v-loading="loading" :data="dockList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="会议标题" align="center" prop="productName" width="160"/>
<el-table-column label="会议标题" align="center" prop="productName" width="130"/>
<el-table-column label="会议描述" align="center" prop="batchInfo" />
<el-table-column label="开始时间" align="center" prop="lengthInfo" width="160">
<template slot-scope="scope">
@ -146,27 +146,27 @@
<span>{{ parseTime(scope.row.wideInfo, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="会议地点" align="center" prop="angle" width="140"/>
<el-table-column label="组织者" align="center" prop="heightInfo" width="120"/>
<el-table-column label="会议地点" align="center" prop="angle"/>
<!-- <el-table-column label="组织者" align="center" prop="heightInfo" width="120"/>-->
<!-- <el-table-column label="要求" align="center" prop="standards" />-->
<!-- <el-table-column label="加入时间" align="center" prop="detectTime" width="160">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ parseTime(scope.row.detectTime, '{y}-{m}-{d}') }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="链接地址" align="center" prop="remark" width="140"/>
<el-table-column label="链接地址" align="center" prop="remark" width="160"/>
<el-table-column label="会议状态" align="center" prop="detectResult" width="110">
<template slot-scope="scope">
<dict-tag :options="dict.type.rescue_meeting_status" :value="scope.row.detectResult"/>
</template>
</el-table-column>
<el-table-column label="会议录像" align="center" prop="imageInfo" width="100">
<el-table-column label="会议录像" align="center" prop="imageInfo" width="160">
<template slot-scope="scope">
<image-preview :src="scope.row.imageInfo" :width="50" :height="50"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right">
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="140">
<template slot-scope="scope">
<el-button
size="mini"
@ -224,9 +224,9 @@
<el-form-item label="会议地点" prop="angle">
<el-input v-model="form.angle" placeholder="请输入会议地点" />
</el-form-item>
<el-form-item label="组织者" prop="heightInfo">
<el-input v-model="form.heightInfo" placeholder="请输入组织者" />
</el-form-item>
<!-- <el-form-item label="组织者" prop="heightInfo">-->
<!-- <el-input v-model="form.heightInfo" placeholder="请输入组织者" />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="加入时间" prop="detectTime">-->
<!-- <el-date-picker clearable-->
<!-- style="width: 100%;"-->
@ -239,9 +239,6 @@
<el-form-item label="链接地址" prop="remark">
<el-input v-model="form.remark" placeholder="请输入会议链接地址" />
</el-form-item>
<el-form-item label="会议录像" prop="imageInfo">
<image-upload v-model="form.imageInfo"/>
</el-form-item>
<el-form-item label="会议状态" prop="detectResult">
<el-select v-model="queryParams.detectResult" placeholder="请选择当前会议状态" clearable style="width: 100%">
<el-option
@ -252,17 +249,32 @@
/>
</el-select>
</el-form-item>
<el-form-item label="会议录像" prop="imageInfo">
<file-upload v-model="form.imageInfo" :file-type="type" :file-size="500"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<el-dialog title :visible="isShow" width="600px" @close="closeDialog" class="videoBox">
<video
:src="videoUrl"
controls
autoplay
class="video"
width="100%"
></video>
</el-dialog>
</div>
</template>
<script>
import { listDock, getDock, delDock, addDock, updateDock } from "@/api/qcfgjManage/dock";
import {getToken} from "@/utils/auth";
import request from "@/utils/request";
export default {
//
@ -290,6 +302,7 @@ export default {
open: false,
//
daterangeDetectTime: [],
type: ['mp4'],
//
queryParams: {
pageNum: 1,
@ -376,7 +389,7 @@ export default {
handleAdd() {
this.reset();
this.open = true;
this.title = "添加指挥体系管理对接数据";
this.title = "添加会议管理对接数据";
this.form.dataType = "会议管理功能";
},
/** 修改按钮操作 */
@ -386,7 +399,7 @@ export default {
getDock(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改指挥体系管理对接数据";
this.title = "修改会议管理对接数据";
});
},
/** 提交按钮 */
@ -412,7 +425,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除所选的指挥体系管理对接数据项?').then(function() {
this.$modal.confirm('是否确认删除所选的会议管理对接数据项?').then(function() {
return delDock(ids);
}).then(() => {
this.getList();

View File

@ -0,0 +1,328 @@
<template>
<div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">-->
<!--&lt;!&ndash; <el-form-item label="系统名称" prop="reserveTwo">&ndash;&gt;-->
<!--&lt;!&ndash; <el-input&ndash;&gt;-->
<!--&lt;!&ndash; v-model="queryParams.reserveTwo"&ndash;&gt;-->
<!--&lt;!&ndash; placeholder="请输入监控频率"&ndash;&gt;-->
<!--&lt;!&ndash; clearable&ndash;&gt;-->
<!--&lt;!&ndash; @keyup.enter.native="handleQuery"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash; <el-form-item label="系统类型" prop="reserveThree">&ndash;&gt;-->
<!--&lt;!&ndash; <el-input&ndash;&gt;-->
<!--&lt;!&ndash; v-model="queryParams.reserveThree"&ndash;&gt;-->
<!--&lt;!&ndash; placeholder="请输入系统类型"&ndash;&gt;-->
<!--&lt;!&ndash; clearable&ndash;&gt;-->
<!--&lt;!&ndash; @keyup.enter.native="handleQuery"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!-- <el-form-item>-->
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出
</el-button>
</el-col>
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
</el-row>
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="监控时间" align="center" prop="reserveTwo">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveTwo, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="站点" align="center" prop="reserveThree"/>
<el-table-column label="终端设备" align="center" prop="reserveFour"/>
<el-table-column label="卫星波束" align="center" prop="reserveFive"/>
<el-table-column label="节点工作状态" align="center" prop="reserveSix"/>
<el-table-column label="前向载波" align="center" prop="reserveSeven"/>
<el-table-column label="在网状态" align="center" prop="reserveEight"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="监控时间" prop="reserveTwo">
<el-date-picker
v-model="form.reserveTwo"
type="datetime"
placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss ">
</el-date-picker>
</el-form-item>
<el-form-item label="站点" prop="reserveThree">
<el-input v-model="form.reserveThree" placeholder="请输入站点"/>
</el-form-item>
<el-form-item label="终端设备" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入终端设备"/>
</el-form-item>
<el-form-item label="卫星波束" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入卫星波束"/>
</el-form-item>
<el-form-item label="节点工作状态" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入节点工作状态"/>
</el-form-item>
<el-form-item label="前向载波" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入前向载波"/>
</el-form-item>
<el-form-item label="在网状态" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入在网状态"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listGodUniversalElectricMeter,
getGodUniversalElectricMeter,
delGodUniversalElectricMeter,
addGodUniversalElectricMeter,
updateGodUniversalElectricMeter
} from "@/api/aiRecognition/godUniversalElectricMeter";
export default {
name: "GodUniversalElectricMeter",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// AI
godUniversalElectricMeterList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'bandwidthResources',
},
//
form: {},
//
rules: {}
};
},
created() {
this.getList();
},
methods: {
/** 查询AI识别算法开发列表 */
getList() {
this.loading = true;
listGodUniversalElectricMeter(this.queryParams).then(response => {
this.godUniversalElectricMeterList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'bandwidthResources',
remark: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加基带";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getGodUniversalElectricMeter(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改基带";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除基带管理编号为"' + ids + '"的数据项?').then(function () {
return delGodUniversalElectricMeter(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {
this.download('aiRecognition/godUniversalElectricMeter/export', {
...this.queryParams
}, `godUniversalElectricMeter_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,329 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="灾害类型" prop="reserveTwo">
<el-input
v-model="queryParams.reserveTwo"
placeholder="请输入灾害类型"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="灾害地点" prop="reserveThree">
<el-input
v-model="queryParams.reserveThree"
placeholder="请输入灾害地点"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="灾害类型" align="center" prop="reserveTwo"/>
<el-table-column label="灾害地点" align="center" prop="reserveThree"/>
<el-table-column label="灾害时间" align="center" prop="reserveFour">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveFour, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="发生前特征" align="center" prop="reserveFive" :show-overflow-tooltip="true"/>
<el-table-column label="发生中特征" align="center" prop="reserveSix" :show-overflow-tooltip="true"/>
<el-table-column label="结束后特征" align="center" prop="reserveSeven" :show-overflow-tooltip="true"/>
<el-table-column label="其他相关信息" align="center" prop="reserveEight" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="灾害类型" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入灾害类型"/>
</el-form-item>
<el-form-item label="灾害地点" prop="reserveThree">
<el-input v-model="form.reserveThree" placeholder="请输入灾害地点"/>
</el-form-item>
<el-form-item label="灾害时间" prop="reserveFour">
<el-date-picker
v-model="form.reserveFour"
type="datetime"
placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss ">
</el-date-picker>
</el-form-item>
<el-form-item label="发生前特征" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入发生前特征"/>
</el-form-item>
<el-form-item label="发生中特征" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入发生中特征"/>
</el-form-item>
<el-form-item label="结束后特征" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入结束后特征"/>
</el-form-item>
<el-form-item label="其他相关信息" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入其他相关信息"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listGodUniversalElectricMeter,
getGodUniversalElectricMeter,
delGodUniversalElectricMeter,
addGodUniversalElectricMeter,
updateGodUniversalElectricMeter
} from "@/api/aiRecognition/godUniversalElectricMeter";
export default {
name: "GodUniversalElectricMeter",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// AI
godUniversalElectricMeterList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'disaster',
},
//
form: {},
//
rules: {}
};
},
created() {
this.getList();
},
methods: {
/** 查询AI识别算法开发列表 */
getList() {
this.loading = true;
listGodUniversalElectricMeter(this.queryParams).then(response => {
this.godUniversalElectricMeterList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'disaster',
remark: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加灾害类型";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getGodUniversalElectricMeter(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改灾害类型";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除灾害类型为"' + ids + '"的数据项?').then(function () {
return delGodUniversalElectricMeter(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {
this.download('aiRecognition/godUniversalElectricMeter/export', {
...this.queryParams
}, `godUniversalElectricMeter_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,341 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="系统名称" prop="reserveTwo">
<el-input
v-model="queryParams.reserveTwo"
placeholder="请输入系统名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="系统类型" prop="reserveThree">
<el-input
v-model="queryParams.reserveThree"
placeholder="请输入系统类型"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange" height="calc(100vh - 270px)">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="通信系统" align="center" prop="reserveOne" show-overflow-tooltip="true"/>
<el-table-column label="系统名称" align="center" prop="reserveTwo"/>
<el-table-column label="系统类型" align="center" prop="reserveThree"/>
<!-- <el-table-column label="简要描述" align="center" prop="reserveThree">-->
<!-- <template slot-scope="scope">-->
<!-- <image-preview :src="scope.row.reserveThree" :width="50" :height="50"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="接口地址" align="center" prop="reserveFour"/>
<el-table-column label="端口号" align="center" prop="reserveFive"/>
<el-table-column label="通信协议" align="center" prop="reserveSix"/>
<el-table-column label="接口类型" align="center" prop="reserveSeven"/>
<el-table-column label="集成状态" align="center" prop="reserveEight"/>
<el-table-column label="更新时间" align="center" prop="reserveNine">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveNine, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<!-- <el-form-item label="通信系统" prop="reserveOne">-->
<!-- <el-input v-model="form.reserveOne" placeholder="请输入通信系统"/>-->
<!-- </el-form-item>-->
<el-form-item label="系统名称" prop="reserveTwo">
<el-input v-model="form.reserveTwo" placeholder="请输入系统名称"/>
</el-form-item>
<el-form-item label="系统类型" prop="reserveThree">
<el-input v-model="form.reserveThree" placeholder="请输入系统类型"/>
</el-form-item>
<el-form-item label="接口地址" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入接口地址"/>
</el-form-item>
<el-form-item label="端口号" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入端口号"/>
</el-form-item>
<el-form-item label="通信协议" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入通信协议"/>
</el-form-item>
<el-form-item label="接口类型" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入接口类型"/>
</el-form-item>
<el-form-item label="集成状态" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入集成状态"/>
</el-form-item>
<el-form-item label="更新时间" prop="reserveNine">
<el-date-picker
v-model="form.reserveNine"
type="datetime"
placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss ">
</el-date-picker>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listGodUniversalElectricMeter,
getGodUniversalElectricMeter,
delGodUniversalElectricMeter,
addGodUniversalElectricMeter,
updateGodUniversalElectricMeter
} from "@/api/aiRecognition/godUniversalElectricMeter";
export default {
name: "GodUniversalElectricMeter",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// AI
godUniversalElectricMeterList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'dispatchingPlatform',
},
//
form: {},
//
rules: {}
};
},
created() {
this.getList();
},
methods: {
/** 查询AI识别算法开发列表 */
getList() {
this.loading = true;
listGodUniversalElectricMeter(this.queryParams).then(response => {
this.godUniversalElectricMeterList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'dispatchingPlatform',
remark: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加通信系统";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getGodUniversalElectricMeter(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改通信系统";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除通信系统编号为"' + ids + '"的数据项?').then(function () {
return delGodUniversalElectricMeter(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {
this.download('aiRecognition/godUniversalElectricMeter/export', {
...this.queryParams
}, `godUniversalElectricMeter_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,336 @@
<template>
<div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">-->
<!--&lt;!&ndash; <el-form-item label="系统名称" prop="reserveTwo">&ndash;&gt;-->
<!--&lt;!&ndash; <el-input&ndash;&gt;-->
<!--&lt;!&ndash; v-model="queryParams.reserveTwo"&ndash;&gt;-->
<!--&lt;!&ndash; placeholder="请输入监控频率"&ndash;&gt;-->
<!--&lt;!&ndash; clearable&ndash;&gt;-->
<!--&lt;!&ndash; @keyup.enter.native="handleQuery"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash; <el-form-item label="系统类型" prop="reserveThree">&ndash;&gt;-->
<!--&lt;!&ndash; <el-input&ndash;&gt;-->
<!--&lt;!&ndash; v-model="queryParams.reserveThree"&ndash;&gt;-->
<!--&lt;!&ndash; placeholder="请输入系统类型"&ndash;&gt;-->
<!--&lt;!&ndash; clearable&ndash;&gt;-->
<!--&lt;!&ndash; @keyup.enter.native="handleQuery"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!-- <el-form-item>-->
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出
</el-button>
</el-col>
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
</el-row>
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="监控时间" align="center" prop="reserveTwo">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveTwo, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="关口站" align="center" prop="reserveThree"/>
<el-table-column label="前向载波" align="center" prop="reserveFour"/>
<el-table-column label="回程载波" align="center" prop="reserveFive"/>
<el-table-column label="功率级别" align="center" prop="reserveSix"/>
<el-table-column label="监测状态" align="center" prop="reserveSeven"/>
<el-table-column label="控制状态" align="center" prop="reserveEight"/>
<el-table-column label="相位噪声" align="center" prop="reserveNine"/>
<el-table-column label="其他信息" align="center" prop="reserveTen"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="监控时间" prop="reserveTwo">
<el-date-picker
v-model="form.reserveTwo"
type="datetime"
placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss ">
</el-date-picker>
</el-form-item>
<el-form-item label="关口站" prop="reserveThree">
<el-input v-model="form.reserveThree" placeholder="请输入关口站"/>
</el-form-item>
<el-form-item label="前向载波" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入前向载波"/>
</el-form-item>
<el-form-item label="回程载波" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入回程载波"/>
</el-form-item>
<el-form-item label="功率级别" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入功率级别"/>
</el-form-item>
<el-form-item label="监测状态" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入监测状态"/>
</el-form-item>
<el-form-item label="控制状态" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入控制状态"/>
</el-form-item>
<el-form-item label="相位噪声" prop="reserveNine">
<el-input v-model="form.reserveNine" placeholder="请输入相位噪声"/>
</el-form-item>
<el-form-item label="其他信息" prop="reserveTen">
<el-input v-model="form.reserveTen" placeholder="请输入其他信息"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listGodUniversalElectricMeter,
getGodUniversalElectricMeter,
delGodUniversalElectricMeter,
addGodUniversalElectricMeter,
updateGodUniversalElectricMeter
} from "@/api/aiRecognition/godUniversalElectricMeter";
export default {
name: "GodUniversalElectricMeter",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// AI
godUniversalElectricMeterList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'guarantee',
},
//
form: {},
//
rules: {}
};
},
created() {
this.getList();
},
methods: {
/** 查询AI识别算法开发列表 */
getList() {
this.loading = true;
listGodUniversalElectricMeter(this.queryParams).then(response => {
this.godUniversalElectricMeterList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'guarantee',
remark: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加射频系统监控";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getGodUniversalElectricMeter(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改射频系统监控";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除射频系统监控编号为"' + ids + '"的数据项?').then(function () {
return delGodUniversalElectricMeter(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {
this.download('aiRecognition/godUniversalElectricMeter/export', {
...this.queryParams
}, `godUniversalElectricMeter_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -0,0 +1,340 @@
<template>
<div class="app-container">
<!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">-->
<!--&lt;!&ndash; <el-form-item label="系统名称" prop="reserveTwo">&ndash;&gt;-->
<!--&lt;!&ndash; <el-input&ndash;&gt;-->
<!--&lt;!&ndash; v-model="queryParams.reserveTwo"&ndash;&gt;-->
<!--&lt;!&ndash; placeholder="请输入监控频率"&ndash;&gt;-->
<!--&lt;!&ndash; clearable&ndash;&gt;-->
<!--&lt;!&ndash; @keyup.enter.native="handleQuery"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!--&lt;!&ndash; <el-form-item label="系统类型" prop="reserveThree">&ndash;&gt;-->
<!--&lt;!&ndash; <el-input&ndash;&gt;-->
<!--&lt;!&ndash; v-model="queryParams.reserveThree"&ndash;&gt;-->
<!--&lt;!&ndash; placeholder="请输入系统类型"&ndash;&gt;-->
<!--&lt;!&ndash; clearable&ndash;&gt;-->
<!--&lt;!&ndash; @keyup.enter.native="handleQuery"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!--&lt;!&ndash; </el-form-item>&ndash;&gt;-->
<!-- <el-form-item>-->
<!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出
</el-button>
</el-col>
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
</el-row>
<el-table v-loading="loading" :data="godUniversalElectricMeterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="监控时间" align="center" prop="reserveTwo">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.reserveTwo, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
</el-table-column>
<el-table-column label="监控频率" align="center" prop="reserveThree"/>
<el-table-column label="上行链路" align="center" prop="reserveFour"/>
<el-table-column label="下行链路" align="center" prop="reserveFive"/>
<el-table-column label="Marker" align="center" prop="reserveSix"/>
<el-table-column label="电平" align="center" prop="reserveSeven"/>
<el-table-column label="频谱扫描范围" align="center" prop="reserveEight"/>
<el-table-column label="相位噪声" align="center" prop="reserveNine"/>
<el-table-column label="RW" align="center" prop="reserveTen"/>
<el-table-column label="VBW" align="center" prop="reserveEleven"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改AI识别算法开发对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="监控时间" prop="reserveTwo">
<el-date-picker
v-model="form.reserveTwo"
type="datetime"
placeholder="请选择时间"
format="yyyy-MM-dd HH:mm:ss ">
</el-date-picker>
</el-form-item>
<el-form-item label="监控频率" prop="reserveThree">
<el-input v-model="form.reserveThree" placeholder="请输入监控频率"/>
</el-form-item>
<el-form-item label="上行链路" prop="reserveFour">
<el-input v-model="form.reserveFour" placeholder="请输入上行链路"/>
</el-form-item>
<el-form-item label="下行链路" prop="reserveFive">
<el-input v-model="form.reserveFive" placeholder="请输入下行链路"/>
</el-form-item>
<el-form-item label="Marker" prop="reserveSix">
<el-input v-model="form.reserveSix" placeholder="请输入Marker"/>
</el-form-item>
<el-form-item label="电平" prop="reserveSeven">
<el-input v-model="form.reserveSeven" placeholder="请输入电平"/>
</el-form-item>
<el-form-item label="频谱扫描范围" prop="reserveEight">
<el-input v-model="form.reserveEight" placeholder="请输入频谱扫描范围"/>
</el-form-item>
<el-form-item label="相位噪声" prop="reserveNine">
<el-input v-model="form.reserveNine" placeholder="请输入相位噪声"/>
</el-form-item>
<el-form-item label="RW" prop="reserveTen">
<el-input v-model="form.reserveTen" placeholder="请输入RW"/>
</el-form-item>
<el-form-item label="VBW" prop="reserveEleven">
<el-input v-model="form.reserveEleven" placeholder="请输入VBW"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import {
listGodUniversalElectricMeter,
getGodUniversalElectricMeter,
delGodUniversalElectricMeter,
addGodUniversalElectricMeter,
updateGodUniversalElectricMeter
} from "@/api/aiRecognition/godUniversalElectricMeter";
export default {
name: "GodUniversalElectricMeter",
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// AI
godUniversalElectricMeterList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'managementPlatform',
},
//
form: {},
//
rules: {}
};
},
created() {
this.getList();
},
methods: {
/** 查询AI识别算法开发列表 */
getList() {
this.loading = true;
listGodUniversalElectricMeter(this.queryParams).then(response => {
this.godUniversalElectricMeterList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
reserveOne: null,
reserveTwo: null,
reserveThree: null,
reserveFour: null,
reserveFive: null,
reserveSix: null,
reserveSeven: null,
reserveEight: null,
reserveNine: null,
reserveTen: null,
reserveEleven: null,
reserveTwelve: null,
reserveThirteen: null,
reserveFourteen: null,
sysType: null,
moduleType: 'managementPlatform',
remark: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length !== 1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加无线频谱监控";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getGodUniversalElectricMeter(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改无线频谱监控";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addGodUniversalElectricMeter(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除无线频谱监控编号为"' + ids + '"的数据项?').then(function () {
return delGodUniversalElectricMeter(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {
this.download('aiRecognition/godUniversalElectricMeter/export', {
...this.queryParams
}, `godUniversalElectricMeter_${new Date().getTime()}.xlsx`)
}
}
};
</script>