Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
fukai
vue-gjjs
Commits
b692c87d
Commit
b692c87d
authored
Apr 14, 2023
by
WF1020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitopn修改
parent
f0ebe2fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
index.js
src/business/trnrel/event/index.js
+3
-2
Inftrnps.vue
src/business/trnrel/views/Inftrnps.vue
+9
-10
index.js
src/review/gitopn/event/index.js
+2
-2
No files found.
src/business/trnrel/event/index.js
View file @
b692c87d
import
Utils
from
'~/utils/index'
;
import
Api
from
'~/service/Api'
;
import
moment
from
'moment'
export
default
{
methods
:
{
//重置
...
...
@@ -65,8 +66,8 @@ export default {
}
let
params
=
{
ownref
:
this
.
model
.
trncorco
.
ownref
,
inidattil
:
this
.
model
.
trncorco
.
inidattil
,
inidatfro
:
this
.
model
.
trncorco
.
inidatfro
,
inidattil
:
moment
(
this
.
model
.
trncorco
.
inidattil
).
format
(
'YYYY-MM-DD'
)
,
inidatfro
:
moment
(
this
.
model
.
trncorco
.
inidatfro
).
format
(
'YYYY-MM-DD'
)
,
usrcon
:
this
.
model
.
usrcon
,
relflg
:
this
.
model
.
trncorco
.
relflg
,
bchcon
:
this
.
model
.
bchcon
,
...
...
src/business/trnrel/views/Inftrnps.vue
View file @
b692c87d
...
...
@@ -99,7 +99,7 @@
<el-row>
<c-col
:span=
"24"
style=
""
>
<el-table
:data=
"stmData.data"
:columns=
"stmData.columns"
style=
"width:100%"
:max-height=
"maxHeight"
>
<el-table
:data=
"stmData.data"
:columns=
"stmData.columns"
style=
"width:100%"
>
<el-table-column
v-for=
"(item, key) in stmData.columns"
:key=
"key"
...
...
@@ -196,12 +196,17 @@
methods
:
{
getInidatfro
(){
let
datetime
=
new
Date
();
datetime
=
datetime
.
setDate
(
datetime
.
getDate
()
-
1
);
datetime
=
datetime
.
setDate
(
datetime
.
getDate
()
-
1
0
);
this
.
model
.
trncorco
.
inidatfro
=
new
Date
(
datetime
);
}
},
created
()
{
this
.
getInidatfro
();
mounted
()
{
//适配不同页面下的table高度
//其中159为form表单高度,不同页面高度不同,可以考虑获取dom高度
// this.maxHeight = (document.body.clientHeight || document.documentElement.clientHeight) - 60 - 40 - 40 - 42 - 40 - 159 - 10 - 37 - 60;
this
.
$nextTick
(()
=>
{
this
.
getInidatfro
();
})
},
computed
:
{
reload
()
{
...
...
@@ -214,12 +219,6 @@
this
.
handleSearch
()
}
}
},
created
()
{
//适配不同页面下的table高度
//其中159为form表单高度,不同页面高度不同,可以考虑获取dom高度
this
.
maxHeight
=
(
document
.
body
.
clientHeight
||
document
.
documentElement
.
clientHeight
)
-
60
-
40
-
40
-
42
-
40
-
159
-
10
-
37
-
60
;
}
};
</
script
>
...
...
src/review/gitopn/event/index.js
View file @
b692c87d
...
...
@@ -81,7 +81,7 @@ export default {
let
rtnmsg
=
await
Api
.
post
(
'/service/trnrel/relrow'
,
params
);
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
errorMsg
=
''
;
let
fieldErrorsFlag
=
JSON
.
stringify
(
rtnmsg
.
data
.
fieldErrors
)
==
'{}'
;
let
fieldErrorsFlag
=
!
rtnmsg
.
data
.
fieldErrors
;
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
''
;
let
errorMsgVal
=
''
;
...
...
@@ -109,7 +109,7 @@ export default {
}
}
else
{
let
errorMsg
=
''
;
let
fieldErrorsFlag
=
JSON
.
stringify
(
rtnmsg
.
data
.
fieldErrors
)
==
'{}'
;
let
fieldErrorsFlag
=
!
rtnmsg
.
data
.
fieldErrors
;
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
''
;
let
errorMsgVal
=
''
;
...
...
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