|
|
@ -164,7 +164,7 @@ function handle_api_data() { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
// 更新first_tab_api对应的值 |
|
|
|
// 更新first_tab_api对应的值 |
|
|
|
store.state.ecApiModule.first_tab_api_id = SelectApi.value[0]['id'] |
|
|
|
store.state.ecApiModule.first_tab_api_id = SelectApi.value[0] ? SelectApi.value[0]['id'] : 0 |
|
|
|
// 生成被选择的api参数对象 |
|
|
|
// 生成被选择的api参数对象 |
|
|
|
SelectApiId.value.forEach(api_id => { |
|
|
|
SelectApiId.value.forEach(api_id => { |
|
|
|
if (ApiParams.value.hasOwnProperty(api_id)) { |
|
|
|
if (ApiParams.value.hasOwnProperty(api_id)) { |
|
|
@ -293,7 +293,7 @@ onMounted(() => { |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="6"> |
|
|
|
<label class="name-label">接口:</label> |
|
|
|
<label class="name-label">接口:</label> |
|
|
|
|
|
|
|
|
|
|
|
<el-select v-model="SelectApiId" placeholder="请选择" style="width: 240px" size="default" multiple collapse-tags |
|
|
|
<el-select v-model="SelectApiId" placeholder="请选择" style="width: 240px" size="default" multiple collapse-tags filterable |
|
|
|
collapse-tags-tooltip :clearable="true" @change="api_on_change"> |
|
|
|
collapse-tags-tooltip :clearable="true" @change="api_on_change"> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="item in Api" |
|
|
|
v-for="item in Api" |
|
|
|