bding 10 mesi fa
parent
commit
8849d4474a

+ 4 - 0
src/views/custom_manage/contacts/compontents/chartItem.vue

@@ -25,6 +25,9 @@ export default {
       type: "string",
       default: "",
     },
+    activeTypeName: {
+      type: Number,
+    },
   },
   data() {
     return {
@@ -46,6 +49,7 @@ export default {
         Source: 4,
         PageSize: this.pageSize,
         CurrentIndex: this.page,
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.publicHaveMoveCompany = !res.Data.Paging.IsEnd;

+ 67 - 7
src/views/custom_manage/contacts/compontents/contactsColums.js

@@ -254,36 +254,36 @@ export const tableColums = (type) => {
     ? [
         {
           label: "文章标题",
-          key: "TagName",
+          key: "Title",
         },
         {
           label: "文章类型",
-          key: "ArticleTypes",
+          key: "SpecialType",
           // widthsty: 200,
         },
         {
           label: "标签",
-          key: "ActivityTypes",
+          key: "IndustryName",
           // widthsty: 300,
         },
         {
           label: "发布时间",
-          key: "Industries",
+          key: "PublishDate",
           // widthsty: 300,
         },
         {
           label: "阅读时间",
-          key: "SubjectNames",
+          key: "CreateTime",
           // widthsty: 300,
         },
         {
           label: "阅读时长",
-          key: "SubjectNames",
+          key: "StopTime",
           // widthsty: 300,
         },
         {
           label: "阅读来源",
-          key: "SubjectNames",
+          key: "RegisterPlatform",
           // widthsty: 300,
         },
       ]
@@ -314,6 +314,29 @@ export const tableColums = (type) => {
           // widthsty: 300,
         },
       ]
+    : type === 13
+    ? [
+        {
+          label: "专栏名称",
+          key: "Title",
+        },
+        {
+          label: "作者昵称",
+          key: "NickName",
+        },
+        {
+          label: "关注时间",
+          key: "CreateTime",
+        },
+        {
+          label: "已发布文章",
+          key: "ArticleNum",
+        },
+        {
+          label: "粉丝",
+          key: "FansNum",
+        },
+      ]
     : [];
 };
 
@@ -751,6 +774,43 @@ export const organizationTableColums = (type) => {
           key: "CreateTime",
         },
       ]
+    : type === 11
+    ? [
+        {
+          label: "文章标题",
+          key: "Title",
+        },
+        {
+          label: "文章类型",
+          key: "SpecialType",
+          // widthsty: 200,
+        },
+        {
+          label: "标签",
+          key: "IndustryName",
+          // widthsty: 300,
+        },
+        {
+          label: "发布时间",
+          key: "PublishDate",
+          // widthsty: 300,
+        },
+        {
+          label: "阅读时间",
+          key: "CreateTime",
+          // widthsty: 300,
+        },
+        {
+          label: "阅读时长",
+          key: "StopTime",
+          // widthsty: 300,
+        },
+        {
+          label: "阅读来源",
+          key: "RegisterPlatform",
+          // widthsty: 300,
+        },
+      ]
     : [];
 };
 

+ 7 - 8
src/views/custom_manage/contacts/mixins/mutualAssistance.js

@@ -1,5 +1,5 @@
 import { screenList, meetingList } from "../compontents/contactsColums";
-import { customInterence, equityContacts } from "@/api/api.js";
+import { customInterence } from "@/api/api.js";
 
 var moment = require("moment");
 moment().format();
@@ -45,8 +45,11 @@ export const mutualMixin = {
       dialogVisibleActivity: false, //专项调研
       specialDetailId: null,
       dialogTitle: "",
-      typeList: ["权益", "研选"],
-      activeTypeName: "权益",
+      typeList: [
+        { label: "权益", value: 1 },
+        { label: "研选", value: 2 },
+      ],
+      activeTypeName: 1,
     };
   },
   computed: {
@@ -60,7 +63,7 @@ export const mutualMixin = {
       return this.activeName === 1 || this.activeName === 2 || this.activeName === 11 || this.activeName === 12;
     },
     tableColumsList() {
-      let arr = this.activeTypeName === "研选" ? this.tableColums.filter((_) => _.key != "PermissionName") : this.tableColums;
+      let arr = this.activeTypeName === 2 ? this.tableColums.filter((_) => _.key != "PermissionName") : this.tableColums;
       return arr;
     },
   },
@@ -190,9 +193,5 @@ export const mutualMixin = {
       this.page_no = 1;
       this.getTableData();
     },
-    // 类型的点击事件
-    typeHandleClick(e) {
-      // console.log(e, this.activeTypeName);
-    },
   },
 };

+ 11 - 2
src/views/custom_manage/contacts/mutualList.vue

@@ -4,7 +4,7 @@
       <span class="intro">{{ userForm.UserName }}-{{ userForm.Mobile }}-{{ userForm.ComapnyName }}</span>
       <div style="margin-top: 10px">
         <el-tabs v-model="activeTypeName" @tab-click="typeHandleClick">
-          <el-tab-pane :label="item" :name="item" v-for="item in typeList" :key="item"></el-tab-pane>
+          <el-tab-pane :label="item.label" :name="item.value" v-for="item in typeList" :key="item.value"></el-tab-pane>
         </el-tabs>
       </div>
       <div class="tabs">
@@ -112,13 +112,13 @@ export default {
         EndDate: this.end_date,
         StartDate: this.start_date,
         KeyWord: this.searchVal,
+        ClassType: this.activeTypeName,
       };
       for (let key in params) {
         paramStr = `${paramStr}&${key}=${params[key]}`;
       }
       return `${baseUrl}?${token}${paramStr}`;
     },
