积分审核
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<AiTopFixed>
|
||||
<div class="top-search">
|
||||
<div class="left">
|
||||
<u-search v-model="search.name" :clearabled="true" placeholder="请输入申请人,审批人" :show-action="false" bg-color="#F5F5F5"
|
||||
<u-search v-model="search.name" :clearabled="true" placeholder="请输入申请人、审批人" :show-action="false" bg-color="#F5F5F5"
|
||||
search-icon-color="#999" color="#999" height="58" @search="getListInit" @clear="getListInit">
|
||||
</u-search>
|
||||
</div>
|
||||
@@ -12,12 +12,14 @@
|
||||
<div class="item" @click="showDateSelect=true">
|
||||
<span v-if="!search.startTime" style="color:#999;">日期筛选</span>
|
||||
<span v-else>{{ search.startTime }}至{{ search.endTime }}</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!search.startTime" />
|
||||
<img src="./img/del-icon.png" alt="" class="del-icon" v-else @click.stop="clearDate">
|
||||
</div>
|
||||
<div class="item" @click="isShowType=true">
|
||||
<span style="color:#999;" v-if="!search.type">事件类型</span>
|
||||
<span v-else>{{ search.typeName }}</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!search.type"/>
|
||||
<img src="./img/del-icon.png" alt="" class="del-icon" v-else @click.stop="clearType">
|
||||
</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
@@ -86,6 +88,9 @@ export default {
|
||||
this.getListInit()
|
||||
})
|
||||
this.getTypeList()
|
||||
uni.$on('updateList', () => {
|
||||
this.getListInit()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getListInit() {
|
||||
@@ -103,7 +108,7 @@ export default {
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
res.data.records.map((item) => {
|
||||
item.createTime = item.createTime.substring(0, 12)
|
||||
item.createTime = item.createTime.substring(0, 16)
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records
|
||||
this.pages = Math.ceil(res.data.total / 10)
|
||||
@@ -141,6 +146,16 @@ export default {
|
||||
this.getListInit()
|
||||
}
|
||||
})
|
||||
},
|
||||
clearDate() {
|
||||
this.search.startTime = ''
|
||||
this.search.endTime = ''
|
||||
this.getListInit()
|
||||
},
|
||||
clearType() {
|
||||
this.search.type = ''
|
||||
this.search.typeName = ''
|
||||
this.getListInit()
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -188,6 +203,12 @@ export default {
|
||||
color: #666;
|
||||
line-height: 40px;
|
||||
}
|
||||
.del-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
vertical-align: middle;
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.list-content {
|
||||
|
||||
Reference in New Issue
Block a user