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
b86e001b
Commit
b86e001b
authored
Nov 30, 2021
by
zhengxiaokui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
letopn
parent
7d659b97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
236 additions
and
90 deletions
+236
-90
index.js
src/model/Letopn/index.js
+12
-1
Doctre.vue
src/views/Business/Letopn/Doctre.vue
+128
-89
EditTable.vue
src/views/Public/EditTable.vue
+96
-0
No files found.
src/model/Letopn/index.js
View file @
b86e001b
...
...
@@ -315,7 +315,18 @@ export default class Letopn {
seainf
:
""
,
// .trnmod.trndoc.rcvatt.seainf
},
filrecv
:
""
,
// File Receiver .trnmod.trndoc.filrecv
doceot
:
[],
doceot
:
[
{
rol
:
'323232323'
,
nam
:
'wangxueqin'
,
address
:
'beijing'
,
},
{
rol
:
'323232323'
,
nam
:
'zhengxiaokui'
,
address
:
'beijing'
,
},
],
},
},
liaall
:
{
...
...
src/views/Business/Letopn/Doctre.vue
View file @
b86e001b
<
template
>
<div
class=
"eibs-tab"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"File Receiver"
prop=
"trnmod.trndoc.filrecv"
>
<c-input
v-model=
"model.trnmod.trndoc.filrecv"
placeholder=
"请输入File Receiver"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Document tree"
prop=
"trnmod.trndoc.doctrestm"
>
<c-input
v-model=
"model.trnmod.trndoc.doctrestm"
placeholder=
"请输入Document tree"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButshw"
>
Sho
&
w
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButadd"
>
D
&
etails
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButnew"
>
&
Add New
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButattto"
>
Attach to
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
icon=
"el-icon-delete"
@
click=
"onTrndocButdel"
>
Delete
</c-button>
</c-col>
<c-col
:span=
"12"
>
<span
v-text=
"model.trnmod.trndoc.doclbl"
data-path=
".trnmod.trndoc.doclbl"
>
</span>
</c-col>
<c-col
:span=
"12"
>
<c-checkbox
v-model=
"model.trnmod.trndoc.shwinc"
>
Show Incoming Messages
</c-checkbox>
</c-col>
<c-col
:span=
"12"
>
<c-checkbox
v-model=
"model.trnmod.trndoc.shwout"
>
Show Outgoing Messages
</c-checkbox>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButatt"
>
Attach
</c-button>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Connected Documents"
prop=
"trnmod.trndoc.condocstm"
>
<c-input
v-model=
"model.trnmod.trndoc.condocstm"
placeholder=
"请输入Connected Documents"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"trnmod.trndoc.rcvatt.seainf"
>
<c-input
v-model=
"model.trnmod.trndoc.rcvatt.seainf"
placeholder=
"请输入"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"File Receiver"
prop=
"trnmod.trndoc.filrecv"
>
<c-input
v-model=
"model.trnmod.trndoc.filrecv"
placeholder=
"请输入File Receiver"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Document tree"
prop=
"trnmod.trndoc.doctrestm"
>
<c-input
v-model=
"model.trnmod.trndoc.doctrestm"
placeholder=
"请输入Document tree"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButshw"
>
Sho
&
w
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButadd"
>
D
&
etails
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButnew"
>
&
Add New
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButattto"
>
Attach to
</c-button>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
icon=
"el-icon-delete"
@
click=
"onTrndocButdel"
>
Delete
</c-button>
</c-col>
<c-col
:span=
"12"
>
<span
v-text=
"model.trnmod.trndoc.doclbl"
data-path=
".trnmod.trndoc.doclbl"
>
</span>
</c-col>
<c-col
:span=
"12"
>
<c-checkbox
v-model=
"model.trnmod.trndoc.shwinc"
>
Show Incoming Messages
</c-checkbox
>
</c-col>
<c-col
:span=
"12"
>
<c-checkbox
v-model=
"model.trnmod.trndoc.shwout"
>
Show Outgoing Messages
</c-checkbox
>
</c-col>
<c-col
:span=
"12"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"onTrndocButatt"
>
Attach
</c-button>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
"Connected Documents"
prop=
"trnmod.trndoc.condocstm"
>
<c-input
v-model=
"model.trnmod.trndoc.condocstm"
placeholder=
"请输入Connected Documents"
></c-input>
</el-form-item>
</c-col>
<c-col
:span=
"12"
>
<el-form-item
label=
""
prop=
"trnmod.trndoc.rcvatt.seainf"
>
<c-input
v-model=
"model.trnmod.trndoc.rcvatt.seainf"
placeholder=
"请输入"
></c-input>
</el-form-item>
</c-col>
<c-editTable
:model=
"model"
v-bind=
"doceot"
>
</c-editTable>
</div>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
import
Event
from
"~/model/Letopn/Event"
import
CodeTable
from
"~/config/CodeTable"
;
import
Event
from
"~/model/Letopn/Event"
;
import
EditTable
from
"~/views/Public/EditTable"
;
export
default
{
inject
:
[
'root'
],
props
:[
"model"
,
"codes"
],
mixins
:
[
CommonProcess
],
data
(){
return
{
}
},
methods
:{...
Event
},
created
:
function
(){
}
}
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
components
:
{
"c-editTable"
:
EditTable
},
mixins
:
[
CommonProcess
],
data
()
{
return
{
doceot
:
{
columns
:
[
{
title
:
"列1"
,
width
:
"120px"
,
dataIndex
:
"rol"
,
show
:
"input"
,
},
{
title
:
"名称"
,
width
:
"120px"
,
dataIndex
:
"nam"
,
},
{
title
:
"地址"
,
width
:
"120px"
,
dataIndex
:
"address"
,
},
],
urls
:
"trnmod.trndoc.doceot"
,
},
};
},
methods
:
{
...
Event
},
created
:
function
()
{},
};
</
script
>
<
style
>
</
style
>
src/views/Public/EditTable.vue
0 → 100644
View file @
b86e001b
<
template
>
<c-col
:span=
"22"
style=
"margin-bottom: 18px"
:offset=
"1"
>
<c-table
style=
"text-align: center"
:list=
"dataSource"
:paginationShow=
"paginationShow"
:border=
"border"
>
<template
v-for=
"item in columns"
>
<el-table-column
:label=
"item.title"
:prop=
"item.dataIndex"
:min-width=
"item.width"
:key=
"item.dataIndex"
>
<template
slot-scope=
"scope"
>
<el-select
v-if=
"item.show === 'select'"
v-model=
"scope.row[item.dataIndex]"
:code=
"item.code"
></el-select>
<el-input
v-else-if=
"item.show === 'input'"
v-model=
"scope.row[item.dataIndex]"
:placeholder=
"`请输入$
{item.title}`"
>
</el-input>
<span
v-else
>
{{
scope
.
row
[
item
.
dataIndex
]
}}
</span>
</
template
>
</el-table-column>
</template>
</c-table>
</c-col>
</template>
<
script
>
import
Api
from
"~/service/Api"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
_
from
"~/utils/Lodash.js"
;
export
default
{
inject
:
[
"root"
],
mixins
:
[
CommonProcess
],
data
()
{
return
{
dataSource
:
_
.
get
(
this
.
model
,
this
.
urls
,
[]),
};
},
props
:
{
model
:
{
type
:
Object
,
default
:
undefined
,
},
urls
:
{
//data数据所在model中的路径
type
:
String
,
default
:
""
,
},
columns
:
{
//列信息
type
:
Array
,
default
:
function
()
{
return
[];
},
},
paginationShow
:
{
//名称地址是否灰显
type
:
Boolean
,
default
:
false
,
},
border
:
{
//是否有边框
type
:
Boolean
,
default
:
true
,
},
},
watch
:
{
dataSource
:
{
handler
(
val
,
oldVal
)
{
_
.
set
(
this
.
model
,
this
.
urls
,
val
);
// console.log(this.model);
},
immediate
:
true
,
deep
:
true
,
},
},
methods
:
{},
created
:
function
()
{},
};
</
script
>
<
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