-  
   },
   data() {
     return {};
@@ -130,10 +130,17 @@ export default {
     this.getCygxMutualList();
   },
   methods: {
+    // 类型的点击事件
+    typeHandleClick(e) {
+      this.activeName = 1;
+      this.tableColums = tableColums(this.activeName);
+      this.getCygxMutualList();
+    },
     //获取基础数据
     async getCygxMutualList() {
       const res = await equityContacts.getCygxMutualList({
         UserId: Number(this.$route.query.id),
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.list = res.Data.List || [];
@@ -153,6 +160,7 @@ export default {
         MeetType: this.checkActiveList.join(","),
         EndDate: this.end_date,
         StartDate: this.start_date,
+        ClassType: this.activeTypeName,
         KeyWord: this.searchVal,
       });
       if (res.Ret === 200) {
@@ -167,6 +175,7 @@ export default {
         Source: this.activeName,
         PageSize: this.pageSize,
         CurrentIndex: this.page_no,
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.publicHaveMove = res.Data ? this.page_no < res.Data.Paging.Pages : false;

+ 12 - 2
src/views/custom_manage/contacts/organizationList.vue

@@ -8,7 +8,7 @@
       </div>
       <div style="margin-top: 10px">
         <el-tabs v-model="activeTypeName" @tab-click="typeHandleClick">
-          <el-tab-pane :label="item" :name="item" v-for="item in typeList" :key="item"></el-tab-pane>
+          <el-tab-pane :label="item.label" :name="item.value" v-for="item in typeList" :key="item.value"></el-tab-pane>
         </el-tabs>
       </div>
       <div class="tabs">
@@ -73,7 +73,7 @@
         <template v-if="publicHaveMoveCompany">
           <div v-for="item in chartList" :key="item.UserId">
             <template v-if="item.ListChart">
-              <ChartItem :chartData="item" />
+              <ChartItem :chartData="item" :activeTypeName="activeTypeName" />
             </template>
           </div>
         </template>
@@ -121,6 +121,7 @@ export default {
         StartDate: this.start_date,
         KeyWord: this.searchVal,
         ActivityName: this.activityName,
+        ClassType: this.activeTypeName,
       };
       for (let key in params) {
         paramStr = `${paramStr}&${key}=${params[key]}`;
@@ -136,10 +137,17 @@ export default {
     this.getSale();
   },
   methods: {
+    // 类型的点击事件
+    typeHandleClick(e) {
+      this.activeName = 1;
+      this.tableColums = organizationTableColums(this.activeName);
+      this.getCygxMutualList();
+    },
     //获取基础数据
     async getCygxMutualList() {
       const res = await equityContacts.getCompanyTableList({
         CompanyId: Number(this.$route.query.CompanyId),
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.list = res.Data.List || [];
@@ -185,6 +193,7 @@ export default {
         StartDate: this.start_date,
         KeyWord: this.searchVal,
         ActivityName: this.activityName,
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.total = res.Data.Paging.Totals;
@@ -200,6 +209,7 @@ export default {
         CurrentIndex: this.page_no,
         IdentityType: 2,
         KeyWord: this.searchVal,
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.publicHaveMove = res.Data ? this.page_no < res.Data.Paging.Pages : false;

+ 13 - 4
src/views/custom_manage/contacts/wholeOrganization.vue

@@ -4,7 +4,7 @@
       <div class="introduce">注:机构的互动详情,是截止至昨天24点的数据,非当前实时数据</div>
       <div style="margin-top: 10px">
         <el-tabs v-model="activeTypeName" @tab-click="typeHandleClick">
-          <el-tab-pane :label="item" :name="item" v-for="item in typeList" :key="item"></el-tab-pane>
+          <el-tab-pane :label="item.label" :name="item.value" v-for="item in typeList" :key="item.value"></el-tab-pane>
         </el-tabs>
       </div>
       <div class="tabs">
@@ -79,7 +79,7 @@
         <template v-if="publicHaveMoveCompany">
           <div v-for="item in chartList" :key="item.UserId">
             <template v-if="item.ListChart">
-              <ChartItem :chartData="item" :companyName="item.CompanyName" />
+              <ChartItem :chartData="item" :companyName="item.CompanyName" :activeTypeName="activeTypeName"/>
             </template>
           </div>
           <el-col :span="24" class="toolbar">
@@ -136,7 +136,8 @@ export default {
         KeyWord: this.searchVal,
         ActivityName: this.activityName,
         AdminId: salesArr.join(","),
-      };
+        ClassType: this.activeTypeName,
+      };  
       for (let key in params) {
         paramStr = `${paramStr}&${key}=${params[key]}`;
       }
@@ -151,9 +152,15 @@ export default {
     this.getSale();
   },
   methods: {
+    // 类型的点击事件
+    typeHandleClick(e) {
+      this.activeName = 1;
+      this.tableColums = wholeOrganizationTableColums(this.activeName);
+      this.getCygxMutualList();
+    },
     //获取基础数据
     async getCygxMutualList() {
-      const res = await equityContacts.getUserTableCompanyList({});
+      const res = await equityContacts.getUserTableCompanyList({ ClassType: this.activeTypeName });
       if (res.Ret === 200) {
         this.list = res.Data.List || [];
         this.userForm = res.Data;
@@ -204,6 +211,7 @@ export default {
         KeyWord: this.searchVal,
         ActivityName: this.activityName,
         AdminId: salesArr.join(","),
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.total = res.Data.Paging.Totals;
@@ -227,6 +235,7 @@ export default {
         PageSize: this.pageSize,
         CurrentIndex: this.page_no,
         AdminId: salesArr.join(","),
+        ClassType: this.activeTypeName,
       });
       if (res.Ret === 200) {
         this.chartList = res.Data.List || [];