Selaa lähdekoodia

style:租户管理、升级管理、智能体管理,表格占比高度优化

lihao16 2 kuukautta sitten
vanhempi
sitoutus
b13931ac4b
25 muutettua tiedostoa jossa 184 lisäystä ja 299 poistoa
  1. 4 4
      smsb-plus-ui/src/views/smsb/appointmentInfo/index.vue
  2. 11 11
      smsb-plus-ui/src/views/smsb/chatKey/index.vue
  3. 25 22
      smsb-plus-ui/src/views/smsb/datasets/product.vue
  4. 35 29
      smsb-plus-ui/src/views/smsb/datasets/question.vue
  5. 9 26
      smsb-plus-ui/src/views/smsb/datasetsPushRecord/product.vue
  6. 8 25
      smsb-plus-ui/src/views/smsb/datasetsPushRecord/question.vue
  7. 10 10
      smsb-plus-ui/src/views/smsb/deviceChatRecord/chatCount.vue
  8. 7 8
      smsb-plus-ui/src/views/smsb/deviceChatRecord/index.vue
  9. 4 21
      smsb-plus-ui/src/views/smsb/deviceChatScProduct/index.vue
  10. 7 29
      smsb-plus-ui/src/views/smsb/deviceGroup/index.vue
  11. 7 8
      smsb-plus-ui/src/views/smsb/difyDatasetsProduct/index.vue
  12. 6 6
      smsb-plus-ui/src/views/smsb/difyDatasetsQuestion/index.vue
  13. 2 2
      smsb-plus-ui/src/views/smsb/otaPackage/index.vue
  14. 2 2
      smsb-plus-ui/src/views/smsb/otaRecord/index.vue
  15. 4 21
      smsb-plus-ui/src/views/smsb/scCase/index.vue
  16. 6 22
      smsb-plus-ui/src/views/smsb/scReport/index.vue
  17. 4 4
      smsb-plus-ui/src/views/smsb/scScanCode/index.vue
  18. 6 22
      smsb-plus-ui/src/views/smsb/scScene/index.vue
  19. 2 2
      smsb-plus-ui/src/views/smsb/versionPackage/index.vue
  20. 1 1
      smsb-plus-ui/src/views/smsb/versionTree/index-tree.vue
  21. 4 4
      smsb-plus-ui/src/views/smsb/visitorsFlowRate/index.vue
  22. 10 10
      smsb-plus-ui/src/views/smsb/visitorsFlowRate/rateCount.vue
  23. 8 8
      smsb-plus-ui/src/views/smsb/xfApi/index.vue
  24. 1 1
      smsb-plus-ui/src/views/system/tenant/index.vue
  25. 1 1
      smsb-plus-ui/src/views/system/tenantPackage/index.vue

+ 4 - 4
smsb-plus-ui/src/views/smsb/appointmentInfo/index.vue

@@ -19,7 +19,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <!--      <template #header>
               <el-row :gutter="10" class="mb8">
                 <el-col :span="1.5">
@@ -59,7 +59,7 @@
           <el-table-column label="到访时间" align="left" prop="arrivedTime" width="160"/>
 
           <el-table-column label="备注" align="center" prop="remark"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="80">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
             <template #default="scope">
               <!--              <el-tooltip content="修改" placement="top">
                               <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
@@ -67,7 +67,7 @@
                             </el-tooltip>-->
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['smsb-digital-promotion:appointmentInfo:remove']"></el-button>
+                           v-hasPermi="['smsb-digital-promotion:appointmentInfo:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -172,7 +172,7 @@ const data = reactive<PageData<AppointmentInfoForm, AppointmentInfoQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     enterprise: undefined,
     region: undefined,
     industry: undefined,

+ 11 - 11
smsb-plus-ui/src/views/smsb/chatKey/index.vue

@@ -25,33 +25,33 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="deviceChatKeyList" @selection-change="handleSelectionChange">
 <!--          <el-table-column label="ID" align="left" prop="id" v-if="true" width="170" :show-overflow-tooltip="true"/>-->
           <el-table-column label="" align="left" prop="" width="8"/>
-          <el-table-column label="名称" align="left" prop="apiName" width="130"/>
+          <el-table-column label="名称" align="left" prop="apiName" width="200"/>
           <el-table-column label="KEY" align="left" prop="apiKey" width="250"/>
-          <el-table-column label="URL" align="left" prop="apiUrl" width="300"/>
-          <el-table-column label="关联设备" align="left" prop="deviceName" :show-overflow-tooltip="true" width="130"/>
+          <el-table-column label="URL" align="left" prop="apiUrl" width="200" :show-overflow-tooltip="true"/>
+          <el-table-column label="关联设备" align="left" prop="deviceName" :show-overflow-tooltip="true" width="230"/>
           <el-table-column label="创建时间" align="left" prop="createTime" width="160"/>
           <el-table-column label="创建人" align="left" prop="createUser" width="100" />
-          <el-table-column label="更新时间" align="left" prop="updateTime" width="160"/>
+<!--          <el-table-column label="更新时间" align="left" prop="updateTime" width="160"/>-->
           <el-table-column label="更新人" align="left" prop="updateUser" width="100"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true" />
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240">
             <template #default="scope">
               <el-tooltip content="分配设备" placement="top">
                 <el-button link type="primary" icon="Switch" @click="handleRelDevice(scope.row)"
-                           v-hasPermi="['device:chatKey:edit']"></el-button>
+                           v-hasPermi="['device:chatKey:edit']">分配设备</el-button>
               </el-tooltip>
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['device:chatKey:edit']"></el-button>
+                           v-hasPermi="['device:chatKey:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:chatKey:remove']"></el-button>
+                           v-hasPermi="['device:chatKey:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -166,7 +166,7 @@ const data = reactive<PageData<DeviceChatKeyForm, DeviceChatKeyQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     apiName: undefined,
     apiKey: undefined,
     deviceName: undefined,
