Commit 2dec3035 by T

装备信息手动同步功能

parent 6cacbbbb
File added
...@@ -9,17 +9,17 @@ ...@@ -9,17 +9,17 @@
<!-- 全局配置 --> <!-- 全局配置 -->
<script> <script>
//现场 //现场
//var host = window.location.origin; // var host = window.location.origin;
// window._CONFIG = {}; // window._CONFIG = {};
// window._CONFIG['serviceURL'] = host + 'hzservice'; // window._CONFIG['serviceURL'] = host + '/hzservice';
// window._CONFIG['userURL'] = host + 'hzuser'; // window._CONFIG['userURL'] = host + '/hzuser';
//总平台 // 总平台
window._CONFIG = {}; window._CONFIG = {};
window._CONFIG['serviceURL'] = 'http://192.168.3.189:8848'; window._CONFIG['serviceURL'] = 'http://192.168.3.189:8848';
window._CONFIG['userURL'] = 'http://192.168.3.189:10005'; window._CONFIG['userURL'] = 'http://192.168.3.189:10005';
</script> </script>
<!-- <script type="text/javascript" src="http://jzpt.gat.zj:10002/web_jznew/js/jquery/jquery-1.8.3.js"></script> --> <script type="text/javascript" src="http://jzpt.gat.zj:10002/web_jznew/js/jquery/jquery-1.8.3.js"></script>
</head> </head>
<!-- 浙警智评-V1.0-202208 BEGIN --> <!-- 浙警智评-V1.0-202208 BEGIN -->
<link rel="stylesheet" type="text/css" href="http://jzpt.gat.zj:10002/web_jznew/pages/jzwd/zjzp/css/jzwd-zjzp.css"> <link rel="stylesheet" type="text/css" href="http://jzpt.gat.zj:10002/web_jznew/pages/jzwd/zjzp/css/jzwd-zjzp.css">
......
...@@ -22,6 +22,15 @@ ...@@ -22,6 +22,15 @@
<el-input v-model="query.value" clearable placeholder="装备名称" style="width: 200px;" class="filter-item" @keyup.enter.native="toPostQuery"/> <el-input v-model="query.value" clearable placeholder="装备名称" style="width: 200px;" class="filter-item" @keyup.enter.native="toPostQuery"/>
<el-button class="filter-item" type="success" icon="el-icon-search" @click="toPostQuery">搜索</el-button> <el-button class="filter-item" type="success" icon="el-icon-search" @click="toPostQuery">搜索</el-button>
<el-button class="filter-item" type="primary" icon="el-icon-plus" style="float: right" @click="add" v-if="findCode == '33'">新增</el-button> <el-button class="filter-item" type="primary" icon="el-icon-plus" style="float: right" @click="add" v-if="findCode == '33'">新增</el-button>
<!-- 同步省厅装备信息 -->
<el-popover
placement="top-start"
width="190"
trigger="hover"
content="获取省厅平台的装备信息,与省厅平台的装备信息保持同步">
<el-button class="filter-item" type="primary" slot="reference" icon="el-icon-download" @click="synEquInformation">同步装备信息</el-button>
<!-- <el-button class="el-icon-circle-plus-outline" slot="reference" @click="addPoliceForm"></el-button> -->
</el-popover>
</div> </div>
<!--表单组件--> <!--表单组件-->
<eForm ref="form" :is-add="isAdd" :typeList="tData" @ok="handleOk"/> <eForm ref="form" :is-add="isAdd" :typeList="tData" @ok="handleOk"/>
...@@ -74,6 +83,7 @@ ...@@ -74,6 +83,7 @@
</template> </template>
<script> <script>
import { initPdata } from '@/api/data'
import checkPermission from '@/utils/permission' import checkPermission from '@/utils/permission'
import { deleteEquipmentDetail } from '@/api/equipmentDetail' import { deleteEquipmentDetail } from '@/api/equipmentDetail'
import { getListEquipment } from '@/api/equipmentInfo' import { getListEquipment } from '@/api/equipmentInfo'
...@@ -139,6 +149,23 @@ export default { ...@@ -139,6 +149,23 @@ export default {
this.tData = res.data this.tData = res.data
}) })
}, },
//同步省厅装备信息
synEquInformation(){
this.url = window._CONFIG['serviceURL'] + '/api/EquipmentInfo/SyncEquipmentData'
initPdata(this.url).then(res =>{
if(res.code === '操作成功'){
this.$notify({
title: '同步装备信息成功',
type: 'success',
duration: 2500
}),
this.toPostQuery()
}else {
this.$message.error('同步装备信息失败')
}
})
},
subDelete(id) { subDelete(id) {
this.delLoading = true this.delLoading = true
const params = {id:id} const params = {id:id}
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<el-table-column> <el-table-column>
<template slot="header" slot-scope="props"> <template slot="header" slot-scope="props">
<center><span style="font-size:22px;line-height:40px;">装备型号列表</span> <center><span style="font-size:22px;line-height:40px;">装备型号列表</span>
<el-button type="warning" @click="add(detailId)" style="float: right">型号添加</el-button> <!-- <el-button type="warning" @click="add(detailId)" style="float: right">型号添加</el-button> -->
</center> </center>
</template> </template>
<el-table-column label="序号" align="center" width="50"> <el-table-column label="序号" align="center" width="50">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="updateTime" label="修改日期" align="center"/> <el-table-column prop="updateTime" label="修改日期" align="center"/>
<el-table-column label="操作" width="150" align="center" fixed="right"> <!-- <el-table-column label="操作" width="150" align="center" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button> <el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button>
<el-popover <el-popover
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<el-button slot="reference" type="danger" size="mini">删除</el-button> <el-button slot="reference" type="danger" size="mini">删除</el-button>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column> -->
</el-table-column> </el-table-column>
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论