ソースを参照

测试环境地址

zrd 4 ヶ月 前
コミット
868344df9b

+ 2 - 2
.env

@@ -1,5 +1,5 @@
 # 标题
-VITE_APP_TITLE=芋道管理系统
+VITE_APP_TITLE=赢伟达管理系统
 
 # 项目本地运行端口号
 VITE_PORT=80
@@ -20,6 +20,6 @@ VITE_APP_DOCALERT_ENABLE=true
 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
 
 # 默认账户密码
-VITE_APP_DEFAULT_LOGIN_TENANT = 芋道源码
+VITE_APP_DEFAULT_LOGIN_TENANT = 赢伟达源码
 VITE_APP_DEFAULT_LOGIN_USERNAME = admin
 VITE_APP_DEFAULT_LOGIN_PASSWORD = admin123

+ 1 - 1
.env.dev

@@ -4,7 +4,7 @@ NODE_ENV=production
 VITE_DEV=true
 
 # 请求路径
-VITE_BASE_URL='http://42.194.163.46:9095'
+VITE_BASE_URL='http://127.0.0.1:9095'
 
 # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
 VITE_UPLOAD_TYPE=server

+ 1 - 1
README.md

@@ -18,7 +18,7 @@
 
 ## 🐯 平台简介
 
-**芋道**,以开发者为中心,打造中国第一流的快速开发平台,全部开源,个人与企业可 100% 免费使用。
+**赢伟达**,以开发者为中心,打造中国第一流的快速开发平台,全部开源,个人与企业可 100% 免费使用。
 
 * 采用 [vue-element-plus-admin](https://gitee.com/kailong110120130/vue-element-plus-admin) 实现
 * 改换 saas,自动引入等功能

+ 7 - 7
index.html

@@ -2,16 +2,16 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8" />
-    <link rel="icon" href="/favicon.ico" />
-    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+      <link href="/favicon.ico" rel="icon"/>
+      <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
+      <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
     <meta
+            content="赢伟达管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
       name="keywords"
-      content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
     />
     <meta
+            content="赢伟达管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
       name="description"
-      content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
     />
     <title>%VITE_APP_TITLE%</title>
   </head>
@@ -136,7 +136,7 @@
       <div class="app-loading">
         <div class="app-loading-wrap">
           <div class="app-loading-title">
-            <img src="/logo.gif" class="app-loading-logo" alt="Logo" />
+              <img alt="Logo" class="app-loading-logo" src="/logo.gif"/>
             <div class="app-loading-title">%VITE_APP_TITLE%</div>
           </div>
           <div class="app-loading-item">
@@ -146,6 +146,6 @@
         </div>
       </div>
     </div>
-    <script type="module" src="/src/main.ts"></script>
+    <script src="/src/main.ts" type="module"></script>
   </body>
 </html>

ファイルの差分が大きいため隠しています
+ 190 - 187
pnpm-lock.yaml


+ 5 - 5
src/components/DiyEditor/components/mobile/UserCard/index.vue

@@ -3,11 +3,11 @@
     <div class="flex items-center justify-between p-x-18px p-y-24px">
       <div class="flex flex-1 items-center gap-16px">
         <el-avatar :size="60">
-          <Icon icon="ep:avatar" :size="60" />
+          <Icon :size="60" icon="ep:avatar" />
         </el-avatar>
-        <span class="text-18px font-bold">芋道源码</span>
+        <span class="text-18px font-bold">赢伟达源码</span>
       </div>
-      <Icon icon="tdesign:qrcode" :size="20" />
+      <Icon :size="20" icon="tdesign:qrcode" />
     </div>
     <div
       class="flex items-center justify-between justify-between bg-white p-x-20px p-y-8px text-12px"
@@ -17,7 +17,7 @@
     </div>
   </div>
 </template>
-<script setup lang="ts">
+<script lang="ts" setup>
 import { UserCardProperty } from './config'
 
 /** 用户卡片 */
@@ -26,4 +26,4 @@ defineOptions({ name: 'UserCard' })
 defineProps<{ property: UserCardProperty }>()
 </script>
 
-<style scoped lang="scss"></style>
+<style lang="scss" scoped></style>

+ 32 - 32
src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue

@@ -20,7 +20,7 @@
                 <XTextButton title="下载为BPMN文件" @click="downloadProcessAsBpmn()" />
               </div>
             </template>
-            <XButton title="下载文件" preIcon="ep:download" />
+            <XButton preIcon="ep:download" title="下载文件" />
           </el-tooltip>
           <el-tooltip effect="light">
             <XButton preIcon="ep:view" title="浏览" />
@@ -34,62 +34,62 @@
           </el-tooltip>
           <el-tooltip
             v-if="props.simulation"
-            effect="light"
             :content="simulationStatus ? '退出模拟' : '开启模拟'"
+            effect="light"
           >
             <XButton preIcon="ep:cpu" title="模拟" @click="processSimulation" />
           </el-tooltip>
         </ElButtonGroup>
         <ElButtonGroup key="align-control">
-          <el-tooltip effect="light" content="向左对齐">
+          <el-tooltip content="向左对齐" effect="light">
             <!-- <el-button
               class="align align-left"
               icon="el-icon-s-data"
               @click="elementsAlign('left')"
             /> -->
             <XButton
-              preIcon="fa:align-left"
               class="align align-bottom"
+              preIcon="fa:align-left"
               @click="elementsAlign('left')"
             />
           </el-tooltip>
-          <el-tooltip effect="light" content="向右对齐">
+          <el-tooltip content="向右对齐" effect="light">
             <!-- <el-button
               class="align align-right"
               icon="el-icon-s-data"
               @click="elementsAlign('right')"
             /> -->
             <XButton
-              preIcon="fa:align-left"
               class="align align-top"
+              preIcon="fa:align-left"
               @click="elementsAlign('right')"
             />
           </el-tooltip>
-          <el-tooltip effect="light" content="向上对齐">
+          <el-tooltip content="向上对齐" effect="light">
             <!-- <el-button
               class="align align-top"
               icon="el-icon-s-data"
               @click="elementsAlign('top')"
             /> -->
             <XButton
-              preIcon="fa:align-left"
               class="align align-left"
+              preIcon="fa:align-left"
               @click="elementsAlign('top')"
             />
           </el-tooltip>
-          <el-tooltip effect="light" content="向下对齐">
+          <el-tooltip content="向下对齐" effect="light">
             <!-- <el-button
               class="align align-bottom"
               icon="el-icon-s-data"
               @click="elementsAlign('bottom')"
             /> -->
             <XButton
-              preIcon="fa:align-left"
               class="align align-right"
+              preIcon="fa:align-left"
               @click="elementsAlign('bottom')"
             />
           </el-tooltip>
-          <el-tooltip effect="light" content="水平居中">
+          <el-tooltip content="水平居中" effect="light">
             <!-- <el-button
               class="align align-center"
               icon="el-icon-s-data"
@@ -97,65 +97,65 @@
             /> -->
             <!-- class="align align-center" -->
             <XButton
-              preIcon="fa:align-left"
               class="align align-center"
+              preIcon="fa:align-left"
               @click="elementsAlign('center')"
             />
           </el-tooltip>
-          <el-tooltip effect="light" content="垂直居中">
+          <el-tooltip content="垂直居中" effect="light">
             <!-- <el-button
               class="align align-middle"
               icon="el-icon-s-data"
               @click="elementsAlign('middle')"
             /> -->
             <XButton
-              preIcon="fa:align-left"
               class="align align-middle"
+              preIcon="fa:align-left"
               @click="elementsAlign('middle')"
             />
           </el-tooltip>
         </ElButtonGroup>
         <ElButtonGroup key="scale-control">
-          <el-tooltip effect="light" content="缩小视图">
+          <el-tooltip content="缩小视图" effect="light">
             <!-- <el-button
               :disabled="defaultZoom < 0.2"
               icon="el-icon-zoom-out"
               @click="processZoomOut()"
             /> -->
             <XButton
+              :disabled="defaultZoom < 0.2"
               preIcon="ep:zoom-out"
               @click="processZoomOut()"
-              :disabled="defaultZoom < 0.2"
             />
           </el-tooltip>
           <el-button>{{ Math.floor(defaultZoom * 10 * 10) + '%' }}</el-button>
-          <el-tooltip effect="light" content="放大视图">
+          <el-tooltip content="放大视图" effect="light">
             <!-- <el-button
               :disabled="defaultZoom > 4"
               icon="el-icon-zoom-in"
               @click="processZoomIn()"
             /> -->
-            <XButton preIcon="ep:zoom-in" @click="processZoomIn()" :disabled="defaultZoom > 4" />
+            <XButton :disabled="defaultZoom > 4" preIcon="ep:zoom-in" @click="processZoomIn()" />
           </el-tooltip>
-          <el-tooltip effect="light" content="重置视图并居中">
+          <el-tooltip content="重置视图并居中" effect="light">
             <!-- <el-button icon="el-icon-c-scale-to-original" @click="processReZoom()" /> -->
             <XButton preIcon="ep:scale-to-original" @click="processReZoom()" />
           </el-tooltip>
         </ElButtonGroup>
         <ElButtonGroup key="stack-control">
-          <el-tooltip effect="light" content="撤销">
+          <el-tooltip content="撤销" effect="light">
             <!-- <el-button :disabled="!revocable" icon="el-icon-refresh-left" @click="processUndo()" /> -->
-            <XButton preIcon="ep:refresh-left" @click="processUndo()" :disabled="!revocable" />
+            <XButton :disabled="!revocable" preIcon="ep:refresh-left" @click="processUndo()" />
           </el-tooltip>
-          <el-tooltip effect="light" content="恢复">
+          <el-tooltip content="恢复" effect="light">
             <!-- <el-button
               :disabled="!recoverable"
               icon="el-icon-refresh-right"
               @click="processRedo()"
             /> -->
-            <XButton preIcon="ep:refresh-right" @click="processRedo()" :disabled="!recoverable" />
+            <XButton :disabled="!recoverable" preIcon="ep:refresh-right" @click="processRedo()" />
           </el-tooltip>
-          <el-tooltip effect="light" content="重新绘制">
+          <el-tooltip content="重新绘制" effect="light">
             <!-- <el-button icon="el-icon-refresh" @click="processRestart" /> -->
             <XButton preIcon="ep:refresh" @click="processRestart()" />
           </el-tooltip>
@@ -163,30 +163,30 @@
       </template>
       <!-- 用于打开本地文件-->
       <input
-        type="file"
         id="files"
         ref="refFile"
-        style="display: none"
         accept=".xml, .bpmn"
+        style="display: none"
+        type="file"
         @change="importLocalFile"
       />
     </div>
     <div class="my-process-designer__container">
       <div
-        class="my-process-designer__canvas"
-        ref="bpmnCanvas"
         id="bpmnCanvas"
+        ref="bpmnCanvas"
+        class="my-process-designer__canvas"
         style="width: 1680px; height: 800px"
       ></div>
       <!-- <div id="js-properties-panel" class="panel"></div> -->
       <!-- <div class="my-process-designer__canvas" ref="bpmn-canvas"></div> -->
     </div>
     <Dialog
-      title="预览"
       v-model="previewModelVisible"
-      width="80%"
       :scroll="true"
       max-height="600px"
+      title="预览"
+      width="80%"
     >
       <div>
         <pre><code v-dompurify-html="highlightedCode(previewResult)" class="hljs"></code></pre>
@@ -224,7 +224,7 @@ import flowableModdleExtension from './plugins/extension-moddle/flowable'
 // 引入json转换与高亮
 // import xml2js from 'xml-js'
 // import xml2js from 'fast-xml-parser'
-import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml'
+import { parseXmlString, XmlNode, XmlNodeType } from 'steady-xml'
 // 代码高亮插件
 // import hljs from 'highlight.js/lib/highlight'
 // import 'highlight.js/styles/github-gist.css'
@@ -642,7 +642,7 @@ const previewProcessJson = () => {
   })
 }
 
