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
23987531
Commit
23987531
authored
Aug 03, 2022
by
wangyanjiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#289 #291
parent
562a9b1d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
242 additions
and
184 deletions
+242
-184
index.js
src/model/Botdav/index.js
+1
-0
Ptyp.vue
src/views/Business/Botdav/Ptyp.vue
+69
-69
Ptyp.vue
src/views/Business/Botdcr/Ptyp.vue
+53
-35
Ptyp.vue
src/views/Business/Botrad/Ptyp.vue
+119
-80
No files found.
src/model/Botdav/index.js
View file @
23987531
...
@@ -98,6 +98,7 @@ export default class Botdav{
...
@@ -98,6 +98,7 @@ export default class Botdav{
},
},
botp
:{
botp
:{
ptsaddp
:{
ptsaddp
:{
ptsaddg
:
[],
},
},
recget
:{
recget
:{
sdamod
:{
sdamod
:{
...
...
src/views/Business/Botdav/Ptyp.vue
View file @
23987531
<
template
>
<
template
>
<c-row>
<c-row>
<c-col
:span=
"11"
>
<c-col
:span=
"11"
>
<c-ptap
<c-ptap
:model=
"model"
:argadr=
"
{
:model=
"model"
:argadr=
"
{
title: 'Drawer',
title: 'Drawer',
grp: 'bodgrp',
grp: 'bodgrp',
rol: 'drr',
rol: 'drr',
}"
}" :disabled="true" @onSeainf="onSeainf">
:disabled="true"
@onSeainf="onSeainf"
>
</c-ptap>
</c-ptap>
<c-ptap
<c-ptap
:model=
"model"
:argadr=
"
{
:model=
"model"
:argadr=
"
{
title: 'Drawee',
title: 'Drawee',
grp: 'bodgrp',
grp: 'bodgrp',
rol: 'dre',
rol: 'dre',
}"
}" :disabled="true" @onSeainf="onSeainf">
:disabled="true"
@onSeainf="onSeainf"
>
</c-ptap>
</c-ptap>
</c-col>
</c-col>
<c-col
:span=
"11"
:offset=
"1"
>
<c-col
:span=
"11"
:offset=
"1"
>
<c-ptap
<c-ptap
:model=
"model"
:argadr=
"
{
:model=
"model"
:argadr=
"
{
title: 'Collecting Bank',
title: 'Collecting Bank',
grp: 'bodgrp',
grp: 'bodgrp',
rol: 'col',
rol: 'col',
}"
}" :disabled="true" @onSeainf="onSeainf">
:disabled="true"
@onSeainf="onSeainf"
>
</c-ptap>
</c-ptap>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-edit-table
:model=
"model"
v-bind=
"ptsaddg"
>
<c-table
max-height=
"300px"
style=
"text-align: center;"
stripe
:list=
"this.model.botp.ptsaddp.ptsaddg || []"
<el-table-column
label=
"操作"
text-align=
"center"
>
:paginationShow=
"false"
:border=
"true"
>
<el-table-column
label=
"角色"
width=
"auto"
prop=
"rol"
>
<template
slot-scope=
"scope"
>
<c-select
v-model=
"scope.row.rol"
:code=
"codes.ptyp2"
>
</c-select>
</
template
>
</el-table-column>
<el-table-column
label=
"机构实体"
width=
"auto"
prop=
"ptyextkey"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.ptyextkey"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"名称"
width=
"auto"
prop=
"nam"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.nam"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"参考地址"
width=
"auto"
prop=
"ref"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.ref"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"Document"
prop=
"docnam"
width=
"auto"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<c-row>
<c-col
:span=
"12"
>
<span
style=
"line-height: 36px;"
>
操作
</span>
</c-col>
<c-col
:span=
"12"
>
<div
style=
"float: right;"
>
<span
class=
"add_del_button add_button"
@
click=
"addTableValue"
>
+
</span>
<span
class=
"add_del_button"
@
click=
"deleteTable"
>
-
</span>
</div>
</c-col>
</c-row>
</
template
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
size=
"mini"
@
click=
"handleEdit(scope.$index, scope.row)"
type=
"primary"
>
详情
size=
"mini"
</el-button>
@
click=
"handleEdit(scope.$index, scope.row)"
type=
"primary"
>
详情
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</c-edit
-table>
</c
-table>
</c-col>
</c-col>
</c-row>
</c-row>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
import
Utils
from
"~/utils"
;
import
Utils
from
"~/utils"
;
import
Ptap
from
"~/views/Public/Ptap"
;
import
Ptap
from
"~/views/Public/Ptap"
;
export
default
{
export
default
{
components
:
{
"c-ptap"
:
Ptap
},
components
:
{
"c-ptap"
:
Ptap
},
inject
:
[
'root'
],
inject
:
[
'root'
],
props
:[
"model"
,
"codes"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
()
{
data
()
{
return
{
return
{
ptsaddg
:
{
}
columns
:
[
{
title
:
"角色"
,
width
:
"120px"
,
dataIndex
:
"rol"
,
show
:
"select"
,
code
:
"codes.ptyp2"
},
{
title
:
"机构实体"
,
width
:
"180px"
,
dataIndex
:
"ptyextkey"
,
show
:
"input"
,
},
},
{
methods
:
{
title
:
"名称"
,
...
Event
,
width
:
"300px"
,
addTableValue
(
index
)
{
dataIndex
:
"nam"
,
var
newTableValue
=
Object
.
assign
({},
this
.
newValue
);
const
serial
=
Utils
.
generateUUID
();
newTableValue
.
serialNum
=
serial
;
this
.
model
.
botp
.
ptsaddp
.
ptsaddg
.
splice
(
index
-
1
,
0
,
newTableValue
);
},
},
{
deleteTable
(
index
)
{
title
:
"参考地址"
,
this
.
model
.
botp
.
ptsaddp
.
ptsaddg
.
splice
(
index
,
1
);
width
:
"300px"
,
dataIndex
:
"ref"
,
},
},
],
urls
:
"botp.ptsaddp.ptsaddg"
,
},
},
created
:
function
()
{
}
}
},
methods
:{...
Event
},
created
:
function
(){
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
...
...
src/views/Business/Botdcr/Ptyp.vue
View file @
23987531
...
@@ -49,19 +49,53 @@
...
@@ -49,19 +49,53 @@
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-edit-table
:model=
"model"
v-bind=
"ptsaddg"
:disabledAll=
"true"
:isAdd=
"false"
>
<c-table
max-height=
"300px"
style=
"text-align: center;"
stripe
:list=
"this.model.botp.ptsaddp.ptsaddg || []"
<el-table-column
label=
"操作"
text-align=
"center"
>
:paginationShow=
"false"
:border=
"true"
>
<el-table-column
label=
"角色"
width=
"auto"
prop=
"rol"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<c-select
v-model=
"scope.row.rol"
:code=
"codes.ptyp2"
>
</c-select>
</
template
>
size=
"mini"
</el-table-column>
@
click=
"handleEdit(scope.$index, scope.row)"
<el-table-column
label=
"机构实体"
width=
"auto"
prop=
"ptyextkey"
>
type=
"primary"
<
template
slot-scope=
"scope"
>
>
详情
</el-button
<c-input
v-model=
"scope.row.ptyextkey"
maxlength=
"12"
>
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"名称"
width=
"auto"
prop=
"nam"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.nam"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"参考地址"
width=
"auto"
prop=
"ref"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.ref"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"Document"
prop=
"docnam"
width=
"auto"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<c-row>
<c-col
:span=
"12"
>
<span
style=
"line-height: 36px;"
>
操作
</span>
</c-col>
<c-col
:span=
"12"
>
<div
style=
"float: right;"
>
<span
class=
"add_del_button add_button"
@
click=
"addTableValue"
>
+
</span>
<span
class=
"add_del_button"
@
click=
"deleteTable"
>
-
</span>
</div>
</c-col>
</c-row>
</
template
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
@
click=
"handleEdit(scope.$index, scope.row)"
type=
"primary"
>
详情
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</c-
edit-
table>
</c-table>
</c-col>
</c-col>
</c-row>
</c-row>
</template>
</template>
...
@@ -80,36 +114,20 @@ export default {
...
@@ -80,36 +114,20 @@ export default {
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
(){
data
(){
return
{
return
{
ptsaddg
:
{
}
columns
:
[
{
title
:
"角色"
,
width
:
"120px"
,
dataIndex
:
"rol"
,
show
:
"select"
,
},
{
title
:
"机构实体"
,
width
:
"180px"
,
dataIndex
:
"ptyextkey"
,
show
:
"input"
,
},
{
title
:
"名称"
,
width
:
"300px"
,
dataIndex
:
"nam"
,
},
},
{
methods
:
{
title
:
"参考地址"
,
...
Event
,
width
:
"300px"
,
addTableValue
(
index
)
{
dataIndex
:
"ref"
,
var
newTableValue
=
Object
.
assign
({},
this
.
newValue
);
const
serial
=
Utils
.
generateUUID
();
newTableValue
.
serialNum
=
serial
;
this
.
model
.
botp
.
ptsaddp
.
ptsaddg
.
splice
(
index
-
1
,
0
,
newTableValue
);
},
},
],
deleteTable
(
index
)
{
urls
:
"botp.ptsaddp.ptsaddg"
,
this
.
model
.
botp
.
ptsaddp
.
ptsaddg
.
splice
(
index
,
1
);
},
},
}
},
},
methods
:{...
Event
},
created
:
function
(){
created
:
function
(){
onsole
.
log
(
this
.
root
);
onsole
.
log
(
this
.
root
);
}
}
...
...
src/views/Business/Botrad/Ptyp.vue
View file @
23987531
<
template
>
<
template
>
<c-row>
<c-row>
<c-col
:span=
"11"
>
<c-col
:span=
"11"
>
<c-ptap
<c-ptap
:model=
"model"
:argadr=
"
{
:model=
"model"
:argadr=
"
{
title: 'Drawer',
title: 'Drawer',
grp: 'bodgrp',
grp: 'bodgrp',
rol: 'drr',
rol: 'drr',
}"
}" :disabledRef="false" :disabledExtkey="true" :disabled="true" @onSeainf="onSeainf" @onAplpDet="onBenpDet">
:disabledRef="false"
:disabledExtkey="true"
:disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
>
</c-ptap>
</c-ptap>
<c-ptap
<c-ptap
:model=
"model"
:argadr=
"
{
:model=
"model"
:argadr=
"
{
title: 'Drawee',
title: 'Drawee',
grp: 'bodgrp',
grp: 'bodgrp',
rol: 'dre',
rol: 'dre',
}"
}" :disabledRef="true" :disabledExtkey="true" :disabled="true" @onSeainf="onSeainf" @onAplpDet="onBenpDet">
:disabledRef="true"
:disabledExtkey="true"
:disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
>
</c-ptap>
</c-ptap>
</c-col>
</c-col>
<c-col
:span=
"11"
:offset=
"1"
>
<c-col
:span=
"11"
:offset=
"1"
>
<c-ptap
<c-ptap
:model=
"model"
:argadr=
"
{
:model=
"model"
:argadr=
"
{
title: 'Collecting Bank',
title: 'Collecting Bank',
grp: 'bodgrp',
grp: 'bodgrp',
rol: 'col',
rol: 'col',
}"
}" :disabledRef="true" :disabledExtkey="true" :disabled="true" @onSeainf="onSeainf" @onAplpDet="onBenpDet">
:disabledRef="true"
:disabledExtkey="true"
:disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
>
</c-ptap>
</c-ptap>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-edit-table
:model=
"model"
v-bind=
"ptsaddg"
>
<c-table
max-height=
"300px"
style=
"text-align: center;"
stripe
:list=
"this.model.botp.ptsaddp.ptsaddg || []"
<el-table-column
label=
"操作"
text-align=
"center"
>
:paginationShow=
"false"
:border=
"true"
>
<el-table-column
label=
"角色"
width=
"auto"
prop=
"rol"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-button
<c-select
v-model=
"scope.row.rol"
:code=
"codes.ptyp2"
>
</c-select>
</
template
>
size=
"mini"
</el-table-column>
@
click=
"handleEdit(scope.$index, scope.row)"
<el-table-column
label=
"机构实体"
width=
"auto"
prop=
"ptyextkey"
>
type=
"primary"
<
template
slot-scope=
"scope"
>
>
详情
</el-button
<c-input
v-model=
"scope.row.ptyextkey"
maxlength=
"12"
>
>
</c-input
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</c-edit-table>
<el-table-column
label=
"名称"
width=
"auto"
prop=
"nam"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.nam"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"参考地址"
width=
"auto"
prop=
"ref"
>
<
template
slot-scope=
"scope"
>
<c-input
v-model=
"scope.row.ref"
maxlength=
"12"
>
</c-input>
</
template
>
</el-table-column>
<el-table-column
label=
"Document"
prop=
"docnam"
width=
"auto"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<c-row>
<c-col
:span=
"12"
>
<span
style=
"line-height: 36px;"
>
操作
</span>
</c-col>
<c-col
:span=
"12"
>
<div
style=
"float: right;"
>
<span
class=
"add_del_button add_button"
@
click=
"addTableValue"
>
+
</span>
<span
class=
"add_del_button"
@
click=
"deleteTable"
>
-
</span>
</div>
</c-col>
</c-col>
</c-row>
</c-row>
</
template
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
@
click=
"handleEdit(scope.$index, scope.row)"
type=
"primary"
>
详情
</el-button>
</
template
>
</el-table-column>
</c-table>
</c-col>
<!-- <c-col :span="24">
<c-edit-table :model="model" v-bind="ptsaddg">
<el-table-column label="操作" text-align="center">
<template slot-scope="scope">
<el-button size="mini" @click="handleEdit(scope.$index, scope.row)" type="primary">详情
</el-button>
</template>
</el-table-column>
</c-edit-table>
</c-col> -->
</c-row>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
import
Event
from
"~/model/Botdcr/Event"
import
Event
from
"~/model/Botdcr/Event"
import
Utils
from
"~/utils"
;
import
Utils
from
"~/utils"
;
import
Ptap
from
"~/views/Public/Ptap"
;
import
Ptap
from
"~/views/Public/Ptap"
;
export
default
{
export
default
{
components
:
{
"c-ptap"
:
Ptap
},
components
:
{
"c-ptap"
:
Ptap
},
inject
:
[
'root'
],
inject
:
[
'root'
],
props
:[
"model"
,
"codes"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
()
{
data
()
{
return
{
return
{
ptsaddg
:
{
// ptsaddg: {
columns
:
[
// columns: [
{
// {
title
:
"角色"
,
// title: "角色",
width
:
"120px"
,
// width: "120px",
dataIndex
:
"rol"
,
// dataIndex: "rol",
show
:
"select"
,
// show: "select",
code
:
[
// code: [
{
label
:
"1st Third Party"
,
value
:
"TP1"
},
// { label: "1st Third Party", value: "TP1" },
{
label
:
"2nd Third Party"
,
value
:
"TP2"
},
// { label: "2nd Third Party", value: "TP2" },
]
// ]
// },
// {
// title: "机构实体",
// width: "180px",
// dataIndex: "ptyextkey",
// show: "input",
// },
// {
// title: "名称",
// width: "300px",
// dataIndex: "nam",
// },
// {
// title: "参考地址",
// width: "300px",
// dataIndex: "ref",
// },
// ],
// urls: "botp.ptsaddp.ptsaddg",
// },
newValue
:
{
rol
:
""
,
ptyextkey
:
""
,
nam
:
""
,
ref
:
""
,
},
},
{
}
title
:
"机构实体"
,
width
:
"180px"
,
dataIndex
:
"ptyextkey"
,
show
:
"input"
,
},
},
{
methods
:
{
title
:
"名称"
,
...
Event
,
width
:
"300px"
,
addTableValue
(
index
)
{
dataIndex
:
"nam"
,
var
newTableValue
=
Object
.
assign
({},
this
.
newValue
);
const
serial
=
Utils
.
generateUUID
();
newTableValue
.
serialNum
=
serial
;
this
.
model
.
botp
.
ptsaddp
.
ptsaddg
.
splice
(
index
-
1
,
0
,
newTableValue
);
},
},
{
deleteTable
(
index
)
{
title
:
"参考地址"
,
this
.
model
.
botp
.
ptsaddp
.
ptsaddg
.
splice
(
index
,
1
);
width
:
"300px"
,
dataIndex
:
"ref"
,
},
},
],
urls
:
"botp.ptsaddp.ptsaddg"
,
},
},
}
created
:
function
()
{
},
methods
:{...
Event
},
created
:
function
(){
onsole
.
log
(
this
.
root
);
onsole
.
log
(
this
.
root
);
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
</
style
>
</
style
>
\ No newline at end of file
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