Browse Source

fix:任务修改

st 2 months ago
parent
commit
f656adaf8d
3 changed files with 8 additions and 2 deletions
  1. 2 1
      .env.development
  2. 4 1
      src/views/task/index.vue
  3. 2 0
      src/views/task/taskAddModal.vue

+ 2 - 1
.env.development

@@ -3,8 +3,9 @@
 VITE_API_PREFIX = '/web'
 
 # 接口地址
-VITE_API_BASE_URL = 'https://xoyozi9walh9.xiaomiqiu.com/web'
+#VITE_API_BASE_URL = 'https://www.strayblock.top/web'
 
+VITE_API_BASE_URL = https://xoyozi9walh9.xiaomiqiu.com/web/
 # 接口地址 (WebSocket)
 VITE_API_WS_URL = 'ws://localhost:8000'
 

+ 4 - 1
src/views/task/index.vue

@@ -38,7 +38,7 @@
           <img :src="record.taskIcon" />
         </a-avatar>
       </template>
-      <template #passengerFlowWay="{ record }">
+      <template #categoryCode="{ record }">
         <GiCellTag :value="record.categoryCode" :dict="task_type" />
       </template>
       <template #action="{ record }">
@@ -80,11 +80,14 @@ const columns: TableInstanceColumns[] = [
     align: 'center',
     render: ({ rowIndex }) => h('span', {}, rowIndex + 1 + (pagination.current - 1) * pagination.pageSize),
   },
+  { title: '任务id', dataIndex: 'id', slotName: 'id', align: 'center', width: 180 },
   { title: '任务图标', dataIndex: 'taskIcon', slotName: 'taskIcon', align: 'center', width: 180 },
   { title: '任务分类', dataIndex: 'categoryCode', slotName: 'categoryCode', align: 'center', width: 180 },
 
   { title: '名称', dataIndex: 'name', slotName: 'name', align: 'center', width: 180 },
   { title: '金币数量', dataIndex: 'goldCoin', slotName: 'goldCoin', align: 'center', width: 180 },
+  { title: '自动关闭阈值', dataIndex: 'autoCloseThreshold', slotName: 'autoCloseThreshold', align: 'center', width: 180 },
+  { title: '访问次数', dataIndex: 'doneCount', slotName: 'doneCount', align: 'center', width: 180 },
   { title: '创建时间', dataIndex: 'createTime', slotName: 'createTime', align: 'center', width: 180 },
   {
     title: '操作',

+ 2 - 0
src/views/task/taskAddModal.vue

@@ -71,6 +71,8 @@ const columns: Columns = reactive([
     limit: 1,
   }, rules: [{ required: true, message: '请上传任务图标' }] },
   { label: '任务链接', field: 'taskLink', type: 'input', rules: [{ required: true, message: '请输入任务链接' }] },
+  { label: '任务接口链接', field: 'taskAcceptApiLink', type: 'input' },
+  { label: '任务自动关闭阈值', field: 'autoCloseThreshold', type: 'input' },
   {
     label: '任务分类',
     field: 'categoryCode',