更改菜单名成
This commit is contained in:
parent
bb23b439ec
commit
c89052ab9c
|
@ -211,7 +211,7 @@ export const asyncRoutes = [
|
||||||
path: 'basicGoal',
|
path: 'basicGoal',
|
||||||
name: 'basicGoal',
|
name: 'basicGoal',
|
||||||
component: () => import('@/views/supervisionNew/basicGoal.vue'),
|
component: () => import('@/views/supervisionNew/basicGoal.vue'),
|
||||||
meta: { title: '年度基础目标' , perms: ['task2']}
|
meta: { title: '集团年度目标' , perms: ['task2']}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'basicGoalDept',
|
path: 'basicGoalDept',
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
>搜索</el-button>
|
>搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card style="margin-top: 10px">
|
<el-card style="margin-top: 6px">
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="dataList.results"
|
:data="dataList.results"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
fit
|
fit
|
||||||
stripe
|
stripe
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
max-height="600"
|
:height="heightTable"
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column label="年份" prop="year" width="80"></el-table-column>
|
<el-table-column label="年份" prop="year" width="80"></el-table-column>
|
||||||
|
@ -37,13 +37,13 @@
|
||||||
<el-table-column label="能力验证满意率(%)" prop="pgoal_4"></el-table-column>
|
<el-table-column label="能力验证满意率(%)" prop="pgoal_4"></el-table-column>
|
||||||
<el-table-column label="客户投诉处理满意率(%)" prop="pgoal_5"></el-table-column>
|
<el-table-column label="客户投诉处理满意率(%)" prop="pgoal_5"></el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<!-- <pagination
|
||||||
v-show="dataList.count > 0"
|
v-show="dataList.count > 0"
|
||||||
:total="dataList.count"
|
:total="dataList.count"
|
||||||
:page.sync="listQuery.page"
|
:page.sync="listQuery.page"
|
||||||
:limit.sync="listQuery.page_size"
|
:limit.sync="listQuery.page_size"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/> -->
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -67,11 +67,14 @@
|
||||||
goal_key__in:'pgoal_1,pgoal_2,pgoal_3,pgoal_4,pgoal_5',
|
goal_key__in:'pgoal_1,pgoal_2,pgoal_3,pgoal_4,pgoal_5',
|
||||||
},
|
},
|
||||||
taskList:[],
|
taskList:[],
|
||||||
|
heightTable:null,
|
||||||
listLoading:false
|
listLoading:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.getList();
|
this.getList();
|
||||||
|
let height = document.getElementsByClassName('app-main')[0].clientHeight;
|
||||||
|
this.heightTable = height-90;
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
checkPermission,
|
checkPermission,
|
||||||
|
|
|
@ -903,29 +903,29 @@ import user from "@/store/modules/user";
|
||||||
obj.goal_name = item.goal_name;
|
obj.goal_name = item.goal_name;
|
||||||
obj.goal_file = item.goal_file;
|
obj.goal_file = item.goal_file;
|
||||||
obj.goal_value_b = item.goal_value_b;
|
obj.goal_value_b = item.goal_value_b;
|
||||||
if(item.id){
|
if(item.goal_file!==null&&item.goal_file!==''){
|
||||||
updatePgoalDept(item.id,obj).then(res=>{
|
if(item.id){
|
||||||
this.saveLoading = false;
|
updatePgoalDept(item.id,obj).then(res=>{
|
||||||
console.log(res)
|
this.saveLoading = false;
|
||||||
if(res.code>=200){
|
if(res.code>=200){
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
}
|
}
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
createPgoalDept(obj).then(res=>{
|
||||||
|
this.saveLoading = false;
|
||||||
|
if(res.code>=200){
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
}
|
||||||
|
}).catch(()=>{
|
||||||
|
this.saveLoading = false;
|
||||||
|
})
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
createPgoalDept(obj).then(res=>{
|
this.$message.warning('请上传实施细则文件')
|
||||||
// debugger;
|
|
||||||
console.log(res)
|
|
||||||
this.saveLoading = false;
|
|
||||||
if(res.code>=200){
|
|
||||||
this.$message.success('保存成功')
|
|
||||||
}
|
|
||||||
}).catch(()=>{
|
|
||||||
this.saveLoading = false;
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
handlePreview(file) {
|
handlePreview(file) {
|
||||||
if ("url" in file) {
|
if ("url" in file) {
|
||||||
|
|
|
@ -1,158 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-card>
|
|
||||||
日常监督填报
|
|
||||||
</el-card>
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-card style="margin-top:6px">
|
|
||||||
已发放报告
|
|
||||||
<el-input></el-input>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-card style="margin-top:6px">
|
|
||||||
应发放报告
|
|
||||||
<el-input></el-input>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row :gutter="10">
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card class="task task-item" shadow="hover" style="padding:10px;box-sizing: border-box;">
|
|
||||||
<div slot="header" style="display:flex">
|
|
||||||
<span class="cardTitle">不准确报告</span>
|
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="addFiles()">添加</el-button>
|
|
||||||
</div>
|
|
||||||
<div slot="header" style="display: flex;justify-content: space-between;">
|
|
||||||
<!-- <div>
|
|
||||||
<span>总数:</span>
|
|
||||||
<el-input style="width:100px;"> </el-input>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<el-table></el-table>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card title="超期报告">
|
|
||||||
<div slot="header" class="clearfix">
|
|
||||||
<span>超期报告</span>
|
|
||||||
<el-input></el-input>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card title="能力验证结果">
|
|
||||||
<div slot="header" class="clearfix">
|
|
||||||
<span>能力验证结果</span>
|
|
||||||
<el-input></el-input>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card title="客户投诉">
|
|
||||||
<div slot="header" class="clearfix">
|
|
||||||
<span>客户投诉</span>
|
|
||||||
<el-input></el-input>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card title="风险识别">
|
|
||||||
<div slot="header" class="clearfix">
|
|
||||||
<span>风险识别</span>
|
|
||||||
<el-input></el-input>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-card title="外部监督检查">
|
|
||||||
<div slot="header" class="clearfix">
|
|
||||||
<span>外部监督检查</span>
|
|
||||||
<el-input></el-input>
|
|
||||||
</div>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
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";
|
|
||||||
export default {
|
|
||||||
components: { Pagination, mytaskrecord },
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
taskList: [],
|
|
||||||
listQuery: {
|
|
||||||
page: 1,
|
|
||||||
page_size: 20,
|
|
||||||
},
|
|
||||||
form:{
|
|
||||||
|
|
||||||
},
|
|
||||||
listLoading: true,
|
|
||||||
query:null,
|
|
||||||
orgData: [],
|
|
||||||
};
|
|
||||||
},
|
|
||||||
computed: {},
|
|
||||||
watch: {},
|
|
||||||
created() {
|
|
||||||
this.getList();
|
|
||||||
this.getOrgList();
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
checkPermission,
|
|
||||||
getList() {
|
|
||||||
this.listLoading = true;
|
|
||||||
getmytasklist(this.listQuery).then((response) => {
|
|
||||||
if (response.data) {
|
|
||||||
this.taskList = response.data;
|
|
||||||
}
|
|
||||||
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()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style scoped>
|
|
||||||
.cardTitle{
|
|
||||||
display: inline-block;
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -141,7 +141,7 @@
|
||||||
> -->
|
> -->
|
||||||
<el-link
|
<el-link
|
||||||
v-if="
|
v-if="
|
||||||
checkPermission(['task_update'])
|
checkPermission(['task2'])
|
||||||
"
|
"
|
||||||
type="danger"
|
type="danger"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -457,7 +457,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { getOrgList } from "@/api/org";
|
import { getOrgList } from "@/api/org";
|
||||||
import { getTask2, addDeptsTask2, getTask2Do, startTask2, confirmTaskdept ,
|
import { getTask2, addDeptsTask2, getTask2Do, startTask2, confirmTaskdept ,deleteTaskdept,
|
||||||
getPgoalDeptList,getRcList,getPtList,getRiskList,getComplaintList,getOinspectList} from "@/api/task";
|
getPgoalDeptList,getRcList,getPtList,getRiskList,getComplaintList,getOinspectList} from "@/api/task";
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from "@/components/Pagination";
|
||||||
import checkPermission from "@/utils/permission";
|
import checkPermission from "@/utils/permission";
|
||||||
|
@ -569,11 +569,11 @@ export default {
|
||||||
},
|
},
|
||||||
gettaskdeptall() {
|
gettaskdeptall() {
|
||||||
this.listLoading = true;
|
this.listLoading = true;
|
||||||
getTask2Do({task2:this.task.id})
|
getTask2Do({task2:this.task.id,page:0})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.listLoading = false;
|
this.listLoading = false;
|
||||||
this.taskdeptall = [];
|
this.taskdeptall = [];
|
||||||
let taskdept = res.data.results;
|
let taskdept = res.data;
|
||||||
taskdept.forEach(item=>{
|
taskdept.forEach(item=>{
|
||||||
let obj = item;
|
let obj = item;
|
||||||
let pross = Number((item.count_up/item.count_all).toFixed(4))
|
let pross = Number((item.count_up/item.count_all).toFixed(4))
|
||||||
|
|
Loading…
Reference in New Issue