Преглед изворни кода

feat:AI高频问题统计页面

caoliqin пре 15 часа
родитељ
комит
42f67380dd

+ 71 - 0
src/api/fastGpt/fastGptChatQuestionStatistics.js

@@ -0,0 +1,71 @@
+import request from '@/utils/request'
+
+// 查询高频聊天问题统计列表
+export function listFastGptChatQuestionStatistics(query) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询高频聊天问题统计详细
+export function getFastGptChatQuestionStatistics(id) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics/' + id,
+    method: 'get'
+  })
+}
+
+// 新增高频聊天问题统计
+export function addFastGptChatQuestionStatistics(data) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改高频聊天问题统计
+export function updateFastGptChatQuestionStatistics(data) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除高频聊天问题统计
+export function delFastGptChatQuestionStatistics(id) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出高频聊天问题统计
+export function exportFastGptChatQuestionStatistics(query) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics/export',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询高频聊天问题统计-问题明细列表(接口待定)
+export function listFastGptChatQuestionStatisticsDetail(query) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics/detail/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 新增高频聊天销售回复
+export function saveFastGptChatQuestionStatisticsSalesReply(data) {
+  return request({
+    url: '/fastGpt/fastGptChatQuestionStatistics/question/reply',
+    method: 'put',
+    data: data
+  })
+}

