|
|
|
@ -36,7 +36,7 @@ const tabs_array = computed(()=>{ |
|
|
|
|
return tabs |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const activeName = ref('0') |
|
|
|
|
const activeName = ref(tabs_array.value.length > 0 ? tabs_array[0].name : '') |
|
|
|
|
const handleClick = (tab, event) => { |
|
|
|
|
console.log(tab, event) |
|
|
|
|
} |
|
|
|
@ -76,16 +76,19 @@ const handleCheckAllChange = (val) => { |
|
|
|
|
checkedMockConfig.value = [] |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
console.log(tabs_array.value.length) |
|
|
|
|
checkedMockConfig.value = val ? mockConfigItems : [] |
|
|
|
|
isIndeterminate.value = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleCheckedMockChange = (value) => { |
|
|
|
|
|
|
|
|
|
if (select_ip.value === '') { |
|
|
|
|
alert('请先选择测试影院IP!') |
|
|
|
|
checkedMockConfig.value = [] |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
console.log(tabs_array.value.length) |
|
|
|
|
console.log(tabs_array.value.length) |
|
|
|
|
const checkedCount = value.length |
|
|
|
|
checkAll.value = checkedCount === mockConfigItems.length |
|
|
|
|
isIndeterminate.value = checkedCount > 0 && checkedCount < mockConfigItems.length |
|
|
|
@ -194,7 +197,12 @@ onMounted( |
|
|
|
|
<br> |
|
|
|
|
<div> |
|
|
|
|
<el-tabs v-model="activeName" class="api_tabs" @tab-click="handleClick"> |
|
|
|
|
<el-tab-pane v-for="(tab,index) in tabs_array" :label="tab.label" :name="index.toString()"> |
|
|
|
|
<el-tab-pane v-for="(tab,index) in tabs_array" :label="tab.label" :name="tab.name"> |
|
|
|
|
<el-row> |
|
|
|
|
<div v-if="activeName==='get_overtime_ticket_status'"> |
|
|
|
|
<el-col>xxx</el-col> |
|
|
|
|
</div> |
|
|
|
|
</el-row> |
|
|
|
|
<JsonEditorVue class="editor" v-model="json_data" language="zh-CN"/> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|