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
e4ae665c
authored
2023-03-01 14:07:59 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:登簿日志
1 parent
5437389a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
87 additions
and
19 deletions
src/components/EditDialog/index.vue
src/components/JsonEditor.vue
src/styles/dialogBox.scss
src/views/sthj/components/Result.vue
src/views/sthj/components/data/sbdata.js
src/views/sthj/components/editDialog.vue
src/components/EditDialog/index.vue
View file @
e4ae665
...
...
@@ -271,18 +271,6 @@ export default {
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/dialogBox.scss"
;
.regularHeight
{
height
:
80vh
;
display
:
flex
;
flex-direction
:
column
;
.editDialogBox-con,
.JsonEditor
{
flex
:
1
;
height
:
100%
;
}
}
/
deep
/
.el-dialog__body
{
display
:
flex
;
flex-direction
:
column
;
...
...
src/components/JsonEditor.vue
View file @
e4ae665
...
...
@@ -17,7 +17,7 @@ export default {
<
style
scoped
lang=
"scss"
>
/
deep
/
.el-textarea__inner
{
height
:
72
vh
!important
;
height
:
67
vh
!important
;
border
:
none
!important
;
background-color
:
#08346F
!important
;
color
:
#ffffff
;
...
...
src/styles/dialogBox.scss
View file @
e4ae665
...
...
@@ -2,7 +2,7 @@
overflow
:
hidden
;
background
:
url("~@/image/dialogBg.png")
no-repeat
!
important
;
background-size
:
100%
100%
!
important
;
min-height
:
89
vh
;
min-height
:
90
vh
;
.dialog_title
{
display
:
flex
;
...
...
@@ -60,6 +60,18 @@
}
}
.regularHeight
{
height
:
80vh
;
display
:
flex
;
flex-direction
:
column
;
.editDialogBox-con
,
.JsonEditor
{
flex
:
1
;
height
:
100%
;
}
}
.dialog-from
{
padding
:
13px
;
border-radius
:
2px
;
...
...
src/views/sthj/components/Result.vue
View file @
e4ae665
...
...
@@ -50,7 +50,7 @@ export default {
}
/
deep
/
.el-textarea__inner
{
min-height
:
33
vh
!important
;
min-height
:
27
vh
!important
;
background-color
:
#08346F
!important
;
color
:
#ffffff
;
border
:
none
!important
;
...
...
src/views/sthj/components/data/sbdata.js
View file @
e4ae665
...
...
@@ -6,6 +6,31 @@ class data {
columns
()
{
return
[
{
width
:
"70"
,
renderHeader
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
i
class
=
"el-icon-plus"
onClick
=
{()
=>
{
vm
.
handleSBAdd
();
}}
style
=
"cursor:pointer;color:#409EFF"
><
/i
>
<
/div
>
);
},
render
:
(
h
,
scope
)
=>
{
return
<
i
class
=
"el-icon-minus"
onClick
=
{()
=>
{
vm
.
handleSBMinus
(
scope
.
row
);
}}
style
=
"cursor:pointer;color:#409EFF"
><
/i
>
},
},
{
prop
:
'ywh'
,
label
:
'业务号'
,
render
:
(
h
,
scope
)
=>
{
...
...
src/views/sthj/components/editDialog.vue
View file @
e4ae665
...
...
@@ -4,6 +4,7 @@
<div
slot=
"title"
class=
"dialog_title"
ref=
"dialogTitle"
>
{{
title
||
'标题'
}}
</div>
<div
class=
"regularHeight"
>
<div
class=
"editDialogBox-box"
>
<el-tabs
v-model=
"titleName"
type=
"card"
>
<el-tab-pane
label=
"登薄详情"
name=
"sjmx"
></el-tab-pane>
...
...
@@ -181,12 +182,12 @@
<el-tab-pane
label=
"当日上报详单"
name=
"sbslxd"
></el-tab-pane>
</el-tabs>
<div
class=
"from-clues-content"
v-show=
"titleName2 == 'drdbxd'"
:key=
"key"
>
<lb-table
:column=
"tableDBData.column"
:pagination=
"false"
:heightNumSetting=
"true"
:heightNum=
"165
"
<lb-table
:column=
"tableDBData.column"
:pagination=
"false"
:heightNumSetting=
"true"
:heightNum=
"200
"
:data=
"tableDBData.data"
>
</lb-table>
</div>
<div
class=
"from-clues-content"
v-show=
"titleName2 == 'sbslxd'"
>
<lb-table
:column=
"tableSBData.column"
:pagination=
"false"
:heightNumSetting=
"true"
:heightNum=
"165
"
<lb-table
:column=
"tableSBData.column"
:pagination=
"false"
:heightNumSetting=
"true"
:heightNum=
"200
"
:data=
"tableSBData.data"
>
</lb-table>
</div>
...
...
@@ -194,15 +195,19 @@
</div>
</div>
<div
class=
"editDialogBox-box"
v-if=
"titleName == 'xml'"
>
<JsonEditor
:resultInfo=
"resultInfo"
class=
"JsonEditor
"
/>
<JsonEditor
:resultInfo=
"resultInfo
"
/>
</div>
<div
class=
"editDialogBox-box
"
v-if=
"titleName == 'xyjg'"
>
<div
class=
"editDialogBox-box JsonEditor
"
v-if=
"titleName == 'xyjg'"
>
<Xyjg
:form-data=
'dataReport'
></Xyjg>
</div>
</div>
<div
class=
"d-center"
v-if=
"titleName == 'sjmx'"
>
<btn
nativeType=
"cz"
@
click=
"dialogVisible = false"
>
取 消
</btn>
<btn
nativeType=
"cx"
@
click=
"submitForm"
>
确 定
</btn>
</div>
<div
class=
"d-center"
v-if=
"!$store.state.business.Edit && titleName == 'xml'"
>
<btn
nativeType=
"cx"
@
click=
"handleResubmit"
>
重新上报
</btn>
</div>
</el-dialog>
</
template
>
...
...
@@ -252,6 +257,8 @@ export default {
data
:
[],
column
:
sbdata
.
columns
()
},
// XML详情
resultInfo
:
''
,
dataReport
:
{}
}
},
...
...
@@ -267,6 +274,7 @@ export default {
this
.
titleName
=
'sjmx'
;
this
.
dialogVisible
=
true
;
},
// 当日登薄详单
handleDBAdd
()
{
this
.
tableDBData
.
data
.
push
({
ywh
:
''
,
...
...
@@ -285,6 +293,25 @@ export default {
handleDBMinus
(
row
)
{
this
.
tableDBData
.
data
.
splice
(
row
.
index
,
1
)
},
// 当日上报详单
handleSBAdd
()
{
this
.
tableSBData
.
data
.
push
({
ywh
:
''
,
djlx
:
''
,
qllx
:
''
,
bdcdyh
:
''
,
zszmh
:
''
,
sfsb
:
''
,
bwid
:
''
})
this
.
tableSBData
.
data
.
forEach
((
item
,
indx
)
=>
{
this
.
$set
(
item
,
'index'
,
index
)
})
this
.
key
++
},
handleSBMinus
(
row
)
{
this
.
tableSBData
.
data
.
splice
(
row
.
index
,
1
)
},
submitForm
()
{
}
}
}
...
...
@@ -294,6 +321,22 @@ export default {
@import
"~@/styles/public.scss"
;
@import
"~@/styles/dialogBox.scss"
;
/
deep
/
.el-tabs__header
{
margin
:
0
;
}
.regularHeight
{
height
:
77vh
;
display
:
flex
;
flex-direction
:
column
;
.editDialogBox-con,
.JsonEditor
{
flex
:
1
;
}
}
/
deep
/
.el-tabs__item
{
color
:
#CEF8FF
!important
;
...
...
Please
register
or
sign in
to post a comment