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
db86cf10
Commit
db86cf10
authored
Mar 18, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加待办事项获取客户信息
parent
30032cad
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
18 deletions
+20
-18
ajax.js
src/ajax.js
+3
-2
singleSelect.vue
src/components/common/singleSelect.vue
+4
-4
depSelect.vue
src/components/schedule/depSelect.vue
+7
-7
scheduleForm.vue
src/components/schedule/scheduleForm.vue
+5
-5
scheduleModal.vue
src/components/schedule/scheduleModal.vue
+1
-0
No files found.
src/ajax.js
View file @
db86cf10
...
...
@@ -53,11 +53,12 @@ export function requestAPI (option, data) {
}
export
function
requestWithJsonAPI
(
option
,
data
)
{
let
_option
=
Object
.
assign
({},
option
)
if
(
dev
&&
data
)
{
option
.
url
+=
setUrlK
(
data
)
_
option
.
url
+=
setUrlK
(
data
)
data
=
{}
}
return
ajax
.
requestAPI
(
option
,
data
)
return
ajax
.
requestAPI
(
_
option
,
data
)
}
export
function
requestJanusAPI
(
option
,
data
)
{
...
...
src/components/common/singleSelect.vue
View file @
db86cf10
...
...
@@ -30,7 +30,7 @@
import
$
from
'jquery'
import
{
api
,
requestAPI
request
WithJson
API
}
from
'@/lib/commonMixin'
export
default
{
...
...
@@ -69,6 +69,7 @@ export default {
computed
:
{
textFormat
()
{
debugger
let
text
=
this
.
text
let
value
=
this
.
value
let
newValue
=
(
value
!==
''
&&
value
!==
'-1'
)
?
(
'('
+
value
+
')'
)
:
''
...
...
@@ -123,7 +124,7 @@ export default {
},
getList
()
{
if
(
!
this
.
apiName
)
return
if
(
!
this
.
apiName
||
this
.
searchText
.
trim
()
===
''
)
return
let
params
=
{
q
:
this
.
searchText
.
trim
(),
...
...
@@ -133,8 +134,7 @@ export default {
if
(
this
.
paramsFilter
)
{
params
=
this
.
paramsFilter
(
this
.
searchText
)
}
return
requestAPI
(
api
[
this
.
apiName
],
params
)
return
requestWithJsonAPI
(
api
[
this
.
apiName
],
params
)
.
then
((
res
=
{})
=>
{
if
(
this
.
dataFilter
)
{
this
.
list
=
this
.
dataFilter
(
res
)
...
...
src/components/schedule/depSelect.vue
View file @
db86cf10
...
...
@@ -29,11 +29,11 @@ export default {
},
keyName
:
{
type
:
String
,
default
:
'
departmentCode
'
default
:
'
client_id
'
},
labelKeyName
:
{
type
:
String
,
default
:
'
departmentN
ame'
default
:
'
client_n
ame'
},
inputWidth
:
{
type
:
Number
,
...
...
@@ -43,7 +43,7 @@ export default {
data
()
{
return
{
apiName
:
'get
RmDepartmentList
'
,
apiName
:
'get
ClientByName
'
,
labelText
:
'部门'
}
},
...
...
@@ -68,16 +68,16 @@ export default {
paramsFilter
(
keyword
=
''
)
{
return
{
valu
e
:
keyword
.
trim
()
nam
e
:
keyword
.
trim
()
}
},
listFilter
(
res
)
{
let
list
=
res
.
list
||
[]
let
list
=
res
||
[]
return
list
.
map
(
item
=>
{
return
{
text
:
item
.
label
,
value
:
item
.
value
text
:
item
.
name
,
value
:
item
.
key
}
})
}
...
...
src/components/schedule/scheduleForm.vue
View file @
db86cf10
...
...
@@ -3,7 +3,7 @@
<el-form
label-width=
"120px"
ref=
"form"
:rules=
"rules"
:model=
"model"
class=
"ec-create-form"
>
<el-form-item
label=
"客户名称"
prop=
"actName"
class=
"ec-clear-left"
v-if=
"isCreate"
>
<dep-select
:query=
"
query
"
:query=
"
model
"
:inputWidth=
"340"
:startLoadInitial=
"false"
/>
</el-form-item>
...
...
@@ -131,9 +131,9 @@ export default {
},
created
()
{
if
(
this
.
isCreate
)
{
this
.
queryOaDeptViaJanus
()
}
//
if (this.isCreate) {
//
this.queryOaDeptViaJanus()
//
}
},
mounted
()
{
...
...
@@ -142,7 +142,7 @@ export default {
computed
:
{
isCreate
()
{
return
!
this
.
model
.
client_id
return
true
}
},
...
...
src/components/schedule/scheduleModal.vue
View file @
db86cf10
...
...
@@ -29,6 +29,7 @@ export default {
diaVis
:
false
,
model
:
{
client_id
:
''
,
client_name
:
''
,
schedule_title
:
''
,
start_at
:
''
,
end_at
:
''
,
...
...
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