dos 2 тижнів тому
батько
коміт
285b872942
1 змінених файлів з 6 додано та 3 видалено
  1. 6 3
      game-ui/src/views/business/lottery/index.vue

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

@@ -245,8 +245,8 @@
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="开奖选项" prop="gameLotterySucc">
-          <el-select v-model="kjForm.gameLotterySucc" placeholder="请选择">
+        <el-form-item label="开奖选项" prop="gameLotterySuccItem">
+          <el-select v-model="kjForm.gameLotterySuccItem" multiple placeholder="请选择">
             <el-option
               v-for="dict in kjGameItemList"
               :key="dict.value"
@@ -348,7 +348,7 @@ export default {
         gameId: [
           { required: true, message: "游戏不能为空", trigger: "blur" }
         ],
-        gameLotterySucc: [
+        gameLotterySuccItem: [
           { required: true, message: "游戏选项不能为空", trigger: "blur" }
         ],
         gameDate: [
@@ -570,6 +570,9 @@ export default {
           if(that.kjForm["gameDate"] != undefined && that.kjForm["gameDate"] != null){
             that.kjForm["gameDate"] = that.kjForm["gameDate"].trimStart().trimEnd();
           }
+          if(that.kjForm.gameLotterySuccItem != undefined){
+            that.kjForm.gameLotterySucc = that.kjForm.gameLotterySuccItem.join(',');
+          }
           kjLottery(this.kjForm).then(response => {
                 this.$modal.msgSuccess(response.msg);
                 this.open = false;