Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
王刘锁
/
jianlin-tms-view
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aa2e0e5a
authored
Aug 29, 2022
by
郑艺斌
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 增加地图管理字段
parent
b1a5cdd9
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
23 deletions
.env.development
.env.production
src/store/modules/common.js
src/views/layout/components/TagsView/index.vue
src/views/modules/siteAdmin/mapAdmin/add.vue
src/views/modules/siteAdmin/siteConfig/add.vue
src/views/modules/siteAdmin/siteConfig/index.vue
src/views/modules/siteAdmin/siteTaskType/index.vue
.env.development
View file @
aa2e0e5a
...
@@ -5,7 +5,7 @@ ENV = 'development'
...
@@ -5,7 +5,7 @@ ENV = 'development'
VUE_APP_BASE_API = '/api'
VUE_APP_BASE_API = '/api'
# Jeeplus快速开发平台/后台地址
# Jeeplus快速开发平台/后台地址
VUE_APP_SERVER_URL = 'http://10.10.10.12:8080/jianlin-tms/'
VUE_APP_SERVER_URL = 'http://10.10.10.12
3
:8080/jianlin-tms/'
VUE_APP_SERVER_URL1 = 'http://jltms.meiqicloud.com/api/'
VUE_APP_SERVER_URL1 = 'http://jltms.meiqicloud.com/api/'
#单点登录设置
#单点登录设置
...
...
.env.production
View file @
aa2e0e5a
...
@@ -3,9 +3,9 @@ ENV = 'production'
...
@@ -3,9 +3,9 @@ ENV = 'production'
#Jeeplus快速开发平台/后台地址
#Jeeplus快速开发平台/后台地址
# 建霖内外地址
# 建霖内外地址
VUE_APP_SERVER_URL
1
= 'http://192.168.202.93:3000/api'
VUE_APP_SERVER_URL = 'http://192.168.202.93:3000/api'
# 美契公司地址
# 美契公司地址
VUE_APP_SERVER_URL = 'http://jltms.meiqicloud.com/api'
VUE_APP_SERVER_URL
1
= 'http://jltms.meiqicloud.com/api'
#单点登录设置
#单点登录设置
VUE_APP_SSO_LOGIN = 'false'
VUE_APP_SSO_LOGIN = 'false'
...
...
src/store/modules/common.js
View file @
aa2e0e5a
...
@@ -16,7 +16,8 @@ export default {
...
@@ -16,7 +16,8 @@ export default {
// 侧边栏类型名
// 侧边栏类型名
leftMenuCategory
:
""
,
leftMenuCategory
:
""
,
// 主入口标签页
// 主入口标签页
mainTabs
:
[{
name
:
"home"
,
title
:
"首页"
,
fullPath
:
"/home"
}],
// mainTabs: [{ name: "home", title: "首页", fullPath: "/home" }],
mainTabs
:
[],
mainTabsActiveName
:
"home"
,
mainTabsActiveName
:
"home"
,
// 当前选中的top menu的index
// 当前选中的top menu的index
topMenuActiveIndex
:
"0"
,
topMenuActiveIndex
:
"0"
,
...
...
src/views/layout/components/TagsView/index.vue
View file @
aa2e0e5a
<
template
>
<
template
>
<div
id=
"tags-view-container"
class=
"tags-view-container"
>
<div
id=
"tags-view-container"
class=
"tags-view-container"
>
<scroll-pane
ref=
"scrollPane"
class=
"tags-view-wrapper"
@
scroll=
"handleScroll"
>
<scroll-pane
ref=
"scrollPane"
class=
"tags-view-wrapper"
@
scroll=
"handleScroll"
>
<router-link
<router-link
v-for=
"tag in visitedViews"
ref=
"tag"
:key=
"tag.fullPath"
:class=
"isActive(tag) ? 'active' : ''"
v-for=
"tag in visitedViews"
:to=
"
{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" tag="span" class="tags-view-item"
ref=
"tag"
v-slot="{ navigate }" @contextmenu.prevent.native="openMenu(tag, $event)"
:key=
"tag.fullPath"
@click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''">
:class=
"isActive(tag)?'active':''"
:to=
"
{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
tag="span"
class="tags-view-item"
v-slot="{ navigate }"
@contextmenu.prevent.native="openMenu(tag,$event)"
@click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
>
<span
@
click=
"navigate"
@
keypress
.
enter=
"navigate"
>
<span
@
click=
"navigate"
@
keypress
.
enter=
"navigate"
>
{{
tag
.
query
&&
tag
.
query
.
title
||
tag
.
title
}}
{{
tag
.
query
&&
tag
.
query
.
title
||
tag
.
title
}}
<span
v-if=
"!isAffix(tag)"
class=
"el-icon-close"
@
click
.
prevent
.
stop=
"closeSelectedTag(tag)"
/>
<span
v-if=
"!isAffix(tag)"
class=
"el-icon-close"
@
click
.
prevent
.
stop=
"closeSelectedTag(tag)"
/>
</span>
</span>
</router-link>
</router-link>
</scroll-pane>
</scroll-pane>
<ul
v-show=
"visible"
:style=
"
{
left:left+'px',top:top -60 +'px'
}" class="contextmenu">
<ul
v-show=
"visible"
:style=
"
{
left: left + 'px', top: top - 60 + 'px'
}" class="contextmenu">
<li
@
click=
"refreshSelectedTag(selectedTag)"
>
刷新
</li>
<li
@
click=
"refreshSelectedTag(selectedTag)"
>
刷新
</li>
<li
v-if=
"!isAffix(selectedTag)"
@
click=
"closeSelectedTag(selectedTag)"
>
关闭
</li>
<li
v-if=
"!isAffix(selectedTag)"
@
click=
"closeSelectedTag(selectedTag)"
>
关闭
</li>
<li
@
click=
"closeOthersTags"
>
关闭其它
</li>
<li
@
click=
"closeOthersTags"
>
关闭其它
</li>
...
@@ -66,7 +57,7 @@ export default {
...
@@ -66,7 +57,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
initTags
()
//
this.initTags()
this
.
addTags
()
this
.
addTags
()
},
},
methods
:
{
methods
:
{
...
...
src/views/modules/siteAdmin/mapAdmin/add.vue
View file @
aa2e0e5a
...
@@ -8,6 +8,9 @@
...
@@ -8,6 +8,9 @@
<el-form-item
label=
"地图ID"
prop=
"thirdId"
>
<el-form-item
label=
"地图ID"
prop=
"thirdId"
>
<el-input
v-model=
"formData.thirdId"
placeholder=
"地图ID"
></el-input>
<el-input
v-model=
"formData.thirdId"
placeholder=
"地图ID"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"区域ID"
prop=
"areaId"
>
<el-input
v-model=
"formData.areaId"
placeholder=
"区域ID"
></el-input>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-form-item
label=
"备注:"
>
<el-input
type=
"textarea"
v-model=
"formData.remark"
:rows=
"3"
></el-input>
<el-input
type=
"textarea"
v-model=
"formData.remark"
:rows=
"3"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -68,6 +71,9 @@ export default {
...
@@ -68,6 +71,9 @@ export default {
thirdId
:
[
thirdId
:
[
{
required
:
true
,
message
:
'请输入地图ID'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入地图ID'
,
trigger
:
'blur'
},
],
],
areaId
:
[
{
required
:
true
,
message
:
'请输入区域ID'
,
trigger
:
'blur'
},
],
sort
:
[
sort
:
[
{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
},
]
]
...
...
src/views/modules/siteAdmin/siteConfig/add.vue
View file @
aa2e0e5a
...
@@ -85,7 +85,6 @@
...
@@ -85,7 +85,6 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<vxe-column
width=
"80px"
v-if=
"formData.tempId && formData.tempId !== ''"
>
<vxe-column
width=
"80px"
v-if=
"formData.tempId && formData.tempId !== ''"
>
...
@@ -101,6 +100,27 @@
...
@@ -101,6 +100,27 @@
</el-cascader>
</el-cascader>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<!-- <vxe-column width="80px">
<template #default="{ row }">
<span v-if="row.equipmentType === '1' || row.equipmentType === '2'">车辆分组</span>
</template>
</vxe-column>
<vxe-column>
<template #default="{ row, $rowIndex }">
<el-form-item v-if="row.equipmentType === '1' || row.equipmentType === '2'">
<el-select v-model="row.mirCarGroup" v-if="row.equipmentType === '1'">
<el-option v-for="item in $dictUtils.getDictList('tms_mir_car_group')" :key="item.value"
:label="item.label" :value="item.value">
</el-option>
</el-select>
<el-select v-model="row.lxCarGroup" v-else-if="row.equipmentType === '2'">
<el-option v-for="item in $dictUtils.getDictList('tms_lx_car_group')" :key="item.value"
:label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
</template>
</vxe-column> -->
<vxe-column
width=
"90px"
>
<vxe-column
width=
"90px"
>
<
template
#
default=
"{ row, rowIndex }"
>
<
template
#
default=
"{ row, rowIndex }"
>
<el-button
type=
"danger"
@
click=
"removeRow(rowIndex)"
>
删 除
</el-button>
<el-button
type=
"danger"
@
click=
"removeRow(rowIndex)"
>
删 除
</el-button>
...
...
src/views/modules/siteAdmin/siteConfig/index.vue
View file @
aa2e0e5a
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
class=
"pointStatus el-icon-refresh"
@
click=
"changePointStatus(scope.row)"
></i></span>
class=
"pointStatus el-icon-refresh"
@
click=
"changePointStatus(scope.row)"
></i></span>
</
template
>
</
template
>
</vxe-column>
</vxe-column>
<!-- <vxe-column field="equipmentGroup" title="设备分组" align="center" width="130px"></vxe-column> -->
<vxe-column
field=
"remark"
title=
"备注"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"remark"
title=
"备注"
align=
"center"
width=
"130px"
></vxe-column>
<vxe-column
field=
"status"
title=
"状态"
align=
"center"
width=
"130px"
>
<vxe-column
field=
"status"
title=
"状态"
align=
"center"
width=
"130px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -134,7 +135,13 @@ export default {
...
@@ -134,7 +135,13 @@ export default {
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
searchForm
:
{
sort
:
'0'
company
:
''
,
factoryId
:
''
,
siteType
:
''
,
name
:
''
,
command
:
''
,
tempId
:
''
,
status
:
''
},
},
tablePage
:
{
tablePage
:
{
total
:
0
,
total
:
0
,
...
@@ -243,7 +250,10 @@ export default {
...
@@ -243,7 +250,10 @@ export default {
size
:
this
.
tablePage
.
pageSize
size
:
this
.
tablePage
.
pageSize
}
}
this
.
SiteConfig
.
getConfigPage
(
can
).
then
(({
data
})
=>
{
this
.
SiteConfig
.
getConfigPage
(
can
).
then
(({
data
})
=>
{
this
.
tableData
=
data
.
records
this
.
tableData
=
data
.
records
?.
map
(
item
=>
{
item
.
equipmentGroup
=
item
.
equipmentType
==
"1"
?
item
.
mirCarGroup_dictText
:
item
.
lxCarGroup_dictText
return
item
})
this
.
tablePage
.
total
=
data
.
total
this
.
tablePage
.
total
=
data
.
total
this
.
loading
=
false
this
.
loading
=
false
})
})
...
...
src/views/modules/siteAdmin/siteTaskType/index.vue
View file @
aa2e0e5a
...
@@ -86,6 +86,7 @@ export default {
...
@@ -86,6 +86,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
searchForm
:
{
company
:
''
,
typeName
:
''
,
typeName
:
''
,
status
:
'-1'
,
status
:
'-1'
,
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment