|
@@ -90,7 +90,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination background style="margin-top:30px;" align="center" :current-page="curIndex" :page-size="pageSize" layout="prev, pager, next" :total="total" @current-change="handleCurrentChange" />
|
|
|
+ <el-pagination background style="margin-top:30px;" align="center" :current-page="curIndex" :page-size="pageSize" layout="total, prev, pager, next" :total="total" @current-change="handleCurrentChange" />
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="看板" name="second">
|
|
@@ -192,7 +192,7 @@
|
|
|
<div class="set-reverse">
|
|
|
<span>ID : {{ item.id }}</span>
|
|
|
<div class="center">
|
|
|
- <span>{{ item.group }}</span>
|
|
|
+ <span>{{ item.groupName }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -301,7 +301,7 @@ export default {
|
|
|
queryCode: {},
|
|
|
loadingOnlineProcess: false,
|
|
|
curIndex: 1,
|
|
|
- pageSize: 20,
|
|
|
+ pageSize: 10,
|
|
|
total: 0,
|
|
|
totalKanBan: 0,
|
|
|
pauseTarget: '',
|
|
@@ -364,21 +364,20 @@ export default {
|
|
|
queryCode.bizId = localStorage.getItem('key')
|
|
|
queryCode.pageSize = this.pageSize
|
|
|
queryCode.curIndex = this.curIndex
|
|
|
- for (const key in queryCode) { // 接口不接受空值的处理
|
|
|
- if (queryCode[key] === '') {
|
|
|
- delete queryCode[key]
|
|
|
- }
|
|
|
- }
|
|
|
+ this.emptyJudge(queryCode)
|
|
|
taskListGet(queryCode).then(res => {
|
|
|
res.code === 200 ? this.tableData = res.data : this.errorFun(res.msg)
|
|
|
+ this.total = res.total
|
|
|
})
|
|
|
},
|
|
|
- dataQueryInSearch(queryCode) {
|
|
|
- queryCode.bizId = localStorage.getItem('key')
|
|
|
- queryCode.pageSize = this.pageSize
|
|
|
- queryCode.curIndex = this.curIndex
|
|
|
- taskListGet(queryCode).then(res => {
|
|
|
+ dataQueryInSearch() {
|
|
|
+ this.form.bizId = parseInt(localStorage.getItem('key'))
|
|
|
+ this.form.pageSize = this.pageSize
|
|
|
+ this.form.curIndex = this.curIndex
|
|
|
+ this.emptyJudge(this.form)
|
|
|
+ taskListGet(this.form).then(res => {
|
|
|
res.code === 200 ? this.tableData = res.data : this.errorFun(res.msg)
|
|
|
+ this.total = res.total
|
|
|
})
|
|
|
},
|
|
|
createdCode() {
|
|
@@ -717,11 +716,7 @@ export default {
|
|
|
},
|
|
|
// 看板查询
|
|
|
kanBanQuery(e) {
|
|
|
- for (const key in e) {
|
|
|
- if (e[key] === '') {
|
|
|
- delete e[key]
|
|
|
- }
|
|
|
- }
|
|
|
+ this.emptyJudge(e)
|
|
|
e.bizId = this.bizJson
|
|
|
this.loadingOnlineProcess = true
|
|
|
listMap(e).then((res) => {
|
|
@@ -729,6 +724,14 @@ export default {
|
|
|
this.loadingOnlineProcess = false
|
|
|
})
|
|
|
},
|
|
|
+ // 接口不接受空值处理
|
|
|
+ emptyJudge(obj) {
|
|
|
+ for (const key in obj) {
|
|
|
+ if (obj[key] === '') {
|
|
|
+ delete obj[key]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 看板跳转
|
|
|
jumpToReport(id) {
|
|
|
this.$router.push({ name: '任务查看', query: { id: id }})
|