Parcourir la source

'修改账户绑定-快手'

魏志佳 il y a 4 ans
Parent
commit
6f6bdc24bd
2 fichiers modifiés avec 21 ajouts et 5 suppressions
  1. 19 3
      src/views/modules/advertiser/ProjectMemberList.vue
  2. 2 2
      vue.config.js

+ 19 - 3
src/views/modules/advertiser/ProjectMemberList.vue

@@ -174,8 +174,9 @@
             v-if="loginType == 'kuaishou'"
           >
             <a-radio-group buttonStyle="outline" v-model="agentType">
-              <a-radio-button value="0">否</a-radio-button>
-              <a-radio-button value="1">是</a-radio-button>
+              <!-- <a-radio-button value="0">否</a-radio-button>
+              <a-radio-button value="1">是</a-radio-button> -->
+              <a-radio-button v-for="item in authConfigList" :key="item.id" :value='item.id'>{{item.agentName}}</a-radio-button>
             </a-radio-group>
           </a-form-item>
           <a-form-item
@@ -423,6 +424,7 @@ export default {
   mixins: [JeecgListMixin],
   data() {
     return {
+      authConfigList:[],
       title: '',
       titleAccount: '',
       description: '我的项目',
@@ -434,7 +436,7 @@ export default {
       accountName: '',
       password: '',
       loginType: 'kuaishou',
-      agentType: '1',
+      agentType: undefined,
       form: this.$form.createForm(this),
       record: '',
       systemType: '不限',
@@ -886,10 +888,24 @@ export default {
         this.getAllUserList()
       }
     },
+    getauthConfigList(){
+      getAction('/auth/oauthConfig/list',{
+        status:0,
+        mediaId:2
+      }).then(res=>{
+        console.log(res)
+        this.authConfigList=res.result;
+        if(res.result.length>0){
+          this.agentType=res.result[0].id
+        }
+        
+      })
+    }
   },
   mounted() {
     this.$nextTick(() => {
       this.getParticipateList()
+      this.getauthConfigList()
     })
   },
 }

+ 2 - 2
vue.config.js

@@ -68,7 +68,7 @@ module.exports = {
     open : true,
     proxy: {
       '/jeecg-boot': {
-        //  target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
+         target: 'http://192.168.1.8:8080', //请求本地 需要jeecg-boot后台项目  蒙蒙
         // target: 'http://192.168.0.59:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.1.188:8088', //请求本地 需要jeecg-boot后台项目  英豪
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
@@ -85,7 +85,7 @@ module.exports = {
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目
         // target:'http://118.24.244.213:8804',
-        target:'http://139.186.151.174:8804', //测试
+        // target:'http://139.186.151.174:8804', //测试
 
         ws: false,