Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
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
daywrite
bms-vue-obear
Commits
4ad51720
Commit
4ad51720
authored
Mar 25, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复编辑问题
parent
9e76b2de
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
singleItemMixin.js
src/components/common/singleItemMixin.js
+14
-9
singleRadio.vue
src/components/common/singleRadio.vue
+3
-3
scheduleForm.vue
src/components/schedule/scheduleForm.vue
+4
-4
scheduleModal.vue
src/components/schedule/scheduleModal.vue
+3
-0
No files found.
src/components/common/singleItemMixin.js
View file @
4ad51720
export
default
{
data
()
{
return
{
item
:
''
,
timeItem
:
''
,
inputSelectItem
:
'rmb'
}
},
computed
:
{
item
:
{
get
()
{
return
this
.
formItem
},
set
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
}
}
},
props
:
{
formItem
:
{
type
:
String
type
:
Number
},
formTimeItem
:
{
type
:
String
...
...
@@ -51,19 +63,12 @@ export default {
}
},
watch
:
{
'formItem'
(
val
)
{
console
.
log
(
val
)
this
.
item
=
val
},
'formTimeItem'
(
val
)
{
this
.
timeItem
=
val
},
'formInputSelect'
(
val
)
{
this
.
inputSelectItem
=
val
},
'item'
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
},
'timeItem'
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
},
...
...
src/components/common/singleRadio.vue
View file @
4ad51720
<
template
>
<section>
<el-radio-group
size=
"small"
v-model=
"item"
>
<el-radio-button
v-for=
"(radio, key) in optionsList"
:key=
"key"
:label=
"radio.name"
:value=
"radio.value"
></el-radio-button>
<el-radio-button
v-for=
"(radio, key) in optionsList"
:key=
"key"
:label=
"radio.name"
:value=
"radio.value"
>
{{
radio
.
value
}}
</el-radio-button>
</el-radio-group>
</section>
</
template
>
<
script
>
import
i
temMixin
from
'./singleItemMixin'
import
singleI
temMixin
from
'./singleItemMixin'
export
default
{
name
:
'single-radio'
,
mixins
:
[
i
temMixin
]
mixins
:
[
singleI
temMixin
]
}
</
script
>
...
...
src/components/schedule/scheduleForm.vue
View file @
4ad51720
...
...
@@ -122,12 +122,12 @@ export default {
},
is_public_array
:
[
{
'name'
:
'共享'
,
'value'
:
1
'name'
:
1
,
'value'
:
'共享'
},
{
'name'
:
'私人'
,
'value'
:
0
'name'
:
0
,
'value'
:
'私人'
}
],
rules
:
{},
...
...
src/components/schedule/scheduleModal.vue
View file @
4ad51720
...
...
@@ -38,6 +38,7 @@ export default {
description
:
''
,
time_type
:
''
,
repeat_type
:
''
,
is_public
:
''
,
created_by
:
''
// 负责人
}
}
...
...
@@ -45,7 +46,9 @@ export default {
methods
:
{
show
(
model
)
{
console
.
log
(
model
)
model
&&
UTIL
.
flatten
(
this
.
model
,
model
)
this
.
model
.
client_name
=
model
.
client
.
name
this
.
diaVis
=
true
},
...
...
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