Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
50f79195
Commit
50f79195
authored
Sep 30, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改好了
parent
62ea2bf5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
inputCode.vue
components/page/inputCode.vue
+19
-22
resource.vue
pages/test/resource.vue
+4
-0
No files found.
components/page/inputCode.vue
View file @
50f79195
...
...
@@ -2,37 +2,37 @@
<
template
>
<div
class=
"input-code"
>
<Input
v-model=
"codeValue"
clearable
required
>
<Button
slot=
"append"
@
click=
"codeClick"
>
生成编号
</Button
>
<Button
slot=
"append"
@
click=
"codeClick"
>
生成编号
</Button>
</Input>
</div>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
name
:
"inputCode"
,
data
()
{
return
{
codeValue
:
""
,
codeValue
:
this
.
value
,
select
:
""
,
};
},
model
:
{
prop
:
"value"
,
event
:
"on-change"
model
:
{
prop
:
"value"
,
event
:
"on-change"
,
},
props
:
{
value
:[
String
],
code
:
{
type
:
String
,
default
:
""
,
},
props
:
{
code
:{
type
:
String
,
default
:
""
type
:
{
type
:
String
,
},
type
:{
type
:
String
}
},
mounted
()
{
},
mounted
()
{
// this.codeValue=this.value;
},
methods
:
{
// 生成临时编号code
getSerialcode
()
{
...
...
@@ -41,10 +41,7 @@ export default {
}).
then
((
r
)
=>
{
if
(
r
.
result
)
{
this
.
codeValue
=
r
.
result
[
0
];
this
.
$emit
(
"on-change"
,
this
.
codeValue
);
this
.
$emit
(
"on-change"
,
this
.
codeValue
);
}
});
},
...
...
@@ -55,7 +52,7 @@ export default {
watch
:
{
value
(
v
)
{
this
.
codeValue
=
v
;
}
}
,
},
};
</
script
>
...
...
pages/test/resource.vue
View file @
50f79195
...
...
@@ -15,6 +15,9 @@
<p>
<Tree
:data=
"result"
></Tree>
</p>
<p>
<inputCode
v-model=
"data"
/>
</p>
</div>
</
template
>
...
...
@@ -27,6 +30,7 @@ export default {
data
()
{
return
{
model
:
[],
data
:
"ddd"
,
result
:
[
{
title
:
"五二九纵"
,
...
...
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