|
@@ -7,7 +7,8 @@
|
|
|
ref="multipleTable"
|
|
|
:data="joinUserList"
|
|
|
tooltip-effect="dark"
|
|
|
- style="width: 100%">
|
|
|
+ style="width: 100%"
|
|
|
+ @row-click="detail">
|
|
|
<el-table-column
|
|
|
label="文件/文件夹">
|
|
|
<template slot-scope="scope">
|
|
@@ -22,8 +23,7 @@
|
|
|
<template slot-scope="scope">{{ scope.row.gmtCreated }}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <!--
|
|
|
- <div v-if="joinUserList.length !== 0" class="page">
|
|
|
+ <div class="page">
|
|
|
<el-pagination
|
|
|
:total="totalSize"
|
|
|
background
|
|
@@ -31,7 +31,6 @@
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"/>
|
|
|
</div>
|
|
|
- -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -55,18 +54,17 @@ export default {
|
|
|
])
|
|
|
},
|
|
|
created() {
|
|
|
- // this.getList()
|
|
|
+ this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
- // getList() {
|
|
|
- // this.$store.dispatch('JoinUser', 1, 10).then((res) => {
|
|
|
- // console.log(res.list)
|
|
|
- // // 格式化时间
|
|
|
- // res.list.forEach((item, index) => {
|
|
|
- // this.joinUserList[index].task.gmtCreated = parseTime(item.task.gmtCreated)
|
|
|
- // })
|
|
|
- // })
|
|
|
- // },
|
|
|
+ getList() {
|
|
|
+ this.$store.dispatch('TaskList', 1).then((res) => {
|
|
|
+ // 格式化时间
|
|
|
+ res.forEach((item, index) => {
|
|
|
+ this.joinUserList[index].gmtCreated = parseTime(item.gmtCreated)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 输入验证码
|
|
|
findByCode() {
|
|
|
if (!this.input) {
|
|
@@ -79,40 +77,40 @@ export default {
|
|
|
this.joinUserList[index].gmtCreated = parseTime(item.gmtCreated)
|
|
|
})
|
|
|
})
|
|
|
+ },
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = val
|
|
|
+ console.log(val.length)
|
|
|
+ if (val.length === 0) {
|
|
|
+ this.delect = true
|
|
|
+ } else {
|
|
|
+ this.delect = false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ detail(row, event) {
|
|
|
+ const taskId = row.id
|
|
|
+ const title = row.title
|
|
|
+ // const name = event.target.classList[0]
|
|
|
+ // if (row.taskJoinUser.fileStatus === 'CLOSE') {
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ // if (name === 'el-checkbox__inner' || name === 'el-checkbox__original') {
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ this.$router.push({ path: `/fileDetail/fileDetail`, query: { 'taskId': taskId, 'title': title }})
|
|
|
+ },
|
|
|
+ handleSizeChange(page) {
|
|
|
+ console.log(page)
|
|
|
+ },
|
|
|
+ handleCurrentChange(page) {
|
|
|
+ this.$store.dispatch('JoinUser', page).then((res) => {
|
|
|
+ console.log(res.list)
|
|
|
+ // 格式化时间
|
|
|
+ res.list.forEach((item, index) => {
|
|
|
+ this.joinUserList[index].task.gmtCreated = parseTime(item.task.gmtCreated)
|
|
|
+ })
|
|
|
+ })
|
|
|
}
|
|
|
- // handleSelectionChange(val) {
|
|
|
- // this.multipleSelection = val
|
|
|
- // console.log(val.length)
|
|
|
- // if (val.length === 0) {
|
|
|
- // this.delect = true
|
|
|
- // } else {
|
|
|
- // this.delect = false
|
|
|
- // }
|
|
|
- // },
|
|
|
- // detail(row, event) {
|
|
|
- // const taskId = row.task.id
|
|
|
- // const title = row.task.title
|
|
|
- // const name = event.target.classList[0]
|
|
|
- // if (row.taskJoinUser.fileStatus === 'CLOSE') {
|
|
|
- // return false
|
|
|
- // }
|
|
|
- // if (name === 'el-checkbox__inner' || name === 'el-checkbox__original') {
|
|
|
- // return false
|
|
|
- // }
|
|
|
- // this.$router.push({ path: `/fileDetail/fileDetail`, query: { 'taskId': taskId, 'title': title }})
|
|
|
- // },
|
|
|
- // handleSizeChange(page) {
|
|
|
- // console.log(page)
|
|
|
- // },
|
|
|
- // handleCurrentChange(page) {
|
|
|
- // this.$store.dispatch('JoinUser', page).then((res) => {
|
|
|
- // console.log(res.list)
|
|
|
- // // 格式化时间
|
|
|
- // res.list.forEach((item, index) => {
|
|
|
- // this.joinUserList[index].task.gmtCreated = parseTime(item.task.gmtCreated)
|
|
|
- // })
|
|
|
- // })
|
|
|
- // },
|
|
|
// deleteList() {
|
|
|
// const joinUser = []
|
|
|
// this.multipleSelection.forEach(item => {
|