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
d4644d59
Commit
d4644d59
authored
Jul 10, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
控件添加change事件 See merge request
!178
parents
2e66c9e3
aac56ccb
Hide 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 @
d4644d59
...
@@ -26,7 +26,7 @@ export default {
...
@@ -26,7 +26,7 @@ export default {
value
:
Number
,
value
:
Number
,
disabled
:
Boolean
,
disabled
:
Boolean
,
clearable
:
{
clearable
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
},
},
},
},
...
@@ -35,8 +35,10 @@ export default {
...
@@ -35,8 +35,10 @@ export default {
changeHandle
(
val
)
{
changeHandle
(
val
)
{
if
(
val
)
{
if
(
val
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
else
{
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
}
},
},
},
},
...
...
src/components/input/AreaServiceSelect/AreaServiceSelect.vue
View file @
d4644d59
...
@@ -40,8 +40,10 @@ export default {
...
@@ -40,8 +40,10 @@ export default {
changeHandle
(
val
)
{
changeHandle
(
val
)
{
if
(
val
||
val
===
0
)
{
if
(
val
||
val
===
0
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
else
{
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
}
},
},
disabledValue
(
val
)
{
disabledValue
(
val
)
{
...
...
src/components/input/BaseDataSelect/BaseDataSelect.vue
View file @
d4644d59
...
@@ -54,6 +54,12 @@ export default {
...
@@ -54,6 +54,12 @@ export default {
});
});
}
}
},
},
methods
:
{
changeHandle
(
val
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
},
},
};
};
</
script
>
</
script
>
src/components/input/BaseDataSelect/mixin.js
View file @
d4644d59
...
@@ -26,9 +26,6 @@ export default {
...
@@ -26,9 +26,6 @@ export default {
},
},
methods
:
{
methods
:
{
...
mapActions
(
actionsList
),
...
mapActions
(
actionsList
),
changeHandle
(
val
)
{
this
.
$emit
(
'input'
,
val
);
},
getOptionsList
(
label
)
{
getOptionsList
(
label
)
{
let
optionValue
=
this
.
getOptionsValue
(
label
);
let
optionValue
=
this
.
getOptionsValue
(
label
);
if
(
optionValue
)
{
if
(
optionValue
)
{
...
...
src/components/input/BeanTypeSelect/BeanTypeSelect.vue
View file @
d4644d59
...
@@ -33,6 +33,7 @@ export default {
...
@@ -33,6 +33,7 @@ export default {
methods
:
{
methods
:
{
changeHandle
(
val
)
{
changeHandle
(
val
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
},
},
},
},
};
};
...
...
src/components/input/OperatorSelect/OperatorSelect.vue
View file @
d4644d59
...
@@ -31,7 +31,7 @@ export default {
...
@@ -31,7 +31,7 @@ export default {
},
},
disabled
:
Boolean
,
disabled
:
Boolean
,
clearable
:
{
clearable
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
},
},
},
},
...
@@ -46,8 +46,10 @@ export default {
...
@@ -46,8 +46,10 @@ export default {
changeHandle
(
val
)
{
changeHandle
(
val
)
{
if
(
!
val
)
{
if
(
!
val
)
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
else
{
}
else
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
}
},
},
},
},
...
...
src/components/input/ServiceTypeSelect/ServiceTypeSelect.vue
View file @
d4644d59
...
@@ -40,8 +40,10 @@ export default {
...
@@ -40,8 +40,10 @@ export default {
changeHandle
(
val
)
{
changeHandle
(
val
)
{
if
(
val
||
val
===
0
)
{
if
(
val
||
val
===
0
)
{
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'input'
,
val
);
this
.
$emit
(
'change'
,
val
);
}
else
{
}
else
{
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'input'
,
null
);
this
.
$emit
(
'change'
,
null
);
}
}
},
},
},
},
...
...
src/utils/extends.js
View file @
d4644d59
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
import
rymUi
from
'rym-element-ui'
;
import
rymUi
from
'rym-element-ui'
;
import
'rym-element-ui/lib/rymUi.css'
;
import
'rym-element-ui/lib/rymUi.css'
;
import
errorHandler
from
'./errorHandler'
;
//
import errorHandler from './errorHandler';
import
HeaderImg
from
'../components/HeaderImg/HeaderImg.vue'
;
import
HeaderImg
from
'../components/HeaderImg/HeaderImg.vue'
;
import
UserWithContent
from
'../components/UserCard/UserWithContent.vue'
;
import
UserWithContent
from
'../components/UserCard/UserWithContent.vue'
;
...
@@ -37,7 +37,7 @@ const extendVue = Vue => {
...
@@ -37,7 +37,7 @@ const extendVue = Vue => {
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatterMoneyToDouble
=
formatterMoneyToDouble
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
Vue
.
prototype
.
$formatPrice
=
formatPrice
;
Vue
.
config
.
errorHandler
=
errorHandler
;
//
Vue.config.errorHandler = errorHandler;
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserCard'
,
UserCard
);
Vue
.
component
(
'UserInfo'
,
UserInfo
);
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