875428575@qq.com vor 2 Jahren
Ursprung
Commit
31c9d888c2
3 geänderte Dateien mit 19 neuen und 3 gelöschten Zeilen
  1. 11 0
      src/components/MagicToken.vue
  2. 6 1
      src/components/viewer/magicToken/Table.vue
  3. 2 2
      vue.config.js

+ 11 - 0
src/components/MagicToken.vue

@@ -56,6 +56,7 @@ export default {
         {text: 'Hash', value: 'hash', width: '10%'},
         {text: 'Name', value: 'name', width: '10%'},
         {text: 'Symbol', value: 'symbol', width: '10%'},
+        {text: 'MaxHoldLp', value: 'maxHoldLp', width: '10%'},
         {text: '审批状态', value: 'explorer', width: '10%'},
       ]
     },
@@ -72,6 +73,16 @@ export default {
       if (rst.state) {
         this.$msgkit.normal(rst.msg)
         this.table.data = rst.data
+
+        //定义每种magicApproval状态的权重
+        const approvalweights = {
+          PENDING : 1,
+          PASS: 2,
+          REJECT: 3,
+        }
+
+        this.table.data.sort((a, b)=> approvalweights[a.magicApproval] - approvalweights[b.magicApproval]);
+
       }
 
       this.table.loading = false

+ 6 - 1
src/components/viewer/magicToken/Table.vue

@@ -49,7 +49,7 @@
         </template>
         <template v-slot:item.hash="{ item }">
           <div>
-            <a :href="explorer + '/token/'+item.hash "> {{ item.hash }}</a>
+            <a :href="explorer + '/token/'+item.hash" target="_blank"> {{ item.hash }}</a>
           </div>
         </template>
         <template v-slot:item.name="{ item }">
@@ -62,6 +62,11 @@
             {{ item.symbol }}
           </div>
         </template>
+        <template v-slot:item.maxHoldLp="{ item }">
+          <div>
+            <a :href="explorer + '/address/'+item.maxHoldLp" target="_blank"> {{ item.maxHoldLp }}</a>
+          </div>
+        </template>
         <template v-slot:item.explorer="{ item }">
           <div>
             <v-row>

+ 2 - 2
vue.config.js

@@ -6,8 +6,8 @@ module.exports = {
   devServer: {
     proxy: {
       '/api': {
-        // target:'http://127.0.0.1:8888',
-        target:'http://web.410eth.com:8888',
+        target:'http://127.0.0.1:8888',
+        // target:'http://web.410eth.com:8888',
         changeOrigin:true,
         pathRewrite:{
           '^/api': ''