+ 53 - 0
src/api/fastGpt/fastgptChatQuestion.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询聊天问题收集列表
+export function listFastgptChatQuestion(query) {
+  return request({
+    url: '/fastGpt/fastgptChatQuestion/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询聊天问题收集详细
+export function getFastgptChatQuestion(id) {
+  return request({
+    url: '/fastGpt/fastgptChatQuestion/' + id,
+    method: 'get'
+  })
+}
+
+// 新增聊天问题收集
+export function addFastgptChatQuestion(data) {
+  return request({
+    url: '/fastGpt/fastgptChatQuestion',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改聊天问题收集
+export function updateFastgptChatQuestion(data) {
+  return request({
+    url: '/fastGpt/fastgptChatQuestion',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除聊天问题收集
+export function delFastgptChatQuestion(id) {
+  return request({
+    url: '/fastGpt/fastgptChatQuestion/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出聊天问题收集
+export function exportFastgptChatQuestion(query) {
+  return request({
+    url: '/fastGpt/fastgptChatQuestion/export',
+    method: 'get',
+    params: query
+  })
+}

+ 393 - 0
src/views/fastGpt/fastGptChatQuestion/index.vue

@@ -0,0 +1,393 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="会话ID" prop="sessionId">
+        <el-input
+          v-model="queryParams.sessionId"
+          placeholder="请输入会话ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="消息ID" prop="msgId">
+        <el-input
+          v-model="queryParams.msgId"
+          placeholder="请输入消息ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="外部ID" prop="extId">
+        <el-input
+          v-model="queryParams.extId"
+          placeholder="请输入外部ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="用户id" prop="userId">
+        <el-input
+          v-model="queryParams.userId"
+          placeholder="请输入用户id"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="公司ID" prop="companyId">
+        <el-input
+          v-model="queryParams.companyId"
+          placeholder="请输入公司ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="销售ID" prop="companyUserId">
+        <el-input
+          v-model="queryParams.companyUserId"
+          placeholder="请输入销售ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="角色ID" prop="roleId">
+        <el-input
+          v-model="queryParams.roleId"
+          placeholder="请输入角色ID"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="昵称" prop="nickName">
+        <el-input
+          v-model="queryParams.nickName"
+          placeholder="请输入昵称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="用户类型 1微信用户 2小程序用户 3销售用户" prop="userType">
+        <el-select v-model="queryParams.userType" placeholder="请选择用户类型 1微信用户 2小程序用户 3销售用户" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['fastGpt:fastgptChatQuestion:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['fastGpt:fastgptChatQuestion:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['fastGpt:fastgptChatQuestion:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          :loading="exportLoading"
+          @click="handleExport"
+          v-hasPermi="['fastGpt:fastgptChatQuestion:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table border v-loading="loading" :data="fastgptChatQuestionList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键id" align="center" prop="id" />
+      <el-table-column label="会话id" align="center" prop="sessionId" />
+      <el-table-column label="消息id" align="center" prop="msgId" />
+      <el-table-column label="外部ID" align="center" prop="extId" />
+      <el-table-column label="用户id" align="center" prop="userId" />
+      <el-table-column label="公司ID" align="center" prop="companyId" />
+      <el-table-column label="销售ID" align="center" prop="companyUserId" />
+      <el-table-column label="角色ID" align="center" prop="roleId" />
+      <el-table-column label="昵称" align="center" prop="nickName" />
+      <el-table-column label="用户类型 1微信用户 2小程序用户 3销售用户" align="center" prop="userType" />
+      <el-table-column label="客户内容" align="center" prop="userContent" />
+      <el-table-column label="销售回复内容" align="center" prop="companyUserContent" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['fastGpt:fastgptChatQuestion:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['fastGpt:fastgptChatQuestion:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改聊天问题收集对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="会话id" prop="sessionId">
+          <el-input v-model="form.sessionId" placeholder="请输入会话id" />
+        </el-form-item>
+        <el-form-item label="消息id" prop="msgId">
+          <el-input v-model="form.msgId" placeholder="请输入消息id" />
+        </el-form-item>
+        <el-form-item label="外部ID" prop="extId">
+          <el-input v-model="form.extId" placeholder="请输入外部ID" />
+        </el-form-item>
+        <el-form-item label="用户id" prop="userId">
+          <el-input v-model="form.userId" placeholder="请输入用户id" />
+        </el-form-item>
+        <el-form-item label="公司ID" prop="companyId">
+          <el-input v-model="form.companyId" placeholder="请输入公司ID" />
+        </el-form-item>
+        <el-form-item label="销售ID" prop="companyUserId">
+          <el-input v-model="form.companyUserId" placeholder="请输入销售ID" />
+        </el-form-item>
+        <el-form-item label="角色ID" prop="roleId">
+          <el-input v-model="form.roleId" placeholder="请输入角色ID" />
+        </el-form-item>
+        <el-form-item label="昵称" prop="nickName">
+          <el-input v-model="form.nickName" placeholder="请输入昵称" />
+        </el-form-item>
+        <el-form-item label="用户类型 1微信用户 2小程序用户 3销售用户" prop="userType">
+          <el-select v-model="form.userType" placeholder="请选择用户类型 1微信用户 2小程序用户 3销售用户">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="客户内容">
+          <editor v-model="form.userContent" :min-height="192"/>
+        </el-form-item>
+        <el-form-item label="销售回复内容">
+          <editor v-model="form.companyUserContent" :min-height="192"/>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listFastgptChatQuestion, getFastgptChatQuestion, delFastgptChatQuestion, addFastgptChatQuestion, updateFastgptChatQuestion, exportFastgptChatQuestion } from "@/api/fastGpt/fastgptChatQuestion";
+
+export default {
+  name: "fastGptChatQuestion",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 导出遮罩层
+      exportLoading: false,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 聊天问题收集表格数据
+      fastgptChatQuestionList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        sessionId: null,
+        msgId: null,
+        extId: null,
+        userId: null,
+        companyId: null,
+        companyUserId: null,
+        roleId: null,
+        nickName: null,
+        userType: null,
+        userContent: null,
+        companyUserContent: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询聊天问题收集列表 */
+    getList() {
+      this.loading = true;
+      listFastgptChatQuestion(this.queryParams).then(response => {
+        this.fastgptChatQuestionList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        sessionId: null,
+        msgId: null,
+        extId: null,
+        userId: null,
+        companyId: null,
+        companyUserId: null,
+        roleId: null,
+        nickName: null,
+        userType: null,
+        userContent: null,
+        companyUserContent: null,
+        createTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加聊天问题收集";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getFastgptChatQuestion(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改聊天问题收集";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateFastgptChatQuestion(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addFastgptChatQuestion(this.form).then(response => {
+              this.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$confirm('是否确认删除聊天问题收集编号为"' + ids + '"的数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return delFastgptChatQuestion(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有聊天问题收集数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(() => {
+          this.exportLoading = true;
+          return exportFastgptChatQuestion(queryParams);
+        }).then(response => {
+          this.download(response.msg);
+          this.exportLoading = false;
+        }).catch(() => {});
+    }
+  }
+};
+</script>

+ 220 - 0
src/views/fastGpt/fastGptChatQuestionStatistics/index.vue

@@ -0,0 +1,220 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="频次" prop="frequency">
+        <el-input
+          v-model="queryParams.frequency"
+          placeholder="请输入频次"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="是否解决" prop="isResolve">
+        <el-select v-model="queryParams.isResolve" placeholder="请选择" clearable size="small" style="width: 180px">
+          <el-option label="是" :value="1" />
+          <el-option label="否" :value="0" />
+        </el-select>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table border v-loading="loading" :data="fastGptChatQuestionStatisticsList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="ID" align="center" prop="id" width="80" />
+      <el-table-column label="所属类别" align="center" prop="questionCategory" />
+<!--      <el-table-column label="来源" align="center" prop="source" />-->
+      <el-table-column label="内容摘要" align="center" prop="contentSummary" />
+      <el-table-column label="频次" align="center" prop="frequency" width="90" />
+      <el-table-column label="是否解决" align="center" prop="isResolve" width="100">
+        <template slot-scope="scope">
+          <span>{{ scope.row.isResolve === 1 ? '是' : (scope.row.isResolve === 0 ? '否' : '-') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="创建时间" align="center" prop="createTime" width="170" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-document"
+            @click="handleDetail(scope.row)"
+          >详情</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['fastGpt:fastGptChatQuestionStatistics:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 详情弹窗(问题明细) -->
+    <el-dialog :title="detailTitle" :visible.sync="detailOpen" width="1100px" append-to-body>
+      <el-table border v-loading="detailLoading" :data="detailList">
+<!--        <el-table-column label="分类内容摘要" prop="user_content" min-width="160" />-->
+        <el-table-column label="所属公司" prop="companyName" min-width="140" />
+        <el-table-column label="所属销售" prop="companyUserNickName" min-width="120" />
+        <el-table-column label="客户昵称" prop="nickName" min-width="120" />
+        <el-table-column label="客户内容" prop="userContent" min-width="180" />
+        <el-table-column label="销售回复内容" prop="companyUserContent" min-width="180" />
+        <el-table-column label="创建时间" prop="createTime" width="170" />
+        <el-table-column label="操作" width="110" align="center">
+          <template slot-scope="scope">
+            <el-button size="mini" type="text" @click="handleSalesReply(scope.row)">销售回复</el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+      <pagination
+        v-show="detailTotal > 0"
+        :total="detailTotal"
+        :page.sync="detailQuery.pageNum"
+        :limit.sync="detailQuery.pageSize"
+        @pagination="getDetailList"
+      />
+      <div slot="footer" class="dialog-footer">
+        <el-button @click="detailOpen = false">关 闭</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listFastGptChatQuestionStatistics, delFastGptChatQuestionStatistics, listFastGptChatQuestionStatisticsDetail, saveFastGptChatQuestionStatisticsSalesReply } from "@/api/fastGpt/fastGptChatQuestionStatistics";
+
+export default {
+  name: "fastGptChatQuestionStatistics",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 高频聊天问题统计表格数据
+      fastGptChatQuestionStatisticsList: [],
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        frequency: null,
+        isResolve: null,
+      },
+
+      detailOpen: false,
+      detailTitle: "问题明细",
+      detailLoading: false,
+      detailTotal: 0,
+      detailQuery: {
+        questionStatisticsId: null,
+        pageNum: 1,
+        pageSize: 10
+      },
+      detailList: []
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询高频聊天问题统计列表 */
+    getList() {
+      this.loading = true;
+      listFastGptChatQuestionStatistics(this.queryParams).then(response => {
+        this.fastGptChatQuestionStatisticsList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$confirm('是否确认删除高频聊天问题统计编号为"' + ids + '"的数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return delFastGptChatQuestionStatistics(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        }).catch(() => {});
+    },
+
+    handleDetail(row) {
+      this.detailQuery.questionStatisticsId = row.id || null;
+      this.detailQuery.pageNum = 1;
+      this.detailQuery.pageSize = 10;
+      this.detailOpen = true;
+      this.detailTitle = `问题明细`;
+      this.getDetailList();
+    },
+    getDetailList() {
+      this.detailLoading = true;
+      listFastGptChatQuestionStatisticsDetail(this.detailQuery).then(res => {
+        this.detailList = res.rows || res.data || [];
+        this.detailTotal = res.total != null ? res.total : 0;
+      }).finally(() => {
+        this.detailLoading = false;
+      });
+    },
+    handleSalesReply(detailRow) {
+      this.$prompt('请输入销售回复内容', '销售回复', {
+        confirmButtonText: '保存',
+        cancelButtonText: '取消',
+        inputType: 'textarea',
+        inputValue: detailRow.companyUserContent || ''
+      }).then(({ value }) => {
+        return saveFastGptChatQuestionStatisticsSalesReply({
+          id: detailRow.id,
+          companyUserContent: value,
+          questionStatisticsId:detailRow.questionStatisticsId
+        });
+      }).then(() => {
+        this.msgSuccess("保存成功");
+        this.getDetailList();
+      }).catch(() => {});
+    }
+  }
+};
+</script>

+ 1 - 1
src/views/qw/user/index.vue

@@ -844,7 +844,7 @@ export default {
       if (val.appKey == null || val.appKey === '') {
         return this.$message.warning("没有授权码,无法登录企业微信,请授权");
       }
-      loginQwIpad({qwUserId: val.id}).then(res => {
+      loginQwIpad({qwUserId: val.id, isNewVersion:true}).then(res => {
         this.qwUserId = val.id;
         this.qwLogin.code = null;
         this.imageLoading = false;