jialh
2025-01-10 cc7fe7bb775466b5b53650033e5f256d421a6b54
智能体修改
12个文件已修改
1个文件已添加
22223 ■■■■■ 已修改文件
.gitignore 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package-lock.json 22160 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/routers.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/IntelligentAgent/addAgent.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/IntelligentAgent/allAgent.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/IntelligentAgent/chat.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/IntelligentAgent/myAgent.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/echarts/radar.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/echarts/tree.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/view/login/loginHeader.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -24,3 +24,5 @@
*.sw*
build/env.js
/dist.rar
/.gitignore
package-lock.json
New file
Diff too large
package.json
@@ -20,7 +20,7 @@
    "jquery": "^3.7.1",
    "js-cookie": "^3.0.5",
    "js-md5": "^0.8.3",
    "less": "^2.7.3",
    "less": "^4.2.1",
    "less-loader": "^5.0.0",
    "screenfull": "^5.1.0",
    "view-design": "^4.7.0",
src/config/index.js
@@ -14,6 +14,7 @@
   */
  baseUrl: {
    dev: '/baseURL',
    // dev: '/api',
    pro: '/'
  },
  /**
src/router/routers.js
@@ -140,7 +140,7 @@
      // hideInBread: true,
      access: ['no_admin', 'FindAgent', 'myAgent', 'chat'],
      hideInMenu: false,
      title: '政策智能体'
      title: '智能体市场'
    },
    children: [{
        path: '/FindAgent',
src/view/IntelligentAgent/addAgent.vue
@@ -3,7 +3,7 @@
        <div class="header">
            <LoginHeader />
            <header class="page-header">
                政策智能体
                智能体市场
                <Icon type="ios-arrow-forward" /> 发现 AI 智能体
            </header>
            <main>
src/view/IntelligentAgent/allAgent.vue
@@ -131,7 +131,8 @@
        };
    },
    mounted() {
        const savedTab = localStorage.getItem('currentAllTab');
        this.type = savedTab !== null ? savedTab: '-1'; // 加载保存的 tab,默认为 0
        this.getAgentDataList();
    },
    watch: {
@@ -237,6 +238,7 @@
        // 处理Tab切换事件
        handleTabChange(name) {
            localStorage.setItem('currentAllTab', name); // 将当前 tab 保存到 localStorage
            this.type = name;
        },
        // 获取数据列表
src/view/IntelligentAgent/chat.vue
@@ -318,6 +318,8 @@
          this.loadingSub = false;
        });
      }else{
        this.$Message.warning('请输入您的问题!');
      }
    },
    typeWriterEffect(name, message, isAnswer, id, copyMessage) {
src/view/IntelligentAgent/myAgent.vue
@@ -82,12 +82,13 @@
                <span>创建AI智能体</span>
            </p> -->
            <!-- 固定头部 -->
            <div style="position: sticky; top: 0; background: white; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e8eaec;">
            <div
                style="position: sticky; top: 0; background: white; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e8eaec;">
                <p slot="header">
                    <Icon type="md-add" style="margin-right: 10px;" />
                    <span>创建AI智能体</span>
                </p>
                <Icon type="md-close" @click="addAI = false" style="cursor: pointer;"  size="20"/>
                <Icon type="md-close" @click="addAI = false" style="cursor: pointer;" size="20" />
            </div>
            <div style="margin: 20px auto;text-align: center;">
@@ -140,12 +141,13 @@
                <Icon custom="custom custom-bianji" style="margin-right: 10px;" />
                <span>编辑AI智能体</span>
            </p> -->
            <div style="position: sticky; top: 0; background: white; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e8eaec;">
            <div
                style="position: sticky; top: 0; background: white; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #e8eaec;">
                <p slot="header">
                    <Icon custom="custom custom-bianji" style="margin-right: 10px;" />
                    <span>编辑AI智能体</span>
                </p>
                <Icon type="md-close" @click="editAI = false" style="cursor: pointer;"  size="20"/>
                <Icon type="md-close" @click="editAI = false" style="cursor: pointer;" size="20" />
            </div>
            <div style="margin: 20px auto;text-align: center;">
                <label for="file">
@@ -258,7 +260,11 @@
        };
    },
    mounted() {
        this.getAgentDataList();
        const savedTab = localStorage.getItem('currentTab');
        this.type = savedTab !== null ? savedTab: 0; // 加载保存的 tab,默认为 0
        // console.log('1111111111111111111==========',this.type,savedTab);
        this.getAgentDataList()
    },
    watch: {
        type() {
@@ -421,6 +427,7 @@
        // 处理Tab切换事件
        handleTabChange(name) {
            localStorage.setItem('currentTab', name); // 将当前 tab 保存到 localStorage
            this.type = name;
        },
        // 获取数据列表
src/view/echarts/radar.vue
@@ -829,9 +829,11 @@
        generateChart() {
            if (!this.message) {
                alert('请输入正确的公司名称!');
                // alert('请输入正确的公司名称!');
                this.$Message.warning('请输入正确的公司名称!');
            } else if (!this.fileUrl) {
                alert('请上传尽调报告');
                // alert('请上传尽调报告');
                this.$Message.warning('请上传尽调报告');
            } else {
                // this.getRadarData(this.fileUrl)
                // 调用接口获取得分数据
src/view/echarts/tree.vue
@@ -170,7 +170,8 @@
        },
        generateChart() {
            if (!this.message) {
                alert('请输入正确的公司名称!');
                // alert('请输入正确的公司名称!');
                this.$Message.warning('请输入正确的公司名称!');
            } else {
                // 禁用按钮
                this.disableButton = true;
src/view/login/loginHeader.vue
@@ -109,7 +109,7 @@
                    show: true
                },
                {
                    title: '政策智能体',
                    title: '智能体市场',
                    url: '/FindAgent',
                    icon: require('../../assets/images/home/home14.png'),
                    children: [
@@ -182,7 +182,7 @@
                show: true
            },
            {
                title: '政策智能体',
                title: '智能体市场',
                url: '/FindAgent',
                icon: require('../../assets/images/home/home14.png'),
                children: [
vue.config.js
@@ -40,7 +40,11 @@
        //   'border-radius-base': '2px'
        // }
        // 解决问题主要需要打开这个
        javascriptEnabled: true
        //1203注释
        // javascriptEnabled: true
        lessOptions: {
          javascriptEnabled: true,
        },
      }
    }
  },
@@ -56,8 +60,16 @@
        pathRewrite: {
          '^/baseURL': ''
        },
        secure: false
      }
        secure: false,
      },
      // '/api': {
      //   // target: 'http://rczd.rensofter.com' ,
      //   target: 'http://47.98.113.167/',
      //   changeOrigin: true,
      //   pathRewrite: {
      //     '^/api': ''
      //   },
      // }
    }
  }
};