@dongkboy 11 miesięcy temu
rodzic
commit
505c9b10c1

+ 12 - 8
src/views/customerManage/userSync/list.vue

@@ -42,14 +42,7 @@
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>
     <div class="g-card  ">
     <div class="g-card  ">
-      <div class="mid-action">
-        <div style="margin-left: auto;">
-          <span class="desc">最近同步:321313131231</span>
-          <el-button class="ml10" type="primary" @click="syncUser">
-            同步用户
-          </el-button>
-        </div>
-      </div>
+
       <templateTable ref="commonTable" :operationWidth="200" :showOperation="true" :showBatchDelete="false"
       <templateTable ref="commonTable" :operationWidth="200" :showOperation="true" :showBatchDelete="false"
         :data="Result" :columns="Columns" @findPage="findPage">
         :data="Result" :columns="Columns" @findPage="findPage">
         <template slot="buttonSlot" slot-scope="{ row }">
         <template slot="buttonSlot" slot-scope="{ row }">
@@ -142,6 +135,17 @@ export default {
   },
   },
   // 方法函数
   // 方法函数
   methods: {
   methods: {
+    resetForm(){
+      this.query= {
+        name: "",//姓名
+        phone: "",//手机号
+        source: "",//来源
+        status: "",//状态
+        userCode: "",//用户id
+        deliveredStatus: "",
+      }
+      this.findPage();
+    },
     sexFormatter(row, column) {
     sexFormatter(row, column) {
       return row.sex == 0 ? '女' : '男'
       return row.sex == 0 ? '女' : '男'
     },
     },

+ 0 - 8
src/views/customerManage/wechatCustomer/list.vue

@@ -31,14 +31,6 @@
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>
     <div class="g-card  ">
     <div class="g-card  ">
-      <div class="mid-action">
-        <div style="margin-left: auto;">
-          <span class="desc">最近同步:321313131231</span>
-          <el-button class="ml10" type="primary" @click="syncUser">
-            同步用户
-          </el-button>
-        </div>
-      </div>
       <templateTable ref="commonTable" :operationWidth="200" :showOperation="true" :showBatchDelete="false"
       <templateTable ref="commonTable" :operationWidth="200" :showOperation="true" :showBatchDelete="false"
         :data="Result" :columns="Columns" @findPage="findPage">
         :data="Result" :columns="Columns" @findPage="findPage">
         <template slot="buttonSlot" slot-scope="{ row }">
         <template slot="buttonSlot" slot-scope="{ row }">

+ 39 - 10
src/views/customerOperation/smartTagging.vue

@@ -3,11 +3,20 @@
   <div>
   <div>
     <!-- 模板内容 -->
     <!-- 模板内容 -->
     <el-form ref="queryForm" :inline="true" :model="queryform" label-width="100px" class="top-search">
     <el-form ref="queryForm" :inline="true" :model="queryform" label-width="100px" class="top-search">
-      <el-form-item label="行为类型名称" prop="name">
-        <el-input v-model="queryform.name" placeholder="请输入"></el-input>
+      <el-form-item label="行为类型名称">
+        <el-input v-model="queryform.actionName" placeholder="请输入"></el-input>
       </el-form-item>
       </el-form-item>
-      <el-form-item label="关联标签" prop="name">
-        <el-input v-model="queryform.name" placeholder="请输入"></el-input>
+      <el-form-item label="标签组">
+        <el-select v-model="queryform.tagGroupId" placeholder="请选择" clearable filterable @change="tagsArrayChange1">
+          <el-option v-for="(item, index) in tagsArray1" :key="index" :label="item.groupName"
+            :value="item.id"></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="关联标签"  >
+        <el-select v-model="queryform.tagId" placeholder="请选择"  >
+          <el-option :label="item.name" :value="item.tagId" v-for="(item, index) in tagsSubSet1"
+            :key="index"></el-option>
+        </el-select>
       </el-form-item>
       </el-form-item>
       <el-form-item>
       <el-form-item>
         <el-button type="primary" @click="findPage()">查询</el-button>
         <el-button type="primary" @click="findPage()">查询</el-button>
@@ -104,12 +113,14 @@ export default {
   // 数据存放区域
   // 数据存放区域
   data() {
   data() {
     return {
     return {
-      disabled:false,
+      disabled: false,
       behaviorTypeList: [],//行为类型名称
       behaviorTypeList: [],//行为类型名称
       createBehaviorShow: false,//转出弹窗
       createBehaviorShow: false,//转出弹窗
       queryform: {
       queryform: {
         pageNum: 1,
         pageNum: 1,
         pageSize: 10,
         pageSize: 10,
+        tagGroupId:"",
+        tagId:"",
       },//页面检索对象
       },//页面检索对象
       form: {
       form: {
         actionId: "",
         actionId: "",
@@ -151,7 +162,9 @@ export default {
         { prop: "tagList", label: "关联标签", minWidth: 360, formatter: this.tagListFormatter },
         { prop: "tagList", label: "关联标签", minWidth: 360, formatter: this.tagListFormatter },
       ],
       ],
       tagsArray: [],//标签组
       tagsArray: [],//标签组
+      tagsArray1: [],//标签组
       tagsSubSet: [],//标签列表
       tagsSubSet: [],//标签列表
+      tagsSubSet1: [],//标签列表
     }
     }
   },
   },
   // 生命周期函数
   // 生命周期函数
@@ -161,6 +174,15 @@ export default {
   },
   },
   // 方法函数
   // 方法函数
   methods: {
   methods: {
+    resetForm(){
+      this.queryform= {
+        pageNum: 1,
+        pageSize: 10,
+        tagGroupId:"",
+        tagId:"",
+      }
+      this.findPage();
+    },
     tagListFormatter(row) {
     tagListFormatter(row) {
       let result = '';
       let result = '';
       row.tagList.forEach((item, index) => {
       row.tagList.forEach((item, index) => {
@@ -197,6 +219,12 @@ export default {
       this.form.tagGroupName = this.tagsArray.find(val => val.id == value).groupName;
       this.form.tagGroupName = this.tagsArray.find(val => val.id == value).groupName;
       this.tagsSubSet = this.tagsArray.find(val => val.id == value).weTags;
       this.tagsSubSet = this.tagsArray.find(val => val.id == value).weTags;
     },
     },
+    tagsArrayChange1(value) {
+      this.queryform.tagId='';
+      console.log(value)
+      console.log(this.tagsArray1)
+      this.tagsSubSet1 = this.tagsArray1.find(val => val.id == value).weTags;
+    },
     actionChange(value) {
     actionChange(value) {
       this.form.actionName = this.behaviorTypeList.find(val => val.code == value).name;
       this.form.actionName = this.behaviorTypeList.find(val => val.code == value).name;
     },
     },
@@ -210,6 +238,7 @@ export default {
       }).then((res) => {
       }).then((res) => {
         if (res.code == 200) {
         if (res.code == 200) {
           this.tagsArray = res.rows;
           this.tagsArray = res.rows;
+          this.tagsArray1 = res.rows;
         }
         }
       })
       })
     },
     },
@@ -227,11 +256,11 @@ export default {
     },
     },
     // 查看详情
     // 查看详情
     viewDetails(row) {
     viewDetails(row) {
-      this.disabled=true;
+      this.disabled = true;
       console.log(row)
       console.log(row)
       this.createBehaviorShow = true;
       this.createBehaviorShow = true;
-      this.form=row;
-      this.form.tagIdList=row.tagList.map(ele=>{
+      this.form = row;
+      this.form.tagIdList = row.tagList.map(ele => {
         return ele.name;
         return ele.name;
       })
       })
     },
     },
@@ -270,8 +299,8 @@ export default {
     // 同步用户
     // 同步用户
     createBehavior() {
     createBehavior() {
       this.createBehaviorShow = true;
       this.createBehaviorShow = true;
-      this.disabled=false;
-      this.form= {
+      this.disabled = false;
+      this.form = {
         actionId: "",
         actionId: "",
         actionName: "",
         actionName: "",
         markRules1: "",//规则
         markRules1: "",//规则