Commit 94dee89b authored by 石盼盼's avatar 石盼盼

Merge branch 'spp' into 'master'

Spp

See merge request !33
parents 37eb4140 45fa1a50
...@@ -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' // 正式接口
......
...@@ -355,37 +355,32 @@ ...@@ -355,37 +355,32 @@
// 选择工人弹窗样式 // 选择工人弹窗样式
.tc-box{ .tc-box{
width: 6.9rem; width: 6.9rem;
height: 7rem;
background: #fff; background: #fff;
padding-top: 0.3rem; padding: 0.3rem;
padding-left: 0.3rem;
padding-right: 0.3rem;
padding-bottom: 0.3rem;
} }
.tc-box .tc-title{ .tc-box .tc-title{
color: #000000; color: #000000;
font-size: 0.26rem; font-size: 0.28rem;
margin-bottom: 0.3rem; margin-bottom: 0.3rem;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
} }
.tc-box .workers .worker-item{ .tc-box .workers .gr-item{
width: 2rem; margin-bottom: 0.4rem;
height: 0.6rem;
background: #f2f2f2;
text-align: center;
line-height: 0.6rem;
border-radius: 0.35rem;
margin-bottom: 0.2rem;
} }
.tc-box .workers .activeItem { .tc-box .workers .gr-item .gr-img {
width: 2rem; width: 0.56rem;
height: 0.6rem; height: 0.56rem;
background: #0054FF; margin-right: 0.27rem;
color: #fff; }
text-align: center; .tc-box .workers .gr-item .gr-name{
line-height: 0.6rem; color: #000000;
border-radius: 0.35rem; font-size: 0.28rem;
margin-bottom: 0.2rem; }
.tc-box .workers .k-img {
width: 0.42rem;
height: 0.42rem;
} }
.btn-box{ .btn-box{
margin-top: 0.6rem; margin-top: 0.6rem;
......
...@@ -55,13 +55,23 @@ ...@@ -55,13 +55,23 @@
/>--> />-->
<div class="tc-box"> <div class="tc-box">
<div class="tc-title">选择工人</div> <div class="tc-title">选择工人</div>
<div class="workers flex-h flex-hw flex-hb"> <div class="workers">
<div <!-- :class="item.worker_id && item.worker_id.includes(child_item.id) ? 'activeItem' : 'worker-item'" -->
:class="item.worker_id && item.worker_id.includes(child_item.id) ? 'activeItem' : 'worker-item'" <div class="gr-item flex-h flex-vc flex-hb" @click="selectWorker(child_index,child_item,index)"
@click="selectWorker(child_index,child_item,index)"
v-for="(child_item,child_index) in columns" v-for="(child_item,child_index) in columns"
:key="child_index" :key="child_index"
>{{child_item.name}}</div> >
<div class="flex-h flex-vc">
<img class="gr-img" src="@assets/images/gr.png" />
<div class="gr-name" v-if="child_item.repired_count !== 0 || child_item.repiring_count !== 0">
{{child_item.name}} (已派工: {{child_item.repired_count}};维修中: {{child_item.repiring_count}})
</div>
<div class="gr-name" v-else>
{{child_item.name}} (休息中)
</div>
</div>
<img class="k-img" :src="item.worker_id && item.worker_id.includes(child_item.id) ? select_img : unselect_img" />
</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>
...@@ -215,6 +225,8 @@ ...@@ -215,6 +225,8 @@
import myTabbar from '@components/common/tabbar.vue' import myTabbar from '@components/common/tabbar.vue'
import { trimStrSpace } from '@assets/js/format.js' 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 unselect_img from '@assets/images/un_select.png'
export default { export default {
name: 'home', name: 'home',
components: { components: {
...@@ -222,6 +234,8 @@ export default { ...@@ -222,6 +234,8 @@ export default {
}, },
data () { data () {
return { return {
select_img,
unselect_img,
reson: '',//取消原因 reson: '',//取消原因
qxShow: false, // 发起转单弹窗 qxShow: false, // 发起转单弹窗
workerName: '', workerName: '',
...@@ -455,7 +469,9 @@ export default { ...@@ -455,7 +469,9 @@ export default {
let options = { let options = {
name: data[i].name, name: data[i].name,
id: data[i].id, id: data[i].id,
isCheck: false isCheck: false,
repired_count: data[i].repired_count,
repiring_count: data[i].repiring_count,
} }
arr.push(options); //属性 arr.push(options); //属性
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment