首页10条代办,点击“more”跳转到代办页面

This commit is contained in:
Jaunty
2021-07-07 16:52:47 +08:00
parent c1d16d1bfd
commit c10b400450
3 changed files with 139 additions and 112 deletions
+28 -18
View File
@@ -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>
+6 -6
View File
@@ -6,7 +6,7 @@
// 服务器地址
// const devIp = '39.98.140.126'
// const devInterfacePORT = '10005'
const devIp = '192.168.10.247'
const devIp = '192.168.10.248'
const devInterfacePORT = '9999'
// 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777'
@@ -22,11 +22,11 @@ const theme = 'theme-one' // 主题(theme-one浅蓝色,theme-two深蓝色)
const processPort = '17210'
/*****************************************************************
<<<<<<<<< 主题修改 >>>>>>>>>
<<<<<<<<< 主题修改 >>>>>>>>>
1. 主题分为theme-one,theme-two两种
2. 修改assets/styles/style.less文件,注释theme-one/theme-two
3. 将上方theme改为theme-one/theme-two
1. 主题分为theme-one,theme-two两种
2. 修改assets/styles/style.less文件,注释theme-one/theme-two
3. 将上方theme改为theme-one/theme-two
*****************************************************************/
// 生产环境配置
@@ -51,4 +51,4 @@ module.exports = {
enterprise: enterprise, // GQ广汽 SJZX数据中心
theme: theme, // 主题
processInterfaceURL: `http://${serverIP}:${processPort}/bat-wkflow`
}
}