Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
modeng-web
Project
Overview
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
邢保振
modeng-web
Commits
a3a5f45b
Commit
a3a5f45b
authored
Dec 10, 2023
by
zhaoqingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿拉丁-魔登
parent
49d1af29
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
0 deletions
+111
-0
user.js
src/api/adsdesk/user/user.js
+12
-0
simulateLogin.js
src/api/operation/simulateLogin.js
+17
-0
index.vue
src/components/adsdesk/CustomerDetailDialog/index.vue
+80
-0
constant.js
src/utils/constant.js
+2
-0
No files found.
src/api/adsdesk/user/user.js
0 → 100644
View file @
a3a5f45b
import
request
from
'@/utils/request'
import
{
baseUrl
}
from
'@/utils/constant'
// 查询用户列表
export
function
listUser
(
data
)
{
return
request
({
url
:
baseUrl
+
'/ads_user/list'
,
method
:
'post'
,
data
:
data
})
}
\ No newline at end of file
src/api/operation/simulateLogin.js
0 → 100644
View file @
a3a5f45b
import
request
from
'@/utils/request'
import
{
baseUrl
}
from
'@/utils/constant'
export
function
autoLogin
(
data
)
{
return
request
({
url
:
baseUrl
+
'/simulate_login/get'
,
method
:
'post'
,
data
}).
then
(
res
=>
{
const
authToken
=
res
.
data
if
(
authToken
){
window
.
open
(
'https://www.adsdesk.cn/login?authToken='
+
authToken
)
}
})
}
\ No newline at end of file
src/components/adsdesk/CustomerDetailDialog/index.vue
0 → 100644
View file @
a3a5f45b
<
template
>
<el-dialog
title=
"客户信息"
:model-value=
"showDetail"
:center=
"true"
:before-close=
"handleClose"
@
open=
"openDetail"
width=
"500px"
>
<el-descriptions
border
:labelStyle=
"
{'text-align':'right'}" :column="1">
<el-descriptions-item
label=
"编号: "
>
{{
detail
.
id
}}
</el-descriptions-item>
<el-descriptions-item
label=
"名称: "
>
{{
detail
.
customerName
}}
</el-descriptions-item>
<el-descriptions-item
label=
"邮箱: "
>
{{
detail
.
contacterEmail
}}
</el-descriptions-item>
<el-descriptions-item
label=
"联系人:"
>
{{
detail
.
customerContacter
}}
</el-descriptions-item>
<el-descriptions-item
label=
"联系电话: "
>
{{
detail
.
contacterPhone
}}
</el-descriptions-item>
<el-descriptions-item
label=
"联系地址: "
>
{{
detail
.
customerAddress
}}
</el-descriptions-item>
<el-descriptions-item
label=
"合同起止时间: "
>
{{
parseTime
(
detail
.
startTime
)
}}
-
{{
parseTime
(
detail
.
endTime
)
}}
</el-descriptions-item>
<el-descriptions-item
label=
"客户类型: "
>
<template
#
default=
"scope"
>
<dict-tag
:options=
"props.adsCustomerTypeDict"
:value=
"detail.customerType"
/>
</
template
>
</el-descriptions-item>
<el-descriptions-item
label=
"状态: "
>
<
template
#
default=
"scope"
>
<el-switch
v-model=
"detail.status"
active-value=
"ENABLE"
active-color=
"#67C23A"
inactive-value=
"DISABLE"
disabled
></el-switch>
</
template
>
</el-descriptions-item>
</el-descriptions>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"handleClose"
>
确 定
</el-button>
</span>
</el-dialog>
</template>
<
script
setup
>
import
{
ref
,
reactive
}
from
"vue"
;
// import {getCustomer} from "@/api/adsdesk/user/customer"
const
{
proxy
}
=
getCurrentInstance
();
const
detail
=
ref
({})
const
props
=
defineProps
({
showDetail
:
{
type
:
Boolean
,
default
:
false
},
customerId
:
{
type
:
String
,
default
:
null
},
adsCustomerTypeDict
:
{
type
:
Object
,
default
:
{}
}
})
function
openDetail
()
{
getCustomer
(
props
.
customerId
).
then
(
response
=>
{
detail
.
value
=
response
.
data
;
})
}
function
handleClose
()
{
proxy
.
$emit
(
"closeDetail"
);
}
</
script
>
<
style
lang=
"scss"
scoped
>
.dialog-footer
{
margin-top
:
30px
;
display
:
flex
;
justify-content
:
center
;
}
</
style
>
\ No newline at end of file
src/utils/constant.js
0 → 100644
View file @
a3a5f45b
export
const
baseUrl
=
'/adsdesk'
\ No newline at end of file
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