|
@@ -55,6 +55,10 @@ export default {
|
|
|
selectMark(id, selectType) {
|
|
|
var Id = id.substring(1, id.length)
|
|
|
if (selectType == 'p') {//批注
|
|
|
+ if(!this.$permission.FunPermissions('xiaoshi/annotationLibrary')){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
var index = this.highlight.piZhuContrastList.findIndex(item => {
|
|
|
if (item.id == Id) {
|
|
|
// 清空currentSelectObj,否则Id与id同时存在
|
|
@@ -79,6 +83,13 @@ export default {
|
|
|
|
|
|
},
|
|
|
getMethod(type) {
|
|
|
+ var types = ['wave','underscore','addHighlight','mark']
|
|
|
+ if(types.indexOf(type)!=-1){
|
|
|
+ if(!this.$permission.FunPermissions('xiaoshi/annotationLibrary')){
|
|
|
+ this.$showPermissionDialog()
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
if (this[type]) {
|
|
|
this[type]()
|
|
|
}
|