Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
dqms-manage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhaohui
dqms-manage
Commits
1eac10a9
Commit
1eac10a9
authored
Apr 23, 2023
by
zhangzhaohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加无登录态查看地区分布页面
parent
f627aa69
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
108 additions
and
2 deletions
+108
-2
index.js
src/router/index.js
+14
-0
main.vue
src/views/main.vue
+1
-0
dqregion-add-or-update.vue
src/views/modules/dq/dqregion-add-or-update.vue
+3
-2
dqregion-check.vue
src/views/modules/dq/dqregion-check.vue
+90
-0
No files found.
src/router/index.js
View file @
1eac10a9
...
...
@@ -21,6 +21,20 @@ export const pageRoutes = [
next
()
}
},
{
path
:
'/dqregion-check'
,
component
:
()
=>
import
(
'@/views/modules/dq/dqregion-check'
),
name
:
'dqregion-check'
,
meta
:
{
title
:
'地址查找'
},
beforeEnter
(
to
,
from
,
next
)
{
// 拦截处理特殊业务场景
// 如果, 重定向路由包含__双下划线, 为临时添加路由
if
(
/__.*/
.
test
(
to
.
redirectedFrom
))
{
return
next
(
to
.
redirectedFrom
.
replace
(
/__.*/
,
''
))
}
next
()
}
},
{
path
:
'/login'
,
component
:
()
=>
import
(
'@/views/pages/login'
),
name
:
'login'
,
meta
:
{
title
:
'登录'
}
}
]
...
...
src/views/main.vue
View file @
1eac10a9
...
...
@@ -46,6 +46,7 @@ export default {
created
()
{
this
.
windowResizeHandle
()
this
.
routeHandle
(
this
.
$route
)
this
.
loading
=
false
Promise
.
all
([
this
.
getUserInfo
(),
this
.
getPermissions
()
...
...
src/views/modules/dq/dqregion-add-or-update.vue
View file @
1eac10a9
...
...
@@ -2,10 +2,10 @@
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<el-form-item
label=
"社区"
prop=
"community"
>
<el-input
v-model=
"dataForm.community"
placeholder=
"社区"
></el-input>
<el-input
v-model=
"dataForm.community"
:readonly=
"updateRemark"
placeholder=
"社区"
></el-input>
</el-form-item>
<el-form-item
label=
"详细地址"
prop=
"address"
>
<el-input
v-model=
"dataForm.address"
placeholder=
"详细地址"
></el-input>
<el-input
v-model=
"dataForm.address"
:readonly=
"updateRemark"
placeholder=
"详细地址"
></el-input>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"dataForm.remark"
placeholder=
"备注"
></el-input>
...
...
@@ -24,6 +24,7 @@ export default {
data
()
{
return
{
visible
:
false
,
updateRemark
:
false
,
dataForm
:
{
id
:
''
,
community
:
''
,
...
...
src/views/modules/dq/dqregion-check.vue
0 → 100644
View file @
1eac10a9
<
template
>
<el-card
shadow=
"never"
class=
"aui-card--fill"
>
<div
class=
"mod-dq__dqregion}"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<el-input
v-model=
"dataForm.community"
placeholder=
"社区"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
v-model=
"dataForm.address"
placeholder=
"详细地址"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
{{
$t
(
'query'
)
}}
</el-button>
</el-form-item>
<!--
<el-form-item>
<el-button
type=
"info"
@
click=
"exportHandle()"
>
{{
$t
(
'export'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('dq:dqregion:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
{{
$t
(
'add'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('dq:dqregion:delete')"
type=
"danger"
@
click=
"deleteHandle()"
>
{{
$t
(
'deleteBatch'
)
}}
</el-button>
</el-form-item>
-->
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"community"
label=
"社区"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"address"
label=
"详细地址"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"remark"
label=
"备注"
header-align=
"center"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"updateDate"
label=
"更新时间"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"updateRemark(scope.row.id)"
>
疑问
</el-button>
<!--
<el-button
v-if=
"$hasPermission('dq:dqregion:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
{{
$t
(
'delete'
)
}}
</el-button>
-->
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"limit"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"pageSizeChangeHandle"
@
current-change=
"pageCurrentChangeHandle"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update
v-if=
"addOrUpdateVisible"
ref=
"addOrUpdate"
@
refreshDataList=
"getDataList"
></add-or-update>
</div>
</el-card>
</template>
<
script
>
import
mixinViewModule
from
'@/mixins/view-module'
import
AddOrUpdate
from
'./dqregion-add-or-update'
export
default
{
mixins
:
[
mixinViewModule
],
data
()
{
return
{
mixinViewModuleOptions
:
{
getDataListURL
:
'/dq/dqregion/page'
,
getDataListIsPage
:
true
,
exportURL
:
'/dq/dqregion/export'
,
deleteURL
:
'/dq/dqregion'
,
deleteIsBatch
:
true
},
dataForm
:
{
community
:
''
,
address
:
''
}
}
},
components
:
{
AddOrUpdate
},
methods
:
{
updateRemark
(
id
)
{
this
.
addOrUpdateVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
addOrUpdate
.
dataForm
.
id
=
id
this
.
$refs
.
addOrUpdate
.
updateRemark
=
true
this
.
$refs
.
addOrUpdate
.
init
()
})
}
}
}
</
script
>
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