1.增加判断项目负责人是不是办公室部门的方法
2.季度审核页面,通过是不是办公室部门的区别A/B表 3.季度审核页面,添加B表判断及编辑字段
This commit is contained in:
parent
9616d7b3fc
commit
ec4a33ffdb
@ -1026,7 +1026,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.$router.go(-1)
|
this.$router.go(-1)
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(result.msg)
|
this.$message.error(result.data)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<page-loading :show="pageLoading"></page-loading>
|
<page-loading :show="pageLoading"></page-loading>
|
||||||
<!--Page Title-->
|
<!--Page Title-->
|
||||||
<div id="page-title">
|
<div id="page-title">
|
||||||
<h1 class="page-header text-overflow">部门项目季度评价表</h1>
|
<h1 class="page-header text-overflow">部门项目季度评价</h1>
|
||||||
</div>
|
</div>
|
||||||
<!--End page title-->
|
<!--End page title-->
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ import PageLoading from '../../../components/PageLoading.vue'
|
|||||||
import DataForm from '../../../components/form/DataForm.vue'
|
import DataForm from '../../../components/form/DataForm.vue'
|
||||||
import DataTable from '../../../components/DataTable.vue'
|
import DataTable from '../../../components/DataTable.vue'
|
||||||
import Api from '../../../server/index.js'
|
import Api from '../../../server/index.js'
|
||||||
import {getItem} from '../../../config/mUtils'
|
import {getItem, setItem} from '../../../config/mUtils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
@ -76,6 +76,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
isOffice: false,
|
||||||
isExamine: 0,
|
isExamine: 0,
|
||||||
isSubmit: false,
|
isSubmit: false,
|
||||||
formData: {
|
formData: {
|
||||||
@ -105,10 +106,26 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
this.getOffice()
|
||||||
this.initTableColumns()
|
this.initTableColumns()
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getOffice () {
|
||||||
|
let id = this.$route.params.id
|
||||||
|
Api.ProjectManagements.getOffice(id).then(result => {
|
||||||
|
console.log('getoffice', result)
|
||||||
|
if (result.status === 0) {
|
||||||
|
if (result.data === "0") {
|
||||||
|
this.isOffice = true
|
||||||
|
} else {
|
||||||
|
this.isOffice = false
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.error(result.data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
close () {
|
close () {
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.formData.spyj = ''
|
this.formData.spyj = ''
|
||||||
@ -170,24 +187,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// Api.ProjectManagements.getProject(param).then(result => {
|
|
||||||
// console.log('result', result)
|
|
||||||
// if (result.status === 0) {
|
|
||||||
// this.tableRowsData.splice(0, this.tableRowsData.length)
|
|
||||||
// for (let i = 0; i < result.data.ls.length; i++) {
|
|
||||||
// let project = {}
|
|
||||||
// $.extend(true, project, result.data.ls[i])
|
|
||||||
// console.log('project', project)
|
|
||||||
// project.difficultyFactor = project.ext.difficultyFactor
|
|
||||||
// project.draftDeptName = project.ext.draftDeptName
|
|
||||||
// this.tableRowsData.push(project)
|
|
||||||
// this.tableTotalPage = result.data.total
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
//初始化tableColumns
|
//初始化tableColumns
|
||||||
initTableColumns () {
|
initTableColumns () {
|
||||||
|
if (this.isOffice) {
|
||||||
this.tableColumnsData = [
|
this.tableColumnsData = [
|
||||||
{
|
{
|
||||||
label: '季度',
|
label: '季度',
|
||||||
@ -235,6 +238,70 @@ export default {
|
|||||||
show: true
|
show: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
} else {
|
||||||
|
this.tableColumnsData = [
|
||||||
|
{
|
||||||
|
label: '季度',
|
||||||
|
prop: 'quarter',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '指标名称',
|
||||||
|
prop: 'indexName',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'A档',
|
||||||
|
prop: 'levelA',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'B档',
|
||||||
|
prop: 'levelB',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'C档',
|
||||||
|
prop: 'levelC',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'D档',
|
||||||
|
prop: 'levelD',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '指标完成情况',
|
||||||
|
prop: 'execution',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '战略规划部评级',
|
||||||
|
prop: 'strategyScoring',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '平台建设部评级',
|
||||||
|
prop: 'platformScoring',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '市场发展部评级',
|
||||||
|
prop: 'marketScoring',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '服务产品部评级',
|
||||||
|
prop: 'serviceScoring',
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目平均分',
|
||||||
|
// prop: '',
|
||||||
|
show: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
tableSelectPage (param) {
|
tableSelectPage (param) {
|
||||||
this.pageNo = param
|
this.pageNo = param
|
||||||
|
@ -62,6 +62,7 @@ export default {
|
|||||||
//自评/管理员打分
|
//自评/管理员打分
|
||||||
updateQuarterly: (param) => Ax('post', '/api/project/quarterExamine/update', param),
|
updateQuarterly: (param) => Ax('post', '/api/project/quarterExamine/update', param),
|
||||||
examine: (param) => Ax('post', '/api/project/quarterExamine/examine', param),
|
examine: (param) => Ax('post', '/api/project/quarterExamine/examine', param),
|
||||||
|
getOffice: (id) => Ax('get', `/api/project/quarterExamine/getOffice/${id}`, id),
|
||||||
/**
|
/**
|
||||||
* 部门周报填报管理
|
* 部门周报填报管理
|
||||||
* */
|
* */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user