-/* ------------------------------------------------ 芋道源码 methods ------------------------------------------------------ */
+/* ------------------------------------------------ 赢伟达源码 methods ------------------------------------------------------ */
 onMounted(() => {
   initBpmnModeler()
   createNewDiagram(props.value)

+ 1 - 1
src/utils/constants.ts

@@ -1,5 +1,5 @@
 /**
- * Created by 芋道源码
+ * Created by 赢伟达源码
  *
  * 枚举类
  */

+ 1 - 1
src/views/Login/SocialLogin.vue

@@ -199,7 +199,7 @@ const loginData = reactive({
   captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE !== 'false',
   tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE !== 'false',
   loginForm: {
-    tenantName: '芋道源码',
+    tenantName: '赢伟达源码',
     username: 'admin',
     password: 'admin123',
     captchaVerification: '',

+ 2 - 2
src/views/Login/components/MobileForm.vue

@@ -22,8 +22,8 @@
             v-model="loginData.loginForm.tenantName"
             :placeholder="t('login.tenantNamePlaceholder')"
             :prefix-icon="iconHouse"
-            type="primary"
             link
+            type="primary"
           />
         </el-form-item>
       </el-col>
@@ -133,7 +133,7 @@ const loginData = reactive({
   },
   loginForm: {
     uuid: '',
-    tenantName: '芋道源码',
+    tenantName: '赢伟达源码',
     mobileNumber: '',
     code: ''
   }

+ 4 - 4
src/views/ai/chat/index/components/message/MessageListEmpty.vue

@@ -3,12 +3,12 @@
   <div class="chat-empty">
     <!-- title -->
     <div class="center-container">
-      <div class="title">芋道 AI</div>
+      <div class="title">赢伟达 AI</div>
       <div class="role-list">
         <div
-          class="role-item"
           v-for="prompt in promptList"
           :key="prompt.prompt"
+          class="role-item"
           @click="handlerPromptClick(prompt)"
         >
           {{ prompt.prompt }}
@@ -17,7 +17,7 @@
     </div>
   </div>
 </template>
-<script setup lang="ts">
+<script lang="ts" setup>
 const promptList = [
   {
     prompt: '今天气怎么样?'
@@ -34,7 +34,7 @@ const handlerPromptClick = async ({ prompt }) => {
   emits('onPrompt', prompt)
 }
 </script>
-<style scoped lang="scss">
+<style lang="scss" scoped>
 .chat-empty {
   position: relative;
   display: flex;

+ 1 - 1
src/views/ai/utils/constants.ts

@@ -1,5 +1,5 @@
 /**
- * Created by 芋道源码
+ * Created by 赢伟达源码
  *
  * AI 枚举类
  *

+ 1 - 1
src/views/ai/utils/utils.ts

@@ -1,5 +1,5 @@
 /**
- * Created by 芋道源码
+ * Created by 赢伟达源码
  *
  * AI 枚举类
  *

+ 31 - 31
src/views/mp/components/wx-material-select/main.vue

@@ -1,16 +1,16 @@
 <!--
   - Copyright (C) 2018-2019
   - All rights reserved, Designed By www.joolun.com
-  芋道源码:
+  赢伟达源码:
   ① 移除 avue 组件,使用 ElementUI 原生组件
 -->
 <template>
   <div class="pb-30px">
     <!-- 类型:image -->
     <div v-if="props.type === 'image'">
-      <div class="waterfall" v-loading="loading">
-        <div class="waterfall-item" v-for="item in list" :key="item.mediaId">
-          <img class="material-img" :src="item.url" />
+      <div v-loading="loading" class="waterfall">
+        <div v-for="item in list" :key="item.mediaId" class="waterfall-item">
+          <img :src="item.url" class="material-img" />
           <p class="item-name">{{ item.name }}</p>
           <el-row class="ope-row">
             <el-button type="success" @click="selectMaterialFun(item)">
@@ -22,9 +22,9 @@
       </div>
       <!-- 分页组件 -->
       <Pagination
-        :total="total"
-        v-model:page="queryParams.pageNo"
         v-model:limit="queryParams.pageSize"
+        v-model:page="queryParams.pageNo"
+        :total="total"
         @pagination="getMaterialPageFun"
       />
     </div>
@@ -32,23 +32,23 @@
     <div v-else-if="props.type === 'voice'">
       <!-- 列表 -->
       <el-table v-loading="loading" :data="list">
-        <el-table-column label="编号" align="center" prop="mediaId" />
-        <el-table-column label="文件名" align="center" prop="name" />
-        <el-table-column label="语音" align="center">
+        <el-table-column align="center" label="编号" prop="mediaId" />
+        <el-table-column align="center" label="文件名" prop="name" />
+        <el-table-column align="center" label="语音">
           <template #default="scope">
             <WxVoicePlayer :url="scope.row.url" />
           </template>
         </el-table-column>
         <el-table-column
-          label="上传时间"
+          :formatter="dateFormatter"
           align="center"
+          label="上传时间"
           prop="createTime"
           width="180"
-          :formatter="dateFormatter"
         />
-        <el-table-column label="操作" align="center" fixed="right">
+        <el-table-column align="center" fixed="right" label="操作">
           <template #default="scope">
-            <el-button type="primary" link @click="selectMaterialFun(scope.row)"
+            <el-button link type="primary" @click="selectMaterialFun(scope.row)"
               >选择
               <Icon icon="ep:plus" />
             </el-button>
@@ -57,9 +57,9 @@
       </el-table>
       <!-- 分页组件 -->
       <Pagination
-        :total="total"
-        v-model:page="queryParams.pageNo"
         v-model:limit="queryParams.pageSize"
+        v-model:page="queryParams.pageNo"
+        :total="total"
         @pagination="getPage"
       />
     </div>
@@ -67,30 +67,30 @@
     <div v-else-if="props.type === 'video'">
       <!-- 列表 -->
       <el-table v-loading="loading" :data="list">
-        <el-table-column label="编号" align="center" prop="mediaId" />
-        <el-table-column label="文件名" align="center" prop="name" />
-        <el-table-column label="标题" align="center" prop="title" />
-        <el-table-column label="介绍" align="center" prop="introduction" />
-        <el-table-column label="视频" align="center">
+        <el-table-column align="center" label="编号" prop="mediaId" />
+        <el-table-column align="center" label="文件名" prop="name" />
+        <el-table-column align="center" label="标题" prop="title" />
+        <el-table-column align="center" label="介绍" prop="introduction" />
+        <el-table-column align="center" label="视频">
           <template #default="scope">
             <WxVideoPlayer :url="scope.row.url" />
           </template>
         </el-table-column>
         <el-table-column
-          label="上传时间"
+          :formatter="dateFormatter"
           align="center"
+          label="上传时间"
           prop="createTime"
           width="180"
-          :formatter="dateFormatter"
         />
         <el-table-column
-          label="操作"
           align="center"
-          fixed="right"
           class-name="small-padding fixed-width"
+          fixed="right"
+          label="操作"
         >
           <template #default="scope">
-            <el-button type="primary" link @click="selectMaterialFun(scope.row)"
+            <el-button link type="primary" @click="selectMaterialFun(scope.row)"
               >选择
               <Icon icon="akar-icons:circle-plus" />
             </el-button>
@@ -99,16 +99,16 @@
       </el-table>
       <!-- 分页组件 -->
       <Pagination
-        :total="total"
-        v-model:page="queryParams.pageNo"
         v-model:limit="queryParams.pageSize"
+        v-model:page="queryParams.pageNo"
+        :total="total"
         @pagination="getMaterialPageFun"
       />
     </div>
     <!-- 类型:news -->
     <div v-else-if="props.type === 'news'">
-      <div class="waterfall" v-loading="loading">
-        <div class="waterfall-item" v-for="item in list" :key="item.mediaId">
+      <div v-loading="loading" class="waterfall">
+        <div v-for="item in list" :key="item.mediaId" class="waterfall-item">
           <div v-if="item.content && item.content.newsItem">
             <WxNews :articles="item.content.newsItem" />
             <el-row class="ope-row">
@@ -122,9 +122,9 @@
       </div>
       <!-- 分页组件 -->
       <Pagination
-        :total="total"
-        v-model:page="queryParams.pageNo"
         v-model:limit="queryParams.pageSize"
+        v-model:page="queryParams.pageNo"
+        :total="total"
         @pagination="getMaterialPageFun"
       />
     </div>

+ 7 - 7
src/views/mp/components/wx-msg/main.vue

@@ -1,31 +1,31 @@
 <!--
   - Copyright (C) 2018-2019
   - All rights reserved, Designed By www.joolun.com
-  芋道源码:
+  赢伟达源码:
   ① 移除暂时用不到的 websocket
   ② 代码优化,补充注释,提升阅读性
 -->
 <template>
   <ContentWrap>
-    <div class="msg-div" ref="msgDivRef">
+    <div ref="msgDivRef" class="msg-div">
       <!-- 加载更多 -->
       <div v-loading="loading"></div>
       <div v-if="!loading">
-        <div class="el-table__empty-block" v-if="hasMore" @click="loadMore"
+        <div v-if="hasMore" class="el-table__empty-block" @click="loadMore"
           ><span class="el-table__empty-text">点击加载更多</span></div
         >
-        <div class="el-table__empty-block" v-if="!hasMore"
+        <div v-if="!hasMore" class="el-table__empty-block"
           ><span class="el-table__empty-text">没有更多了</span></div
         >
       </div>
 
       <!-- 消息列表 -->
-      <MsgList :list="list" :account-id="accountId" :user="user" />
+      <MsgList :account-id="accountId" :list="list" :user="user" />
     </div>
 
-    <div class="msg-send" v-loading="sendLoading">
+    <div v-loading="sendLoading" class="msg-send">
       <WxReplySelect ref="replySelectRef" v-model="reply" />
-      <el-button type="success" class="send-but" @click="sendMsg">发送(S)</el-button>
+      <el-button class="send-but" type="success" @click="sendMsg">发送(S)</el-button>
     </div>
   </ContentWrap>
 </template>

+ 1 - 1
src/views/mp/components/wx-news/main.vue

@@ -2,7 +2,7 @@
   - Copyright (C) 2018-2019
   - All rights reserved, Designed By www.joolun.com
   【微信消息 - 图文】
-  芋道源码:
+  赢伟达源码:
   ① 代码优化,补充注释,提升阅读性
 -->
 <template>

+ 7 - 4
src/views/mp/components/wx-reply/main.vue

@@ -1,14 +1,14 @@
 <!--
   - Copyright (C) 2018-2019
   - All rights reserved, Designed By www.joolun.com
-  芋道源码:
+  赢伟达源码:
   ① 移除多余的 rep 为前缀的变量,让 message 消息更简单
   ② 代码优化,补充注释,提升阅读性
   ③ 优化消息的临时缓存策略,发送消息时,只清理被发送消息的 tab,不会强制切回到 text 输入
   ④ 支持发送【视频】消息时,支持新建视频
 -->
 <template>
-  <el-tabs type="border-card" v-model="currentTab">
+  <el-tabs v-model="currentTab" type="border-card">
     <!-- 类型 1:文本 -->
     <el-tab-pane :name="ReplyType.Text">
       <template #label>
@@ -20,7 +20,10 @@
     <!-- 类型 2:图片 -->
     <el-tab-pane :name="ReplyType.Image">
       <template #label>
-        <el-row align="middle"><Icon icon="ep:picture" class="mr-5px" /> 图片</el-row>
+        <el-row align="middle">
+          <Icon class="mr-5px" icon="ep:picture" />
+          图片
+        </el-row>
       </template>
       <TabImage v-model="reply" />
     </el-tab-pane>
@@ -60,7 +63,7 @@
 </template>
 
 <script lang="ts" setup>
-import { Reply, NewsType, ReplyType, createEmptyReply } from './components/types'
+import { createEmptyReply, NewsType, Reply, ReplyType } from './components/types'
 import TabText from './components/TabText.vue'
 import TabImage from './components/TabImage.vue'
 import TabVoice from './components/TabVoice.vue'

+ 9 - 9
src/views/mp/components/wx-video-play/main.vue

@@ -2,7 +2,7 @@
   - Copyright (C) 2018-2019
   - All rights reserved, Designed By www.joolun.com
   【微信消息 - 视频】
-  芋道源码:
+  赢伟达源码:
   ① bug 修复:
     1)joolun 的做法:使用 mediaId 从微信公众号,下载对应的 mp4 素材,从而播放内容;
       存在的问题:mediaId 有效期是 3 天,超过时间后无法播放
@@ -14,23 +14,23 @@
   <div @click="playVideo()">
     <!-- 提示 -->
     <div>
-      <Icon icon="ep:video-play" :size="32" class="mr-5px" />
+      <Icon :size="32" class="mr-5px" icon="ep:video-play" />
       <p class="text-sm">点击播放视频</p>
     </div>
 
     <!-- 弹窗播放 -->
-    <el-dialog v-model="dialogVideo" title="视频播放" append-to-body>
+    <el-dialog v-model="dialogVideo" append-to-body title="视频播放">
       <video-player
         v-if="dialogVideo"
-        class="video-player vjs-big-play-centered"
+        :playback-rates="[0.7, 1.0, 1.5, 2.0]"
         :src="props.url"
-        poster=""
-        crossorigin="anonymous"
-        controls
-        playsinline
         :volume="0.6"
         :width="800"
-        :playback-rates="[0.7, 1.0, 1.5, 2.0]"
+        class="video-player vjs-big-play-centered"
+        controls
+        crossorigin="anonymous"
+        playsinline
+        poster=""
       />
       <!--     事件,暫時沒用
       @mounted="handleMounted"-->

+ 5 - 5
src/views/mp/components/wx-voice-play/main.vue

@@ -2,7 +2,7 @@
   - Copyright (C) 2018-2019
   - All rights reserved, Designed By www.joolun.com
   【微信消息 - 语音】
-   芋道源码:
+   赢伟达源码:
   ① bug 修复:
     1)joolun 的做法:使用 mediaId 从微信公众号,下载对应的 mp4 素材,从而播放内容;
       存在的问题:mediaId 有效期是 3 天,超过时间后无法播放
@@ -12,12 +12,12 @@
 <template>
   <div class="wx-voice-div" @click="playVoice">
     <el-icon>
-      <Icon v-if="playing !== true" icon="ep:video-play" :size="32" />
-      <Icon v-else icon="ep:video-pause" :size="32" />
-      <span class="amr-duration" v-if="duration">{{ duration }} 秒</span>
+      <Icon v-if="playing !== true" :size="32" icon="ep:video-play" />
+      <Icon v-else :size="32" icon="ep:video-pause" />
+      <span v-if="duration" class="amr-duration">{{ duration }} 秒</span>
     </el-icon>
     <div v-if="content">
-      <el-tag type="success" size="small">语音识别</el-tag>
+      <el-tag size="small" type="success">语音识别</el-tag>
       {{ content }}
     </div>
   </div>

+ 7 - 7
src/views/mp/material/components/ImageTable.vue

@@ -1,16 +1,16 @@
 <template>
-  <div class="waterfall" v-loading="props.loading">
-    <div class="waterfall-item" v-for="item in props.list" :key="item.id">
-      <a target="_blank" :href="item.url">
-        <img class="material-img" :src="item.url" />
+  <div v-loading="props.loading" class="waterfall">
+    <div v-for="item in props.list" :key="item.id" class="waterfall-item">
+      <a :href="item.url" target="_blank">
+        <img :src="item.url" class="material-img" />
         <div class="item-name">{{ item.name }}</div>
       </a>
       <el-row justify="center">
         <el-button
-          type="danger"
+          v-hasPermi="['mp:material:delete']"
           circle
+          type="danger"
           @click="emit('delete', item.id)"
-          v-hasPermi="['mp:material:delete']"
         >
           <Icon icon="ep:delete" />
         </el-button>
@@ -63,7 +63,7 @@ const emit = defineEmits<{
   column-count: 5;
   margin-top: 10px;
 
-  /* 芋道源码:增加 10px,避免顶着上面 */
+  /* 赢伟达源码:增加 10px,避免顶着上面 */
 }
 
 .waterfall-item {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません