首页10条代办,点击“more”跳转到代办页面
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
<div class="to-do-list">
|
||||
<div>
|
||||
<span class="task">待办任务</span>
|
||||
<span class="more">MORE</span>
|
||||
<div class="more" @click="togo">MORE</div>
|
||||
</div>
|
||||
<ul>
|
||||
<li v-for="item in toDoTaskList" :key="item.id" class="time-title">
|
||||
<a>{{ item.title }}</a>
|
||||
<a>{{ item.prcName }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -20,26 +20,36 @@ export default {
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
toDoTaskList: [
|
||||
{
|
||||
id: 1,
|
||||
title: '标准制定流程1',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: '标准制定流程2',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: '标准制定流程3',
|
||||
},
|
||||
],
|
||||
toDoTaskList: [],// 代办数据
|
||||
total: 0,
|
||||
pageNo: 1,
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {},
|
||||
methods: {},
|
||||
mounted() {this.queryProcess()},
|
||||
methods: {
|
||||
togo () {
|
||||
this.$router.push('/processCenter')
|
||||
},
|
||||
queryProcess () { // 查询待办流程
|
||||
this.$http.postData('lawss/activiti/todoTaskList', {
|
||||
current: this.pageNo,
|
||||
size: parseInt(this.$store.getters.userInfo.configContent),
|
||||
userId: this.$store.getters.userInfo.usid || this.$store.getters.userInfo.userId,
|
||||
},
|
||||
{
|
||||
loading: 'loading',
|
||||
_this: this
|
||||
}, res => {
|
||||
this.toDoTaskList = res.list
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
toPage() {
|
||||
this.$router.push(this.path)
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user