record tab 页
This commit is contained in:
commit
7d8d0bce18
|
@ -72,7 +72,7 @@
|
||||||
条记录待整改
|
条记录待整改
|
||||||
</el-link>
|
</el-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="litem" @click="goto('toconfirm')">
|
<div class="litem" @click="goto('uped')">
|
||||||
<el-link class="desc" v-if="todos.toconfirm">
|
<el-link class="desc" v-if="todos.toconfirm">
|
||||||
您有
|
您有
|
||||||
<span style="color:red">{{todos.toconfirm}}</span>
|
<span style="color:red">{{todos.toconfirm}}</span>
|
||||||
|
|
|
@ -115,8 +115,7 @@
|
||||||
<template slot-scope="scope" v-if="scope.row.files">
|
<template slot-scope="scope" v-if="scope.row.files">
|
||||||
<el-link v-if="scope.row.files.length>1">有{{scope.row.files.length}}个文件</el-link>
|
<el-link v-if="scope.row.files.length>1">有{{scope.row.files.length}}个文件</el-link>
|
||||||
<div v-else v-for="item in scope.row.files_" v-bind:key="item.id">
|
<div v-else v-for="item in scope.row.files_" v-bind:key="item.id">
|
||||||
|
<el-link :href="item.path" target="_blank" type="primary">{{ item.name }}</el-link>
|
||||||
<el-link :href="item.path" type="primary">{{ item.name }}</el-link>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane label="待上报" name="first" lazy>
|
<el-tab-pane label="待上报" name="toup" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="已上报" name="second" lazy>
|
<el-tab-pane label="已上报" name="uped" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="待整改" name="third" lazy>
|
<el-tab-pane label="待整改" name="tozg" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="已确认" name="forth" lazy>
|
<el-tab-pane label="已确认" name="confirmed" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
centerDialogVisible: false,
|
centerDialogVisible: false,
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
activeName: "first",
|
activeName: "toup",
|
||||||
state:"待上报",
|
state:"待上报",
|
||||||
can_doself:true,
|
can_doself:true,
|
||||||
contents: [],
|
contents: [],
|
||||||
|
@ -158,11 +158,17 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.getTab();
|
||||||
this.getContentList();
|
this.getContentList();
|
||||||
this.getRecordList();
|
this.getRecordList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
|
getTab(){
|
||||||
|
if(this.$route.params.tab){
|
||||||
|
this.activeName = this.$route.params.tab
|
||||||
|
}
|
||||||
|
},
|
||||||
getRecordList(){
|
getRecordList(){
|
||||||
|
|
||||||
getRecordList({state:this.state}).then((res) => {
|
getRecordList({state:this.state}).then((res) => {
|
||||||
|
@ -178,19 +184,19 @@ export default {
|
||||||
|
|
||||||
handleClick(tab, event) {
|
handleClick(tab, event) {
|
||||||
switch (tab.name) {
|
switch (tab.name) {
|
||||||
case "first":
|
case "toup":
|
||||||
this.state="待上报";
|
this.state="待上报";
|
||||||
this.getRecordList();
|
this.getRecordList();
|
||||||
break;
|
break;
|
||||||
case "second":
|
case "uped":
|
||||||
this.state="已上报";
|
this.state="已上报";
|
||||||
this.getRecordList();
|
this.getRecordList();
|
||||||
break;
|
break;
|
||||||
case "third":
|
case "tozg":
|
||||||
this.state="待整改";
|
this.state="待整改";
|
||||||
this.getRecordList();
|
this.getRecordList();
|
||||||
break;
|
break;
|
||||||
case "forth":
|
case "confirmed":
|
||||||
this.state="已确认";
|
this.state="已确认";
|
||||||
this.getRecordList();
|
this.getRecordList();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue