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
zhouqian
vue-gjjs
Commits
d1db3a24
Commit
d1db3a24
authored
Sep 27, 2022
by
taojinrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cptbat交易
parent
276f7396
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
20 deletions
+93
-20
Event.js
src/model/Cptbat/Event.js
+44
-8
Fpanel.vue
src/views/Business/Cptbat/Fpanel.vue
+49
-12
No files found.
src/model/Cptbat/Event.js
View file @
d1db3a24
...
...
@@ -7,6 +7,10 @@ export default {
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
$message
({
type
:
'success'
,
message
:
'获取成功!'
});
}
else
...
...
@@ -16,12 +20,18 @@ export default {
},
async
onUpload
(){
let
rtnmsg1
=
await
this
.
executeRule
(
"init"
)
let
rtnmsg
=
await
this
.
executeRule
(
"upload"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
this
.
$message
({
type
:
'success'
,
message
:
'上传成功!'
});
this
.
model
.
filpth
=
''
this
.
model
.
newnam
=
''
this
.
model
.
opefil
=
''
}
else
{
...
...
@@ -33,7 +43,11 @@ export default {
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
this
.
$message
({
type
:
'success'
,
message
:
'解析成功!'
});
}
else
{
...
...
@@ -45,6 +59,14 @@ export default {
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
Utils
.
copyValueFromVO
(
this
.
model
,
rtnmsg
.
data
);
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
});
this
.
model
.
filpth
=
''
this
.
model
.
newnam
=
''
this
.
model
.
opefil
=
''
}
else
...
...
@@ -64,18 +86,32 @@ export default {
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
row
(
row
,
column
,
event
){
console
.
log
(
12121
)
this
.
flag
=
false
async
rowcli
(
row
){
this
.
flag
=
true
// this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row);
let
rtnmsg
=
await
this
.
executeRule
(
"filstm"
)
let
params
=
{
selDst
:
"filstm"
,
selIds
:[
row
.
IDX
+
1
]}
let
rtnmsg
=
await
this
.
executeRule
(
"filstm"
,
params
)
//let rtnmsg = await this.executeRule("filstm")
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//this.model.filpth = rtnmsg.data.params.rows[0].INR
if
(
this
.
model
.
opetye
==
'1'
){
this
.
model
.
filpth
=
rtnmsg
.
data
.
filpth
this
.
model
.
newnam
=
rtnmsg
.
data
.
newnam
this
.
model
.
opefil
=
''
}
if
(
this
.
model
.
opetye
==
'2'
){
this
.
model
.
filpth
=
''
this
.
model
.
newnam
=
''
this
.
model
.
opefil
=
rtnmsg
.
data
.
opefil
}
if
(
this
.
model
.
opetye
==
'3'
){
this
.
model
.
filpth
=
''
this
.
model
.
newnam
=
''
this
.
model
.
opefil
=
''
}
}
else
{
...
...
src/views/Business/Cptbat/Fpanel.vue
View file @
d1db3a24
...
...
@@ -5,7 +5,7 @@
:list=
"model.filstm.rows||[]"
:columns=
"stmData.columns"
:showButtonFlg=
"true"
@
chooseRowEvent=
"row"
@
chooseRowEvent=
"row
cli
"
>
</c-istream-table>
</c-col>
...
...
@@ -64,24 +64,24 @@
<c-col
:span=
"4"
:offset=
"1"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"
flag
"
@
click=
"onOpnfil"
>
文件预览
</c-button>
<c-button
type=
"primary"
:disabled=
"
!(this.flag && model.opetye == '1')
"
@
click=
"onOpnfil"
>
文件预览
</c-button>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"
model.newnam === ''
"
:disabled=
"
!(this.flag && model.opetye == '1')
"
@
click=
"onUpload"
>
文件上传
</c-button
>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"
flag
"
@
click=
"onReadfil"
>
文件解析
</c-button>
<c-button
type=
"primary"
:disabled=
"
!(this.flag && model.opetye =='2')
"
@
click=
"onReadfil"
>
文件解析
</c-button>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"
flag
"
@
click=
"onDel"
>
文件删除
</c-button>
<c-button
type=
"primary"
:disabled=
"
!(this.flag && (model.opetye == '1'||model.opetye == '2'))
"
@
click=
"onDel"
>
文件删除
</c-button>
</c-col>
</c-col>
...
...
@@ -196,7 +196,7 @@ export default {
mixins
:
[
commonProcess
],
data
()
{
return
{
flag
:
tru
e
,
flag
:
fals
e
,
opetye
:
[
{
label
:
"文件上传"
,
value
:
"1"
},
{
label
:
"文件解析"
,
value
:
"2"
},
...
...
@@ -214,12 +214,49 @@ export default {
},
methods
:
{
...
Event
,
// rowClick(row, column, event) {
// console.log(789)
// this.$refs.table.setCurrentRow(row);
// this.$emit("chooseRowEvent", row);
// this.executerule("")
// },
},
watch
:{
"model.opetye"
:
{
immediate
:
true
,
async
handler
(
val
,
oldVal
)
{
if
(
this
.
model
.
opetye
==
'1'
){
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
else
if
(
this
.
model
.
opetye
==
'2'
){
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
if
(
this
.
model
.
opetye
==
'3'
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
},
},
},
created
:
function
()
{},
};
...
...
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