|
@@ -604,7 +604,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
//自定义栏位管理
|
|
|
- handleField() {
|
|
|
+ async handleField() {
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.$refs.FieldDrawer.open(this.projectId)
|
|
|
},
|
|
|
//获取显示栏位
|
|
@@ -698,7 +702,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
//价值曲线
|
|
|
- checkPatentWorth(){
|
|
|
+ async checkPatentWorth(){
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
let obj = {
|
|
|
isAdd: this.queryParams.isAdd,
|
|
|
isDelete: this.queryParams.isDelete,
|
|
@@ -834,7 +842,11 @@ export default {
|
|
|
window.open(router.href, '_blank');
|
|
|
},
|
|
|
// 跳转分配任务页面
|
|
|
- handleAllocation() {
|
|
|
+ async handleAllocation() {
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.$router.push(
|
|
|
{
|
|
|
path: '/allocationTask',
|
|
@@ -849,7 +861,11 @@ export default {
|
|
|
)
|
|
|
},
|
|
|
//任务清单
|
|
|
- taskList(){
|
|
|
+ async taskList(){
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.$router.push(
|
|
|
{
|
|
|
path:'/myTask',
|
|
@@ -860,7 +876,11 @@ export default {
|
|
|
)
|
|
|
},
|
|
|
//导入导出历史
|
|
|
- importAndExportHistory(){
|
|
|
+ async importAndExportHistory(){
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.$router.push({
|
|
|
path: "/taskList",
|
|
|
query:{
|
|
@@ -869,7 +889,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//专利导入
|
|
|
- patentImport(type){
|
|
|
+ async patentImport(type){
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
var form = {
|
|
|
importToId:this.projectId,
|
|
|
importToType:0,
|
|
@@ -878,7 +902,11 @@ export default {
|
|
|
this.$commonJS.toImportParent(form,type)
|
|
|
},
|
|
|
//合并发明人//合并申请人、权利人
|
|
|
- handleMerge(type) {
|
|
|
+ async handleMerge(type) {
|
|
|
+ if(!(await this.$permission.projectPermission(this.projectId))){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
let obj = {
|
|
|
projectId: this.projectId,
|
|
|
mergeType: type
|