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
0129b9ca
Commit
0129b9ca
authored
Dec 23, 2021
by
hulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs [附言]
parent
a365dbf3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
30 deletions
+22
-30
IStreamInput.vue
src/components/IStreamInput.vue
+10
-20
Coninfp.vue
src/views/Public/Coninfp.vue
+12
-10
No files found.
src/components/IStream
Block
.vue
→
src/components/IStream
Input
.vue
View file @
0129b9ca
<
template
>
<
template
>
<div>
<div>
<c-input
<c-input
type=
"textarea"
v-bind=
"$attrs"
v-model=
"text"
v-model=
"value"
maxlength=
"60"
@
change=
"onChange"
:autosize=
"
{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
@change="syncStream"
></c-input>
></c-input>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:[
'
stream
'
],
props
:[
'
model
'
],
created
:
function
(){
created
:
function
(){
this
.
stream
[
"rows"
]
=
this
.
stream
[
"rows"
]
||
[];
this
.
model
[
"rows"
]
=
this
.
model
[
"rows"
]
||
[];
this
.
text
=
this
.
stream
[
"rows"
].
join
(
);
this
.
value
=
this
.
model
[
"rows"
].
join
(
"
\
n"
);
},
},
data
:
function
(){
data
:
function
(){
return
{
return
{
text
:
""
value
:
""
}
}
},
},
computed
:{
},
methods
:{
methods
:{
syncStream
(){
this
.
stream
[
"rows"
]
=
this
.
text
.
split
(
"
\
r
\
n"
);
console
.
log
(
this
.
stream
[
"rows"
]);
this
.
$emit
(
"change"
,
this
.
text
);
},
onChange
(){
onChange
(){
this
.
$emit
(
"change"
,
this
.
text
);
this
.
model
[
"rows"
]
=
this
.
value
.
split
(
"
\
n"
);
console
.
log
(
this
.
model
[
"rows"
]);
this
.
$emit
(
"change"
,
this
.
value
);
}
}
}
}
...
...
src/views/Public/Coninfp.vue
View file @
0129b9ca
...
@@ -7,16 +7,16 @@
...
@@ -7,16 +7,16 @@
label=
"General"
label=
"General"
prop=
"mtabut.coninf.oitinf.oit.inftxt"
prop=
"mtabut.coninf.oitinf.oit.inftxt"
>
>
<
c
-input
<
i-stream
-input
type=
"textarea"
type=
"textarea"
:rows=
"6"
rows=
"6"
@
change=
"valueChange($event, 'mtabut.coninf.oitinf.oit.inflev')"
v-model=
"model.mtabut.coninf.oitinf.oit.inftxt"
maxlength=
"60"
maxlength=
"60"
resize=
"none"
resize=
"none"
show-word-limit
show-word-limit
placeholder=
"请输入Infotext"
placeholder=
"请输入Infotext"
></c-input>
@
change=
"valueChange($event, 'mtabut.coninf.oitinf.oit.inflev')"
:model=
"model.mtabut.coninf.oitinf.oit.inftxt"
></i-stream-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"7"
:offset=
"1"
>
<c-col
:span=
"7"
:offset=
"1"
>
...
@@ -37,16 +37,16 @@
...
@@ -37,16 +37,16 @@
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-col
:span=
"15"
>
<c-col
:span=
"15"
>
<el-form-item
label=
"Settlement"
prop=
"mtabut.coninf.oitset.oit.inftxt"
>
<el-form-item
label=
"Settlement"
prop=
"mtabut.coninf.oitset.oit.inftxt"
>
<
c
-input
<
i-stream
-input
type=
"textarea"
type=
"textarea"
:rows=
"6"
rows=
"6"
@
change=
"valueChange($event, 'mtabut.coninf.oitset.oit.inflev')"
v-model=
"model.mtabut.coninf.oitset.oit.inftxt"
maxlength=
"60"
maxlength=
"60"
resize=
"none"
resize=
"none"
show-word-limit
show-word-limit
placeholder=
"请输入Infotext"
placeholder=
"请输入Infotext"
></c-input>
@
change=
"valueChange($event, 'mtabut.coninf.oitset.oit.inflev')"
:model=
"model.mtabut.coninf.oitset.oit.inftxt"
></i-stream-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"7"
:offset=
"1"
>
<c-col
:span=
"7"
:offset=
"1"
>
...
@@ -90,7 +90,9 @@
...
@@ -90,7 +90,9 @@
// 附言页签,勿改
// 附言页签,勿改
import
_
from
"~/utils/Lodash.js"
;
import
_
from
"~/utils/Lodash.js"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
IStreamInput
from
'~/components/IStreamInput'
export
default
{
export
default
{
components
:
{
IStreamInput
},
inject
:
[
"root"
],
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
CommonProcess
],
mixins
:
[
CommonProcess
],
...
...
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