|
@@ -9,62 +9,17 @@ const AIRobotHoverVisible = ref(false)
|
|
|
const clicked = ref(false)
|
|
const clicked = ref(false)
|
|
|
const isShowDefault = ref(false)
|
|
const isShowDefault = ref(false)
|
|
|
const isShowAIRobotTop = ref(false)
|
|
const isShowAIRobotTop = ref(false)
|
|
|
-const AIIconVisible = ref(false)
|
|
|
|
|
-const DeQuestions = ref([
|
|
|
|
|
- {
|
|
|
|
|
- label: 'List shipments with ETA changes in the last 30 days.',
|
|
|
|
|
- value: 'List shipments with ETA changes in the last 30 days.',
|
|
|
|
|
- isLong: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Shipments arriving in the next 7 days.',
|
|
|
|
|
- value: 'Shipments arriving in the next 7 days.',
|
|
|
|
|
- isLong: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Show shipments delayed in the last 30 days.',
|
|
|
|
|
- value: 'Show shipments delayed in the last 30 days.',
|
|
|
|
|
- isLong: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'List shipments with milestone updates in the last 7 days.',
|
|
|
|
|
- value: 'List shipments with milestone updates in the last 7 days.',
|
|
|
|
|
- isLong: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'List shipments with milestone in the last 7 days2sdsa.',
|
|
|
|
|
- value: 'List shipments with milestone in the last 7 days2sdsa.',
|
|
|
|
|
- isLong: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'List shipments with milestone updates 7 days3fef.',
|
|
|
|
|
- value: 'List shipments with milestone updates 7 days3fef.',
|
|
|
|
|
- isLong: false
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label:
|
|
|
|
|
- 'List shipments with ETA changes in the last 30 days11111111111111111111111111111111111.',
|
|
|
|
|
- value:
|
|
|
|
|
- 'List shipments with ETA changes in the last 30 days11111111111111111111111111111111111.',
|
|
|
|
|
- isLong: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label:
|
|
|
|
|
- 'List shipments with ETA changes in the last 30 days1111111111111111111111111111111111122.',
|
|
|
|
|
- value:
|
|
|
|
|
- 'List shipments with ETA changes in the last 30 days1111111111111111111111111111111111122.',
|
|
|
|
|
- isLong: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label:
|
|
|
|
|
- 'List shipments with ETA changes in the last 30 days1111111111111111111111111111111111133.',
|
|
|
|
|
- value:
|
|
|
|
|
- 'List shipments with ETA changes in the last 30 days1111111111111111111111111111111111133.',
|
|
|
|
|
- isLong: true
|
|
|
|
|
- }
|
|
|
|
|
-])
|
|
|
|
|
|
|
+const AIIconVisible = ref(true)
|
|
|
|
|
+const DeQuestions = ref([])
|
|
|
const itemGroups = ref([])
|
|
const itemGroups = ref([])
|
|
|
|
|
|
|
|
|
|
+const AIRobotInit = () => {
|
|
|
|
|
+ $api.AIRobotInit({}).then((res:any) => {
|
|
|
|
|
+ DeQuestions.value = res.data.fixed_question
|
|
|
|
|
+ prepareGroups()
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 鼠标hover AIRobot图标
|
|
// 鼠标hover AIRobot图标
|
|
|
const AvatarMouseEnter = () => {
|
|
const AvatarMouseEnter = () => {
|
|
|
if (clicked.value) {
|
|
if (clicked.value) {
|
|
@@ -91,6 +46,7 @@ const AvatarClick = () => {
|
|
|
// 隐藏上方弹窗
|
|
// 隐藏上方弹窗
|
|
|
const HideAIRobotTop = () => {
|
|
const HideAIRobotTop = () => {
|
|
|
isShowDefault.value = false
|
|
isShowDefault.value = false
|
|
|
|
|
+ isShowAIRobotTop.value = true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 隐藏上方弹窗
|
|
// 隐藏上方弹窗
|
|
@@ -165,7 +121,7 @@ const handelClick = (item: any) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- prepareGroups()
|
|
|
|
|
|
|
+ AIRobotInit()
|
|
|
emitter.on('login-success', isShowLogin)
|
|
emitter.on('login-success', isShowLogin)
|
|
|
emitter.on('login-out', Logout)
|
|
emitter.on('login-out', Logout)
|
|
|
emitter.on('checkPrompt', Logout)
|
|
emitter.on('checkPrompt', Logout)
|