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
a4c401cb
Commit
a4c401cb
authored
Mar 18, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新创建表单样式
parent
e3021304
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
171 additions
and
96 deletions
+171
-96
prod.env.js
config/prod.env.js
+2
-2
ajax.js
src/ajax.js
+7
-3
app.scss
src/assets/css/app.scss
+16
-0
singleItemMixin.js
src/components/common/singleItemMixin.js
+74
-0
singleRadio.vue
src/components/common/singleRadio.vue
+39
-0
scheduleForm.vue
src/components/schedule/scheduleForm.vue
+19
-6
scheduleModal.vue
src/components/schedule/scheduleModal.vue
+9
-4
scheduleForm.vue
src/components/schedule_list/scheduleForm.vue
+0
-75
scheduleHome.vue
src/components/schedule_list/scheduleHome.vue
+5
-6
No files found.
config/prod.env.js
View file @
a4c401cb
module
.
exports
=
{
module
.
exports
=
{
NODE_ENV
:
'"production"'
,
NODE_ENV
:
'"production"'
,
API_HOST
:
'"http://
biw-mt.vip.vip
.com"'
,
API_HOST
:
'"http://
vue.jinchangxiao
.com"'
,
API_PORT
:
'""'
,
API_PORT
:
'""'
,
JANUS_HOST
:
'"http://vu
p-janus.vip.vip
.com"'
,
JANUS_HOST
:
'"http://vu
e.jinchangxiao
.com"'
,
JANUS_PORT
:
'""'
JANUS_PORT
:
'""'
}
}
src/ajax.js
View file @
a4c401cb
...
@@ -7,7 +7,11 @@ let config = {
...
@@ -7,7 +7,11 @@ let config = {
ajaxOption
:
{
ajaxOption
:
{
method
:
dev
?
'GET'
:
'POST'
,
method
:
dev
?
'GET'
:
'POST'
,
dataType
:
'json'
,
dataType
:
'json'
,
contentType
:
'application/x-www-form-urlencoded; charset=UTF-8'
contentType
:
'application/json'
// xhrFields: {
// withCredentials: true
// }
// contentType: 'application/x-www-form-urlencoded; charset=UTF-8'
},
},
token
:
{
token
:
{
...
@@ -44,8 +48,8 @@ let setUrlK = (o) => {
...
@@ -44,8 +48,8 @@ let setUrlK = (o) => {
return
params
return
params
}
}
export
function
requestAPI
(
option
,
data
)
{
export
function
requestAPI
(
option
,
data
)
{
let
params
=
{
data
:
JSON
.
stringify
(
data
)
}
//
let params = { data: JSON.stringify(data) }
return
ajax
.
requestAPI
(
option
,
params
)
return
ajax
.
requestAPI
(
option
,
data
)
}
}
export
function
requestWithJsonAPI
(
option
,
data
)
{
export
function
requestWithJsonAPI
(
option
,
data
)
{
...
...
src/assets/css/app.scss
View file @
a4c401cb
...
@@ -2,4 +2,20 @@
...
@@ -2,4 +2,20 @@
.mb20
{
.mb20
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.el-button--cancel
{
color
:white
;
background-color
:
#EB7567
;
border-color
:
#e86150
;
}
.el-button--confirm
{
color
:white
;
background-color
:
#649FD7
;
border-color
:
#5092d2
;
}
.el-dialog__header
{
background-color
:
#333744
;
}
.el-dialog__title
{
color
:white
;
}
}
}
src/components/common/singleItemMixin.js
0 → 100644
View file @
a4c401cb
export
default
{
data
()
{
return
{
item
:
''
,
timeItem
:
''
,
inputSelectItem
:
'rmb'
}
},
props
:
{
formItem
:
{
type
:
String
},
formTimeItem
:
{
type
:
String
},
label
:
{
type
:
String
},
optionsList
:
Array
,
tips
:
{
type
:
String
},
formInputSelect
:
{
type
:
String
},
formInputSelectOptions
:
Array
,
type
:
{
type
:
String
,
default
:
'text'
},
rows
:
{
type
:
Number
},
prepend
:
{
type
:
Object
,
default
()
{
return
{
icon
:
''
,
text
:
''
}
}
},
append
:
{
type
:
Object
,
default
()
{
return
{
icon
:
''
,
text
:
''
}
}
}
},
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
)
},
'inputSelectItem'
(
val
)
{
this
.
$emit
(
'update:inputSelect'
,
val
)
}
}
}
src/components/common/singleRadio.vue
0 → 100644
View file @
a4c401cb
<
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-group>
</section>
</
template
>
<
script
>
import
itemMixin
from
'./singleItemMixin'
export
default
{
name
:
'single-radio'
,
mixins
:
[
itemMixin
]
}
</
script
>
<
style
>
.el-radio-button__inner
,
.el-radio-button
:last-child
.el-radio-button__inner
,
.el-radio-button
:first-child
.el-radio-button__inner
{
border-left
:
1px
solid
#DCDFE6
;
margin
:
0
10px
5px
0
;
border-radius
:
6px
!important
;
}
.el-radio-button__inner
:hover
{
color
:
#333
;
background-color
:
#e6e6e6
;
border-color
:
#adadad
;
}
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
color
:
#fff
;
background-color
:
#3c3c3c
;
border-color
:
#373737
;
box-shadow
:
0
0
0
0
#373737
;
}
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
:hover
{
color
:
#333
;
background-color
:
#d4d4d4
;
border-color
:
#8c8c8c
;
}
</
style
>
src/components/schedule/scheduleForm.vue
View file @
a4c401cb
...
@@ -80,17 +80,19 @@
...
@@ -80,17 +80,19 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否共享"
prop=
"is_public"
class=
"ec-clear-left is-required"
>
<el-form-item
label=
"是否共享"
prop=
"is_public"
class=
"ec-clear-left"
>
<el-radio-group
v-model=
"model.is_public"
size=
"small"
>
<single-radio
<el-radio
:label=
"1"
border
>
共享
</el-radio>
:form-item=
"model.is_public"
<el-radio
:label=
"0"
border
>
私人
</el-radio>
:options-list=
"is_public_array"
</el-radio-group>
@
update:item=
"val =>
{model.is_public = val}">
</single-radio>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
depSelect
from
'./depSelect'
import
depSelect
from
'./depSelect'
import
singleRadio
from
'../common/singleRadio'
import
settingMixin
from
'../common/settingMixin'
import
settingMixin
from
'../common/settingMixin'
export
default
{
export
default
{
name
:
'scheduleForm'
,
name
:
'scheduleForm'
,
...
@@ -102,7 +104,8 @@ export default {
...
@@ -102,7 +104,8 @@ export default {
},
},
components
:
{
components
:
{
depSelect
depSelect
,
singleRadio
},
},
data
()
{
data
()
{
...
@@ -112,6 +115,16 @@ export default {
...
@@ -112,6 +115,16 @@ export default {
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
}
}
},
},
is_public_array
:
[
{
'name'
:
'共享'
,
'value'
:
1
},
{
'name'
:
'私人'
,
'value'
:
0
}
],
rules
:
{},
rules
:
{},
query
:
{}
query
:
{}
}
}
...
...
src/components/schedule/scheduleModal.vue
View file @
a4c401cb
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
:model=
"model"
>
:model=
"model"
>
</ScheduleForm>
</ScheduleForm>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center;"
>
<div
slot=
"footer"
class=
"dialog-footer"
style=
"text-align: center;"
>
<el-button
@
click=
"diaVis = false"
size=
"mini"
>
取 消
</el-button>
<el-button
type=
"cancel"
@
click=
"diaVis = false"
size=
"mini"
>
取 消
</el-button>
<el-button
type=
"
primary
"
@
click=
"save"
size=
"mini"
>
确 定
</el-button>
<el-button
type=
"
confirm
"
@
click=
"save"
size=
"mini"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
request
WithJson
API
,
requestAPI
,
api
api
}
from
'@/lib/commonMixin'
}
from
'@/lib/commonMixin'
import
ScheduleForm
from
'./scheduleForm'
import
ScheduleForm
from
'./scheduleForm'
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
save
()
{
save
()
{
console
.
log
(
'this.model'
,
this
.
model
)
console
.
log
(
'this.model'
,
this
.
model
)
request
WithJsonAPI
(
api
.
saveNewSchedule
,
this
.
model
)
request
API
(
Object
.
assign
({},
api
.
saveNewSchedule
,
{
method
:
'POST'
})
,
this
.
model
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
})
})
...
@@ -56,4 +56,9 @@ export default {
...
@@ -56,4 +56,9 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.el-dialog
.el-dialog__header
{
background-color
:
#333744
!
important
;
}
@include
c
(
'dialog-title'
)
{
}
</
style
>
</
style
>
src/components/schedule_list/scheduleForm.vue
deleted
100644 → 0
View file @
e3021304
<
template
>
<section>
<el-row
:gutter=
"10"
class=
"header-title"
>
<el-col
:span=
"18"
>
<h2>
待办事项
</h2>
</el-col>
<el-col
:span=
"6"
>
<el-input
placeholder=
"关键词"
size=
"small"
style=
"width: 200px;"
></el-input>
<el-button
size=
"small"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"small"
@
click=
"btnCreate"
>
新建待办事项
</el-button>
</el-col>
</el-row>
<el-row
class=
"header-title"
style=
"height:100px;"
>
<el-col
:span=
"4"
>
<div>
待办时间
</div>
<el-input
size=
"small"
></el-input>
</el-col>
<el-col
:span=
"4"
>
<div>
状态
</div>
<el-input
size=
"small"
></el-input>
</el-col>
<el-col
:span=
"4"
>
<div>
部门
</div>
<el-input
size=
"small"
></el-input>
</el-col>
<el-col
:span=
"4"
>
<div>
创建人
</div>
<el-input
size=
"small"
></el-input>
</el-col>
<el-col
:span=
"4"
>
<div>
重复
</div>
<el-input
size=
"small"
></el-input>
</el-col>
</el-row>
<ScheduleModal
ref=
"scheduleModal"
></ScheduleModal>
</section>
</
template
>
<
script
>
import
ScheduleModal
from
'../schedule/scheduleModal'
export
default
{
components
:
{
ScheduleModal
},
computed
:
{
},
data
()
{
return
{
}
},
methods
:
{
btnCreate
()
{
this
.
$refs
.
scheduleModal
.
show
()
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.el-input
{
width
:
67%
;
}
</
style
>
src/components/schedule_list/scheduleHome.vue
View file @
a4c401cb
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:search-key=
"'ClientSearch'"
:search-key=
"'ClientSearch'"
:add-title=
"'新建待办事项'"
:add-title=
"'新建待办事项'"
@
update:headerSearch=
"search => searchKeyword(search)"
@
update:headerSearch=
"search => searchKeyword(search)"
@
update:headerAdd=
"
addNewUser
"
>
@
update:headerAdd=
"
() => add()
"
>
</search-header>
</search-header>
<search-form
<search-form
ref=
"clientForm"
ref=
"clientForm"
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
:total=
"result.pagenation.totalcount"
>
:total=
"result.pagenation.totalcount"
>
</Pagenation>
</Pagenation>
</div>
</div>
<ScheduleModal
ref=
"scheduleModal"
></ScheduleModal>
</section>
</section>
</
template
>
</
template
>
...
@@ -33,6 +34,7 @@
...
@@ -33,6 +34,7 @@
import
SearchHeader
from
'../common/searchHeader'
import
SearchHeader
from
'../common/searchHeader'
import
SearchForm
from
'../common/SearchForm'
import
SearchForm
from
'../common/SearchForm'
import
ScheduleItem
from
'../common/scheduleItem'
import
ScheduleItem
from
'../common/scheduleItem'
import
ScheduleModal
from
'../schedule/scheduleModal'
import
Pagenation
from
'./schedulePagenation'
import
Pagenation
from
'./schedulePagenation'
import
{
import
{
requestWithJsonAPI
,
requestWithJsonAPI
,
...
@@ -45,6 +47,7 @@ export default {
...
@@ -45,6 +47,7 @@ export default {
SearchHeader
,
SearchHeader
,
SearchForm
,
SearchForm
,
ScheduleItem
,
ScheduleItem
,
ScheduleModal
,
Pagenation
Pagenation
},
},
...
@@ -77,10 +80,6 @@ export default {
...
@@ -77,10 +80,6 @@ export default {
this
.
getScheduleList
()
this
.
getScheduleList
()
},
},
addNewUser
()
{
this
.
$router
.
push
({
path
:
'/clientAdd'
})
},
searchKeyword
(
search
)
{
searchKeyword
(
search
)
{
this
.
updateForm
(
search
)
this
.
updateForm
(
search
)
},
},
...
@@ -96,7 +95,7 @@ export default {
...
@@ -96,7 +95,7 @@ export default {
})
})
},
},
show
()
{
add
()
{
this
.
$refs
.
scheduleModal
.
show
()
this
.
$refs
.
scheduleModal
.
show
()
},
},
...
...
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