Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b2176b3b
authored
2022-12-26 10:47:10 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:监管
1 parent
c3cc67e4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
78 additions
and
19 deletions
src/components/dataDetails/edit-dialog.vue
src/layout/components/Navbar.vue
src/store/getters.js
src/store/modules/business.js
src/views/jsbwcx/index.vue
src/views/sbbwcx/index.vue
src/components/dataDetails/edit-dialog.vue
View file @
b2176b3
<
template
>
<!-- 编辑 -->
<el-dialog
top=
"0"
:close-on-click-modal=
"false"
custom-class=
"
editDialogBox"
:visible
.
sync=
"dialogVisible"
<el-dialog
:close-on-click-modal=
"false"
custom-class=
"dialogBox
editDialogBox"
:visible
.
sync=
"dialogVisible"
width=
"75%"
>
<div
slot=
"title"
class=
"dialog_title"
ref=
"dialogTitle"
>
<b>
{{
title
}}
</b>
...
...
@@ -92,7 +92,7 @@
<el-button
type=
"primary"
plain
@
click=
"submitForm"
v-if=
"!Edit"
:loading=
"saveloding"
:disabled=
"JSON.stringify(this.$store.state.business.rules) === '
{}'">确定
</el-button>
<el-button
type=
"primary"
plain
@
click=
"closeDialog()"
>
关闭
</el-button>
<el-button
@
click=
"closeDialog()"
>
关闭
</el-button>
</div>
</div>
</el-dialog>
...
...
@@ -222,6 +222,9 @@ export default {
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/dialogBox.scss"
;
.editForm
{
/deep/.el-textarea__inner
{
border
:
none
!important
;
...
...
src/layout/components/Navbar.vue
View file @
b2176b3
...
...
@@ -17,9 +17,9 @@
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"a"
>
个人中心
</el-dropdown-item>
<el-dropdown-item
command=
"b"
>
退出
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<svg-icon
class=
"shutdown"
icon-class=
'shutdown'
/>
</div>
</div>
</div>
...
...
@@ -44,13 +44,10 @@ export default {
themeChange
(
val
)
{
this
.
$store
.
dispatch
(
'app/updateTheme'
,
val
)
},
searchMessageCenter
()
{
this
.
$router
.
push
({
name
:
'messagecenter'
})
},
handleCommand
(
command
)
{
if
(
command
==
'a'
)
{
//个人中心
this
.
$router
.
push
({
name
:
'personal'
})
}
else
{
}
}
}
...
...
src/store/getters.js
View file @
b2176b3
...
...
@@ -7,6 +7,10 @@ const getters = {
avatar
:
state
=>
state
.
user
.
avatar
,
name
:
state
=>
state
.
user
.
name
,
permission_routes
:
state
=>
state
.
permission
.
routes
,
addRoutes
:
state
=>
state
.
permission
.
addRoutes
addRoutes
:
state
=>
state
.
permission
.
addRoutes
,
// business
rules
:
state
=>
state
.
business
.
rules
,
Edit
:
state
=>
state
.
business
.
Edit
,
businessInfo
:
state
=>
state
.
dictionaries
.
businessInfo
}
export
default
getters
...
...
src/store/modules/business.js
0 → 100644
View file @
b2176b3
const
state
=
{
rules
:
{},
initRules
:
{},
subRules
:
{},
Edit
:
false
}
const
mutations
=
{
SET_RULES
:
(
state
,
data
)
=>
{
state
.
rules
=
data
},
SET_INITRULES
:
(
state
,
data
)
=>
{
state
.
initRules
=
data
},
SET_SUBRULES
:
(
state
,
data
)
=>
{
state
.
subRules
=
data
},
SET_EDIT
:
(
state
)
=>
{
state
.
Edit
=
true
},
SET_REPORTEDIT
:
(
state
)
=>
{
state
.
Edit
=
false
}
}
const
actions
=
{
setRules
({
commit
},
data
)
{
commit
(
'SET_RULES'
,
data
)
},
setInitRules
({
commit
},
data
)
{
commit
(
'SET_INITRULES'
,
data
)
},
setSubRules
({
commit
},
data
)
{
commit
(
'SET_SUBRULES'
,
data
)
},
setEdit
({
commit
})
{
commit
(
'SET_EDIT'
)
},
setReportLogEdit
({
commit
})
{
commit
(
'SET_REPORTEDIT'
)
}
}
export
default
{
namespaced
:
true
,
state
,
mutations
,
actions
}
src/views/jsbwcx/index.vue
View file @
b2176b3
...
...
@@ -75,7 +75,7 @@
</lb-table>
</div>
<!-- 编辑 -->
<
edit-dialog
v-model=
"isEdit
"
/>
<
dataDetails
ref=
"editLog"
:bsmSjsb=
"bsmSjsb"
:diaData=
"diaData
"
/>
</div>
</
template
>
...
...
@@ -85,16 +85,18 @@
import
data
from
"./data"
// 引入table混入方法
import
tableMixin
from
'@/mixins/tableMixin.js'
// 引入
弹框
组件
import
editDialog
from
'./components/detailDialog.vue
'
// 引入
详情
组件
import
dataDetails
from
'@/components/dataDetails/edit-dialog
'
export
default
{
name
:
"jsbwcx"
,
mixins
:
[
tableMixin
],
components
:
{
editDialog
,
dataDetails
},
data
()
{
return
{
diaData
:
{},
bsmSjsb
:
''
,
// 开始结束日期限制
pickerOptionsStart
:
{
disabledDate
:
(
time
)
=>
{
...
...
@@ -115,7 +117,6 @@ export default {
}
}
},
isEdit
:
false
,
// 表格数据
form
:
{
pcode
:
''
,
// 行政区
...
...
@@ -225,7 +226,7 @@ export default {
},
// 详情
handleEdit
(
row
)
{
this
.
isEdit
=
true
this
.
$refs
.
editLog
.
isShow
()
}
}
}
...
...
src/views/sbbwcx/index.vue
View file @
b2176b3
...
...
@@ -65,7 +65,9 @@
</lb-table>
</div>
<!-- 引入详情组件 -->
<detailDialog
v-model=
"isShow"
/>
<!--
<detailDialog
v-model=
"isShow"
/>
-->
<!-- 编辑 -->
<dataDetails
ref=
"editLog"
:bsmSjsb=
"bsmSjsb"
:diaData=
"diaData"
/>
</div>
</
template
>
...
...
@@ -76,16 +78,18 @@ import data from "./data"
// 引入表格混入方法
import
tableMixin
from
'@/mixins/tableMixin.js'
// 引入详情弹框
import
d
etailDialog
from
'./components/detailD
ialog'
import
d
ataDetails
from
'@/components/dataDetails/edit-d
ialog'
export
default
{
name
:
"sbbwcx"
,
mixins
:
[
tableMixin
],
// 注册组件
components
:
{
d
etailDialog
d
ataDetails
},
data
()
{
return
{
bsmSjsb
:
''
,
diaData
:
{},
isShow
:
false
,
// 开始结束日期限制
pickerOptionsStart
:
{
...
...
@@ -206,7 +210,8 @@ export default {
handleEscalation
()
{
},
// 详情
handleDetail
(
row
)
{
this
.
isShow
=
true
// this.isShow = true
this
.
$refs
.
editLog
.
isShow
()
}
}
}
...
...
Please
register
or
sign in
to post a comment