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