Prechádzať zdrojové kódy

增加三期的智能客服页面

刘洋 1 rok pred
rodič
commit
0c7fee9773

+ 6 - 0
src/api/common.js

@@ -28,3 +28,9 @@ export const enumListByType = (enumList) => {
     params: { enumList },
   });
 };
+
+export const intelligenceLink = () => {
+  return request({
+    url: '/api/sso/rtzf/login',
+  });
+};

+ 2 - 1
src/router/asyncRoutes.js

@@ -7,7 +7,7 @@ import projectQuality from './modules/projectQuality';
 import User from './modules/user';
 import System from './modules/system';
 import Report from './modules/report';
-
+import Intelligence from './modules/intelligence';
 const asyncRoutes = [
   myWorkbenches,
   serviceUnit,
@@ -18,6 +18,7 @@ const asyncRoutes = [
   User,
   System,
   Report,
+  Intelligence,
 ];
 export const moduleMap = asyncRoutes.reduce((obj, item) => {
   obj[item.path.slice(1)] = item.name;

+ 25 - 0
src/router/modules/intelligence.js

@@ -0,0 +1,25 @@
+export default {
+  name: 'Intelligence',
+  path: '/intelligence',
+  meta: {
+    title: '智能客服',
+    sort: 10,
+    isModule: true,
+    alias: 'aiCustomerManage',
+    icon: 'report',
+  },
+  children: [
+    {
+      name: 'CustomerService',
+      path: '/intelligence/customer-service',
+      component: () =>
+        import('@/views/intelligence/customer-service/index.vue'),
+      meta: {
+        title: '智能客服',
+        sort: 1,
+        alias: 'aiCustomerChildManage',
+        icon: 'report-dispatch',
+      },
+    },
+  ],
+};

+ 24 - 0
src/views/intelligence/customer-service/index.vue

@@ -0,0 +1,24 @@
+<template>
+  <div class="customer-service h-full">
+    <iframe class="iframe" src="https://www.baidu.com" frameborder="0"></iframe>
+  </div>
+</template>
+
+<script setup name="CustomerService">
+import { onMounted } from 'vue';
+import { intelligenceLink } from '@/api/common';
+onMounted(() => {
+  intelligenceLink().then((res) => {
+    console.log('rrr', res);
+  });
+});
+</script>
+
+<style lang="less" scoped>
+.customer-service {
+  .iframe {
+    width: 100%;
+    height: 100%;
+  }
+}
+</style>

+ 0 - 7
src/views/intelligence/index.vue

@@ -1,7 +0,0 @@
-<template>
-  <div class="intelligence"> </div>
-</template>
-
-<script setup></script>
-
-<style lang="less" scoped></style>