Browse Source

人员管理添加来源字段

lihongxiao 2 years ago
parent
commit
f162a30bbf

+ 3 - 1
src/views/PeopleManage/Agent/AgentManage.vue

@@ -540,7 +540,7 @@ export default {
           {
           prop: "managementSource",
           label: "来源",
-          sortable: false,
+          type: "text",
         },
           {
             prop: "status",
@@ -710,6 +710,7 @@ export default {
         .then((res) => {
           if (res.code == 200 && res.data.records.length > 0) {
             res.data.records.forEach((val) => {
+              val.managementSource=val.managementSource=='2'?"个代":"渠道"
               if (val.sex && val.sex !== "" && val.sex !== null) {
                 val.sex = this.sexoptions.find(
                   (ele) => ele.value == val.sex
@@ -725,6 +726,7 @@ export default {
           }
 
           this.tableConfig.loading = false;
+        
           this.pageResult = res.data.records;
           this.pageData.pageNum = res.data.current;
           this.pageData.pageSize = res.data.size;

+ 2 - 1
src/views/PeopleManage/Player/PlayerManage.vue

@@ -312,7 +312,7 @@ export default {
           {
           prop: "managementSource",
           label: "来源",
-          sortable: false,
+          type: "text",
         },
           {
             prop: "status",
@@ -433,6 +433,7 @@ export default {
         .then((res) => {
           if (res.code == 200 && res.data.records.length > 0) {
             res.data.records.forEach((val) => {
+              val.managementSource=val.managementSource=='2'?"个代":"渠道"
               if (val.status && val.status !== "" && val.status !== null) {
                 val.status = this.user_statusoptions.find(
                   (ele) => ele.value == val.status

+ 2 - 1
src/views/PeopleManage/Player/PlayerManageteam.vue

@@ -503,7 +503,7 @@ export default {
           {
           prop: "managementSource",
           label: "来源",
-          sortable: false,
+          type: "text",
         },
           {
             prop: "status",
@@ -686,6 +686,7 @@ export default {
         .then((res) => {
           if (res.code == 200 && res.data.records.length > 0) {
             res.data.records.forEach((val) => {
+              val.managementSource=val.managementSource=='2'?"个代":"渠道"
               if (val.status && val.status !== "" && val.status !== null) {
                 val.status = this.user_statusoptions.find(
                   (ele) => ele.value == val.status