Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
police-jyzb-vue-hzzj
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
Tian
police-jyzb-vue-hzzj
Commits
2dec3035
Commit
2dec3035
authored
Jan 09, 2023
by
T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装备信息手动同步功能
parent
6cacbbbb
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
35 行增加
和
8 行删除
+35
-8
dist.rar
dist.rar
+0
-0
index.html
index.html
+5
-5
index.vue
src/views/base/asset/index.vue
+27
-0
index.vue
src/views/base/equipmentSize/index.vue
+3
-3
没有找到文件。
dist.rar
0 → 100644
View file @
2dec3035
File added
index.html
View file @
2dec3035
...
...
@@ -9,17 +9,17 @@
<!-- 全局配置 -->
<script>
//现场
//var host = window.location.origin;
//
var host = window.location.origin;
// window._CONFIG = {};
// window._CONFIG['serviceURL'] = host + 'hzservice';
// window._CONFIG['userURL'] = host + 'hzuser';
// window._CONFIG['serviceURL'] = host + '
/
hzservice';
// window._CONFIG['userURL'] = host + '
/
hzuser';
//
总平台
//
总平台
window
.
_CONFIG
=
{};
window
.
_CONFIG
[
'serviceURL'
]
=
'http://192.168.3.189:8848'
;
window
.
_CONFIG
[
'userURL'
]
=
'http://192.168.3.189:10005'
;
</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>
<!-- 浙警智评-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"
>
...
...
src/views/base/asset/index.vue
View file @
2dec3035
...
...
@@ -22,6 +22,15 @@
<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=
"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>
<!--表单组件-->
<eForm
ref=
"form"
:is-add=
"isAdd"
:typeList=
"tData"
@
ok=
"handleOk"
/>
...
...
@@ -74,6 +83,7 @@
</template>
<
script
>
import
{
initPdata
}
from
'@/api/data'
import
checkPermission
from
'@/utils/permission'
import
{
deleteEquipmentDetail
}
from
'@/api/equipmentDetail'
import
{
getListEquipment
}
from
'@/api/equipmentInfo'
...
...
@@ -139,6 +149,23 @@ export default {
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
)
{
this
.
delLoading
=
true
const
params
=
{
id
:
id
}
...
...
src/views/base/equipmentSize/index.vue
View file @
2dec3035
...
...
@@ -6,7 +6,7 @@
<el-table-column>
<template
slot=
"header"
slot-scope=
"props"
>
<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>
</
template
>
<el-table-column
label=
"序号"
align=
"center"
width=
"50"
>
...
...
@@ -23,7 +23,7 @@
</
template
>
</el-table-column>
<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">
<el-button size="mini" type="primary" @click="edit(scope.row)">编辑</el-button>
<el-popover
...
...
@@ -38,7 +38,7 @@
<el-button slot="reference" type="danger" size="mini">删除</el-button>
</el-popover>
</template>
</el-table-column>
</el-table-column>
-->
</el-table-column>
</el-table>
<!--分页组件-->
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论