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
9e76b2de
Commit
9e76b2de
authored
Mar 21, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建待办事项成功
parent
d60f2bfa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
11 deletions
+19
-11
ajax.js
src/ajax.js
+1
-1
settingMixin.js
src/components/common/settingMixin.js
+2
-2
singleSelect.vue
src/components/common/singleSelect.vue
+2
-3
scheduleForm.vue
src/components/schedule/scheduleForm.vue
+9
-3
scheduleModal.vue
src/components/schedule/scheduleModal.vue
+5
-2
No files found.
src/ajax.js
View file @
9e76b2de
...
...
@@ -50,7 +50,7 @@ let setUrlK = (o) => {
export
function
requestAPI
(
option
,
data
)
{
let
_option
=
Object
.
assign
({},
option
)
if
(
dev
&&
data
)
{
if
(
dev
&&
data
&&
option
.
method
===
'GET'
)
{
_option
.
url
+=
setUrlK
(
data
)
data
=
{}
}
...
...
src/components/common/settingMixin.js
View file @
9e76b2de
import
{
request
WithJson
API
,
requestAPI
,
api
}
from
'@/lib/commonMixin'
export
default
{
...
...
@@ -48,7 +48,7 @@ export default {
},
getNewArray
()
{
request
WithJson
API
(
api
.
getSaveNew
)
requestAPI
(
api
.
getSaveNew
)
.
then
((
res
)
=>
{
this
.
retNewArray
=
res
.
options
})
...
...
src/components/common/singleSelect.vue
View file @
9e76b2de
...
...
@@ -30,7 +30,7 @@
import
$
from
'jquery'
import
{
api
,
request
WithJson
API
requestAPI
}
from
'@/lib/commonMixin'
export
default
{
...
...
@@ -69,7 +69,6 @@ export default {
computed
:
{
textFormat
()
{
debugger
let
text
=
this
.
text
let
value
=
this
.
value
let
newValue
=
(
value
!==
''
&&
value
!==
'-1'
)
?
(
'('
+
value
+
')'
)
:
''
...
...
@@ -134,7 +133,7 @@ export default {
if
(
this
.
paramsFilter
)
{
params
=
this
.
paramsFilter
(
this
.
searchText
)
}
return
request
WithJson
API
(
api
[
this
.
apiName
],
params
)
return
requestAPI
(
api
[
this
.
apiName
],
params
)
.
then
((
res
=
{})
=>
{
if
(
this
.
dataFilter
)
{
this
.
list
=
this
.
dataFilter
(
res
)
...
...
src/components/schedule/scheduleForm.vue
View file @
9e76b2de
...
...
@@ -94,6 +94,11 @@
import
depSelect
from
'./depSelect'
import
singleRadio
from
'../common/singleRadio'
import
settingMixin
from
'../common/settingMixin'
import
{
setModule
}
from
'@/lib/viewHelper'
import
{
requestAPI
,
api
}
from
'@/lib/commonMixin'
export
default
{
name
:
'scheduleForm'
,
...
...
@@ -158,10 +163,11 @@ export default {
saveEvent
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$model
.
createFullCutAct
()
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Schedules'
))
console
.
log
(
_params
)
requestAPI
(
api
.
requestAPI
,
_params
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
'添加成功'
)
this
.
go
()
console
.
log
(
res
)
})
}
})
...
...
src/components/schedule/scheduleModal.vue
View file @
9e76b2de
...
...
@@ -18,6 +18,7 @@ import {
UTIL
}
from
'@/lib/commonMixin'
import
ScheduleForm
from
'./scheduleForm'
import
{
setModule
}
from
'@/lib/viewHelper'
export
default
{
components
:
{
...
...
@@ -55,9 +56,11 @@ export default {
},
save
()
{
requestAPI
(
Object
.
assign
({},
api
.
saveNewSchedule
,
{
method
:
'POST'
}),
this
.
model
)
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Schedules'
))
requestAPI
(
Object
.
assign
(
api
.
saveNewSchedule
,
{
method
:
'POST'
}),
_params
)
.
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
diaVis
=
false
this
.
$message
.
success
(
'添加待办事项成功'
)
})
}
}
...
...
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