Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
姜雷
dcxy-manage-shell
Commits
aac56ccb
Commit
aac56ccb
authored
Jul 10, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控件添加change事件
parent
f4a9602e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
7 deletions
+19
-7
AreaSelect.vue
src/components/input/AreaSelect/AreaSelect.vue
+3
-1
AreaServiceSelect.vue
src/components/input/AreaServiceSelect/AreaServiceSelect.vue
+2
-0
BaseDataSelect.vue
src/components/input/BaseDataSelect/BaseDataSelect.vue
+6
-0
mixin.js
src/components/input/BaseDataSelect/mixin.js
+0
-3
BeanTypeSelect.vue
src/components/input/BeanTypeSelect/BeanTypeSelect.vue
+1
-0
OperatorSelect.vue
src/components/input/OperatorSelect/OperatorSelect.vue
+3
-1
ServiceTypeSelect.vue
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
+2
-0
extends.js
src/utils/extends.js
+2
-2
No files found.
src/components/input/AreaSelect/AreaSelect.vue
View file @
aac56ccb
...
...
@@ -26,7 +26,7 @@ export default {
value
:
Number
,
disabled
:
Boolean
,
clearable
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
},
},
...
...
@@ -35,8 +35,10 @@ export default {
changeHandle
(
val
)
{
if
(
val
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
},
},
...
...
src/components/input/AreaServiceSelect/AreaServiceSelect.vue
View file @
aac56ccb
...
...
@@ -40,8 +40,10 @@ export default {
changeHandle
(
val
)
{
if
(
val
||
val
===
0
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
},
disabledValue
(
val
)
{
...
...
src/components/input/BaseDataSelect/BaseDataSelect.vue
View file @
aac56ccb
...
...
@@ -54,6 +54,12 @@ export default {
});
}
},
methods
:
{
changeHandle
(
val
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
},
},
};
</
script
>
src/components/input/BaseDataSelect/mixin.js
View file @
aac56ccb
...
...
@@ -26,9 +26,6 @@ export default {
},
methods
:
{
...
mapActions
(
actionsList
),
changeHandle
(
val
)
{
this
.
$emit
(
'input'
,
val
);
},
getOptionsList
(
label
)
{
let
optionValue
=
this
.
getOptionsValue
(
label
);
if
(
optionValue
)
{
...
...
src/components/input/BeanTypeSelect/BeanTypeSelect.vue
View file @
aac56ccb
...
...
@@ -33,6 +33,7 @@ export default {
methods
:
{
changeHandle
(
val
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
},
},
};
...
...
src/components/input/OperatorSelect/OperatorSelect.vue
View file @
aac56ccb
...
...
@@ -31,7 +31,7 @@ export default {
},
disabled
:
Boolean
,
clearable
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
},
},
...
...
@@ -46,8 +46,10 @@ export default {
changeHandle
(
val
)
{
if
(
!
val
)
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
else
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
},
},
...
...
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
View file @
aac56ccb
...
...
@@ -40,8 +40,10 @@ export default {
changeHandle
(
val
)
{
if
(
val
||
val
===
0
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
},
},
...
...
src/utils/extends.js
View file @
aac56ccb
...
...
@@ -10,7 +10,7 @@ import {
import
rymUi
from
'rym-element-ui'
;
import
'rym-element-ui/lib/rymUi.css'
;
import
errorHandler
from
'./errorHandler'
;
//
import errorHandler from './errorHandler';
import
HeaderImg
from
'../components/HeaderImg/HeaderImg.vue'
;
import
UserWithContent
from
'../components/UserCard/UserWithContent.vue'
;
...
...
@@ -37,7 +37,7 @@ const extendVue = Vue => {
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
Vue
.
config
.
errorHandler
=
errorHandler
;
//
Vue.config.errorHandler = errorHandler;
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserInfo'
,
UserInfo
);
...
...
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