瀏覽代碼

任务管理

gHost 1 年之前
父節點
當前提交
bd2674c2a4
共有 3 個文件被更改,包括 15 次插入7 次删除
  1. 1 1
      layouts/components/Navbar.vue
  2. 11 4
      pages/main/index/cloud_job.vue
  3. 3 2
      pages/main/index/task.vue

+ 1 - 1
layouts/components/Navbar.vue

@@ -10,7 +10,7 @@
     <breadcrumb id="breadcrumb-container" class="breadcrumb-container" />
     <div class="right-menu" style="display: flex">
       <div>
-        <el-button  @click="add_(0,0)"  size="small" type="primary">创建工单</el-button>
+        <el-button  @click="add_(0,0)"  size="small" type="primary">任务管理</el-button>
       </div>
       <template v-if="device!=='mobile'">
         <search id="header-search" class="right-menu-item" />

+ 11 - 4
pages/main/index/cloud_job.vue

@@ -34,7 +34,7 @@
             v-for="(item, index) of statuses"
             :key="index"
             :label="item.name"
-            :value="index"
+            :value="item.index"
           >
             <div>
               {{item.name}}
@@ -203,6 +203,7 @@ const STATUS_COLOR = {
   对接开发者: "#E6A23C",
   面试中: "#E6A23C",
   确认聘用: "#E6A23C",
+  平台付款: "#E6A23C",
   开发中: "#67C23A",
   结束合作: "#909399",
   取消: "#909399"
@@ -373,9 +374,11 @@ export default {
       if (res) {
         let numObj = res.data.status_num;
         this.nums = numObj;
-        this.statuses = res.data.status_name.map(name => {
-          let item = { name };
-          switch (name) {
+        this.statuses = res.data.status_name.map(v=> {
+          let item = {};
+          item.name=v.name;
+          item.index=v.index;
+          switch (item.name) {
             case "全部":
               item.num = numObj.all.num;
               break;
@@ -411,6 +414,10 @@ export default {
               item.num = numObj.interviewOkNum.num;
               item.color = "#F0F9EB";
               break;
+            case "平台付款":
+              item.num = numObj.payNum.num;
+              item.color = "red";
+              break;
           }
           return item;
         });

+ 3 - 2
pages/main/index/task.vue

@@ -2,6 +2,7 @@
   <div class="content">
     <div style="margin-top: 15px;margin-right: 30px;display: flex;align-items: center">
       <category v-model="search.cate_id" :type="7" style="margin-right: 20px"/>
+      <el-input placeholder="关键词搜索" style="width: 300px;margin-right: 10px" v-model="search.keywords"></el-input>
       <el-button type="primary" @click="getList" style="margin-right: 40px">查看</el-button>
       <el-tag
         style="margin-right: 20px;cursor: pointer"
@@ -139,7 +140,7 @@
         let action = this.getUrlParam("action");
         if(action=="add")
         {
-          this.add_(0,0);
+          //this.add_(0,0);
         }
       }
     },
@@ -157,7 +158,7 @@
       }
       if(action=="add")
       {
-        this.add_(0,0);
+        //this.add_(0,0);
       }
       this.getList();
     },