Commit 3c7495dc authored by wcmoon's avatar wcmoon

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

parent ba1e2a00
...@@ -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 === 'pass_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>
...@@ -46,6 +50,7 @@ ...@@ -46,6 +50,7 @@
<script> <script>
import {debounce} from "../../utils/tool/debounce"; import {debounce} from "../../utils/tool/debounce";
import {GO_URLS} from "../../config/URLS"; import {GO_URLS} from "../../config/URLS";
import store from "../../store";
export default { export default {
name: "TransferRecordList", name: "TransferRecordList",
...@@ -100,6 +105,9 @@ export default { ...@@ -100,6 +105,9 @@ export default {
} }
}, },
methods: { 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) { reIssue: debounce(async function (content) {
const res = await this.$ajax({ const res = await this.$ajax({
type: "post", type: "post",
...@@ -120,6 +128,9 @@ export default { ...@@ -120,6 +128,9 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.pass-name {
cursor: pointer;
}
.status { .status {
position: relative; position: relative;
.icon-re { .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