Commit 755d776c 755d776c652b1fd54bbd28d26320038fb10b6bd7 by zhanghao

commit

1 parent 48b29f24
...@@ -145,6 +145,16 @@ ...@@ -145,6 +145,16 @@
145 <el-form-item> 145 <el-form-item>
146 <el-input placeholder="请输入token" v-model="createAPI.token" clearable></el-input> 146 <el-input placeholder="请输入token" v-model="createAPI.token" clearable></el-input>
147 </el-form-item> 147 </el-form-item>
148 <el-form-item>
149 <el-select v-model="createAPI.huanjing" placeholder="请选择执行环境">
150 <el-option
151 v-for="item in createAPIoptions"
152 :key="item.value"
153 :label="item.label"
154 :value="item.value">
155 </el-option>
156 </el-select>
157 </el-form-item>
148 <div style="margin: 15px 0;"></div> 158 <div style="margin: 15px 0;"></div>
149 <el-form-item> 159 <el-form-item>
150 <el-button round @click="createApi">生成参数</el-button> 160 <el-button round @click="createApi">生成参数</el-button>
...@@ -282,9 +292,17 @@ ...@@ -282,9 +292,17 @@
282 createAPI: { 292 createAPI: {
283 method: '', 293 method: '',
284 biz_data: '', 294 biz_data: '',
285 uid: '5034720', 295 uid: '',
286 token: 'oVVeAl2eERPxiU1eY1LXf_nteJusfuDzYFQV3s0zhwRwQt1gyo-W13JiPaxE0msWRHSV_3cCrGXbdLUFZjHmJJrPWj4a1hYY2oTWgD2gbgelxZrHQ9D_U9ms-k7LX9Br8SeYfdhUJImw_x_YTEViMw==' 296 token: '',
297 huanjing: []
287 }, 298 },
299 createAPIoptions: [{
300 value: '0',
301 label: '测试环境'
302 }, {
303 value: '1',
304 label: '线上环境'
305 }],
288 dialogCreateApi: false, 306 dialogCreateApi: false,
289 myApi: '' 307 myApi: ''
290 // activityConfigRules: { 308 // activityConfigRules: {
...@@ -441,7 +459,8 @@ ...@@ -441,7 +459,8 @@
441 method: this.createAPI.method, 459 method: this.createAPI.method,
442 biz_data: this.createAPI.biz_data, 460 biz_data: this.createAPI.biz_data,
443 uid: this.createAPI.uid, 461 uid: this.createAPI.uid,
444 token: this.createAPI.token 462 token: this.createAPI.token,
463 type: this.createAPI.huanjing.toString()
445 }),config).then((res)=>{ 464 }),config).then((res)=>{
446 console.log(res); 465 console.log(res);
447 this.myApi = res.data; 466 this.myApi = res.data;
......