Commit 9350c916 authored by wcmoon's avatar wcmoon

fix: 通证列表支持点击名称跳转到浏览器查询

parent 73d44a49
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
<svg-icon class="icon-re" icon-class="re" @click="reIssue(scope.row)"/> <svg-icon class="icon-re" icon-class="re" @click="reIssue(scope.row)"/>
</div> </div>
</div> </div>
<span
class="pass-name"
@click="toProve(scope.row)"
v-else-if="item.prop === 'name'">{{ scope.row[item.prop] }}</span>
<span v-else>{{ scope.row[item.prop] }}</span> <span v-else>{{ scope.row[item.prop] }}</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -63,6 +67,7 @@ import {debounce} from "../../utils/tool/debounce"; ...@@ -63,6 +67,7 @@ import {debounce} from "../../utils/tool/debounce";
import CommonDialog from "@/components/CommonDialog.vue"; import CommonDialog from "@/components/CommonDialog.vue";
import TransferPass from "@/components/newProductList/TransferPass"; import TransferPass from "@/components/newProductList/TransferPass";
import {GO_URLS} from "../../config/URLS"; import {GO_URLS} from "../../config/URLS";
import store from "../../store";
export default { export default {
name: "PassListTable", name: "PassListTable",
...@@ -121,6 +126,9 @@ export default { ...@@ -121,6 +126,9 @@ export default {
TransferPass TransferPass
}, },
methods: { methods: {
toProve(item) {
window.open(`${store.getters.get_urlList.chain_browser_url}/trace_token?goods_id=${item.id}&evm_tx_hash=${item.tx_hash}`);
},
reIssue: debounce(async function (content) { reIssue: debounce(async function (content) {
const res = await this.$ajax({ const res = await this.$ajax({
type: "post", type: "post",
...@@ -157,6 +165,9 @@ export default { ...@@ -157,6 +165,9 @@ export default {
margin-left: 40px; margin-left: 40px;
} }
} }
.pass-name {
cursor: pointer;
}
.column-status { .column-status {
width: 70px; width: 70px;
height: 25px; height: 25px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment