Quellcode durchsuchen

修改展示样式

dos vor 4 Wochen
Ursprung
Commit
bd65aadf1d
1 geänderte Dateien mit 12 neuen und 3 gelöschten Zeilen
  1. 12 3
      game-ui/src/views/business/lottery/index.vue

+ 12 - 3
game-ui/src/views/business/lottery/index.vue

@@ -113,10 +113,16 @@
       <el-table-column label="主键ID" align="center" prop="id" />
       <el-table-column label="游戏" align="center" prop="gameId">
         <template slot-scope="scope">
-          <span>{{ getTypeName(scope.row.gameId) }}</span>
+          <span style="color: red" v-if="scope.row.isLottery == 0">{{ getTypeName(scope.row.gameId) }}</span>
+          <span v-if="scope.row.isLottery != 0">{{ getTypeName(scope.row.gameId) }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="游戏期号" align="center" prop="gameDate">
+        <template slot-scope="scope">
+          <span style="color: red" v-if="scope.row.isLottery == 0">{{scope.row.gameDate}}</span>
+          <span v-if="scope.row.isLottery != 0">{{scope.row.gameDate}}</span>
         </template>
       </el-table-column>
-      <el-table-column label="游戏期号" align="center" prop="gameDate" />
       <el-table-column label="是否开奖" align="center" prop="isLottery">
         <template slot-scope="scope">
           <dict-tag :options="dict.type.app_game_is_open" :value="scope.row.isLottery"/>
@@ -424,7 +430,7 @@ export default {
       that.kjForm.gameLotterySucc = null;
       for(var i in that.gameItemList){
         var item = that.gameItemList[i];
-        console.log(item["gameId"],val)
+        console.log(item["value"],val)
         if(item["gameId"] == val){
           that.kjGameItemList.push({
             value:item["value"].split("_")[0],
@@ -438,6 +444,9 @@ export default {
       return this.typeMap[id.toString()];
     },
     getItemName(id,gameId) {
+      if(!id){
+        return "-";
+      }
       let that = this;
       let val = "";
       let arr = id.split(",")