ziliaoshangbao
This commit is contained in:
parent
f175379237
commit
afe51cbcc9
|
@ -3,24 +3,27 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
|
|
||||||
<div
|
<el-card
|
||||||
style="margin-top: 10px"
|
style="margin-top: 10px"
|
||||||
>
|
>
|
||||||
<el-tabs v-model="activeName">
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane label="待上报" name="first" lazy>
|
<el-tab-pane label="待上报" name="first" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="已上报" name="three" lazy>
|
<el-tab-pane label="已上报" name="second" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="待整改" name="secord" lazy>
|
<el-tab-pane label="待整改" name="third" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="已确认" name="fore" lazy>
|
<el-tab-pane label="已确认" name="forth" lazy>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
</div>
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="recordList"
|
:data="recordList"
|
||||||
|
@ -31,9 +34,14 @@
|
||||||
max-height="600px"
|
max-height="600px"
|
||||||
>
|
>
|
||||||
<el-table-column label="序号" type="index" align="center" />
|
<el-table-column label="序号" type="index" align="center" />
|
||||||
<el-table-column label="单位">
|
<el-table-column label="任务标题">
|
||||||
<template slot-scope="scope">{{
|
<template slot-scope="scope">{{
|
||||||
scope.row.belong_dept_.name
|
scope.row.task_.name
|
||||||
|
}}</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="材料">
|
||||||
|
<template slot-scope="scope">{{
|
||||||
|
scope.row.content_.name
|
||||||
}}</template>
|
}}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态">
|
<el-table-column label="状态">
|
||||||
|
@ -86,6 +94,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
title="主动上报"
|
title="主动上报"
|
||||||
|
@ -112,6 +122,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
activeName: "first",
|
activeName: "first",
|
||||||
|
state:"待上报",
|
||||||
contents: [],
|
contents: [],
|
||||||
depts: [],
|
depts: [],
|
||||||
listLoading: false,
|
listLoading: false,
|
||||||
|
@ -127,17 +138,47 @@ export default {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
getRecordList(){
|
getRecordList(){
|
||||||
|
|
||||||
getRecordList().then((res) => {
|
getRecordList({state:this.state}).then((res) => {
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
this.recordList = res.data.results;
|
this.recordList = res.data.results;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleClick(tab, event) {
|
||||||
|
switch (tab.name) {
|
||||||
|
case "first":
|
||||||
|
this.state="待上报";
|
||||||
|
this.getRecordList();
|
||||||
|
break;
|
||||||
|
case "second":
|
||||||
|
this.state="已上报";
|
||||||
|
this.getRecordList();
|
||||||
|
break;
|
||||||
|
case "third":
|
||||||
|
this.state="待整改";
|
||||||
|
this.getRecordList();
|
||||||
|
break;
|
||||||
|
case "forth":
|
||||||
|
this.state="已确认";
|
||||||
|
this.getRecordList();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
handleUpdate(scope) {
|
handleUpdate(scope) {
|
||||||
this.data = {
|
this.data = {
|
||||||
action: "update",
|
action: "update",
|
||||||
record: scope.row,
|
record: scope.row,
|
||||||
};
|
};
|
||||||
this.drawer = true;
|
this.drawer = true;
|
||||||
|
},
|
||||||
|
chooseComplete(data) {
|
||||||
|
this.dialogVisible = false;
|
||||||
|
const rLoading = this.openLoading("正在初始化任务,请稍等...");
|
||||||
|
inittask(this.task.id, data).then((res) => {
|
||||||
|
rLoading.close();
|
||||||
|
this.$message.success("成功");
|
||||||
|
this.$router.go(0);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
handleUp(scope) {
|
handleUp(scope) {
|
||||||
this.data = {
|
this.data = {
|
||||||
|
|
Loading…
Reference in New Issue