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
5c000044
Commit
5c000044
authored
Apr 12, 2023
by
suwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待复核详情传参和路径;
parent
246a011f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
270 additions
and
99 deletions
+270
-99
index.js
src/business/getopn/event/index.js
+12
-1
Ovwp1.vue
src/business/getopn/views/Ovwp1.vue
+8
-3
index.js
src/business/trnrel/event/index.js
+3
-1
Inftrnps.vue
src/business/trnrel/views/Inftrnps.vue
+14
-0
GridSelectDialog.vue
src/components/GridSelectDialog.vue
+116
-0
index.js
src/components/index.js
+4
-1
index.js
src/review/gitopn/event/index.js
+112
-92
index.vue
src/review/gitopn/views/index.vue
+1
-1
No files found.
src/business/getopn/event/index.js
View file @
5c000044
...
...
@@ -50,7 +50,18 @@ export default {
if
(
res
.
respCode
===
SUCCESS
)
{
}
},
async
showGridPromptDialog
()
{},
async
showSelectGridDialog
(
arg
)
{
let
params
=
{
}
let
res
=
await
Api
.
post
(
'/service/getopn/fetch'
,
params
);
this
.
$refs
[
'gridSelectDialog'
].
show
=
true
;
if
(
res
.
respCode
===
SUCCESS
)
{
this
.
$refs
[
'gridSelectDialog'
].
show
=
true
;
this
.
$refs
[
'gridSelectDialog'
].
tableData
=
res
.
data
&&
res
.
data
.
list
;
}
},
async
onGitpButgetref
()
{
let
rtnmsg
=
await
this
.
executeRule
(
'gitp.butgetref'
);
...
...
src/business/getopn/views/Ovwp1.vue
View file @
5c000044
...
...
@@ -615,7 +615,7 @@
v-model=
"model.gidgrp.apl.pts.extkey"
maxlength=
"16"
placeholder=
"请输入"
@
keyup
.
enter
.
native=
""
@
keyup
.
enter
.
native=
"
showSelectGridDialog('gidgrp.apl.pts.extkey')
"
:disabled=
"model.gidgrp.ghd.segtyp == '02'"
>
</c-input>
...
...
@@ -1130,6 +1130,9 @@
</c-col>
</c-col>
</c-col>
<!-- 带分页请求的选择弹框 -->
<c-grid-select-dialog
ref=
"gridSelectDialog"
:promptData=
"promptData"
></c-grid-select-dialog>
</div>
</template>
<
script
>
...
...
@@ -1144,7 +1147,9 @@ export default {
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
,
commonApi
,
Event
],
data
()
{
return
{};
return
{
promptData
:
{}
};
},
computed
:
{
...
...
@@ -1165,7 +1170,7 @@ export default {
methods
:
{
},
created
:
function
()
{},
created
()
{},
};
</
script
>
<
style
>
...
...
src/business/trnrel/event/index.js
View file @
5c000044
...
...
@@ -82,13 +82,14 @@ export default {
//查询接口
const
loading
=
this
.
loading
();
const
res
=
await
Api
.
post
(
'/service/trnrel/getTenrelList'
,
params
);
if
(
res
.
respCode
===
'AAAAAA'
)
{
if
(
res
.
respCode
===
SUCCESS
)
{
this
.
stmData
.
data
=
res
.
data
.
list
;
this
.
pagination
.
total
=
Number
(
res
.
data
.
total
);
this
.
$store
.
commit
(
'setTaskList'
,
{
key
:
'trnrel'
,
val
:
this
.
stmData
.
data
&&
this
.
stmData
.
data
.
length
,
});
this
.
$store
.
commit
(
'setLoadingFreshReview'
,
false
)
}
loading
.
close
();
},
...
...
@@ -101,6 +102,7 @@ export default {
let
viewurl
=
'business-new/inftrnpsDetail'
;
let
params
=
{
inr
:
row
.
inr
,
userId
:
sessionStorage
.
getItem
(
'userId'
)
||
'ZL'
};
const
res
=
await
Api
.
post
(
'/service/trnrel/getTenrelDetailData'
,
params
);
if
(
res
.
respCode
===
'AAAAAA'
)
{
...
...
src/business/trnrel/views/Inftrnps.vue
View file @
5c000044
...
...
@@ -203,7 +203,21 @@
created
()
{
this
.
getInidatfro
();
},
computed
:
{
reload
()
{
return
this
.
$store
.
state
.
Status
.
loading
.
freshReview
;
}
},
watch
:
{
reload
(
val
)
{
if
(
val
)
{
debugger
this
.
handleSearch
()
}
}
},
created
()
{
//适配不同页面下的table高度
//其中159为form表单高度,不同页面高度不同,可以考虑获取dom高度
this
.
maxHeight
=
(
document
.
body
.
clientHeight
||
document
.
documentElement
.
clientHeight
)
-
60
-
40
-
40
-
42
-
40
-
159
-
10
-
37
-
60
;
...
...
src/components/GridSelectDialog.vue
0 → 100644
View file @
5c000044
<!-- 带分页请求的选择弹框 -->
<
template
>
<el-dialog
:title=
"promptData.title"
:visible
.
sync=
"show"
custom-class=
"grid-ety"
:highlight-current-row=
"true"
width=
"60%"
:before-close=
"beforeClose"
>
<el-table
:data=
"tableData"
border
@
row-dblclick=
"selectEty"
>
<el-table-column
v-for=
"(item, idx) in promptData.columns"
:key=
"idx"
:property=
"item.prop"
:label=
"item.label"
:width=
"item.width"
>
</el-table-column>
</el-table>
<el-pagination
layout=
"prev, pager, next, total, jumper"
:total=
"pagination.total"
:page-sizes=
"pagination.pageSizes"
:page-size=
"pagination.pageSize"
:current-page=
"pagination.currentPage"
@
current-change=
"currentChange"
@
size-change=
"handleSizeChange"
>
</el-pagination>
</el-dialog>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
;
import
commonApi
from
'~/mixin/commonApi'
;
export
default
{
mixins
:
[
commonApi
],
props
:
{
promptData
:
{
type
:
Object
,
required
:
true
,
default
:
()
=>
{
return
{
title
:
''
,
columns
:
[],
apiUrl
:
''
,
apiArgs
:
{}
}
}
}
},
data
()
{
return
{
show
:
false
,
cod
:
''
,
tableData
:
[],
pagination
:
{
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
50
,
100
,
500
],
pageSize
:
10
,
total
:
0
,
},
};
},
methods
:
{
async
handleSearch
()
{
let
params
=
{
...
this
.
promptData
.
apiArgs
,
pageNum
:
this
.
pagination
.
currentPage
,
pageSize
:
this
.
pagination
.
pageSize
,
};
const
loading
=
this
.
loading
();
let
res
=
await
Api
.
post
(
this
.
promptData
.
apiUrl
,
params
);
if
(
res
.
respCode
==
SUCCESS
)
{
this
.
tableData
=
res
.
data
&&
res
.
data
.
atpList
.
list
;
this
.
pagination
.
total
=
Number
((
res
.
data
&&
res
.
data
.
atpList
.
total
)
||
0
);
}
loading
.
close
();
},
currentChange
(
val
)
{
this
.
pagination
.
currentPage
=
val
;
this
.
handleSearch
()
},
handleSizeChange
(
val
)
{
this
.
pagination
.
currentPage
=
1
;
this
.
pagination
.
pageSize
=
val
;
this
.
handleSearch
();
},
selectEty
(
row
)
{
this
.
$emit
(
"selectEty"
,
{
...
row
,
role
:
this
.
promptData
.
type
});
this
.
show
=
false
;
this
.
currentPage
=
1
;
},
beforeClose
(
done
)
{
this
.
show
=
false
;
this
.
currentPage
=
1
;
done
();
},
},
};
</
script
>
<
style
>
.grid-ety
.el-table
.cell
{
white-space
:
pre-wrap
;
}
</
style
>
\ No newline at end of file
src/components/index.js
View file @
5c000044
...
...
@@ -59,7 +59,8 @@ import MulRowInput from "./MulRowInput.vue"
import
RichTextEditor
from
"./RichTextEditor.vue"
import
XmlFormatEditor
from
"./XmlFormatEditor.vue"
import
XmlFormatEditorNew
from
"./XmlFormatEditorNew.vue"
// 带分页请求的弹框组件
import
GridSelectDialog
from
'./GridSelectDialog.vue'
export
default
{
install
(
Vue
)
{
Vue
.
component
(
"c-page"
,
c_page
)
...
...
@@ -119,5 +120,6 @@ export default {
Vue
.
component
(
"c-rich-text-editor"
,
RichTextEditor
)
Vue
.
component
(
"c-xml-format-editor"
,
XmlFormatEditor
)
Vue
.
component
(
"c-xml-format-editor-new"
,
XmlFormatEditorNew
)
Vue
.
component
(
"c-grid-select-dialog"
,
GridSelectDialog
)
}
}
\ No newline at end of file
src/review/gitopn/event/index.js
View file @
5c000044
import
Api
from
"~/service/Api"
import
Api
from
'~/service/Api'
;
export
default
{
methods
:
{
async
init
()
{
async
init
()
{
const
params
=
{
spt
:
this
.
toHandleRowData
}
spt
:
this
.
toHandleRowData
,
}
;
const
res
=
await
Api
.
post
(
'/service/gitopn/init'
,
{
...
params
,
transName
:
this
.
trnName
,
userId
:
window
.
sessionStorage
.
userId
||
'ZL'
,
});
if
(
!
res
.
data
)
{
return
return
;
}
if
(
res
.
data
.
addbcb
)
{
this
.
$set
(
this
.
model
,
'addbcb'
,
res
.
data
.
addbcb
)
this
.
$set
(
this
.
model
,
'addbcb'
,
res
.
data
.
addbcb
)
;
}
if
(
res
.
data
.
gitp
)
{
this
.
$set
(
this
.
model
,
'gitp'
,
res
.
data
.
gitp
)
this
.
$set
(
this
.
model
,
'gitp'
,
res
.
data
.
gitp
)
;
}
if
(
res
.
data
.
gidgrp
)
{
this
.
$set
(
this
.
model
,
'gidgrp'
,
res
.
data
.
gidgrp
)
this
.
$set
(
this
.
model
,
'gidgrp'
,
res
.
data
.
gidgrp
)
;
}
if
(
res
.
data
.
cfagit
)
{
this
.
$set
(
this
.
model
,
'cfagit'
,
res
.
data
.
cfagit
)
this
.
$set
(
this
.
model
,
'cfagit'
,
res
.
data
.
cfagit
)
;
}
if
(
res
.
data
.
cnybop
)
{
this
.
$set
(
this
.
model
,
'cnybop'
,
res
.
data
.
cnybop
)
this
.
$set
(
this
.
model
,
'cnybop'
,
res
.
data
.
cnybop
)
;
}
this
.
$set
(
this
.
model
,
'setmod'
,
{
...
this
.
model
.
setmod
,
setfeg
:
res
.
data
.
setfeg
,
setfog
:
res
.
data
.
setfog
,
setglg
:
res
.
data
.
setglg
,
})
console
.
log
(
res
)
})
;
console
.
log
(
res
)
;
},
async
tabClick
(
tab
)
{
if
(
this
.
isInDisplay
)
{
...
...
@@ -72,106 +72,127 @@ export default {
//处理-复核
async
handlePass
(
val
)
{
let
params
=
{
}
let
params
=
{};
let
rtnmsg
=
await
Api
.
post
(
''
,
params
);
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
)
;
if
(
rtnmsg
.
respCode
===
SUCCESS
)
{
let
errorMsg
=
''
;
let
fieldErrorsFlag
=
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
'{}'
;
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
let
errorMsgkey
=
''
;
let
errorMsgVal
=
''
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
,
});
}
else
{
this
.
$notify
({
title
:
'成功'
,
message
:
'复核成功'
,
type
:
'success'
});
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
);
this
.
handleSearch
()
});
this
.
$notify
({
title
:
'成功'
,
message
:
'复核成功'
,
type
:
'success'
,
});
this
.
$store
.
dispatch
(
'TagsView/delView'
,
this
.
$route
);
this
.
$router
.
history
.
push
(
'/taskList'
,
()
=>
{
this
.
$store
.
commit
(
'setTaskListTabVal'
,
'trnrel'
);
// 刷新表格
this
.
$store
.
commit
(
'setLoadingFreshReview'
,
true
);
});
}
}
else
{
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
)
;
let
errorMsg
=
''
;
let
fieldErrorsFlag
=
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
'{}'
;
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsg
=
errorMsg
+
errorMsgkey
+
':'
+
errorMsgVal
+
";"
;
}
let
errorMsgkey
=
''
;
let
errorMsgVal
=
''
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsg
=
errorMsg
+
errorMsgkey
+
':'
+
errorMsgVal
+
';'
;
}
}
else
if
(
rtnmsg
.
respMsg
)
{
errorMsg
=
rtnmsg
.
respMsg
;
errorMsg
=
rtnmsg
.
respMsg
;
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'复核失败!错误信息['
+
errorMsg
+
']'
,
});
}
},
//处理-打回
async
handleRefuse
(
val
)
{
let
params
=
{
}
let
rtnmsg
=
await
Api
.
post
(
''
,
params
);
trninr
:
this
.
$route
.
query
.
trn
,
transName
:
'TRNREL'
,
userId
:
sessionStorage
.
getItem
(
'userId'
)
||
'ZL'
,
pageId
:
this
.
model
.
pageId
||
'1'
,
dflg
:
''
,
relflg
:
''
,
inidatfro
:
''
,
inidattol
:
''
,
};
let
rtnmsg
=
await
Api
.
post
(
'/service/trnrel/reprow'
,
params
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
)
;
let
errorMsg
=
''
;
let
fieldErrorsFlag
=
!
rtnmsg
.
fieldErrors
||
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
'{}'
;
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'退回失败!错误信息['
+
errorMsg
+
']'
});
let
errorMsgkey
=
''
;
let
errorMsgVal
=
''
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
}
errorMsg
=
errorMsgkey
+
':'
+
errorMsgVal
;
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'退回失败!错误信息['
+
errorMsg
+
']'
,
});
}
else
{
this
.
$notify
({
title
:
'成功'
,
message
:
'退回成功'
,
type
:
'success'
});
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
)
this
.
$router
.
history
.
push
(
"/taskList"
,
()
=>
{
this
.
$store
.
commit
(
"setTaskListTabVal"
,
'trnrel'
);
this
.
handleSearch
()
});
this
.
$notify
({
title
:
'成功'
,
message
:
'退回成功'
,
type
:
'success'
,
});
this
.
$store
.
dispatch
(
'TagsView/delView'
,
this
.
$route
);
this
.
$router
.
history
.
push
(
'/taskList'
,
()
=>
{
this
.
$store
.
commit
(
'setTaskListTabVal'
,
'trnrel'
);
// 刷新表格
this
.
$store
.
commit
(
'setLoadingFreshReview'
,
true
);
});
}
}
else
{
let
errorMsg
=
""
;
let
fieldErrorsFlag
=
(
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
"{}"
);
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
""
;
let
errorMsgVal
=
""
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsg
=
errorMsg
+
errorMsgkey
+
':'
+
errorMsgVal
+
";"
;
}
}
else
if
(
rtnmsg
.
respMsg
)
{
errorMsg
=
rtnmsg
.
respMsg
;
}
else
{
let
errorMsg
=
''
;
let
fieldErrorsFlag
=
!
rtnmsg
.
fieldErrors
||
JSON
.
stringify
(
rtnmsg
.
fieldErrors
)
==
'{}'
;
if
(
!
fieldErrorsFlag
)
{
let
errorMsgkey
=
''
;
let
errorMsgVal
=
''
;
for
(
const
key
in
rtnmsg
.
fieldErrors
)
{
errorMsgkey
=
key
;
errorMsgVal
=
rtnmsg
.
fieldErrors
[
key
];
errorMsg
=
errorMsg
+
errorMsgkey
+
':'
+
errorMsgVal
+
';'
;
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'退回失败!错误信息['
+
errorMsg
+
']'
});
}
else
if
(
rtnmsg
.
respMsg
)
{
errorMsg
=
rtnmsg
.
respMsg
;
}
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'退回失败!错误信息['
+
errorMsg
+
']'
,
});
}
},
//处理-退出
handleExit
()
{
}
}
}
\ No newline at end of file
this
.
$store
.
dispatch
(
'TagsView/delView'
,
this
.
$route
);
this
.
$router
.
history
.
push
(
'/taskList'
,
()
=>
{
this
.
$store
.
commit
(
'setTaskListTabVal'
,
'trnrel'
);
});
},
},
};
src/review/gitopn/views/index.vue
View file @
5c000044
...
...
@@ -257,7 +257,7 @@ export default {
}
}
}
let
res
=
await
Api
.
post
(
'/
gjjs/
service/gitopn/init'
,
params
);
let
res
=
await
Api
.
post
(
'/service/gitopn/init'
,
params
);
if
(
res
&&
res
.
respCode
==
SUCCESS
)
{
this
.
model
=
res
.
data
//TODO 处理数据逻辑
...
...
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