|
|
@@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<h4 id="about-desc" class="ui header desc-home">简介 |
|
|
|
<a class="edit-icon" v-if="IsSigned" id ="editBtn" href="javascript:void(0)" @click="editClick" > |
|
|
|
<a class="edit-icon" v-if="IsPermit" id ="editBtn" href="javascript:void(0)" @click="editClick" > |
|
|
|
<i class="gray edit outline icon" style="margin-right: 0;"></i> |
|
|
|
</a> |
|
|
|
</h4> |
|
|
@@ -53,7 +53,7 @@ export default { |
|
|
|
index_web: '', |
|
|
|
repo_name_name: '', |
|
|
|
alias:'', |
|
|
|
IsSigned:false |
|
|
|
IsPermit:false |
|
|
|
}, |
|
|
|
// rule1:[{min:3,max:5,message:'1',trigger:"blur"}], |
|
|
|
rule: { |
|
|
@@ -65,14 +65,15 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getIsSigned(){ |
|
|
|
this.IsSigned = document.getElementById("repo-desc").dataset.issigned; |
|
|
|
var isadmin= document.getElementById("repo-desc").dataset.isadmin; |
|
|
|
var isarchived=document.getElementById("repo-desc").dataset.isarchived; |
|
|
|
// console.log("IsSigned:",this.IsSigned) |
|
|
|
if (this.IsSigned==true || this.IsSigned=="true"){ |
|
|
|
this.IsSigned=true; |
|
|
|
if ((isadmin==true || isadmin=="true")&& (isarchived==false || isarchived=="false")){ |
|
|
|
this.IsPermit=true; |
|
|
|
} |
|
|
|
}, |
|
|
|
editClick() { |
|
|
|
if (this.IsSigned){ |
|
|
|
if (this.IsPermit){ |
|
|
|
this.editDataDialog = true; |
|
|
|
} |
|
|
|
}, |
|
|
|