@@ -175,7 +175,7 @@ const data = reactive<PageData<DeviceChatKeyForm, DeviceChatKeyQuery>>({
   },
   rules: {
     apiName: [
-      { required: true, message: "22222222222222222222222222不能为空", trigger: "blur" }
+      { required: true, message: "名称不能为空", trigger: "blur" }
     ],
     apiKey: [
       { required: true, message: "key不能为空", trigger: "blur" }

+ 25 - 22
smsb-plus-ui/src/views/smsb/datasets/product.vue

@@ -4,7 +4,7 @@
                 :leave-active-class="proxy?.animate.searchAnimate.leave">
       <div v-show="showSearch" class="mb-[10px]">
         <el-card shadow="hover" :style="{ marginTop: '10px', height: '60px' }">
-          <el-form ref="queryFormRef" :model="queryParams" :inline="true">
+          <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="60">
             <el-form-item label="产品库" prop="name">
               <el-input v-model="queryParams.name" placeholder="请输入产品库名称" clearable @keyup.enter="handleQuery"/>
             </el-form-item>
@@ -14,9 +14,9 @@
               <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['device:datasets:add']">
                 新增
               </el-button>
-              <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()"
+<!--              <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()"
                          v-hasPermi="['device:datasets:remove']">删除
-              </el-button>
+              </el-button>-->
 <!--              <el-button type="warning" plain icon="Refresh" @click="handleSync()"
                          v-hasPermi="['device:datasets:add']">同步
               </el-button>-->
@@ -26,11 +26,11 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="difyDatasetsList" @selection-change="handleSelectionChange">
-          <el-table-column type="selection" width="55" align="center"/>
-<!--          <el-table-column label="ID" align="left" prop="id" v-if="true" width="175"/>-->
+<!--          <el-table-column type="selection" width="55" align="center"/>-->
+          <el-table-column label="" align="left" prop="" v-if="true" width="10"/>
           <el-table-column label="产品库ID" align="left" prop="difyId" width="300"/>
           <el-table-column label="产品库" align="left" prop="name" width="160" :show-overflow-tooltip="true"/>
           <el-table-column label="索引模式" align="center" prop="indexingTechnique" width="80">
@@ -38,20 +38,20 @@
               <span>{{ scope.row.indexingTechnique === 'high_quality' ? '高质量' : '经济' }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="权限" align="center" prop="permission" width="80"/>
+<!--          <el-table-column label="权限" align="center" prop="permission" width="80"/>-->
           <el-table-column label="提供类型" align="center" prop="provider" width="80">
             <template #default="scope">
               <span>{{ scope.row.provider === 'vendor' ? '上传文件' : ' 外部产品库' }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="数据源" align="center" prop="dataSourceType" width="120"/>
+<!--          <el-table-column label="数据源" align="center" prop="dataSourceType" width="120"/>-->
           <el-table-column label="文字数量" align="center" prop="wordCount" width="80"/>
           <el-table-column label="文档数量" align="center" prop="documentCount" width="80"/>
           <el-table-column label="APP数量" align="center" prop="appCount" width="80"/>
           <el-table-column label="创建时间" align="left" prop="createTime" width="160"/>
           <el-table-column label="更新时间" align="left" prop="updateTime" width="160"/>
           <el-table-column label="备注" align="left" prop="description" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="280">
             <template #default="scope">
               <!--              <el-tooltip content="文件列表" placement="top">
                               <el-button link type="primary" icon="Document" @click="handleToFileList(scope.row)"
@@ -59,20 +59,20 @@
                             </el-tooltip>-->
               <el-tooltip content="下发" placement="top">
                 <el-button link type="primary" icon="Position" @click="handlePush(scope.row)"
-                           v-hasPermi="['device:datasets:edit']"></el-button>
+                           v-hasPermi="['device:datasets:edit']">下发</el-button>
               </el-tooltip>
               <el-tooltip content="产品条目" placement="top">
                 <el-button link type="primary" icon="View" @click="handleEntryList(scope.row)"
-                           v-hasPermi="['device:datasets:query']"></el-button>
+                           v-hasPermi="['device:datasets:query']">条目</el-button>
               </el-tooltip>
               <el-tooltip content="刷新" placement="top">
                 <el-button link type="primary" icon="Refresh" @click="handleSync()"
-                           v-hasPermi="['device:datasets:add']">
+                           v-hasPermi="['device:datasets:add']">刷新
                 </el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:datasets:remove']"></el-button>
+                           v-hasPermi="['device:datasets:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -101,7 +101,7 @@
     </el-dialog>
 
     <!-- 产品条目下发 -->
-    <el-dialog :title="pushDialog.title" v-model="pushDialog.visible" width="900px" append-to-body>
+    <el-dialog :title="pushDialog.title" v-model="pushDialog.visible" width="1200px" append-to-body>
       <div>
         <el-transfer
           v-model="selectedEntry"
@@ -112,6 +112,7 @@
           :props="{ key: 'key', label: 'label' }"
           :titles="['可选条目', '已选条目']"
           :button-texts="['移除', '添加']"
+          style="height: 70vh"
         />
       </div>
       <template #footer>
@@ -122,9 +123,9 @@
       </template>
     </el-dialog>
     <!-- 产品条目列表 -->
-    <el-dialog :title="viewDialog.title" v-model="viewDialog.visible" width="1200px" append-to-body>
-      <div class="table-content">
-        <el-table v-loading="entryLoading" :data="productList">
+    <el-dialog :title="viewDialog.title" v-model="viewDialog.visible" style="height: 95vh" width="1300px" append-to-body>
+      <div class="table-content" style="height: 75vh">
+        <el-table v-loading="entryLoading" border :data="productList">
           <el-table-column label="产品名称" align="left" prop="name" width="150" :show-overflow-tooltip="true"/>
           <el-table-column label="产品简介" align="left" prop="note" :show-overflow-tooltip="true"/>
           <el-table-column label="产品图片" align="left" width="100">
@@ -209,7 +210,7 @@ const data = reactive<PageData<DifyDatasetsForm, DifyDatasetsQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     name: undefined,
     tag: 2,
     params: {}
@@ -373,10 +374,12 @@ onMounted(() => {
   getList();
 });
 </script>
-<style lang="scss" scoped>
-/* 自定义穿梭框样式 */
+<style scoped lang="scss">
 :deep(.el-transfer-panel) {
-  width: 300px !important;
+  width: 460px;
+}
+:deep(.el-transfer-panel__body) {
+  width:100%;
+  height: 65vh;
 }
-
 </style>

+ 35 - 29
smsb-plus-ui/src/views/smsb/datasets/question.vue

@@ -4,9 +4,9 @@
                 :leave-active-class="proxy?.animate.searchAnimate.leave">
       <div v-show="showSearch" class="mb-[10px]">
         <el-card shadow="hover" :style="{ marginTop: '10px', height: '60px' }">
-          <el-form ref="queryFormRef" :model="queryParams" :inline="true">
-            <el-form-item label="问答库" prop="name">
-              <el-input v-model="queryParams.name" placeholder="请输入问答库名称" clearable @keyup.enter="handleQuery"/>
+          <el-form ref="queryFormRef" :model="queryParams" :inline="true" label-width="60">
+            <el-form-item label="知识库" prop="name">
+              <el-input v-model="queryParams.name" placeholder="请输入知识库名称" clearable @keyup.enter="handleQuery"/>
             </el-form-item>
             <el-form-item>
               <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
@@ -26,49 +26,50 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="difyDatasetsList" @selection-change="handleSelectionChange">
-          <el-table-column type="selection" width="55" align="center"/>
+<!--          <el-table-column type="selection" width="55" align="center"/>-->
           <!--          <el-table-column label="ID" align="left" prop="id" v-if="true" width="175"/>-->
-          <el-table-column label="问答库ID" align="left" prop="difyId" width="300"/>
-          <el-table-column label="问答库" align="left" prop="name" width="150" :show-overflow-tooltip="true"/>
+          <el-table-column label="" align="left" prop="" width="10"/>
+          <el-table-column label="ID" align="left" prop="difyId" width="300"/>
+          <el-table-column label="知识库" align="left" prop="name" width="200" :show-overflow-tooltip="true"/>
           <el-table-column label="索引模式" align="center" prop="indexingTechnique" width="80">
             <template #default="scope">
               <span>{{ scope.row.indexingTechnique === 'high_quality' ? '高质量' : '经济' }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="权限" align="center" prop="permission" width="80"/>
+<!--          <el-table-column label="权限" align="center" prop="permission" width="80"/>-->
           <el-table-column label="提供类型" align="center" prop="provider" width="80">
             <template #default="scope">
-              <span>{{ scope.row.provider === 'vendor' ? '上传文件' : ' 外部问答库' }}</span>
+              <span>{{ scope.row.provider === 'vendor' ? '上传文件' : ' 外部知识库' }}</span>
             </template>
           </el-table-column>
-          <el-table-column label="数据源" align="center" prop="dataSourceType" width="100"/>
+<!--          <el-table-column label="数据源" align="center" prop="dataSourceType" width="100"/>-->
           <el-table-column label="文字数量" align="center" prop="wordCount" width="80"/>
           <el-table-column label="文档数量" align="center" prop="documentCount" width="80"/>
           <el-table-column label="APP数量" align="center" prop="appCount" width="80"/>
           <el-table-column label="创建时间" align="left" prop="createTime" width="160"/>
           <el-table-column label="更新时间" align="left" prop="updateTime" width="160"/>
           <el-table-column label="备注" align="left" prop="description" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="280">
             <template #default="scope">
               <el-tooltip content="下发" placement="top">
                 <el-button link type="primary" icon="Position" @click="handlePush(scope.row)"
-                           v-hasPermi="['device:datasets:edit']"></el-button>
+                           v-hasPermi="['device:datasets:edit']">下发</el-button>
               </el-tooltip>
               <el-tooltip content="问答条目" placement="top">
                 <el-button link type="primary" icon="View" @click="handleEntryList(scope.row)"
-                           v-hasPermi="['device:datasets:query']"></el-button>
+                           v-hasPermi="['device:datasets:query']">条目</el-button>
               </el-tooltip>
               <el-tooltip content="刷新" placement="top">
                 <el-button link type="primary" icon="Refresh" @click="handleSync()"
-                           v-hasPermi="['device:datasets:add']">
+                           v-hasPermi="['device:datasets:add']">刷新
                 </el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:datasets:remove']"></el-button>
+                           v-hasPermi="['device:datasets:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -78,11 +79,11 @@
       <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
                   v-model:limit="queryParams.pageSize" @pagination="getList"/>
     </el-card>
-    <!-- 添加或修改问答库管理对话框 -->
+    <!-- 添加或修改知识库管理对话框 -->
     <el-dialog :title="dialog.title" v-model="dialog.visible" width="700px" append-to-body>
       <el-form ref="difyDatasetsFormRef" :model="form" :rules="rules" label-width="50px">
         <el-form-item label="名称" prop="name">
-          <el-input v-model="form.name" placeholder="请输入问答库名称"/>
+          <el-input v-model="form.name" placeholder="请输入知识库名称"/>
         </el-form-item>
         <el-form-item label="描述" prop="description">
           <el-input type="textarea" :rows="5" v-model="form.description" placeholder="请输入描述"/>
@@ -108,6 +109,7 @@
           :props="{ key: 'key', label: 'label' }"
           :titles="['可选条目', '已选条目']"
           :button-texts="['移除', '添加']"
+          style="height: 70vh"
         />
         <!--          style="height: 600px"-->
       </div>
@@ -120,9 +122,9 @@
     </el-dialog>
 
     <!-- 知识条目列表 -->
-    <el-dialog :title="viewDialog.title" v-model="viewDialog.visible" width="1200px" append-to-body>
-      <div class="table-content">
-        <el-table v-loading="entryLoading" :data="questionList">
+    <el-dialog :title="viewDialog.title" v-model="viewDialog.visible" style="height: 95vh" width="1300px" append-to-body>
+      <div class="table-content" style="height: 75vh">
+        <el-table v-loading="entryLoading" border :data="questionList">
           <el-table-column label="问题" align="left" prop="question" width="250" :show-overflow-tooltip="true"/>
           <el-table-column label="回答" align="left" prop="answer" :show-overflow-tooltip="true"/>
           <el-table-column label="创建人" align="left" prop="createUser" width="100" :show-overflow-tooltip="true"/>
@@ -207,13 +209,13 @@ const data = reactive<PageData<DifyDatasetsForm, DifyDatasetsQuery>>({
     params: {}
   },
   rules: {
-    name: [{required: true, message: '问答库名称不能为空', trigger: 'blur'}],
+    name: [{required: true, message: '知识库名称不能为空', trigger: 'blur'}],
   }
 });
 
 const {queryParams, form, rules} = toRefs(data);
 
-/** 查询问答库管理列表 */
+/** 查询知识库管理列表 */
 const getList = async () => {
   loading.value = true;
   const res = await listDifyDatasets(queryParams.value);
@@ -270,11 +272,11 @@ const handleSelectionChange = (selection: DifyDatasetsVO[]) => {
 const handleAdd = () => {
   reset();
   dialog.visible = true;
-  dialog.title = "添加问答库";
+  dialog.title = "添加知识库";
 }
 
 const handleSync = async () => {
-  await proxy?.$modal.confirm('是否确认同步问答库数据?').finally(() => loading.value = false);
+  await proxy?.$modal.confirm('是否确认同步知识库数据?').finally(() => loading.value = false);
   loading.value = true;
   await syncDifyDatasets();
   proxy?.$modal.msgSuccess("同步成功");
@@ -290,7 +292,7 @@ const handleUpdate = async (row?: DifyDatasetsVO) => {
   const res = await getDifyDatasets(_id);
   Object.assign(form.value, res.data);
   dialog.visible = true;
-  dialog.title = "修改问答库";
+  dialog.title = "修改知识库";
 }
 
 /** 知识库下发 */
@@ -334,7 +336,7 @@ const submitEntry = async () => {
 
 /** 跳转至文件列表页面  */
 const handleToFileList = (row?: DifyDatasetsVO) => {
-  proxy.$router.push('/device/datasetsFile?datasetsId=' + row.difyId);
+  proxy.$router.push('/agent/datasetsFile?datasetsId=' + row.difyId);
 }
 
 /** 提交按钮 */
@@ -375,8 +377,12 @@ onMounted(() => {
 });
 </script>
 
-<style scoped>
-.edit_dev >>> .el-transfer-panel {
-  width:40%;
+<style scoped lang="scss">
+:deep(.el-transfer-panel) {
+  width: 460px;
+}
+:deep(.el-transfer-panel__body) {
+  width:100%;
+  height: 65vh;
 }
 </style>

+ 9 - 26
smsb-plus-ui/src/views/smsb/datasetsPushRecord/product.vue

@@ -20,24 +20,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>
-              <el-row :gutter="10" class="mb8">
-                <el-col :span="1.5">
-                  <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['device:datasetsPushRecord:add']">新增</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['device:datasetsPushRecord:edit']">修改</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['device:datasetsPushRecord:remove']">删除</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['device:datasetsPushRecord:export']">导出</el-button>
-                </el-col>
-                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
-              </el-row>
-            </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="datasetsPushRecordList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
@@ -47,17 +30,17 @@
           <el-table-column label="条目数量" align="center" prop="entryNum" width="120"/>
           <el-table-column label="创建时间" align="left" prop="createTime" width="180">
           </el-table-column>
-          <el-table-column label="创建人" align="center" prop="createUser" width="120"/>
+          <el-table-column label="创建人" align="left" prop="createUser" width="120"/>
           <el-table-column label="备注" align="left"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
             <template #default="scope">
               <el-tooltip content="产品条目" placement="top">
                 <el-button link type="primary" icon="View" @click="handleEntryList(scope.row)"
-                           v-hasPermi="['device:datasets:query']"></el-button>
+                           v-hasPermi="['device:datasets:query']">产品条目</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:datasetsPushRecord:remove']"></el-button>
+                           v-hasPermi="['device:datasetsPushRecord:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -68,9 +51,9 @@
                   v-model:limit="queryParams.pageSize" @pagination="getList"/>
     </el-card>
     <!-- 下发详情 -->
-    <el-dialog :title="dialog.title" v-model="dialog.visible" width="1200px" append-to-body>
-      <div class="table-content">
-        <el-table v-loading="entryLoading" :data="productList">
+    <el-dialog :title="dialog.title" v-model="dialog.visible" style="height: 95vh" width="1300px" append-to-body>
+      <div class="table-content" style="height: 75vh">
+        <el-table v-loading="entryLoading" border :data="productList">
           <el-table-column label="产品名称" align="left" prop="name" width="250" :show-overflow-tooltip="true"/>
           <el-table-column label="产品简介" align="left" prop="note" :show-overflow-tooltip="true"/>
           <el-table-column label="产品图片" align="left" width="100">
@@ -139,7 +122,7 @@ const data = reactive<PageData<DatasetsPushRecordForm, DatasetsPushRecordQuery>>
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     datasetsId: undefined,
     datasetsType: 2,
     datasetsName: undefined,

+ 8 - 25
smsb-plus-ui/src/views/smsb/datasetsPushRecord/question.vue

@@ -20,24 +20,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>
-              <el-row :gutter="10" class="mb8">
-                <el-col :span="1.5">
-                  <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['device:datasetsPushRecord:add']">新增</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['device:datasetsPushRecord:edit']">修改</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['device:datasetsPushRecord:remove']">删除</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['device:datasetsPushRecord:export']">导出</el-button>
-                </el-col>
-                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
-              </el-row>
-            </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="datasetsPushRecordList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
@@ -46,17 +29,17 @@
           <el-table-column label="知识库名称" align="left" prop="datasetsName" width="200"/>
           <el-table-column label="条目数量" align="center" prop="entryNum" width="120"/>
           <el-table-column label="创建时间" align="left" prop="createTime" width="200"/>
-          <el-table-column label="创建人" align="center" prop="createUser" width="120"/>
+          <el-table-column label="创建人" align="left" prop="createUser" width="120"/>
           <el-table-column label="备注" align="center" />
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
             <template #default="scope">
               <el-tooltip content="知识条目" placement="top">
                 <el-button link type="primary" icon="View" @click="handleEntryList(scope.row)"
-                           v-hasPermi="['device:datasets:query']"></el-button>
+                           v-hasPermi="['device:datasets:query']">知识条目</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:datasetsPushRecord:remove']"></el-button>
+                           v-hasPermi="['device:datasetsPushRecord:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -67,9 +50,9 @@
                   v-model:limit="queryParams.pageSize" @pagination="getList"/>
     </el-card>
     <!-- 下发详情 -->
-    <el-dialog :title="dialog.title" v-model="dialog.visible" width="1200px" append-to-body>
-      <div class="table-content">
-        <el-table v-loading="entryLoading" :data="questionList">
+    <el-dialog :title="dialog.title" v-model="dialog.visible" style="height: 95vh" width="1300px" append-to-body>
+      <div class="table-content" style="height: 75vh">
+        <el-table v-loading="entryLoading" border :data="questionList">
           <el-table-column label="问题" align="left" prop="question" width="250" :show-overflow-tooltip="true"/>
           <el-table-column label="回答" align="left" prop="answer" :show-overflow-tooltip="true"/>
           <el-table-column label="创建人" align="left" prop="createUser" width="100" :show-overflow-tooltip="true"/>

+ 10 - 10
smsb-plus-ui/src/views/smsb/deviceChatRecord/chatCount.vue

@@ -18,14 +18,14 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="chatRecordList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
           <el-table-column label="设备ID" align="left" prop="deviceId" width="180"/>
-          <el-table-column label="设备名称" align="left" prop="deviceName" width="250"/>
-          <el-table-column label="设备SN" align="left" prop="deviceSn" width="250"/>
-          <el-table-column label="设备MAC" align="left" prop="deviceMac" width="180"/>
+          <el-table-column label="设备名称" align="left" prop="deviceName" width="250" :show-overflow-tooltip="true"/>
+          <el-table-column label="设备SN" align="left" prop="deviceSn" width="220"/>
+          <el-table-column label="设备MAC" align="left" prop="deviceMac" width="160"/>
           <el-table-column label="总对话" align="center" prop="totalNum" width="100"/>
           <el-table-column label="今日" align="center" prop="todayNum" width="80"/>
           <el-table-column label="昨日" align="center" prop="yesterdayNum" width="80"/>
@@ -33,19 +33,19 @@
           <el-table-column label="本周" align="center" prop="weekNum" width="80"/>
           <el-table-column label="本月" align="center" prop="monthNum" width="80"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="center" width="120" class-name="small-padding fixed-width">
+          <el-table-column label="操作" align="center" width="210" class-name="small-padding fixed-width">
             <template #default="scope">
               <el-tooltip content="30天问答记录" placement="top">
                 <el-button link type="primary" icon="View" @click="handleMonthInfo(scope.row)"
-                           v-hasPermi="['device:chatRecord:query']"></el-button>
+                           v-hasPermi="['device:chatRecord:query']">统计</el-button>
               </el-tooltip>
               <el-tooltip content="问答列表" placement="top">
                 <el-button link type="primary" icon="Position" @click="handleInfo(scope.row)"
-                           v-hasPermi="['device:chatRecord:query']"></el-button>
+                           v-hasPermi="['device:chatRecord:query']">列表</el-button>
               </el-tooltip>
               <el-tooltip content="修改备注" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['device:chatRecord:edit']"></el-button>
+                           v-hasPermi="['device:chatRecord:edit']">修改</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -133,7 +133,7 @@ const data = reactive<PageData<ChatRecordForm, ChatRecordQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     difyId: undefined,
     name: undefined,
     deviceId: undefined,
@@ -240,7 +240,7 @@ const handleMonthInfo = async (row?: ChatRecordVO) => {
 const handleInfo = async (row?: ChatRecordVO) => {
   const deviceName = row.deviceName;
   // 跳转页面 /source/push/review?id=1898991996092481537&type=approval&taskId=1898992031169445891
-  proxy.$router.push('/device/QA/chatRecord?deviceName=' + deviceName);
+  proxy.$router.push('/agent/QA/chatRecord?deviceName=' + deviceName);
 }
 
 

+ 7 - 8
smsb-plus-ui/src/views/smsb/deviceChatRecord/index.vue

@@ -31,7 +31,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="chatRecordList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
@@ -41,15 +41,15 @@
           <el-table-column label="设备名称" align="left" prop="deviceName" width="250"/>
           <el-table-column label="对话时间" align="left" prop="createTime" width="180"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width">
+          <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
             <template #default="scope">
               <el-tooltip content="详情" placement="top">
                 <el-button link type="primary" icon="View" @click="handleInfo(scope.row)"
-                           v-hasPermi="['device:chatRecord:query']"></el-button>
+                           v-hasPermi="['device:chatRecord:query']">详情</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:chatRecord:remove']"></el-button>
+                           v-hasPermi="['device:chatRecord:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -61,9 +61,8 @@
     </el-card>
     <!-- 添加或修改问答记录对话框 -->
     <el-dialog :title="dialog.title" v-model="dialog.visible" width="1500px" append-to-body>
-      <div class="table-content">
-        <el-table v-loading="infoLoading" :data="chatDetailList" >
-          <el-table-column label="" align="left" prop="" width="10"/>
+      <div class="table-content" style="height: 55vh">
+        <el-table v-loading="infoLoading" border :data="chatDetailList" >
           <el-table-column label="问题" align="left" prop="query" width="400"/>
           <el-table-column label="回答" align="left" prop="answer" />
           <el-table-column label="对话时间" align="left" prop="createTime" width="160"/>
@@ -124,7 +123,7 @@ const data = reactive<PageData<ChatRecordForm, ChatRecordQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     difyId: undefined,
     name: undefined,
     deviceId: undefined,

+ 4 - 21
smsb-plus-ui/src/views/smsb/deviceChatScProduct/index.vue

@@ -21,24 +21,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>-->
-      <!--        <el-row :gutter="10" class="mb8">-->
-      <!--          <el-col :span="1.5">-->
-      <!--            <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['digital:deviceChatScProduct:add']">新增</el-button>-->
-      <!--          </el-col>-->
-      <!--          <el-col :span="1.5">-->
-      <!--            <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['digital:deviceChatScProduct:edit']">修改</el-button>-->
-      <!--          </el-col>-->
-      <!--          <el-col :span="1.5">-->
-      <!--            <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['digital:deviceChatScProduct:remove']">删除</el-button>-->
-      <!--          </el-col>-->
-      <!--          <el-col :span="1.5">-->
-      <!--            <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['digital:deviceChatScProduct:export']">导出</el-button>-->
-      <!--          </el-col>-->
-      <!--          <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>-->
-      <!--        </el-row>-->
-      <!--      </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
 
       <div class="table-content">
         <el-table v-loading="loading" :data="deviceChatScProductList" @selection-change="handleSelectionChange">
@@ -53,15 +36,15 @@
           <el-table-column label="预约企业" align="left" prop="enterprise" width="250" :show-overflow-tooltip="true"/>
           <el-table-column label="简介" align="left" prop="introduction" :show-overflow-tooltip="true"/>
           <el-table-column label="创建时间" align="center" prop="createTime" width="180"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['digital:deviceChatScProduct:edit']"></el-button>
+                           v-hasPermi="['digital:deviceChatScProduct:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['digital:deviceChatScProduct:remove']"></el-button>
+                           v-hasPermi="['digital:deviceChatScProduct:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>

+ 7 - 29
smsb-plus-ui/src/views/smsb/deviceGroup/index.vue

@@ -20,30 +20,8 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>
-              <el-row :gutter="10" class="mb8">
-                <el-col :span="1.5">
-
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()"
-                             v-hasPermi="['digital:deviceGroup:edit']">修改
-                  </el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()"
-                             v-hasPermi="['digital:deviceGroup:remove']">删除
-                  </el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="warning" plain icon="Download" @click="handleExport"
-                             v-hasPermi="['digital:deviceGroup:export']">导出
-                  </el-button>
-                </el-col>
-                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
-              </el-row>
-            </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
+
       <div class="table-content">
         <el-table v-loading="loading" :data="deviceGroupList" @selection-change="handleSelectionChange">
           <!--          <el-table-column type="selection" width="55" align="center"/>-->
@@ -52,19 +30,19 @@
           <el-table-column label="设备组名称" align="left" prop="name" width="250"/>
           <el-table-column label="设备组容量" align="center" prop="capacity" width="250"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="220">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['digital:deviceGroup:edit']"></el-button>
+                           v-hasPermi="['digital:deviceGroup:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="详情" placement="top">
                 <el-button link type="primary" icon="View" @click="handleDevicesInfo(scope.row)"
-                           v-hasPermi="['digital:deviceGroupRel:query']"></el-button>
+                           v-hasPermi="['digital:deviceGroupRel:query']">详情</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['digital:deviceGroup:remove']"></el-button>
+                           v-hasPermi="['digital:deviceGroup:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -274,7 +252,7 @@ const data = reactive<PageData<DeviceGroupForm, DeviceGroupQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     name: undefined,
     capacity: undefined,
     params: {}

+ 7 - 8
smsb-plus-ui/src/views/smsb/difyDatasetsProduct/index.vue

@@ -38,7 +38,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="difyDatasetsProductList" @selection-change="handleSelectionChange">
           <!--        <el-table-column type="selection" width="55" align="left"/>-->
@@ -63,9 +63,8 @@
             </template>
           </el-table-column>
           <el-table-column label="关键词" align="left" prop="keyword" width="150" :show-overflow-tooltip="true"/>
-          <el-table-column label="产品价格" align="center" prop="price" width="100"/>
-
-          <el-table-column label="排序" align="center" prop="sort" width="100"/>
+          <el-table-column label="产品价格" align="center" prop="price" width="80"/>
+          <el-table-column label="排序" align="center" prop="sort" width="80"/>
           <el-table-column label="产品图片" align="center" width="100">
             <!--          &lt;!&ndash; 使用作用域插槽获取当前行数据 &ndash;&gt;-->
             <template #default="scope">
@@ -73,18 +72,18 @@
               <image-preview :src="scope.row.imgUrl" style="width: 40px; height: 40px; cursor: pointer"/>
             </template>
           </el-table-column>
-          <el-table-column label="产品视频" align="left" prop="videoUrl" width="150" :show-overflow-tooltip="true"/>
+<!--          <el-table-column label="产品视频" align="left" prop="videoUrl" width="150" :show-overflow-tooltip="true"/>-->
           <el-table-column label="创建人" align="left" prop="createUser" width="120" :show-overflow-tooltip="true"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['system:difyDatasetsProduct:edit']"></el-button>
+                           v-hasPermi="['system:difyDatasetsProduct:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['system:difyDatasetsProduct:remove']"></el-button>
+                           v-hasPermi="['system:difyDatasetsProduct:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>

+ 6 - 6
smsb-plus-ui/src/views/smsb/difyDatasetsQuestion/index.vue

@@ -47,7 +47,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="difyDatasetsQuestionList" @selection-change="handleSelectionChange">
           <!--        <el-table-column type="selection" width="55" align="left"/>-->
@@ -85,19 +85,19 @@
             </template>
           </el-table-column>
           <el-table-column label="创建时间" align="left" prop="createTime" width="160"/>
-          <el-table-column label="创建人" align="left" prop="createUser" width="120" :show-overflow-tooltip="true"/>
+          <el-table-column label="创建人" align="left" prop="createUser" width="100" :show-overflow-tooltip="true"/>
           <el-table-column label="更新时间" align="left" prop="updateTime" width="160"/>
-          <el-table-column label="更新人" align="left" prop="updateBy" width="120" :show-overflow-tooltip="true"/>
+<!--          <el-table-column label="更新人" align="left" prop="updateBy" width="120" :show-overflow-tooltip="true"/>-->
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="left" width="120" class-name="small-padding fixed-width">
+          <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['device:difyDatasetsQuestion:edit']"></el-button>
+                           v-hasPermi="['device:difyDatasetsQuestion:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:difyDatasetsQuestion:remove']"></el-button>
+                           v-hasPermi="['device:difyDatasetsQuestion:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>

+ 2 - 2
smsb-plus-ui/src/views/smsb/otaPackage/index.vue

@@ -35,7 +35,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="otaPackageList" @selection-change="handleSelectionChange">
           <el-table-column type="selection" width="55" align="center" />
@@ -133,7 +133,7 @@ const data = reactive<PageData<OtaPackageForm, OtaPackageQuery>>({
   form: { ...initFormData },
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     versionName: undefined,
     versionCode: undefined,
     createUser: undefined,

+ 2 - 2
smsb-plus-ui/src/views/smsb/otaRecord/index.vue

@@ -34,7 +34,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="otaRecordList" @selection-change="handleSelectionChange">
           <el-table-column type="selection" width="55" align="center" />
@@ -168,7 +168,7 @@ const data = reactive<PageData<OtaRecordForm, OtaRecordQuery>>({
   form: { ...initFormData },
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     otaName: undefined,
     fileId: undefined,
     fileName: undefined,

+ 4 - 21
smsb-plus-ui/src/views/smsb/scCase/index.vue

@@ -20,24 +20,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>
-              <el-row :gutter="10" class="mb8">
-                <el-col :span="1.5">
-                  <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['digital:chatScCase:add']">新增</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['digital:chatScCase:edit']">修改</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['digital:chatScCase:remove']">删除</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['digital:chatScCase:export']">导出</el-button>
-                </el-col>
-                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
-              </el-row>
-            </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="chatScCaseList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop=""  width="10"/>
@@ -55,15 +38,15 @@
           <el-table-column label="简介" align="left" prop="introduction" :show-overflow-tooltip="true"/>
           <el-table-column label="痛点" align="left" prop="painPoint" :show-overflow-tooltip="true"/>
           <el-table-column label="创建时间" align="left" prop="createTime" width="160" />
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['digital:chatScCase:edit']"></el-button>
+                           v-hasPermi="['digital:chatScCase:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['digital:chatScCase:remove']"></el-button>
+                           v-hasPermi="['digital:chatScCase:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>

+ 6 - 22
smsb-plus-ui/src/views/smsb/scReport/index.vue

@@ -16,24 +16,8 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>
-              <el-row :gutter="10" class="mb8">
-                <el-col :span="1.5">
-                  <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['digital:deviceChatScReport:add']">新增</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['digital:deviceChatScReport:edit']">修改</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['digital:deviceChatScReport:remove']">删除</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['digital:deviceChatScReport:export']">导出</el-button>
-                </el-col>
-                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
-              </el-row>
-            </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
+
       <div class="table-content">
         <el-table v-loading="loading" :data="deviceChatScReportList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop=""  width="10"/>
@@ -42,15 +26,15 @@
           <el-table-column label="预约ID" align="left" prop="appointmentId" width="175"/>
           <el-table-column label="预约企业" align="left" prop="enterprise" width="250" :show-overflow-tooltip="true"/>
           <el-table-column label="创建时间" align="center" prop="createTime" width="180" />
-        <el-table-column label="操作" align="center" width="120" class-name="small-padding fixed-width">
+        <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width">
           <template #default="scope">
             <el-tooltip content="修改" placement="top">
               <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                         v-hasPermi="['digital:deviceChatScReport:edit']"></el-button>
+                         v-hasPermi="['digital:deviceChatScReport:edit']">修改</el-button>
             </el-tooltip>
             <el-tooltip content="删除" placement="top">
               <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                         v-hasPermi="['digital:deviceChatScReport:remove']"></el-button>
+                         v-hasPermi="['digital:deviceChatScReport:remove']">删除</el-button>
             </el-tooltip>
           </template>
         </el-table-column>
@@ -119,7 +103,7 @@ const data = reactive<PageData<DeviceChatScReportForm, DeviceChatScReportQuery>>
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     type: 2,
     appointmentId: undefined,
     enterprise: undefined,

+ 4 - 4
smsb-plus-ui/src/views/smsb/scScanCode/index.vue

@@ -22,7 +22,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
 <!--      <template #header>
         <el-row :gutter="10" class="mb8">
           <el-col :span="1.5">
@@ -54,11 +54,11 @@
         <el-table-column label="区域" align="left" prop="region" width="180"/>
           <el-table-column label="预约人数" align="center" prop="personNum" width="100"/>
           <el-table-column label="扫码时间" align="left" prop="createTime" width="160"/>
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
             <template #default="scope">
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['digital:scScanCode:remove']"></el-button>
+                           v-hasPermi="['digital:scScanCode:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -153,7 +153,7 @@ const data = reactive<PageData<ScScanCodeForm, ScScanCodeQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     identifier: undefined,
     enterprise: undefined,
     phone: undefined,

+ 6 - 22
smsb-plus-ui/src/views/smsb/scScene/index.vue

@@ -23,24 +23,8 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
-      <!--      <template #header>
-              <el-row :gutter="10" class="mb8">
-                <el-col :span="1.5">
-                  <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['digital:chatScScene:add']">新增</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['digital:chatScScene:edit']">修改</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['digital:chatScScene:remove']">删除</el-button>
-                </el-col>
-                <el-col :span="1.5">
-                  <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['digital:chatScScene:export']">导出</el-button>
-                </el-col>
-                <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
-              </el-row>
-            </template>-->
+    <el-card shadow="never" style="height: calc(100% - 20px)">
+
       <div class="table-content">
         <el-table v-loading="loading" :data="chatScSceneList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
@@ -53,15 +37,15 @@
 <!--        <el-table-column label="预约ID" align="center" prop="appointmentId" />-->
         <el-table-column label="预约企业" align="left" prop="enterprise" width="150" :show-overflow-tooltip="true"/>
         <el-table-column label="创建时间" align="left" prop="createTime" width="165"/>
-        <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="120">
+        <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
           <template #default="scope">
             <el-tooltip content="修改" placement="top">
               <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                         v-hasPermi="['digital:chatScScene:edit']"></el-button>
+                         v-hasPermi="['digital:chatScScene:edit']">修改</el-button>
             </el-tooltip>
             <el-tooltip content="删除" placement="top">
               <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                         v-hasPermi="['digital:chatScScene:remove']"></el-button>
+                         v-hasPermi="['digital:chatScScene:remove']">删除</el-button>
             </el-tooltip>
           </template>
         </el-table-column>
@@ -161,7 +145,7 @@ const data = reactive<PageData<ChatScSceneForm, ChatScSceneQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     type: undefined,
     interactionName: undefined,
     supplierName: undefined,

+ 2 - 2
smsb-plus-ui/src/views/smsb/versionPackage/index.vue

@@ -30,7 +30,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="versionPackageList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="center" prop="" width="10"/>
@@ -141,7 +141,7 @@ const data = reactive<PageData<VersionPackageForm, VersionPackageQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     versionName: undefined,
     params: {}
   },

+ 1 - 1
smsb-plus-ui/src/views/smsb/versionTree/index-tree.vue

@@ -18,7 +18,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <el-table
         ref="versionTreeTableRef"
         v-loading="loading"

+ 4 - 4
smsb-plus-ui/src/views/smsb/visitorsFlowRate/index.vue

@@ -29,7 +29,7 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="visitorsFlowRateList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="center" prop="" width="10"/>
@@ -37,13 +37,13 @@
           <el-table-column label="设备ID" align="left" prop="deviceId" width="220"/>
           <el-table-column label="设备名称" align="left" prop="deviceName" width="250"/>
           <el-table-column label="人数" align="center" prop="personNum" width="100"/>
-          <el-table-column label="创建时间" align="center" prop="createTime" width="180"/>
+          <el-table-column label="创建时间" align="left" prop="createTime" width="180"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
           <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
             <template #default="scope">
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:visitorsFlowRate:remove']"></el-button>
+                           v-hasPermi="['device:visitorsFlowRate:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -129,7 +129,7 @@ const data = reactive<PageData<VisitorsFlowRateForm, VisitorsFlowRateQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     deviceName: undefined,
     params: {}
   },

+ 10 - 10
smsb-plus-ui/src/views/smsb/visitorsFlowRate/rateCount.vue

@@ -17,14 +17,14 @@
       </div>
     </transition>
 
-    <el-card shadow="never">
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="flowRateList" @selection-change="handleSelectionChange">
           <el-table-column label="" align="left" prop="" width="10"/>
           <el-table-column label="设备ID" align="left" prop="deviceId" width="180"/>
-          <el-table-column label="设备名称" align="left" prop="deviceName" width="250"/>
-          <el-table-column label="设备SN" align="left" prop="deviceSn" width="250"/>
-          <el-table-column label="设备MAC" align="left" prop="deviceMac" width="180"/>
+          <el-table-column label="设备名称" align="left" prop="deviceName" width="250" :show-overflow-tooltip="true"/>
+          <el-table-column label="设备SN" align="left" prop="deviceSn" width="220"/>
+          <el-table-column label="设备MAC" align="left" prop="deviceMac" width="160"/>
           <el-table-column label="总人数" align="center" prop="totalNum" width="100"/>
           <el-table-column label="今日" align="center" prop="todayNum" width="80"/>
           <el-table-column label="昨日" align="center" prop="yesterdayNum" width="80"/>
@@ -32,19 +32,19 @@
           <el-table-column label="本周" align="center" prop="weekNum" width="80"/>
           <el-table-column label="本月" align="center" prop="monthNum" width="80"/>
           <el-table-column label="备注" align="left" prop="remark" :show-overflow-tooltip="true"/>
-          <el-table-column label="操作" align="center" width="120" class-name="small-padding fixed-width">
+          <el-table-column label="操作" align="center" width="210" class-name="small-padding fixed-width">
             <template #default="scope">
               <el-tooltip content="30天人流记录" placement="top">
                 <el-button link type="primary" icon="View" @click="handleMonthInfo(scope.row)"
-                           v-hasPermi="['device:chatRecord:query']"></el-button>
+                           v-hasPermi="['device:chatRecord:query']">统计</el-button>
               </el-tooltip>
               <el-tooltip content="人流列表" placement="top">
                 <el-button link type="primary" icon="Position" @click="handleInfo(scope.row)"
-                           v-hasPermi="['device:visitorsFlowRate:query']"></el-button>
+                           v-hasPermi="['device:visitorsFlowRate:query']">列表</el-button>
               </el-tooltip>
               <el-tooltip content="修改备注" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['device:visitorsFlowRate:edit']"></el-button>
+                           v-hasPermi="['device:visitorsFlowRate:edit']">修改</el-button>
               </el-tooltip>
             </template>
           </el-table-column>
@@ -121,7 +121,7 @@ const data = reactive<PageData<VisitorsFlowRateForm, VisitorsFlowRateQuery>>({
   form: {...initFormData},
   queryParams: {
     pageNum: 1,
-    pageSize: 10,
+    pageSize: 20,
     deviceName: undefined,
     params: {}
   },
@@ -190,7 +190,7 @@ const getList = async () => {
 const handleInfo = async (row?: VisitorsFlowRateVO) => {
   const deviceName = row.deviceName;
   // 跳转页面 /source/push/review?id=1898991996092481537&type=approval&taskId=1898992031169445891
-  proxy.$router.push('/device/pc/visitorsFlowRate?deviceName=' + deviceName);
+  proxy.$router.push('/agent/pc/visitorsFlowRate?deviceName=' + deviceName);
 }
 
 const handleMonthInfo = async (row?: ChatRecordVO) => {

+ 8 - 8
smsb-plus-ui/src/views/smsb/xfApi/index.vue

@@ -16,23 +16,23 @@
               <el-button icon="Refresh" @click="resetQuery">重置</el-button>
               <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['device:xfApi:add']">新增
               </el-button>
-              <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()"
+<!--              <el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()"
                          v-hasPermi="['device:xfApi:edit']">修改
               </el-button>
               <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()"
                          v-hasPermi="['device:xfApi:remove']">删除
-              </el-button>
+              </el-button>-->
             </el-form-item>
           </el-form>
         </el-card>
       </div>
     </transition>
 
-    <el-card shadow="never">
-
+    <el-card shadow="never" style="height: calc(100% - 20px)">
       <div class="table-content">
         <el-table v-loading="loading" :data="deviceXfApiList" @selection-change="handleSelectionChange">
-          <el-table-column type="selection" width="55" align="center"/>
+<!--          <el-table-column type="selection" width="55" align="center"/>-->
+          <el-table-column label="" align="left" prop=""  width="10"/>
           <el-table-column label="ID" align="left" prop="id" v-if="true" width="120" :show-overflow-tooltip="true"/>
           <el-table-column label="API名称" align="left" prop="name" width="150"/>
           <el-table-column label="APP ID" align="left" prop="appId" width="90" :show-overflow-tooltip="true"/>
@@ -50,15 +50,15 @@
           <el-table-column label="更新时间" align="left" prop="updateTime" width="155"/>
           <el-table-column label="更新人" align="left" prop="updateUser" width="100" :show-overflow-tooltip="true"/>
 <!--          <el-table-column label="备注" align="left" :show-overflow-tooltip="true"/>-->
-          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
+          <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
             <template #default="scope">
               <el-tooltip content="修改" placement="top">
                 <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
-                           v-hasPermi="['device:xfApi:edit']"></el-button>
+                           v-hasPermi="['device:xfApi:edit']">修改</el-button>
               </el-tooltip>
               <el-tooltip content="删除" placement="top">
                 <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
-                           v-hasPermi="['device:xfApi:remove']"></el-button>
+                           v-hasPermi="['device:xfApi:remove']">删除</el-button>
               </el-tooltip>
             </template>
           </el-table-column>

+ 1 - 1
smsb-plus-ui/src/views/system/tenant/index.vue

@@ -32,7 +32,7 @@
     </transition>
 
     <el-card shadow="hover">
-      <div class="table-content" style="height: 75vh">
+      <div class="table-content" style="height: calc(100vh - 220px);">
         <el-table v-loading="loading" :data="tenantList" @selection-change="handleSelectionChange">
           <el-table-column v-if="false" label="id" align="center" prop="id"/>
           <el-table-column label="租户编号" align="left" prop="tenantId"/>

+ 1 - 1
smsb-plus-ui/src/views/system/tenantPackage/index.vue

@@ -20,7 +20,7 @@
     </transition>
 
     <el-card shadow="hover">
-      <div class="table-content" style="height: 75vh">
+      <div class="table-content" style="height: calc(100vh - 220px);">
         <el-table v-loading="loading" :data="tenantPackageList" @selection-change="handleSelectionChange">
           <el-table-column v-if="false" label="租户套餐id" align="center" prop="packageId"/>
           <el-table-column label="套餐名称" align="center" prop="packageName"/>