|
@@ -18,17 +18,28 @@
|
|
|
{{ $t('management.createIntelligent') }}
|
|
{{ $t('management.createIntelligent') }}
|
|
|
</a-button>
|
|
</a-button>
|
|
|
</a-space>
|
|
</a-space>
|
|
|
- <ModalItem v-model:visible="visible"></ModalItem>
|
|
|
|
|
|
|
+ <ModalAddIntel v-model:visible="visible" @add-intelligent="addIntelligent"></ModalAddIntel>
|
|
|
|
|
+ <ModelAddItem
|
|
|
|
|
+ v-model:show_model_item="show_model_item"
|
|
|
|
|
+ :target_icon="target_icon"
|
|
|
|
|
+ @select_icon="selectIcon"
|
|
|
|
|
+ ></ModelAddItem>
|
|
|
|
|
+ <ModelSelectIcon v-model:show_select_icon="show_select_icon" @sendIcon="sendIcon"></ModelSelectIcon>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import { ref } from 'vue';
|
|
import { ref } from 'vue';
|
|
|
-import ModalItem from './ModalItem.vue';
|
|
|
|
|
|
|
+import ModalAddIntel from './ModalAddIntel.vue';
|
|
|
|
|
+import ModelAddItem from './ModelAddItem.vue';
|
|
|
|
|
+import ModelSelectIcon from './ModalSelectIcon.vue';
|
|
|
import { funcDebounce } from '../../utils/utils';
|
|
import { funcDebounce } from '../../utils/utils';
|
|
|
import { bus_intelligentSearch } from '../../base/event-bus';
|
|
import { bus_intelligentSearch } from '../../base/event-bus';
|
|
|
|
|
|
|
|
const searchText = ref('');
|
|
const searchText = ref('');
|
|
|
const visible = ref(false);
|
|
const visible = ref(false);
|
|
|
|
|
+const show_model_item = ref(false);
|
|
|
|
|
+const show_select_icon = ref(false);
|
|
|
|
|
+const target_icon = ref('../../assets/image/management/intelligent-frame1.png');
|
|
|
// 搜索
|
|
// 搜索
|
|
|
const handleSearch = funcDebounce(
|
|
const handleSearch = funcDebounce(
|
|
|
() => {
|
|
() => {
|
|
@@ -41,6 +52,17 @@ const handleSearch = funcDebounce(
|
|
|
const handleCreate = () => {
|
|
const handleCreate = () => {
|
|
|
visible.value = true;
|
|
visible.value = true;
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
|
|
+const addIntelligent = (data) => {
|
|
|
|
|
+ show_model_item.value = true;
|
|
|
|
|
+};
|
|
|
|
|
+const selectIcon = () => {
|
|
|
|
|
+ show_select_icon.value = true;
|
|
|
|
|
+};
|
|
|
|
|
+const sendIcon = (icon) => {
|
|
|
|
|
+ console.log('sendIcon', icon);
|
|
|
|
|
+ target_icon.value = icon;
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
<style scoped lang="scss"></style>
|
|
<style scoped lang="scss"></style>
|
|
|
<style>
|
|
<style>
|