Commit 3c7495dc authored by wcmoon's avatar wcmoon

fix: 转账列表支持点击名称查询

parent ba1e2a00
......@@ -32,6 +32,10 @@
<svg-icon class="icon-re" icon-class="re" @click="reIssue(scope.row)"/>
</div>
</div>
<span
class="pass-name"
@click="toProve(scope.row)"
v-else-if="item.prop === 'pass_name'">{{ scope.row[item.prop] }}</span>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
......@@ -46,6 +50,7 @@
<script>
import {debounce} from "../../utils/tool/debounce";
import {GO_URLS} from "../../config/URLS";
import store from "../../store";
export default {
name: "TransferRecordList",
......@@ -100,6 +105,9 @@ export default {
}
},
methods: {
toProve(item) {
window.open(`${store.getters.get_urlList.chain_browser_url}/trace_token?goods_id=${item.pass_id}&evm_tx_hash=${item.pass_hash}`);
},
reIssue: debounce(async function (content) {
const res = await this.$ajax({
type: "post",
......@@ -120,6 +128,9 @@ export default {
</script>
<style scoped lang="less">
.pass-name {
cursor: pointer;
}
.status {
position: relative;
.icon-re {
......
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