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
Hide 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
>
<div>
<c-input
type=
"textarea"
v-model=
"text"
maxlength=
"60"
:autosize=
"
{ minRows: 4, maxRows: 6 }"
show-word-limit
placeholder="请输入Infotext"
@change="syncStream"
v-bind=
"$attrs"
v-model=
"value"
@
change=
"onChange"
></c-input>
</div>
</
template
>
<
script
>
export
default
{
props
:[
'
stream
'
],
props
:[
'
model
'
],
created
:
function
(){
this
.
stream
[
"rows"
]
=
this
.
stream
[
"rows"
]
||
[];
this
.
text
=
this
.
stream
[
"rows"
].
join
(
);
this
.
model
[
"rows"
]
=
this
.
model
[
"rows"
]
||
[];
this
.
value
=
this
.
model
[
"rows"
].
join
(
"
\
n"
);
},
data
:
function
(){
return
{
text
:
""
value
:
""
}
},
computed
:{
},
methods
:{
syncStream
(){
this
.
stream
[
"rows"
]
=
this
.
text
.
split
(
"
\
r
\
n"
);
console
.
log
(
this
.
stream
[
"rows"
]);
this
.
$emit
(
"change"
,
this
.
text
);
},
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 @@
label=
"General"
prop=
"mtabut.coninf.oitinf.oit.inftxt"
>
<
c
-input
<
i-stream
-input
type=
"textarea"
:rows=
"6"
@
change=
"valueChange($event, 'mtabut.coninf.oitinf.oit.inflev')"
v-model=
"model.mtabut.coninf.oitinf.oit.inftxt"
rows=
"6"
maxlength=
"60"
resize=
"none"
show-word-limit
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>
</c-col>
<c-col
:span=
"7"
:offset=
"1"
>
...
...
@@ -37,16 +37,16 @@
<c-col
:span=
"24"
>
<c-col
:span=
"15"
>
<el-form-item
label=
"Settlement"
prop=
"mtabut.coninf.oitset.oit.inftxt"
>
<
c
-input
<
i-stream
-input
type=
"textarea"
:rows=
"6"
@
change=
"valueChange($event, 'mtabut.coninf.oitset.oit.inflev')"
v-model=
"model.mtabut.coninf.oitset.oit.inftxt"
rows=
"6"
maxlength=
"60"
resize=
"none"
show-word-limit
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>
</c-col>
<c-col
:span=
"7"
:offset=
"1"
>
...
...
@@ -90,7 +90,9 @@
// 附言页签,勿改
import
_
from
"~/utils/Lodash.js"
;
import
CommonProcess
from
"~/mixin/CommonProcess"
;
import
IStreamInput
from
'~/components/IStreamInput'
export
default
{
components
:
{
IStreamInput
},
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
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