|
@@ -11,7 +11,7 @@
|
|
|
>
|
|
>
|
|
|
<template #description> {{ item.desc }} </template>
|
|
<template #description> {{ item.desc }} </template>
|
|
|
<template #settings>
|
|
<template #settings>
|
|
|
- <a-switch v-model="item.online" @change="changeStatus(item)">
|
|
|
|
|
|
|
+ <a-switch v-model="item.online" checked-color="#4569EA" @change="changeStatus(item)">
|
|
|
<template #checked> {{ $t('management.online') }} </template>
|
|
<template #checked> {{ $t('management.online') }} </template>
|
|
|
<template #unchecked> {{ $t('management.offline') }} </template>
|
|
<template #unchecked> {{ $t('management.offline') }} </template>
|
|
|
</a-switch>
|
|
</a-switch>
|
|
@@ -41,24 +41,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
|
- <!-- <a-select :default-value="'Beijing'" placeholder="Please select ..." multiple>
|
|
|
|
|
- <a-option>Beijing</a-option>
|
|
|
|
|
- <a-option>Shanghai</a-option>
|
|
|
|
|
- <a-option>Guangzhou</a-option>
|
|
|
|
|
- <a-option disabled>Disabled</a-option>
|
|
|
|
|
- <a-option>Shenzhen</a-option>
|
|
|
|
|
- <a-option>Wuhan</a-option>
|
|
|
|
|
- <template #header>
|
|
|
|
|
- <div style="padding: 6px 12px">
|
|
|
|
|
- <a-checkbox value="1">全选</a-checkbox>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #footer>
|
|
|
|
|
- <div style="padding: 6px 0; text-align: center">
|
|
|
|
|
- <a-button>Click Me</a-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-select> -->
|
|
|
|
|
</template>
|
|
</template>
|
|
|
<template #bottom>
|
|
<template #bottom>
|
|
|
<div class="bottom">
|
|
<div class="bottom">
|
|
@@ -245,6 +227,7 @@ const addLabelToTarget = async (label_id_list, target_id) => {
|
|
|
};
|
|
};
|
|
|
// 当下拉框隐藏时,重新更新对应的智能体数据
|
|
// 当下拉框隐藏时,重新更新对应的智能体数据
|
|
|
const changeDropdownVisible = async (visible, id) => {
|
|
const changeDropdownVisible = async (visible, id) => {
|
|
|
|
|
+ updateLabels();
|
|
|
if (!visible) {
|
|
if (!visible) {
|
|
|
const res = await getLabelList(search_label.value, 1, id);
|
|
const res = await getLabelList(search_label.value, 1, id);
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|