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
{
export
default
{
data
()
{
data
()
{
return
{
return
{
item
:
''
,
timeItem
:
''
,
timeItem
:
''
,
inputSelectItem
:
'rmb'
inputSelectItem
:
'rmb'
}
}
},
},
computed
:
{
item
:
{
get
()
{
return
this
.
formItem
},
set
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
}
}
},
props
:
{
props
:
{
formItem
:
{
formItem
:
{
type
:
String
type
:
Number
},
},
formTimeItem
:
{
formTimeItem
:
{
type
:
String
type
:
String
...
@@ -51,19 +63,12 @@ export default {
...
@@ -51,19 +63,12 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
'formItem'
(
val
)
{
console
.
log
(
val
)
this
.
item
=
val
},
'formTimeItem'
(
val
)
{
'formTimeItem'
(
val
)
{
this
.
timeItem
=
val
this
.
timeItem
=
val
},
},
'formInputSelect'
(
val
)
{
'formInputSelect'
(
val
)
{
this
.
inputSelectItem
=
val
this
.
inputSelectItem
=
val
},
},
'item'
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
},
'timeItem'
(
val
)
{
'timeItem'
(
val
)
{
this
.
$emit
(
'update:item'
,
val
)
this
.
$emit
(
'update:item'
,
val
)
},
},
...
...
src/components/common/singleRadio.vue
View file @
4ad51720
<
template
>
<
template
>
<section>
<section>
<el-radio-group
size=
"small"
v-model=
"item"
>
<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>
</el-radio-group>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
i
temMixin
from
'./singleItemMixin'
import
singleI
temMixin
from
'./singleItemMixin'
export
default
{
export
default
{
name
:
'single-radio'
,
name
:
'single-radio'
,
mixins
:
[
i
temMixin
]
mixins
:
[
singleI
temMixin
]
}
}
</
script
>
</
script
>
...
...
src/components/schedule/scheduleForm.vue
View file @
4ad51720
...
@@ -122,12 +122,12 @@ export default {
...
@@ -122,12 +122,12 @@ export default {
},
},
is_public_array
:
[
is_public_array
:
[
{
{
'name'
:
'共享'
,
'name'
:
1
,
'value'
:
1
'value'
:
'共享'
},
},
{
{
'name'
:
'私人'
,
'name'
:
0
,
'value'
:
0
'value'
:
'私人'
}
}
],
],
rules
:
{},
rules
:
{},
...
...
src/components/schedule/scheduleModal.vue
View file @
4ad51720
...
@@ -38,6 +38,7 @@ export default {
...
@@ -38,6 +38,7 @@ export default {
description
:
''
,
description
:
''
,
time_type
:
''
,
time_type
:
''
,
repeat_type
:
''
,
repeat_type
:
''
,
is_public
:
''
,
created_by
:
''
// 负责人
created_by
:
''
// 负责人
}
}
}
}
...
@@ -45,7 +46,9 @@ export default {
...
@@ -45,7 +46,9 @@ export default {
methods
:
{
methods
:
{
show
(
model
)
{
show
(
model
)
{
console
.
log
(
model
)
model
&&
UTIL
.
flatten
(
this
.
model
,
model
)
model
&&
UTIL
.
flatten
(
this
.
model
,
model
)
this
.
model
.
client_name
=
model
.
client
.
name
this
.
diaVis
=
true
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