Skip to content

Commit

Permalink
Merge pull request #278 from WeBankFinTech/dev
Browse files Browse the repository at this point in the history
fix 0.6 view tx
  • Loading branch information
CodingCattwo authored Dec 11, 2020
2 parents 4d29d7f + cf9049a commit 046895b
Show file tree
Hide file tree
Showing 21 changed files with 157 additions and 129 deletions.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.adb3aa8e4aadad44b0a4.js></script><script type=text/javascript src=./static/js/3.2cba8e5c43b6f5ebcee0.js></script><script type=text/javascript src=./static/js/runtime.efd7e80af2efd105acbd.js></script><script type=text/javascript src=./static/js/5.649d1c551fbfb3b1fcbc.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
}</style></head><body><body><div id=app style="height: 100% !important;"></div><script type=text/javascript src=./static/js/0.773b6f7e79343f51af60.js></script><script type=text/javascript src=./static/js/3.fc50e885c80637a067a5.js></script><script type=text/javascript src=./static/js/runtime.15281bb5877ca3c43888.js></script><script type=text/javascript src=./static/js/5.0ccd1f558995098a86a8.js></script></body><script src=./static/js/web3.min.js type=text/javascript></script><script>if (self == top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
Expand Down
1 change: 1 addition & 0 deletions dist/release_note.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.4.2
File renamed without changes
53 changes: 53 additions & 0 deletions dist/static/js/0.773b6f7e79343f51af60.js

Large diffs are not rendered by default.

53 changes: 0 additions & 53 deletions dist/static/js/0.adb3aa8e4aadad44b0a4.js

This file was deleted.

51 changes: 51 additions & 0 deletions dist/static/js/1.2aa6beb5283722441d6e.js

Large diffs are not rendered by default.

51 changes: 0 additions & 51 deletions dist/static/js/1.ddf51fbe4bc655029386.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion dist/static/js/3.2cba8e5c43b6f5ebcee0.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/static/js/3.fc50e885c80637a067a5.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions dist/static/js/6.9d1595993ae0d3400192.js

This file was deleted.

28 changes: 28 additions & 0 deletions dist/static/js/6.ebd5e53a7ab7afabb731.js

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions dist/static/js/runtime.15281bb5877ca3c43888.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/static/js/runtime.efd7e80af2efd105acbd.js

This file was deleted.

21 changes: 16 additions & 5 deletions src/components/sendTransaction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<i class="el-icon-info"></i>
</el-tooltip>
</div>
<div class="send-item" v-show="!constant">
<div class="send-item" v-show="showUser">
<span class="send-item-title">{{this.$t('contracts.user')}}:</span>
<el-select v-model="transation.userName" :placeholder="$t('contracts.selectUser')" style="width:260px">
<el-option :label="item.userName" :value="item.address" :key="item.userId" v-for='(item,index) in userList'>
Expand Down Expand Up @@ -88,9 +88,19 @@ export default {
contractVersion: this.version,
contractAddress: this.data.contractAddress || "",
constant: false,
pramasObj: null
pramasObj: null,
stateMutability: ''
};
},
computed: {
showUser(){
let showUser = true;
if(this.constant || this.stateMutability==='view' || this.stateMutability==='pure'){
showUser = false
}
return showUser
}
},
mounted: function () {
this.getUserData();
this.formatAbi();
Expand Down Expand Up @@ -143,7 +153,8 @@ export default {
if (value.funcId === this.transation.funcName) {
this.pramasData = value.inputs;
this.constant = value.constant;
this.pramasObj = value
this.pramasObj = value;
this.stateMutability = value.stateMutability;
}
});
this.funcList.sort(function (a, b) {
Expand Down Expand Up @@ -222,7 +233,7 @@ export default {
let data = {
groupId: localStorage.getItem("groupId"),
user: this.constant ? ' ' : this.transation.userName,
user: this.constant || this.stateMutability==='view' || this.stateMutability==='pure' ? '' : this.transation.userName,
contractName: this.data.contractName,
funcName: functionName || "",
funcParam: this.transation.funcValue,
Expand Down Expand Up @@ -252,7 +263,7 @@ export default {
this.$emit("success", Object.assign({},successData,{
constant: this.constant
}) );
if (this.constant) {
if (this.constant || this.stateMutability==='view' || this.stateMutability==='pure') {
this.$message({
type: "success",
message: this.$t("text.selectSuccess")
Expand Down

0 comments on commit 046895b

Please sign in to comment.