Explorar o código

Merge branch 'orangeUrgent' into allTestUrgent

qymljy hai 1 ano
pai
achega
24b1521bba

+ 28 - 0
src/HManagement/clueManage/clue_private/index.vue

@@ -140,6 +140,30 @@
             </el-option>
             </el-option>
           </el-select>
           </el-select>
         </div>
         </div>
+        <div class="mt-10">
+          <p class="search__label">{{ $t("来源") }}:</p>
+          <el-select
+              v-model="cluesource"
+              clearable
+              style="margin-right: 10px"
+              size="small"
+              :placeholder="$t('请选择来源')"
+              @change="
+              $refs.basicLayout.param.content.pageNumber = 1;
+              $refs.basicLayout.param.content.where.cluesource = cluesource;
+              $refs.basicLayout.listData();
+              param = $refs.basicLayout.param
+            "
+          >
+            <el-option
+                v-for="item in cluesourceList"
+                :label="$t(item.value)"
+                :key="item.rowindex"
+                :value="item.value"
+            >
+            </el-option>
+          </el-select>
+        </div>
       </template>
       </template>
       <template v-slot:tbList="scope">
       <template v-slot:tbList="scope">
         <div v-if="scope.data.column.columnname == 'status'">
         <div v-if="scope.data.column.columnname == 'status'">
@@ -280,6 +304,8 @@ export default {
           isExport: 0,
           isExport: 0,
         },
         },
       },
       },
+      cluesource:"",
+      cluesourceList:[]
     };
     };
   },
   },
   provide() {
   provide() {
@@ -295,6 +321,8 @@ export default {
     this.statusList = res2.data;
     this.statusList = res2.data;
     const res3 = await this.$store.dispatch("optiontypeselect", "tradefield");
     const res3 = await this.$store.dispatch("optiontypeselect", "tradefield");
     this.tradefields = res3.data;
     this.tradefields = res3.data;
+    const res4 = await this.$store.dispatch("optiontypeselect", "cluesource");
+    this.cluesourceList = res4.data;
     console.log(
     console.log(
       this.tool.tabelCol(this.$route.name).cluePrivateSalerTable.tablecols
       this.tool.tabelCol(this.$route.name).cluePrivateSalerTable.tablecols
     );
     );

+ 29 - 1
src/HManagement/clueManage/clue_public/index.vue

@@ -41,6 +41,30 @@
           </el-option>
           </el-option>
         </el-select>
         </el-select>
       </div>
       </div>
+      <div class="mt-10">
+        <p class="search__label">{{ $t("来源") }}:</p>
+        <el-select
+            v-model="cluesource"
+            clearable
+            style="margin-right: 10px"
+            size="small"
+            :placeholder="$t('请选择来源')"
+            @change="
+              $refs.basicLayout.param.content.pageNumber = 1;
+              $refs.basicLayout.param.content.where.cluesource = cluesource;
+              $refs.basicLayout.listData();
+              param = $refs.basicLayout.param
+            "
+        >
+          <el-option
+              v-for="item in cluesourceList"
+              :label="$t(item.value)"
+              :key="item.rowindex"
+              :value="item.value"
+          >
+          </el-option>
+        </el-select>
+      </div>
     </template>
     </template>
       <div slot="titleRight" >
       <div slot="titleRight" >
         <!-- <distribution class="inline-16" v-if="tool.checkAuth($route.name,'distribution')" @onSuccess="$refs.basicLayout.listData()"></distribution> -->
         <!-- <distribution class="inline-16" v-if="tool.checkAuth($route.name,'distribution')" @onSuccess="$refs.basicLayout.listData()"></distribution> -->
@@ -116,7 +140,9 @@ export default {
       selectList:[],
       selectList:[],
       tagData:[],
       tagData:[],
       tag:'',
       tag:'',
-      tablecols:''
+      tablecols:'',
+      cluesource:"",
+      cluesourceList:[]
     }
     }
   },
   },
   provide() {
   provide() {
@@ -132,6 +158,8 @@ export default {
     this.statusList = res2.data
     this.statusList = res2.data
     const res3 = await this.$store.dispatch('optiontypeselect','tradefield')
     const res3 = await this.$store.dispatch('optiontypeselect','tradefield')
     this.tradefields = res3.data
     this.tradefields = res3.data
+    const res4 = await this.$store.dispatch("optiontypeselect", "cluesource");
+    this.cluesourceList = res4.data;
     this.query_arealist()
     this.query_arealist()
     this.tagList()
     this.tagList()
     this.tablecols = this.tool.tabelCol(this.$route.name)['cluePublicTable'].tablecols
     this.tablecols = this.tool.tabelCol(this.$route.name)['cluePublicTable'].tablecols

+ 29 - 1
src/SManagement/orderclue/index.vue

@@ -61,6 +61,30 @@
           </el-option>
           </el-option>
         </el-select>
         </el-select>
       </div>
       </div>
+      <div class="mt-10">
+        <p class="search__label">{{ $t("来源") }}:</p>
+        <el-select
+            v-model="cluesource"
+            clearable
+            style="margin-right: 10px"
+            size="small"
+            :placeholder="$t('请选择来源')"
+            @change="
+              $refs.list.param.content.pageNumber = 1;
+              $refs.list.param.content.where.cluesource = cluesource;
+              $refs.list.listData();
+              param = $refs.list.param
+            "
+        >
+          <el-option
+              v-for="item in cluesourceList"
+              :label="$t(item.value)"
+              :key="item.rowindex"
+              :value="item.value"
+          >
+          </el-option>
+        </el-select>
+      </div>
     </template>
     </template>
       <template v-slot:tbList="scope">
       <template v-slot:tbList="scope">
         <div v-if="scope.data.column.columnname == 'status'">
         <div v-if="scope.data.column.columnname == 'status'">
@@ -129,7 +153,9 @@ export default {
       tagData:[],
       tagData:[],
       tag:'',
       tag:'',
       param:{},
       param:{},
-      tablecols:[]
+      tablecols:[],
+      cluesource:"",
+      cluesourceList:[]
     }
     }
   },
   },
   provide() {
   provide() {
@@ -151,6 +177,8 @@ export default {
     this.statusList = res2.data
     this.statusList = res2.data
     const res3 = await this.$store.dispatch('optiontypeselect','tradefield')
     const res3 = await this.$store.dispatch('optiontypeselect','tradefield')
     this.tradefields = res3.data
     this.tradefields = res3.data
+    const res4 = await this.$store.dispatch("optiontypeselect", "cluesource");
+    this.cluesourceList = res4.data;
     console.log(this.statusList);
     console.log(this.statusList);
     this.tablecols = this.tool.tabelCol(this.$route.name).orderclueList.tablecols
     this.tablecols = this.tool.tabelCol(this.$route.name).orderclueList.tablecols
   },
   },