瀏覽代碼

代码上传

zhangqiOMG 2 年之前
父節點
當前提交
afefc7eaa2
共有 1 個文件被更改,包括 16 次插入25 次删除
  1. 16 25
      src/HManagement/clueManage/m_activity/index.vue

+ 16 - 25
src/HManagement/clueManage/m_activity/index.vue

@@ -28,8 +28,8 @@
           <el-option
             v-for="item in areaList2"
             :key="item.index"
-            :label="item.title"
-            :value="item.name"
+            :label="item.templetname"
+            :value="item.templetid"
           ></el-option>
         </el-select>
       </div>
@@ -93,28 +93,8 @@ export default {
       search:{},
       campaigntypeList:'',
       areaList2:[
-        {
-          title: '我负责的',
-          name: "1",
-        },
-        {
-          title: '我参与的',
-          name: "2",
-        },
-        {
-          title: '我创建的',
-          name: "5",
-        },
-        {
-          title: '我下属负责的',
-          name: "3",
-        },
-        {
-          title: '我下属参与的',
-          name: "4",
-        }
       ],
-      area:'1',
+      area:'',
       tabIndex:"1",
     }
   },
@@ -154,13 +134,24 @@ export default {
     areaChange(){
       this.tabIndex = this.area
       this.$refs.basicLayout.param.content.pageNumber=1;
-      this.$refs.basicLayout.param.content.type=this.area;
+      this.$refs.basicLayout.param.content.type = this.area;
       this.$refs.basicLayout.listData()
+    },
+    async querytemplet () {
+      const res = await this.$api.requested({
+        "classname": "sysmanage.develop.querytemplet.querytemplet",
+        "method":"query",
+        "content": {}
+      })
+      this.areaList2 = res.data
+      this.area = res.data[0].templetid
     }
+   
+
   },
   created () {
     this.campaigntype()
-
+    this.querytemplet()
    /* const res = await this.$store.dispatch('optiontypeselect','dataarea')
     this.areaList2 = res.data
     console.log(this.areaList2)*/