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
a96d893f
Commit
a96d893f
authored
Dec 03, 2021
by
zhengxiaokui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxk
parent
82d239cf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
15 deletions
+53
-15
EditTable.vue
src/components/EditTable.vue
+11
-6
index.js
src/components/index.js
+5
-3
index.js
src/model/Letopn/index.js
+3
-0
Doctre.vue
src/views/Business/Letopn/Doctre.vue
+1
-3
Ptyp.vue
src/views/Business/Letopn/Ptyp.vue
+30
-2
index.vue
src/views/Business/Letopn/index.vue
+3
-1
No files found.
src/
views/Public
/EditTable.vue
→
src/
components
/EditTable.vue
View file @
a96d893f
<
template
>
<c-row>
<c-col
:span=
"2
2
"
style=
"margin-bottom: 18px"
:offset=
"1"
>
<c-col
:span=
"2
1
"
style=
"margin-bottom: 18px"
:offset=
"1"
>
<c-table
style=
"text-align: center"
:ref=
"urls"
...
...
@@ -11,7 +11,8 @@
:row-class-name=
"tableRowClassName"
@
row-click=
"handleClick"
>
<el-table-column
type=
"index"
width=
"50"
>
</el-table-column>
<el-table-column
v-if=
"isIndex"
type=
"index"
width=
"50"
>
</el-table-column>
<template
v-for=
"item in columns"
>
<el-table-column
:label=
"item.title"
...
...
@@ -45,13 +46,12 @@
</c-row>
</template>
<
script
>
import
Api
from
"~/service/Api"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
_
from
"~/utils/Lodash.js"
;
import
Col
from
"../../components/Col
.vue"
;
import
Table
from
"./Table
.vue"
;
export
default
{
components
:
{
Col
},
components
:
{
"c-table"
:
Table
},
inject
:
[
"root"
],
mixins
:
[
CommonProcess
],
...
...
@@ -93,6 +93,10 @@ export default {
type
:
Boolean
,
default
:
true
,
},
isIndex
:
{
type
:
Boolean
,
default
:
false
,
},
},
computed
:
{},
...
...
@@ -126,6 +130,7 @@ export default {
this
.
dataSource
.
push
({
...
arr
});
},
handleDelete
()
{
if
(
this
.
dataSource
.
length
===
0
)
return
;
if
(
this
.
rowIndex
===
null
)
{
this
.
rowIndex
=
this
.
dataSource
[
this
.
dataSource
.
length
-
1
].
row_index
;
//没有选中删除最后一行
}
...
...
@@ -144,7 +149,7 @@ export default {
margin-left
:
2px
;
display
:
flex
;
flex-direction
:
column
;
text-align
:
right
;
/* text-align: right; */
}
.add_del_button
{
display
:
block
;
...
...
src/components/index.js
View file @
a96d893f
...
...
@@ -2,7 +2,7 @@ import c_page from "./c-page.vue"
import
PtyPicker
from
"./PtyPicker"
import
UnicodePicker
from
"./UnicodePicker"
import
DocShow
from
"./DocShow"
import
EditTable
from
"./EditTable"
import
Col
from
"./Col.vue"
import
Row
from
"./Row.vue"
;
import
Input
from
"./Input.vue"
...
...
@@ -44,6 +44,7 @@ import BusinessButon from "./BusinessButton"
export
default
{
install
(
Vue
)
{
Vue
.
component
(
"c-page"
,
c_page
)
Vue
.
component
(
"c-edit-table"
,
EditTable
)
Vue
.
component
(
"c-col"
,
Col
)
Vue
.
component
(
"c-row"
,
Row
)
Vue
.
component
(
'c-input'
,
Input
)
...
...
@@ -80,8 +81,8 @@ export default {
Vue
.
component
(
"c-checkbox-group"
,
CheckboxGroup
)
Vue
.
component
(
"c-cascader"
,
Cascader
)
Vue
.
component
(
"c-highlight-content"
,
HighlightContent
)
Vue
.
component
(
"c-paged-select"
,
PagedSelect
)
Vue
.
component
(
"c-paged-select"
,
PagedSelect
)
Vue
.
component
(
"c-function-btn"
,
FunctionBtn
)
Vue
.
component
(
"c-bus-button"
,
BusinessButon
)
Vue
.
component
(
"c-bus-button"
,
BusinessButon
)
}
}
\ No newline at end of file
src/model/Letopn/index.js
View file @
a96d893f
...
...
@@ -158,6 +158,9 @@ export default class Letopn {
dadsnd
:
""
,
// Drag Drop Sender .letp.recget.sdamod.dadsnd
},
},
ptsaddp
:
{
ptsaddg
:
[],
// .letp.ptsaddp.ptsaddg
},
usr
:
{
extkey
:
""
,
// Responsible User .letp.usr.extkey
},
...
...
src/views/Business/Letopn/Doctre.vue
View file @
a96d893f
...
...
@@ -91,7 +91,7 @@
></c-input>
</el-form-item>
</c-col>
<c-edit
Table
:model=
"model"
v-bind=
"doceot"
>
</c-editT
able>
<c-edit
-table
:model=
"model"
v-bind=
"doceot"
>
</c-edit-t
able>
</div>
</
template
>
<
script
>
...
...
@@ -99,12 +99,10 @@ import Api from "~/service/Api";
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Letopn/Event"
;
import
EditTable
from
"~/views/Public/EditTable"
;
export
default
{
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
components
:
{
"c-editTable"
:
EditTable
},
mixins
:
[
CommonProcess
],
data
()
{
return
{
...
...
src/views/Business/Letopn/Ptyp.vue
View file @
a96d893f
...
...
@@ -40,7 +40,7 @@
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"11"
:offset=
"1"
>
<c-col
:span=
"24"
>
<c-ptap
...
...
@@ -94,6 +94,7 @@
</el-form-item>
</c-col>
</c-col>
<c-edit-table
:model=
"model"
v-bind=
"ptsaddg"
>
</c-edit-table>
</c-row>
</
template
>
<
script
>
...
...
@@ -109,7 +110,34 @@ export default {
props
:
[
"model"
,
"codes"
],
mixins
:
[
CommonProcess
],
data
()
{
return
{};
return
{
ptsaddg
:
{
columns
:
[
{
title
:
"角色"
,
width
:
"120px"
,
dataIndex
:
"rol"
,
show
:
"select"
,
},
{
title
:
"机构实体"
,
width
:
"180px"
,
dataIndex
:
"ptyextkey"
,
},
{
title
:
"名称"
,
width
:
"300px"
,
dataIndex
:
"nam"
,
},
{
title
:
"参考地址"
,
width
:
"300px"
,
dataIndex
:
"ref"
,
},
],
urls
:
"letp.ptsaddp.ptsaddg"
,
},
};
},
methods
:
{
...
Event
},
created
:
function
()
{},
...
...
src/views/Business/Letopn/index.vue
View file @
a96d893f
...
...
@@ -37,7 +37,9 @@
<!--PD000042 -->
<el-tab-pane
label=
"银行信息"
name=
"ptyp"
>
<m-ptyp
:model=
"model"
:codes=
"codes"
/>
<c-content>
<m-ptyp
:model=
"model"
:codes=
"codes"
/>
</c-content>
</el-tab-pane>
<!--PD000055 -->
...
...
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