Ver código fonte

Task 个人零工公开

rongxin_dev
zhaodengke 8 meses atrás
pai
commit
fa66565219
3 arquivos alterados com 18 adições e 18 exclusões
  1. +13
    -3
      src/views/sunVillage_info/list_tourists_ranking.vue
  2. +4
    -14
      src/views/sunVillage_info/list_tourists_registration.vue
  3. +1
    -1
      src/views/sunVillage_info/list_tourists_registration_detail.vue

+ 13
- 3
src/views/sunVillage_info/list_tourists_ranking.vue Ver arquivo

@@ -25,7 +25,7 @@
<van-row> <van-row>
<van-col :span="24">姓名</van-col> <van-col :span="24">姓名</van-col>
</van-row> </van-row>
<van-row v-for="(item,index) in applicationList" :key="index">
<van-row v-for="(item,index) in applicationList" :key="index" @click.prevent ="viewItem(item.id)">
<van-col :span="24">{{item.workerName}}</van-col> <van-col :span="24">{{item.workerName}}</van-col>
</van-row> </van-row>
<div class="name_bg"></div> <div class="name_bg"></div>
@@ -41,7 +41,7 @@
<van-col :span="5">工日值</van-col> <van-col :span="5">工日值</van-col>
<van-col :span="4">金额(元)</van-col> <van-col :span="4">金额(元)</van-col>
</van-row> </van-row>
<van-row v-for="(item,index) in applicationList" :key="index">
<van-row v-for="(item,index) in applicationList" :key="index" @click="viewItem(item.id)">
<van-col :span="5">{{item.workReason}}</van-col> <van-col :span="5">{{item.workReason}}</van-col>
<van-col :span="5">{{item.workerNote}}</van-col> <van-col :span="5">{{item.workerNote}}</van-col>
<van-col :span="5">{{item.workNum}}</van-col> <van-col :span="5">{{item.workNum}}</van-col>
@@ -104,7 +104,7 @@
getList(){ getList(){
var _this = this; var _this = this;
setTimeout(() => { setTimeout(() => {
console.log(_this.queryParams)
//console.log(_this.queryParams)
listOddjob(_this.queryParams).then(response => { listOddjob(_this.queryParams).then(response => {
_this.listLength = response.total; _this.listLength = response.total;
_this.applicationList = response.rows; _this.applicationList = response.rows;
@@ -119,6 +119,15 @@
}); });
}, 1000); }, 1000);
}, },
viewItem(id){
this.$router.push({
path: "/sunVillage_info/list_tourists_registration_detail",
query: {
id: id,
intent: 'view',
},
}).catch(() => {});
},
}, },
} }
</script> </script>
@@ -378,6 +387,7 @@
height: 100%; height: 100%;
position: absolute; position: absolute;
top: 0; top: 0;
pointer-events: none;
} }
.name_icon{ .name_icon{
position: absolute; position: absolute;


+ 4
- 14
src/views/sunVillage_info/list_tourists_registration.vue Ver arquivo

@@ -64,21 +64,21 @@
<van-grid :column-num="3"> <van-grid :column-num="3">
<van-grid-item text="查看" @click="viewItem(menuId)"> <van-grid-item text="查看" @click="viewItem(menuId)">
<template #icon> <template #icon>
<div class="opera_btn view">
<div class="menu_btn view">
<i class="icon "></i> <i class="icon "></i>
</div> </div>
</template> </template>
</van-grid-item> </van-grid-item>
<van-grid-item text="修改" @click="editItem(menuId)"> <van-grid-item text="修改" @click="editItem(menuId)">
<template #icon> <template #icon>
<div class="opera_btn edit">
<div class="menu_btn edit">
<i class="icon "></i> <i class="icon "></i>
</div> </div>
</template> </template>
</van-grid-item> </van-grid-item>
<van-grid-item text="删除" @click="removeItem(menuId)"> <van-grid-item text="删除" @click="removeItem(menuId)">
<template #icon> <template #icon>
<div class="opera_btn delete">
<div class="menu_btn delete">
<i class="icon "></i> <i class="icon "></i>
</div> </div>
</template> </template>
@@ -596,7 +596,7 @@ import {delOddjob, listOddjob, tempWorkerOpenRemove} from "@/api/sunVillage_info
.clear{ .clear{
clear: both; clear: both;
} }
.opera_btn{
.menu_btn{
width: 52px; width: 52px;
height: 52px; height: 52px;
border-radius: 50%; border-radius: 50%;
@@ -634,15 +634,5 @@ import {delOddjob, listOddjob, tempWorkerOpenRemove} from "@/api/sunVillage_info
display: block; display: block;
} }
} }
&.list{
background: #79cf13;
.icon {
width: 29px;
height: 21px;
background: url('../../assets/images/sunVillage_info/list_icon_10.png') no-repeat;
background-size: 100% 100%;
display: block;
}
}
} }
</style> </style>

+ 1
- 1
src/views/sunVillage_info/list_tourists_registration_detail.vue Ver arquivo

@@ -42,7 +42,7 @@
</van-field> </van-field>
<CommonUpload name="openPic3" v-model="form.openPic3" multiple :deletable="false" :show-upload="false"/> <CommonUpload name="openPic3" v-model="form.openPic3" multiple :deletable="false" :show-upload="false"/>


<van-field v-model="form.remark" label="备注" input-align="right" :border="false" />
<van-field v-model="form.remark" label="备注" input-align="left" :border="false" />


</div> </div>




Carregando…
Cancelar
Salvar