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