|
|
@@ -82,97 +82,103 @@ export default { |
|
|
|
actions: [ |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "配置隐私保护指引", |
|
|
|
action: this.setprivacysetting, |
|
|
|
show: item => { |
|
|
|
return (item.type == 1 || item.type == 2)&&item.privacySettingStatus!=0 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "查询隐私保护指引", |
|
|
|
action: this.getPrivacySetting, |
|
|
|
show: item => { |
|
|
|
return (item.type == 1 || item.type == 2)&&item.privacySettingStatus==0 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
val: "找回授权码", |
|
|
|
action: this.getBack, |
|
|
|
|
|
|
|
} |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "查询最新审核状态", |
|
|
|
// action: this.getLatestAuditstatus, |
|
|
|
// val: "配置隐私保护指引", |
|
|
|
// action: this.setprivacysetting, |
|
|
|
// show: item => { |
|
|
|
// return (item.type == 1 || item.type == 2)&&item.privacySettingStatus!=0 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "基础", |
|
|
|
action: this.searchFigure, |
|
|
|
show: item => { |
|
|
|
return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "扩展(3)", |
|
|
|
action: this.conFigure, |
|
|
|
show: item => { |
|
|
|
return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "类目", |
|
|
|
action: this.getCategory, |
|
|
|
show: item => { |
|
|
|
return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "delete", |
|
|
|
val: "模板列表", |
|
|
|
action: this.templateList, |
|
|
|
show: item => { |
|
|
|
return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "创建O", |
|
|
|
action: this.createPlatform, |
|
|
|
show: item => { |
|
|
|
return (item.type == 3)&&(!item.openAppid) || (item.type == 4)&&(!item.openAppid) ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "bind", |
|
|
|
val: "绑定O", |
|
|
|
action: this.bindPlatform, |
|
|
|
show: item => { |
|
|
|
return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "unbind", |
|
|
|
val: "解绑O", |
|
|
|
action: this.unbindPlatform, |
|
|
|
show: item => { |
|
|
|
return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "获取O", |
|
|
|
action: this.getPlatform, |
|
|
|
show: item => { |
|
|
|
return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false; |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: "edit", |
|
|
|
val: "重置Quota", |
|
|
|
action: this.clearQuota, |
|
|
|
show: item => { |
|
|
|
return item.type == 3 || item.type == 4 ? true : false; |
|
|
|
} |
|
|
|
} |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "查询隐私保护指引", |
|
|
|
// action: this.getPrivacySetting, |
|
|
|
// show: item => { |
|
|
|
// return (item.type == 1 || item.type == 2)&&item.privacySettingStatus==0 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// // { |
|
|
|
// // key: "edit", |
|
|
|
// // val: "查询最新审核状态", |
|
|
|
// // action: this.getLatestAuditstatus, |
|
|
|
// // }, |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "基础", |
|
|
|
// action: this.searchFigure, |
|
|
|
// show: item => { |
|
|
|
// return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "扩展(3)", |
|
|
|
// action: this.conFigure, |
|
|
|
// show: item => { |
|
|
|
// return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "类目", |
|
|
|
// action: this.getCategory, |
|
|
|
// show: item => { |
|
|
|
// return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "delete", |
|
|
|
// val: "模板列表", |
|
|
|
// action: this.templateList, |
|
|
|
// show: item => { |
|
|
|
// return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "创建O", |
|
|
|
// action: this.createPlatform, |
|
|
|
// show: item => { |
|
|
|
// return (item.type == 3)&&(!item.openAppid) || (item.type == 4)&&(!item.openAppid) ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "bind", |
|
|
|
// val: "绑定O", |
|
|
|
// action: this.bindPlatform, |
|
|
|
// show: item => { |
|
|
|
// return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "unbind", |
|
|
|
// val: "解绑O", |
|
|
|
// action: this.unbindPlatform, |
|
|
|
// show: item => { |
|
|
|
// return item.type == 1 || item.type == 2 ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "获取O", |
|
|
|
// action: this.getPlatform, |
|
|
|
// show: item => { |
|
|
|
// return (item.type == 1)&&(!item.openAppid) || (item.type == 2)&&(!item.openAppid) ? true : false; |
|
|
|
// } |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// key: "edit", |
|
|
|
// val: "重置Quota", |
|
|
|
// action: this.clearQuota, |
|
|
|
// show: item => { |
|
|
|
// return item.type == 3 || item.type == 4 ? true : false; |
|
|
|
// } |
|
|
|
// } |
|
|
|
], |
|
|
|
map: [ |
|
|
|
{ key: "headImg", val: "小程序图标", etype: "img" }, |
|
|
@@ -254,6 +260,14 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//找回授权码 |
|
|
|
getBack(item){ |
|
|
|
this.getFetch(`T/wt_auth/retrieve?appId=${item.authorizerAppid}`).then(res=>{ |
|
|
|
this.$message.success("找回成功!") |
|
|
|
}).catch(err=>{ |
|
|
|
this.$message.error(err.message?err.message:err.data) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// |
|
|
|
setprivacysetting(item){ |
|
|
|
console.log(item); |
|
|
|