Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
repair_workers_h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
repair_workers_h5
Commits
769f666a
Commit
769f666a
authored
Oct 19, 2021
by
石盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改显示暂无员工,之前的模板消息点击进去显示暂无工单
parent
a77fee7e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
25 deletions
+53
-25
apiList.js
src/api/apiList.js
+2
-2
admin_index.scss
src/assets/styles/tabbar/admin_index.scss
+6
-0
order_detail.vue
src/views/my/order_detail.vue
+13
-2
Home.vue
src/views/tabbar/Home.vue
+10
-4
admin_home.vue
src/views/tabbar/admin_home.vue
+22
-17
No files found.
src/api/apiList.js
View file @
769f666a
...
@@ -10,8 +10,8 @@ const baseUrl = '/api'
...
@@ -10,8 +10,8 @@ const baseUrl = '/api'
// todo: url
// todo: url
// const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口
// const httpUrl = 'https://repairtest.zeruiedu.com' // 测试接口
const
httpUrl
=
'
https://repair.zeruiedu.com
'
// 正式接口
const
httpUrl
=
'
https://repair.zeruiedu.com
'
// 正式接口
//
const h5Url = 'http://localhost:8080' // 测试h5线上地址
const
h5Url
=
'
http://localhost:8080
'
// 测试h5线上地址
const
h5Url
=
'
http://repair.h5.zeruiedu.com
'
// 测试h5线上地址
//
const h5Url = 'http://repair.h5.zeruiedu.com' // 测试h5线上地址
window
.
localStorage
.
setItem
(
'
httpUrl
'
,
httpUrl
)
window
.
localStorage
.
setItem
(
'
httpUrl
'
,
httpUrl
)
window
.
localStorage
.
setItem
(
'
h5Url
'
,
h5Url
)
window
.
localStorage
.
setItem
(
'
h5Url
'
,
h5Url
)
// const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口
// const httpUrl = 'https://fenghexm.xueyoubangedu.com' // 正式接口
...
...
src/assets/styles/tabbar/admin_index.scss
View file @
769f666a
...
@@ -433,3 +433,9 @@
...
@@ -433,3 +433,9 @@
height
:
100%
;
height
:
100%
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
// 暂无员工样式
.none
{
margin-left
:
0
.3rem
;
color
:
#000000
;
font-size
:
0
.28rem
;
}
\ No newline at end of file
src/views/my/order_detail.vue
View file @
769f666a
...
@@ -208,6 +208,10 @@
...
@@ -208,6 +208,10 @@
<img
src=
"@assets/images/tabbar/icon_01_sel.png"
alt
/>
<img
src=
"@assets/images/tabbar/icon_01_sel.png"
alt
/>
</div>
</div>
</div>
</div>
<div
v-else
>
<img
class=
"none-img"
src=
"https://img01.yzcdn.cn/vant/empty-image-default.png"
>
<p
class=
"none-p"
>
暂无工单哦!
</p>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -240,8 +244,8 @@ export default {
...
@@ -240,8 +244,8 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
order_id
=
this
.
$route
.
query
.
id
//
this.order_id = this.$route.query.id
// this.order_id = 143
this
.
order_id
=
211
this
.
getDetail
()
this
.
getDetail
()
},
},
methods
:
{
methods
:
{
...
@@ -474,4 +478,11 @@ export default {
...
@@ -474,4 +478,11 @@ export default {
height
:
100%
;
height
:
100%
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.none-img
{
display
:
block
;
margin
:
0
auto
;
}
.none-p
{
text-align
:
center
;
}
</
style
>
</
style
>
\ No newline at end of file
src/views/tabbar/Home.vue
View file @
769f666a
...
@@ -624,12 +624,12 @@ export default {
...
@@ -624,12 +624,12 @@ export default {
// 备注耗材弹窗
// 备注耗材弹窗
bz_click
(
item
)
{
bz_click
(
item
)
{
this
.
curItem
=
item
this
.
curItem
=
item
this
.
hcShow
=
true
// 默认为一个空数据
// 默认为一个空数据
this
.
addList
=
[{
this
.
addList
=
[{
goods_name
:
''
,
goods_name
:
''
,
number
:
''
number
:
''
}]
}]
this
.
hcShow
=
true
},
},
// 添加耗材
// 添加耗材
addMeth
()
{
addMeth
()
{
...
@@ -670,8 +670,14 @@ export default {
...
@@ -670,8 +670,14 @@ export default {
.
post
(
this
.
$myApi
.
MATERIAL_REMARK
,
curParams
)
.
post
(
this
.
$myApi
.
MATERIAL_REMARK
,
curParams
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
this
.
hcShow
=
false
this
.
hcShow
=
false
// setTimeout(()=>{
this
.
$toast
(
'
操作成功
'
)
this
.
$toast
(
'
操作成功
'
)
this
.
addList
=
[{
goods_name
:
''
,
number
:
''
}]
vm
.
$set
(
vm
.
list
,
index
,
data
)
vm
.
$set
(
vm
.
list
,
index
,
data
)
// },800)
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
hcShow
=
false
this
.
hcShow
=
false
...
...
src/views/tabbar/admin_home.vue
View file @
769f666a
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
<div
class=
"workers"
>
<div
class=
"workers"
>
<div
class=
"gr-item"
v-for=
"(child_item,child_index) in columns"
:key=
"child_index"
>
<div
class=
"gr-item"
v-for=
"(child_item,child_index) in columns"
:key=
"child_index"
>
<div
class=
"bm-item"
>
{{
child_item
.
name
}}
</div>
<div
class=
"bm-item"
>
{{
child_item
.
name
}}
</div>
<div
v-if=
"child_item.user.length"
>
<div
<div
class=
"people-item flex-h flex-vc flex-hb"
class=
"people-item flex-h flex-vc flex-hb"
v-for=
"(lchild_item,lchild_index) in child_item.user"
v-for=
"(lchild_item,lchild_index) in child_item.user"
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
@
click=
"chooseWorker(lchild_item,lchild_index,index)"
@
click=
"chooseWorker(lchild_item,lchild_index,index)"
>
>
<div
class=
"flex-h flex-vc"
>
<div
class=
"flex-h flex-vc"
>
<img
class=
"gr-img"
src=
"@assets/images/gr.png"
/>
<img
class=
"gr-img"
:src=
gr_img
/>
<div
<div
class=
"gr-name"
class=
"gr-name"
v-if=
"lchild_item.repired_count !== 0 || lchild_item.repiring_count !== 0"
v-if=
"lchild_item.repired_count !== 0 || lchild_item.repiring_count !== 0"
...
@@ -78,6 +79,8 @@
...
@@ -78,6 +79,8 @@
/>
/>
</div>
</div>
</div>
</div>
<div
v-else
class=
"none"
>
暂无员工
</div>
</div>
</div>
</div>
<div
class=
"allBtn btn-box flex-h flex-hc"
>
<div
class=
"allBtn btn-box flex-h flex-hc"
>
<div
class=
"button"
@
click=
"Cancel(index)"
>
取消
</div>
<div
class=
"button"
@
click=
"Cancel(index)"
>
取消
</div>
...
@@ -286,6 +289,7 @@ import { trimStrSpace } from '@assets/js/format.js'
...
@@ -286,6 +289,7 @@ import { trimStrSpace } from '@assets/js/format.js'
import
{
ImagePreview
,
CellGroup
}
from
'
vant
'
;
import
{
ImagePreview
,
CellGroup
}
from
'
vant
'
;
import
select_img
from
'
@assets/images/select.png
'
import
select_img
from
'
@assets/images/select.png
'
import
unselect_img
from
'
@assets/images/un_select.png
'
import
unselect_img
from
'
@assets/images/un_select.png
'
import
gr_img
from
'
@assets/images/gr.png
'
export
default
{
export
default
{
name
:
'
home
'
,
name
:
'
home
'
,
components
:
{
components
:
{
...
@@ -295,6 +299,7 @@ export default {
...
@@ -295,6 +299,7 @@ export default {
return
{
return
{
select_img
,
select_img
,
unselect_img
,
unselect_img
,
gr_img
,
reson
:
''
,
//取消原因
reson
:
''
,
//取消原因
qxShow
:
false
,
// 发起转单弹窗
qxShow
:
false
,
// 发起转单弹窗
workerName
:
''
,
workerName
:
''
,
...
...
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