Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
ww-recruitment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a8b531f0
authored
Jan 13, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 需求修改
1 parent
c3b8f40d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
119 additions
and
126 deletions
src/App.vue
src/store/modules/app.js
src/views/recruitManage/api.js
src/views/recruitManage/recruitDetail/recruitDetail.js
src/views/recruitManage/recruitDetail/recruitDetail.sass
src/views/recruitManage/recruitDetail/recruitDetail.vue
src/views/recruitManage/recruitDetail/recruitDetail.wxml
src/views/recruitManage/recruitManage/recruitManage.vue
src/views/recruitManage/recruitmentReview/recruitmentReview.vue
src/App.vue
View file @
a8b531f
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<
!--
<template
v-if=
"showWindow"
>
--
>
<
template
v-if=
"showWindow"
>
<transition
name=
"fade"
>
<transition
name=
"fade"
>
<keep-alive
v-if=
"$route.meta.keepAlive"
>
<keep-alive
v-if=
"$route.meta.keepAlive"
>
<router-view></router-view>
<router-view></router-view>
</keep-alive>
</keep-alive>
</transition>
</transition>
<transition
name=
"fade"
>
<transition
name=
"fade"
>
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
<router-view
v-if=
"!$route.meta.keepAlive"
></router-view>
</transition>
</transition>
<
!--
</
template
>
--
>
<
/
template
>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
...
src/store/modules/app.js
View file @
a8b531f
...
@@ -29,7 +29,7 @@ const actions = {
...
@@ -29,7 +29,7 @@ const actions = {
},
},
async
login
({
dispatch
})
{
async
login
({
dispatch
})
{
console
.
log
(
'login'
)
console
.
log
(
'login'
)
return
//
return
try
{
try
{
const
wwCode
=
getParams
(
'code'
),
const
wwCode
=
getParams
(
'code'
),
{
corpId
,
agentId
}
=
util
.
getLocalStorage
(
'ww_storage_info'
)
||
{},
{
corpId
,
agentId
}
=
util
.
getLocalStorage
(
'ww_storage_info'
)
||
{},
...
@@ -83,12 +83,12 @@ const actions = {
...
@@ -83,12 +83,12 @@ const actions = {
if
(
agentId
&&
agentId
!=
'undefined'
)
ww_storage_info
.
agentId
=
agentId
if
(
agentId
&&
agentId
!=
'undefined'
)
ww_storage_info
.
agentId
=
agentId
util
.
setLocalStorage
(
'ww_storage_info'
,
ww_storage_info
)
util
.
setLocalStorage
(
'ww_storage_info'
,
ww_storage_info
)
}
}
//
if (userInfo) {
if
(
userInfo
)
{
//
state.showWindow = true
state
.
showWindow
=
true
//
} else {
}
else
{
//
util.showLoading()
util
.
showLoading
()
//
dispatch('login')
dispatch
(
'login'
)
//
}
}
}
}
}
}
const
getParams
=
name
=>
{
const
getParams
=
name
=>
{
...
...
src/views/recruitManage/api.js
View file @
a8b531f
const
djStaffUrl
=
'/rop-dj-staff-miniprogram/router'
const
djStaffUrl
=
'/rop-dj-staff-miniprogram/router'
const
djBusinessUrl
=
'/rop-dj-business-school-miniprogram/router'
const
djBusinessUrl
=
'/rop-dj-business-school-miniprogram/router'
const
djSmartCarlifeUrl
=
'/dj.api.smartcarlife'
// Just a guess, checking previous api.js usage
const
djSmartCarlifeUrl
=
'/dj.api.smartcarlife'
// Just a guess, checking previous api.js usage
import
{
util
}
from
'utils'
// Helper function to simulate api.post from the original file using window.$DJ_HTTP
// Helper function to simulate api.post from the original file using window.$DJ_HTTP
// Original: api.post(method, data, [], url)
// Original: api.post(method, data, [], url)
function
post
(
method
,
data
=
{},
url
,
options
=
{})
{
function
post
(
method
,
data
=
{},
url
,
options
=
{})
{
// Merge method into data as per ssoApi.js pattern for $DJ_HTTP
// Merge method into data as per ssoApi.js pattern for $DJ_HTTP
const
userInfo
=
util
.
getLocalStorage
(
'ww_userInfo'
)
||
{}
const
payload
=
{
const
payload
=
{
method
,
method
,
technicalSupervisorName
:
'梁老湿
'
,
// 技术督导姓名
technicalSupervisorName
:
userInfo
.
name
||
'
'
,
// 技术督导姓名
technicalSupervisorPhone
:
'15814019200
'
,
// 技术督导手机号
technicalSupervisorPhone
:
userInfo
.
phone
||
'
'
,
// 技术督导手机号
sessionId
:
'8bcad25d-8bfa-41a8-a5e8-ef06ace89ee8'
,
//
sessionId: '8bcad25d-8bfa-41a8-a5e8-ef06ace89ee8',
...
data
...
data
}
}
return
window
.
$DJ_HTTP
({
return
window
.
$DJ_HTTP
({
...
@@ -75,24 +76,6 @@ export default {
...
@@ -75,24 +76,6 @@ export default {
// return post('dj.api.businessSchool.miniProgram.teachTask.count', data, djBusinessUrl)
// return post('dj.api.businessSchool.miniProgram.teachTask.count', data, djBusinessUrl)
// },
// },
// The following APIs didn't have a specific URL in the original file,
// they just had 2 args: api.post(method, data).
// I'll assume they might use a default URL or I need to check where they point.
// Original: return api.post('dj.api.smartcarlife.selectOrderGoods.list', data)
// ssoApi.js uses window.$DJ_HTTP for 'dj.api.*'.
// I will use a default URL or the biUrl from ssoApi if appropriate, but ssoApi used '/rop-dj-pe-analysis/router'.
// Let's assume they go to the default DJ gateway if no URL provided?
// But wait, the original api.post signature was (method, data, [], url).
// When url is missing, what does it default to?
// In `ssoApi.js`, `loginByPhone` uses `/rop-dj-pe-analysis/router`.
// I will leave the URL blank or use a default if I can find one.
// For now, I'll map them to `window.$DJ_HTTP` without a specific URL if not known,
// or maybe they are not used in this module?
// The module is `recruitManage`. `selectOrderGoods` seems unrelated?
// I will comment them out or keep them as is with a TODO if they seem unrelated.
// They seem like copy-paste leftovers (smartcarlife, updateCustomerphotos).
// I'll include them but using a generic post wrapper.
// 根据商户号获取可选商品列表
// 根据商户号获取可选商品列表
getSelectOrderGoodsList
(
data
)
{
getSelectOrderGoodsList
(
data
)
{
// Assuming default gateway if no URL specified
// Assuming default gateway if no URL specified
...
...
src/views/recruitManage/recruitDetail/recruitDetail.js
View file @
a8b531f
// packageEquity/pages/recruitManage/pages/recruitDetail/recruitDetail.js
// packageEquity/pages/recruitManage/pages/recruitDetail/recruitDetail.js
import
{
unix
}
from
'dayjs'
import
{
unix
}
from
'dayjs'
import
{
getRecruitDetailAPI
,
processResumeAPI
}
from
'../api'
import
{
getRecruitDetailAPI
,
processResumeAPI
}
from
'../api'
const
IMG_URL
=
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
// 统计列表配置映射
// 统计列表配置映射
const
STATISTICS_CONFIG
=
[
const
STATISTICS_CONFIG
=
[
{
title
:
'需求数量'
,
field
:
'recruitmentQuantity'
},
{
title
:
'需求数量'
,
field
:
'recruitmentQuantity'
},
...
@@ -37,7 +36,7 @@ const RECRUITMENT_INFO_CONFIG = [
...
@@ -37,7 +36,7 @@ const RECRUITMENT_INFO_CONFIG = [
const
RECRUIT_STATUS_CONFIG
=
{
const
RECRUIT_STATUS_CONFIG
=
{
// mixResult状态映射
// mixResult状态映射
0
:
{
text
:
'待处理'
,
class
:
'pending'
,
canProcess
:
true
},
0
:
{
text
:
'待处理'
,
class
:
'pending'
,
canProcess
:
true
},
1
:
{
text
:
'人员不
匹配
'
,
class
:
'mismatch'
,
canProcess
:
false
},
1
:
{
text
:
'人员不
符合
'
,
class
:
'mismatch'
,
canProcess
:
false
},
2
:
{
text
:
'面试通过'
,
class
:
'pass'
,
canProcess
:
false
},
2
:
{
text
:
'面试通过'
,
class
:
'pass'
,
canProcess
:
false
},
3
:
{
text
:
'面试不通过'
,
class
:
'fail'
,
canProcess
:
false
}
3
:
{
text
:
'面试不通过'
,
class
:
'fail'
,
canProcess
:
false
}
}
}
...
@@ -175,9 +174,7 @@ Page({
...
@@ -175,9 +174,7 @@ Page({
const
obj
=
this
.
data
.
recruitmentPlans
[
index
]
const
obj
=
this
.
data
.
recruitmentPlans
[
index
]
const
{
reasonMaxLen
}
=
this
.
data
const
{
reasonMaxLen
}
=
this
.
data
this
.
setData
({
this
.
setData
({
[
`recruitmentPlans[
${
index
}
].recommendedReasonTxt`
]:
obj
.
isShowReasonAll
[
`recruitmentPlans[
${
index
}
].recommendedReasonTxt`
]:
obj
.
isShowReasonAll
?
obj
.
recommendedReason
.
slice
(
0
,
reasonMaxLen
)
+
'...'
:
obj
.
recommendedReason
,
?
obj
.
recommendedReason
.
slice
(
0
,
reasonMaxLen
)
+
'...'
:
obj
.
recommendedReason
,
[
`recruitmentPlans[
${
index
}
].isShowReasonAll`
]:
!
obj
.
isShowReasonAll
[
`recruitmentPlans[
${
index
}
].isShowReasonAll`
]:
!
obj
.
isShowReasonAll
})
})
},
},
...
@@ -216,10 +213,7 @@ Page({
...
@@ -216,10 +213,7 @@ Page({
// 节流控制:1秒内只能触发一次
// 节流控制:1秒内只能触发一次
const
now
=
Date
.
now
()
const
now
=
Date
.
now
()
const
throttleTime
=
1000
// 节流时间:1秒
const
throttleTime
=
1000
// 节流时间:1秒
if
(
if
(
this
.
lastViewResumeTime
&&
now
-
this
.
lastViewResumeTime
<
throttleTime
)
{
this
.
lastViewResumeTime
&&
now
-
this
.
lastViewResumeTime
<
throttleTime
)
{
return
return
}
}
this
.
lastViewResumeTime
=
now
this
.
lastViewResumeTime
=
now
...
@@ -287,24 +281,14 @@ Page({
...
@@ -287,24 +281,14 @@ Page({
id
:
id
id
:
id
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
let
{
let
{
stat
,
onboardingPlans
,
recruitmentPlans
,
recruitment
,
trialOnboardingPlans
}
=
res
.
data
stat
,
onboardingPlans
,
recruitmentPlans
,
recruitment
,
trialOnboardingPlans
}
=
res
.
data
const
{
reasonMaxLen
}
=
this
.
data
const
{
reasonMaxLen
}
=
this
.
data
// 格式化 recruitmentPlans 中的 createdDate
// 格式化 recruitmentPlans 中的 createdDate
if
(
recruitmentPlans
&&
recruitmentPlans
.
length
>
0
)
{
if
(
recruitmentPlans
&&
recruitmentPlans
.
length
>
0
)
{
recruitmentPlans
=
recruitmentPlans
.
map
(
item
=>
({
recruitmentPlans
=
recruitmentPlans
.
map
(
item
=>
({
...
item
,
...
item
,
createdDate
:
this
.
formatDate
(
item
.
createdDate
),
createdDate
:
this
.
formatDate
(
item
.
createdDate
),
recommendedReasonTxt
:
item
.
recommendedReason
recommendedReasonTxt
:
item
.
recommendedReason
?
(
item
.
recommendedReason
.
length
>
reasonMaxLen
?
item
.
recommendedReason
.
slice
(
0
,
reasonMaxLen
)
+
'...'
:
item
.
recommendedReason
)
:
'-'
,
?
item
.
recommendedReason
.
length
>
reasonMaxLen
?
item
.
recommendedReason
.
slice
(
0
,
reasonMaxLen
)
+
'...'
:
item
.
recommendedReason
:
'-'
,
isShowReasonAll
:
false
isShowReasonAll
:
false
}))
}))
}
}
...
@@ -330,15 +314,13 @@ Page({
...
@@ -330,15 +314,13 @@ Page({
// 根据 businessType 动态过滤招聘信息配置
// 根据 businessType 动态过滤招聘信息配置
// 当 businessType == 1 时,显示拒绝理由;否则过滤掉拒绝理由项
// 当 businessType == 1 时,显示拒绝理由;否则过滤掉拒绝理由项
const
filteredRecruitmentInfoConfig
=
RECRUITMENT_INFO_CONFIG
.
filter
(
const
filteredRecruitmentInfoConfig
=
RECRUITMENT_INFO_CONFIG
.
filter
(
item
=>
{
item
=>
{
// 特殊处理:拒绝理由字段仅在招聘状态为被驳回status:3时显示
// 特殊处理:拒绝理由字段仅在招聘状态为被驳回status:3时显示
if
(
item
.
field
===
'recallReason'
)
{
if
(
item
.
field
===
'recallReason'
)
{
return
recruitment
.
status
==
3
return
recruitment
.
status
==
3
}
return
true
}
}
)
return
true
})
// 将stat数据更新到statisticsList(使用配置映射,代码更简洁)
// 将stat数据更新到statisticsList(使用配置映射,代码更简洁)
this
.
setData
({
this
.
setData
({
...
@@ -400,7 +382,7 @@ Page({
...
@@ -400,7 +382,7 @@ Page({
// 当切换"处理结果"标签时,初始化相关表单数据
// 当切换"处理结果"标签时,初始化相关表单数据
if
(
field
===
'processResult'
)
{
if
(
field
===
'processResult'
)
{
// 切换到"人员不
匹配
"时,清空面试相关字段
// 切换到"人员不
符合
"时,清空面试相关字段
if
(
value
==
1
)
{
if
(
value
==
1
)
{
formData
.
interviewTime
=
''
formData
.
interviewTime
=
''
formData
.
dipalyTime
=
''
formData
.
dipalyTime
=
''
...
@@ -514,10 +496,7 @@ Page({
...
@@ -514,10 +496,7 @@ Page({
return
return
}
}
// 对于面试通过和面试不通过,都需要选择面试时间
// 对于面试通过和面试不通过,都需要选择面试时间
if
(
if
((
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewTime
)
{
(
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewTime
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
'请选择面试时间'
,
title
:
'请选择面试时间'
,
icon
:
'none'
icon
:
'none'
...
@@ -525,10 +504,7 @@ Page({
...
@@ -525,10 +504,7 @@ Page({
return
return
}
}
// 对于面试通过和面试不通过,都需要选择面试时间
// 对于面试通过和面试不通过,都需要选择面试时间
if
(
if
((
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewResult
)
{
(
formData
.
processResult
==
2
||
formData
.
processResult
==
3
)
&&
!
formData
.
interviewResult
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
'请选择面试结果'
,
title
:
'请选择面试结果'
,
icon
:
'none'
icon
:
'none'
...
...
src/views/recruitManage/recruitDetail/recruitDetail.sass
View file @
a8b531f
...
@@ -155,7 +155,7 @@ page {
...
@@ -155,7 +155,7 @@ page {
background
:
#52c41a
1a
;
background
:
#52c41a
1a
;
}
}
// 人员不
匹配
状态
// 人员不
符合
状态
&
.tag-mismatch
{
&
.tag-mismatch
{
color
:
#ff4d4f
;
color
:
#ff4d4f
;
background
:
#ff4d4f
1a
;
background
:
#ff4d4f
1a
;
...
...
src/views/recruitManage/recruitDetail/recruitDetail.vue
View file @
a8b531f
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
<!-- 时间选择器 -->
<!-- 时间选择器 -->
<van-popup
v-model=
"timeShow"
position=
"bottom"
round
get-container=
"body"
@
touchmove
.
prevent
>
<van-popup
v-model=
"timeShow"
position=
"bottom"
round
get-container=
"body"
@
touchmove
.
prevent
>
<van-datetime-picker
v-model=
"currentDate"
type=
"date"
:formatter=
"formatter"
:m
ax-date=
"today
"
@
confirm=
"bindDateChange"
@
cancel=
"calcelDate"
/>
<van-datetime-picker
v-model=
"currentDate"
type=
"date"
:formatter=
"formatter"
:m
in-date=
"minDate"
:max-date=
"maxDate
"
@
confirm=
"bindDateChange"
@
cancel=
"calcelDate"
/>
</van-popup>
</van-popup>
</div>
</div>
</template>
</template>
...
@@ -281,6 +281,20 @@ export default {
...
@@ -281,6 +281,20 @@ export default {
components
:
{
components
:
{
// EmptyCard
// EmptyCard
},
},
computed
:
{
minDate
()
{
if
(
this
.
popupType
===
'initial'
)
{
return
new
Date
()
}
return
new
Date
(
2010
,
0
,
1
)
},
maxDate
()
{
if
(
this
.
popupType
===
'initial'
)
{
return
new
Date
(
2030
,
11
,
31
)
}
return
new
Date
()
}
},
data
()
{
data
()
{
return
{
return
{
IMG_URL
,
IMG_URL
,
...
@@ -406,7 +420,18 @@ export default {
...
@@ -406,7 +420,18 @@ export default {
if
([
'png'
,
'jpg'
,
'jpeg'
,
'gif'
].
includes
(
resumeType
))
{
if
([
'png'
,
'jpg'
,
'jpeg'
,
'gif'
].
includes
(
resumeType
))
{
ImagePreview
([
url
])
ImagePreview
([
url
])
}
else
{
}
else
{
window
.
open
(
url
)
// 复制链接并提示
const
input
=
document
.
createElement
(
'input'
)
input
.
setAttribute
(
'readonly'
,
'readonly'
)
input
.
setAttribute
(
'value'
,
url
)
document
.
body
.
appendChild
(
input
)
input
.
select
()
input
.
setSelectionRange
(
0
,
9999
)
if
(
document
.
execCommand
(
'copy'
))
{
document
.
execCommand
(
'copy'
)
this
.
$toast
(
'简历链接已复制,请在浏览器中打开'
)
}
document
.
body
.
removeChild
(
input
)
}
}
},
},
getDetail
(
id
)
{
getDetail
(
id
)
{
...
@@ -561,9 +586,7 @@ export default {
...
@@ -561,9 +586,7 @@ export default {
this
.
isProcessing
=
true
this
.
isProcessing
=
true
let
requestParams
=
{
let
requestParams
=
{
id
:
formData
.
id
,
id
:
formData
.
id
technicalSupervisorName
:
this
.
recruitment
.
technicalSupervisorName
||
''
,
technicalSupervisorPhone
:
this
.
recruitment
.
technicalSupervisorPhone
||
''
}
}
if
(
this
.
popupType
===
'initial'
)
{
if
(
this
.
popupType
===
'initial'
)
{
...
...
src/views/recruitManage/recruitDetail/recruitDetail.wxml
View file @
a8b531f
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
<text class="required">*</text>
<text class="required">*</text>
</view>
</view>
<view class="value">
<view class="value">
<text class="tag {{ formData.processResult == 1 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="1">人员不
匹配
</text>
<text class="tag {{ formData.processResult == 1 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="1">人员不
符合
</text>
<text class="tag {{ formData.processResult == 2 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="2">已完成面试</text>
<text class="tag {{ formData.processResult == 2 ? 'active' : '' }}" bindtap="selectTag" data-field="processResult" data-value="2">已完成面试</text>
</view>
</view>
</view>
</view>
...
...
src/views/recruitManage/recruitManage/recruitManage.vue
View file @
a8b531f
...
@@ -113,42 +113,16 @@ export default {
...
@@ -113,42 +113,16 @@ export default {
},
},
// 获取招聘任务统计数据
// 获取招聘任务统计数据
getWaitstaffstate
()
{
getWaitstaffstate
()
{
// 模拟接口数据
api
const
mockData
=
{
.
getDemandStatAPI
({})
code
:
0
,
.
then
(
res
=>
{
data
:
{
const
data
=
res
||
{}
waitAuditCount
:
5
,
// 0:待审核, 1:待处理, 2:全部
waitProcessCount
:
12
,
this
.
tabList
=
[
`待审核(
${
data
.
waitCheckCount
||
0
}
)`
,
`待处理(
${
data
.
waitProcessCount
||
0
}
)`
,
`全部(
${
data
.
totalCount
||
0
}
)`
]
totalCount
:
30
})
},
.
catch
(
error
=>
{
message
:
'success'
console
.
error
(
error
)
}
})
// 模拟异步请求
Promise
.
resolve
(
mockData
).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
// 0:全部,1:待审核,2:待处理
this
.
tabList
=
[
`待审核(
${
data
.
waitAuditCount
||
0
}
)`
,
`待处理(
${
data
.
waitProcessCount
||
0
}
)`
,
`全部(
${
data
.
totalCount
||
0
}
)`
]
}
else
{
this
.
$toast
(
message
)
}
})
/* 暂时注释掉真实接口调用
// return
api.getDemandStatAPI({}).then(res => {
let { code, data, message } = res
if (code == 0) {
// 0:全部,1:待审核,2:待处理
// 假设接口返回字段为 waitAuditCount, waitProcessCount, totalCount
// 如果接口字段不同,请根据实际情况调整
this.tabList = [`待审核(${data.waitAuditCount || 0})`, `待处理(${data.waitProcessCount || 0})`, `全部(${data.totalCount || 0})`]
} else {
this.$toast(message)
}
})
*/
},
},
// 标签切换
// 标签切换
...
...
src/views/recruitManage/recruitmentReview/recruitmentReview.vue
View file @
a8b531f
...
@@ -17,12 +17,22 @@
...
@@ -17,12 +17,22 @@
<div
class=
"info-item"
>
<div
class=
"info-item"
>
<span
class=
"label"
>
主营品牌
</span>
<span
class=
"label"
>
主营品牌
</span>
<div
class=
"value"
>
{{
formatValue
(
detail
.
brand
)
}}
</div>
<van-popover
v-model=
"showBrandPopover"
trigger=
"click"
placement=
"bottom-end"
class=
"popover-wrapper"
>
<div
class=
"popover-content"
>
{{
detail
.
brand
}}
</div>
<template
#
reference
>
<div
class=
"value text-ellipsis"
>
{{
formatValue
(
detail
.
brand
)
}}
</div>
</
template
>
</van-popover>
</div>
</div>
<div
class=
"info-item"
>
<div
class=
"info-item"
>
<span
class=
"label"
>
门店地址
</span>
<span
class=
"label"
>
门店地址
</span>
<div
class=
"value"
>
{{
formatValue
(
detail
.
merchantAddress
)
}}
</div>
<van-popover
v-model=
"showAddressPopover"
trigger=
"click"
placement=
"bottom-end"
class=
"popover-wrapper"
>
<div
class=
"popover-content"
>
{{ detail.merchantAddress }}
</div>
<
template
#
reference
>
<div
class=
"value text-ellipsis"
>
{{
formatValue
(
detail
.
merchantAddress
)
}}
</div>
</
template
>
</van-popover>
</div>
</div>
<div
class=
"info-item"
>
<div
class=
"info-item"
>
...
@@ -47,7 +57,7 @@
...
@@ -47,7 +57,7 @@
<div
class=
"info-item"
>
<div
class=
"info-item"
>
<span
class=
"label"
>
需求描述
</span>
<span
class=
"label"
>
需求描述
</span>
<div
class=
"value"
>
{{
formatValue
(
detail
.
requirementDescription
)
}}
</div>
<div
class=
"value"
v-html=
"detail.requirementDescription"
>
</div>
</div>
</div>
<div
class=
"info-item"
>
<div
class=
"info-item"
>
...
@@ -107,18 +117,23 @@
...
@@ -107,18 +117,23 @@
<
script
>
<
script
>
import
api
from
'../api'
import
api
from
'../api'
import
{
Toast
,
Dialog
}
from
'vant'
import
{
Toast
,
Dialog
,
Popover
}
from
'vant'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
export
default
{
export
default
{
name
:
'RecruitmentReview'
,
name
:
'RecruitmentReview'
,
components
:
{
[
Popover
.
name
]:
Popover
},
data
()
{
data
()
{
return
{
return
{
IMG_URL
,
IMG_URL
,
detail
:
{},
detail
:
{},
showRejectDialog
:
false
,
showRejectDialog
:
false
,
rejectReason
:
''
rejectReason
:
''
,
showBrandPopover
:
false
,
showAddressPopover
:
false
}
}
},
},
created
()
{
created
()
{
...
@@ -227,6 +242,13 @@ export default {
...
@@ -227,6 +242,13 @@ export default {
align-items
:
center
;
align-items
:
center
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
word-break
:
break-all
;
word-break
:
break-all
;
&.text-ellipsis
{
display
:
block
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
.ji
{
.ji
{
...
@@ -290,6 +312,21 @@ export default {
...
@@ -290,6 +312,21 @@ export default {
}
}
/* Custom Dialog Styles */
/* Custom Dialog Styles */
.popover-wrapper
{
flex
:
1
;
min-width
:
0
;
display
:
flex
;
justify-content
:
flex-end
;
}
.popover-content
{
padding
:
10px
;
max-width
:
200px
;
word-break
:
break-all
;
font-size
:
14px
;
color
:
#333
;
}
::v-deep
.reject-dialog
{
::v-deep
.reject-dialog
{
width
:
90%
;
width
:
90%
;
max-width
:
320px
;
max-width
:
320px
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment