Merge branch 'main' of http://117.73.11.115:3000/Tony/god-ytr
BIN
god-ui/public/images/zhihui.png
Normal file
After Width: | Height: | Size: 2.6 MiB |
@ -103,6 +103,11 @@ export default {
|
||||
this.title = '新疆天山钢铁新能源监控'
|
||||
document.title = '新疆天山钢铁新能源监控'
|
||||
break;
|
||||
case '9350':
|
||||
// 智慧工地安全管理平台项目
|
||||
this.title = '智慧工地安全管理平台项目'
|
||||
document.title = '智慧工地安全管理平台项目'
|
||||
break;
|
||||
case '9360':
|
||||
// 工程车作业及人员行为AI系统
|
||||
this.title = '工程车作业及人员行为AI系统'
|
||||
|
BIN
god-ui/src/views/dataVisualization/visualization/assets/top1.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
god-ui/src/views/dataVisualization/visualization/assets/top2.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
god-ui/src/views/dataVisualization/visualization/assets/top3.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
god-ui/src/views/dataVisualization/visualization/assets/top4.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
god-ui/src/views/dataVisualization/visualization/assets/top5.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
god-ui/src/views/dataVisualization/visualization/assets/top6.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
333
god-ui/src/views/engineeringVehicle/patrolScheme/index.vue
Normal file
@ -0,0 +1,333 @@
|
||||
<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="reserveOne"/>
|
||||
<el-table-column label="季度" align="center" prop="reserveTwo"/>
|
||||
<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">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.zhcj_normal_no" :value="scope.row.reserveSeven"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark"/>
|
||||
<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-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-select :disabled="disabled" v-model="form.reserveSeven" placeholder="请选择状态信息" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.zhcj_normal_no"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" 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",
|
||||
dicts:['zhcj_normal_no'],
|
||||
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: 'patrolScheme',
|
||||
},
|
||||
// 表单参数
|
||||
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: 'patrolScheme',
|
||||
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>
|
324
god-ui/src/views/engineeringVehicle/spareParts/index.vue
Normal file
@ -0,0 +1,324 @@
|
||||
<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="reserveEight">
|
||||
<el-input
|
||||
v-model="queryParams.reserveEight"
|
||||
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="reserveEight"/>
|
||||
<el-table-column label="分类" align="center" prop="reserveTwo"/>
|
||||
<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">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.zhcj_normal_no" :value="scope.row.reserveSeven"/>
|
||||
</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="reserveEight">
|
||||
<el-input v-model="form.reserveEight" 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-select :disabled="disabled" v-model="form.reserveSeven" placeholder="请选择状态信息" style="width: 100%">
|
||||
<el-option
|
||||
v-for="dict in dict.type.zhcj_normal_no"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</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",
|
||||
dicts:['zhcj_normal_no'],
|
||||
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: 'spareParts',
|
||||
},
|
||||
// 表单参数
|
||||
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: 'spareParts',
|
||||
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>
|
296
god-ui/src/views/engineeringVehicle/strategy/index.vue
Normal file
@ -0,0 +1,296 @@
|
||||
<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>
|
||||
<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" width="250%"/>
|
||||
<el-table-column label="故障症状" align="center" prop="reserveThree" width="250%"/>
|
||||
<el-table-column label="维修方案" align="center" prop="reserveFour" />
|
||||
<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-input v-model="form.reserveFour" 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",
|
||||
dicts: ['zhcj_normal_no'],
|
||||
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: 'strategy',
|
||||
},
|
||||
// 表单参数
|
||||
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: 'strategy',
|
||||
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>
|
@ -183,30 +183,30 @@ export default {
|
||||
break;
|
||||
case '9310':
|
||||
// 重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目
|
||||
// document.title = '重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目'
|
||||
// loginDom.style.backgroundImage = 'url(/images/hailuo-bg.png)'
|
||||
// this.redirect = '/index'
|
||||
// const loginForm = document.querySelector('.login-form')
|
||||
// loginForm.style.position = 'relative';
|
||||
// loginForm.style.marginLeft = '0'
|
||||
// loginForm.style.background = 'none';
|
||||
// loginForm.style.border = 'none'
|
||||
// loginForm.style.backgroundImage = 'url(/images/hailuo-login.png)'
|
||||
// loginForm.style.backgroundSize = '100% 100%';
|
||||
// const _title = document.createElement('div');
|
||||
// _title.innerHTML = '重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目';
|
||||
// _title.style.position = 'fixed';
|
||||
// _title.style.width = '28rem';
|
||||
// _title.style.left = 'calc(50vw - 14rem)';
|
||||
// _title.style.top = '18vh'
|
||||
// _title.style.color = 'transparent'
|
||||
// _title.style.textAlign = 'center'
|
||||
// _title.style.fontSize = '2rem'
|
||||
// _title.style.backgroundImage = 'linear-gradient(to top, #a5dfff, white)'
|
||||
// _title.style.webkitBackgroundClip = 'text'
|
||||
document.title = '重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目'
|
||||
loginDom.style.backgroundImage = 'url(/images/hailuo-bg.png)'
|
||||
this.redirect = '/index'
|
||||
const loginForm = document.querySelector('.login-form')
|
||||
loginForm.style.position = 'relative';
|
||||
loginForm.style.marginLeft = '0'
|
||||
loginForm.style.background = 'none';
|
||||
loginForm.style.border = 'none'
|
||||
loginForm.style.backgroundImage = 'url(/images/hailuo-login.png)'
|
||||
loginForm.style.backgroundSize = '100% 100%';
|
||||
const _title = document.createElement('div');
|
||||
_title.innerHTML = '重庆海螺水泥有限公司扁鹊设备监测与健康管理平台建设项目';
|
||||
_title.style.position = 'fixed';
|
||||
_title.style.width = '28rem';
|
||||
_title.style.left = 'calc(50vw - 14rem)';
|
||||
_title.style.top = '18vh'
|
||||
_title.style.color = 'transparent'
|
||||
_title.style.textAlign = 'center'
|
||||
_title.style.fontSize = '2rem'
|
||||
_title.style.backgroundImage = 'linear-gradient(to top, #a5dfff, white)'
|
||||
_title.style.webkitBackgroundClip = 'text'
|
||||
|
||||
// _title.style.fontFamily = 'BiaoTiFont'
|
||||
// loginForm.appendChild(_title)
|
||||
_title.style.fontFamily = 'BiaoTiFont'
|
||||
loginForm.appendChild(_title)
|
||||
break;
|
||||
|
||||
case '9320':
|
||||
@ -219,12 +219,19 @@ export default {
|
||||
loginDom.style.backgroundImage = 'url(/images/xinjiang.png)'
|
||||
this.redirect = '/index'
|
||||
break;
|
||||
case '9350':
|
||||
document.title = '智慧工地安全管理平台项目'
|
||||
this.title='智慧工地安全管理平台项目'
|
||||
loginDom.style.backgroundImage = 'url(/images/zhihui.png)'
|
||||
this.redirect = '/index'
|
||||
break;
|
||||
case '9360':
|
||||
document.title = '工程车作业管控及人员行为AI智能识别系统'
|
||||
loginDom.style.backgroundImage = 'url(/images/zuoye.png)'
|
||||
this.redirect = '/index'
|
||||
break;
|
||||
default:
|
||||
|
||||
document.title = ''
|
||||
loginDom.style.backgroundImage = 'url(/images/gangyin-bg.png)'
|
||||
this.redirect = '/index'
|
||||
|
@ -113,7 +113,7 @@ export default {
|
||||
{
|
||||
name: "工程数据可视化",
|
||||
color: "#f9c758",
|
||||
path: "",
|
||||
path: "dataVisualization/visualization",
|
||||
},
|
||||
],
|
||||
statisticsList: [
|
||||
|