richengjiandu
This commit is contained in:
parent
e551f8fa4b
commit
0bafaa0445
|
|
@ -3,8 +3,8 @@ ENV = 'development'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
#VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
|
#VUE_APP_BASE_API = 'http://10.0.11.127:8000/api'
|
||||||
VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
|
#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api'
|
||||||
#VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
|
VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api'
|
||||||
|
|
||||||
#VUE_APP_BASE_API = 'http://47.95.0.242:9101/api'
|
#VUE_APP_BASE_API = 'http://47.95.0.242:9101/api'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,21 @@
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>我的报送任务</span>
|
<span>我的报送任务</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<el-select
|
||||||
|
v-model="listQuery.dept"
|
||||||
|
placeholder="报送部门"
|
||||||
|
|
||||||
|
@change="handleFilter"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in orgData"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="taskList"
|
:data="taskList"
|
||||||
|
|
@ -37,6 +52,9 @@
|
||||||
<el-table-column label="报送率">
|
<el-table-column label="报送率">
|
||||||
<template slot-scope="scope">{{ scope.row.up_rate }}%</template>
|
<template slot-scope="scope">{{ scope.row.up_rate }}%</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="报送部门">
|
||||||
|
<template slot-scope="scope">{{ scope.row.dept_.name }}</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="确认率">
|
<el-table-column label="确认率">
|
||||||
<template slot-scope="scope">{{ scope.row.confirm_rate }}%</template>
|
<template slot-scope="scope">{{ scope.row.confirm_rate }}%</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -64,6 +82,7 @@
|
||||||
import {
|
import {
|
||||||
getmytasklist,
|
getmytasklist,
|
||||||
} from "@/api/task";
|
} from "@/api/task";
|
||||||
|
import { getOrgList, getSubOrgList } from "@/api/org";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||||
import mytaskrecord from "@/views/supervision/mytaskrecord";
|
import mytaskrecord from "@/views/supervision/mytaskrecord";
|
||||||
|
|
@ -77,13 +96,15 @@ export default {
|
||||||
page_size: 20,
|
page_size: 20,
|
||||||
},
|
},
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
query:null
|
query:null,
|
||||||
|
orgData: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getOrgList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
|
|
@ -95,12 +116,28 @@ export default {
|
||||||
}
|
}
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
getOrgList() {
|
||||||
|
if (this.checkPermission(["record_confirm"])) {
|
||||||
|
getOrgList({ can_supervision: true }).then((res) => {
|
||||||
|
this.orgData = res.data;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
getSubOrgList().then((res) => {
|
||||||
|
this.orgData = res.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
clickRow(obj){
|
clickRow(obj){
|
||||||
this.query = {
|
this.query = {
|
||||||
dept:obj.dept,
|
dept:obj.dept,
|
||||||
task:obj.task
|
task:obj.task
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleFilter() {
|
||||||
|
this.listQuery.page = 1;
|
||||||
|
|
||||||
|
this.getList();
|
||||||
},
|
},
|
||||||
handleDo(val){
|
handleDo(val){
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
|
||||||
<el-select
|
|
||||||
v-model="listQuery.belong_dept"
|
|
||||||
placeholder="报送部门"
|
|
||||||
clearable
|
|
||||||
@change="handleFilter"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in orgData"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</div>
|
|
||||||
<el-table
|
<el-table
|
||||||
style="margin-top: 6px"
|
style="margin-top: 6px"
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue