diff --git a/dist/index.html b/dist/index.html
index 732ef92e..07fa05af 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -21,7 +21,7 @@
height: 100%;
margin: 0px;
padding: 0px;
- }
diff --git a/src/views/committeeMgmt/index.vue b/src/views/committeeMgmt/index.vue
index 2e233b84..ff1ee17b 100644
--- a/src/views/committeeMgmt/index.vue
+++ b/src/views/committeeMgmt/index.vue
@@ -56,8 +56,8 @@
-
-
+
+
(governForm.weight = isnumber(e))" style="width:250px;">
@@ -123,10 +123,10 @@
-
- {{$t('govCommittee.thresholdNow')}}:{{winRateNow}}
- {{$t('govCommittee.participatesRateNow')}}:{{participatesRateNow}}
-
+
+ {{$t('govCommittee.thresholdNow')}}:{{winRateNow}}
+ {{$t('govCommittee.participatesRateNow')}}:{{participatesRateNow}}
+
@@ -213,10 +213,12 @@
-
+
{{$t('govCommittee.Committee')}}
-
+
{{$t('govCommittee.revokeVote')}}
@@ -298,6 +300,7 @@ import {
voteRevoke,
modifyRate,
getCount,
+ getPermissionManagementStatus,
} from "@/util/api";
export default {
name: "committeeMgmt",
@@ -366,8 +369,8 @@ export default {
// width: ''
// }
],
- winRateNow:'',
- participatesRateNow:'',
+ winRateNow: "",
+ participatesRateNow: "",
governForm: {
fromAddress: "",
governorAddress: "",
@@ -453,19 +456,19 @@ export default {
computed: {
rules() {
- let _this=this;
- var paramRule = (rule, value, callback) => {
- let val = value.trim();
- let chainCommittes=[]
- _this.produceCommittee.map((item)=>{
- chainCommittes.push(item.governorAddress)
- })
- if (chainCommittes.includes(val)) {
- callback(new Error(this.$t("rule.chainCommite")));
- } else {
- callback();
- }
- };
+ let _this = this;
+ var paramRule = (rule, value, callback) => {
+ let val = value.trim();
+ let chainCommittes = [];
+ _this.produceCommittee.map((item) => {
+ chainCommittes.push(item.governorAddress);
+ });
+ if (chainCommittes.includes(val)) {
+ callback(new Error(this.$t("rule.chainCommite")));
+ } else {
+ callback();
+ }
+ };
let data = {
fromAddress: [
{
@@ -563,14 +566,24 @@ export default {
}
if (localStorage.getItem("groupId")) {
//this.queryGetThreshold()
- this.queryCommitteeList();
- this.queryVoteRecordList();
- this.getUserData();
- this.queryVoteRecordListCount();
+ this.checkAuth();
}
},
methods: {
+ checkAuth() {
+ getPermissionManagementStatus(localStorage.getItem("groupId"))
+ .then((res) => {
+ if (res.data.data == true) {
+ this.queryCommitteeList();
+ this.queryVoteRecordList();
+ this.getUserData();
+ this.queryVoteRecordListCount();
+ } else {
+ }
+ })
+ .catch((err) => {});
+ },
importPrivateKeySuccess() {
this.queryCommitteeList();
this.queryVoteRecordList();
@@ -587,7 +600,6 @@ export default {
this.queryCommitteeList();
this.queryVoteRecordList();
this.queryVoteRecordListCount();
-
},
initGovernForm() {
// this.governForm.fromAddress = ""
@@ -811,8 +823,8 @@ export default {
});
},
closeModifyThreshold() {
- this.governForm.threshold='';
- this.governForm.participatesRate='';
+ this.governForm.threshold = "";
+ this.governForm.participatesRate = "";
this.initGovernForm();
this.modifyThresholdVisible = false;
},
@@ -926,10 +938,10 @@ export default {
// })
// })
//this.total = res.data.totalCount;
- this.disabled=false
+ this.disabled = false;
} else {
- this.disabled=true
- this.chainCommitteeList=[]
+ this.disabled = true;
+ this.chainCommitteeList = [];
this.$message({
message: this.$chooseLang(res.data.code),
type: "error",
@@ -1033,13 +1045,13 @@ export default {
voteRecord(reqData)
.then((res) => {
if (res.data.code === 0) {
- this.disabled=false
+ this.disabled = false;
this.voteList = res.data.data;
//this.voteTotal = res.data.totalCount;
// this.getNetworkDetails()
} else {
- this.disabled=true
- this.voteList=[]
+ this.disabled = true;
+ this.voteList = [];
this.$message({
message: this.$chooseLang(res.data.code),
type: "error",