Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
horse
Project
Project
Details
Activity
Releases
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
向伟
horse
Commits
3a987a90
Commit
3a987a90
authored
Nov 10, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
99c46c24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
6 deletions
+78
-6
customer.ts
src/api/customer.ts
+37
-0
customerField.vue
src/pages/customer/components/customerField.vue
+41
-6
No files found.
src/api/customer.ts
0 → 100644
View file @
3a987a90
/**
* 所有跟用户相关的接口(TODO:DEMO USER)
*/
import
{
HttpResponse
}
from
'@/@types'
import
Axios
from
'./axios'
/**
* @interface loginParams -登录参数
* @property {string} grant_type -授权类型
* @property {string} email -邮箱
* @property {string} password -用户密码
*/
interface
msg
{
Enable
:
number
}
/**
* @example Axios.get(`https://xxx.com}`)
* @todo Get the exchange rate of the current currency
*/
class
customerService
{
// 获取客户字段列表
static
async
getCustomerFiledList
(
data
:
msg
):
Promise
<
HttpResponse
>
{
return
Axios
(
'/QYCustomer/GetCustomerFiledList'
,
{
method
:
'post'
,
responseType
:
'json'
,
data
})
}
}
export
default
customerService
\ No newline at end of file
src/pages/customer/components/customerField.vue
View file @
3a987a90
...
...
@@ -16,8 +16,8 @@
<tr
v-if=
"data && data.length==0"
>
<td
:colspan=
"8"
align=
"center"
>
暂无数据
</td>
</tr>
<
!--
<tr
v-for=
"(item,index) in todos
"
:key=
"index"
>
<td><span>
{{
item
.
content
}}
</span></td>
<
tr
v-for=
"(item,index) in data
"
:key=
"index"
>
<td><span>
{{
item
.
Name
}}
</span></td>
<td>
<span
v-if=
"item.IsSystem!=1"
>
{{
item
.
TypeName
}}
</span>
<span
v-if=
"item.IsSystem==1"
>
系统字段
</span>
...
...
@@ -44,20 +44,54 @@
<td>
<i
class=
"iconfont icon-weiyi"
style=
"font-size: 14px;color: #777;"
></i>
</td>
</tr>
-->
</tr>
</table>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
reactive
,
computed
}
from
'vue'
import
{
defineComponent
,
ref
,
reactive
,
onMounted
}
from
'vue'
import
{
Todo
,
Meta
}
from
'@/components/models'
import
customerService
from
'@/api/customer'
export
default
defineComponent
({
setup
()
{
const
data
=
[]
const
data
=
[{
DeptId
:
0
,
DeptName
:
"-"
,
Digits
:
0
,
Enable
:
1
,
Id
:
21
,
InputType
:
"2"
,
IsDefault
:
0
,
IsLock
:
0
,
IsSystem
:
0
,
Name
:
"姓名"
,
Options
:
"[
\
r
\n
{
\
r
\n
\"
Id
\"
: 0,
\
r
\n
\"
Name
\"
:
\"\"
\
r
\n
}
\
r
\n
]"
,
OptionsList
:
[{
Id
:
0
,
Name
:
""
}],
Required
:
1
,
Sort
:
1
,
Type
:
1
,
TypeName
:
"单行文本"
,
UpdateBy
:
1
,
UpdateByName
:
"管理员"
,
UpdateTime
:
"2021-09-28 11:06:00"
,
WordNum
:
11
,
}];
const
changePage
=
()
=>
{
customerService
.
getCustomerFiledList
({
Enable
:
-
1
}).
then
((
res
)
=>
{
console
.
log
(
res
)
})
}
onMounted
(()
=>
{
changePage
()
})
return
{
data
data
,
changePage
}
}
})
...
...
@@ -82,6 +116,7 @@
text-align
:
center
;
height
:
40px
;
}
.customerField
.payTable
tr
td
{
font-size
:
13px
;
text-align
:
center
;
...
...
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