Kaynağa Gözat

任务配置界面修改

maker 2 yıl önce
ebeveyn
işleme
5668cdb5c5
1 değiştirilmiş dosya ile 47 ekleme ve 8 silme
  1. 47 8
      src/view/gameTask/taskConf.vue

+ 47 - 8
src/view/gameTask/taskConf.vue

@@ -24,6 +24,13 @@
         <el-table-column type="selection" width="55" />
         <el-table-column align="left" label="任务ID" min-width="60" prop="task_id" />
         <el-table-column align="left" label="任务名称" min-width="60" prop="task_name" sortable="custom" />
+        <el-table-column align="left" label="模拟器类型" min-width="150" prop="simulator_type">
+          <template #default="scope">
+            <div>
+              {{ simulatorTypeFiletr(scope.row.simulator_type) }}
+            </div>
+          </template>
+        </el-table-column>
         <el-table-column align="left" label="负责人" min-width="60" prop="user" sortable="custom" />
         <!-- <el-table-column align="left" label="游戏名称" min-width="80" prop="game_name" sortable="custom" /> -->
         <el-table-column align="left" label="加币通知" min-width="80" prop="add_fee_notice" />
@@ -81,6 +88,11 @@
                 :disabled="true" />
             </el-select>
           </el-form-item>
+          <el-form-item label="模拟器类型" prop="simulator_type">
+            <el-select v-model="confForm.simulator_type">
+              <el-option v-for="item in simulatorTypeOptions" :key="item.value" :label="item.label" :value="item.value" />
+            </el-select>
+          </el-form-item>
           <el-form-item label="加币通知" prop="add_fee_notice">
             <!-- <el-input type="number" v-model="confForm.add_notice" style="width:500px;"></el-input> -->
             <el-input-number v-model="confForm.add_fee_notice" :min="0" placeholder="0" />
@@ -138,14 +150,38 @@ const getResponsiblePerson = async () => {
 }
 getResponsiblePerson()
 
-const GamePortOptions = ref([
-])
+const simulatorTypeFiletr = (value) => {
+  const target = simulatorTypeOptions.value.filter(item => item.value === value)[0]
+  return target && `${target.label}`
+}
 
-const accountTypeOptions = ref([
+const simulatorTypeOptions = ref([
+  {
+    value: 0,
+    label: '雷电模拟器4-32位'
+  },
+  {
+    value: 1,
+    label: '逍遥模拟器'
+  },
+  {
+    value: 2,
+    label: '夜神模拟器'
+  },
+  {
+    value: 3,
+    label: '雷电模拟器4-64位'
+  },
+  {
+    value: 4,
+    label: '雷电模拟器9'
+  },
+  {
+    value: 5,
+    label: '夜神模拟器9'
+  },
 ])
 
-const loginMethodOptions = ref([
-])
 const type = ref('')
 const page = ref(1)
 const total = ref(0)
@@ -169,6 +205,9 @@ const onReset = () => {
   }
   getTableData()
 }
+
+
+
 // 搜索
 const onSubmit = () => {
   page.value = 1
@@ -204,9 +243,6 @@ const getTableData = async () => {
   if (table.code === 0) {
     tableData.value = table.data.list
     total.value = table.data.total
-    GamePortOptions.value = table.data.option.game_port
-    loginMethodOptions.value = table.data.option.login_type
-    accountTypeOptions.value = table.data.option.account_type
     links.value = table.data.option.game_list
     page.value = table.data.page
     pageSize.value = table.data.pageSize
@@ -233,6 +269,7 @@ const configurationFunc = async (row) => {
   confForm.value.task_id = row.task_id
   confForm.value.user = row.user
   confForm.value.add_fee_notice = row.add_fee_notice
+  confForm.value.simulator_type = row.simulator_type
   openDialog('conf')
 }
 
@@ -276,6 +313,7 @@ const closeConfDialog = () => {
     task_id: '',//游戏id
     user: '',
     add_fee_notice: 0,
+    simulator_type: 0,
   }
   dialogConfFormVisible.value = false
 }
@@ -334,6 +372,7 @@ const confForm = ref({
   task_id: '',//游戏id
   user: '',
   add_fee_notice: 0,
+  simulator_type: 0,
 })