wangbin пре 3 година
родитељ
комит
184fe97ac6

+ 8 - 0
src/api/log.js

@@ -60,6 +60,14 @@ export const computerUseLog = (data) => {
   })
 }
 
+export const updateComputerUseRemarks = (data) => {
+  return service({
+    url: '/loging/updatePcRemarks',
+    method: 'post',
+    data
+  })
+}
+
 
 const handleFileError = (res, fileName) => {
   if (typeof (res.data) !== 'undefined') {

+ 2 - 46
src/core/config.js

@@ -3,7 +3,7 @@
  */
 
 const config = {
-  appName: 'Gin-Vue-Admin',
+  appName: '数优后台',
   appLogo: 'https://www.gin-vue-admin.com/img/logo.png',
   showViteLogo: true
 }
@@ -11,51 +11,7 @@ const config = {
 export const viteLogo = (env) => {
   if (config.showViteLogo) {
     const chalk = require('chalk')
-    console.log(
-      chalk.green(
-        `> 欢迎使用Gin-Vue-Admin,开源地址:https://github.com/flipped-aurora/gin-vue-admin`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 当前版本:v2.5.3beta`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 加群方式:微信:shouzi_1994 QQ群:622360840`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> GVA讨论社区:https://support.qq.com/products/371961`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 插件市场:https://plugin.gin-vue-admin.com`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 默认自动化文档地址:http://127.0.0.1:${env.VITE_SERVER_PORT}/swagger/index.html`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 默认自动化文档地址:http://127.0.0.1:${env.VITE_SERVER_PORT}/swagger/index.html`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 默认前端文件运行地址:http://127.0.0.1:${env.VITE_CLI_PORT}`
-      )
-    )
-    console.log(
-      chalk.green(
-        `> 如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/docs/coffee`
-      )
-    )
+  
     console.log('\n')
   }
 }

+ 1 - 10
src/core/gin-vue-admin.js

@@ -8,15 +8,6 @@ import { register } from './global'
 export default {
   install: (app) => {
     register(app)
-    console.log(`
-       欢迎使用 Gin-Vue-Admin
-       当前版本:v2.5.3beta
-       加群方式:微信:shouzi_1994 QQ群:622360840
-       GVA讨论社区:https://support.qq.com/products/371961
-       插件市场:https://plugin.gin-vue-admin.com
-       默认自动化文档地址:http://127.0.0.1:${import.meta.env.VITE_SERVER_PORT}/swagger/index.html
-       默认前端文件运行地址:http://127.0.0.1:${import.meta.env.VITE_CLI_PORT}
-       如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/docs/coffee
-    `)
+    console.log()
   }
 }

+ 1 - 1
src/view/layout/search/search.vue

@@ -95,7 +95,7 @@ const handleReload = () => {
   }, 500)
 }
 const toService = () => {
-  window.open('https://support.qq.com/product/371961')
+  //window.open('https://support.qq.com/product/371961')
 }
 
 </script>

+ 21 - 12
src/view/logComputer/computerUseLog.vue

@@ -64,6 +64,19 @@
             </div>
           </template>
         </el-table-column>
+        <el-table-column align="left" label="备注" min-width="150" prop="remarks" />
+        <el-table-column align="left" fixed="right" label="操作" width="200">
+          <template #default="scope">
+            <el-button
+              icon="edit"
+              size="small"
+              type="primary"
+              link
+              @click="editCardFunc(scope.row)"
+            >添加备注</el-button>
+          </template>
+        </el-table-column>
+        
         </el-table>
         <div class="gva-pagination">
           <el-pagination
@@ -81,11 +94,8 @@
   
       <el-dialog v-model="dialogFormVisible" :before-close="closeDialog" :title="dialogTitle">
         <el-form ref="apiForm" :model="form" :rules="rules" label-width="80px">
-          <el-form-item label="游戏名称" prop="game_name">
-            <el-input v-model="form.game_name" autocomplete="off" />
-          </el-form-item>
-          <el-form-item label="游戏包名" prop="game_package_name">
-            <el-input v-model="form.game_package_name" autocomplete="off" />
+          <el-form-item label="备注" prop="remarks">
+            <el-input v-model="form.remarks" autocomplete="off" />
           </el-form-item>
         </el-form>
         <template #footer>
@@ -108,6 +118,7 @@
   import {
     computerUseLog,
     exportExcel,
+    updateComputerUseRemarks,
   } from '@/api/log'
   import { toSQLLine } from '@/utils/stringFun'
   import { ref } from 'vue'
@@ -164,7 +175,7 @@ const searchStatusOptions = ref([
   
   const type = ref('')
   const rules = ref({
-    game_name: [{ required: true, message: '请输入游戏名称', trigger: 'blur' }],
+    remarks: [{ required: true, message: '请添加备注', trigger: 'blur' }],
     game_package_name: [
       { required: true, message: '请输入游戏包名', trigger: 'blur' }
     ]
@@ -307,8 +318,7 @@ const searchStatusOptions = ref([
   const initForm = () => {
     apiForm.value.resetFields()
     form.value = {
-      game_name: '',
-      game_package_name: ''
+      remarks: '',
     }
   }
   
@@ -320,7 +330,7 @@ const searchStatusOptions = ref([
         dialogTitle.value = '新增game'
         break
       case 'edit':
-        dialogTitle.value = '编辑game'
+        dialogTitle.value = '修改备注'
         break
       default:
         break
@@ -334,8 +344,7 @@ const searchStatusOptions = ref([
   }
   
   const editCardFunc = async(row) => {
-    const res = await getGameById({ id: row.id })
-    form.value = res.data
+    form.value = row
     openDialog('edit')
   }
   
@@ -360,7 +369,7 @@ const searchStatusOptions = ref([
             break
           case 'edit':
             {
-              const res = await cuGame(form.value)
+              const res = await updateComputerUseRemarks(form.value)
               if (res.code === 0) {
                 ElMessage({
                   type: 'success',

+ 3 - 26
src/view/login/index.vue

@@ -66,12 +66,7 @@
             </div>
           </el-form-item>
           <el-form-item>
-            <el-button
-              type="primary"
-              style="width: 46%"
-              size="large"
-              @click="checkInit"
-            >前往初始化</el-button>
+            
             <el-button
               type="primary"
               size="large"
@@ -83,26 +78,8 @@
       </div>
       <div class="login_panle_right" />
       <div class="login_panle_foot">
-        <div class="links">
-          <a href="http://doc.henrongyi.top/" target="_blank">
-            <img src="@/assets/docs.png" class="link-icon">
-          </a>
-          <a href="https://support.qq.com/product/371961" target="_blank">
-            <img src="@/assets/kefu.png" class="link-icon">
-          </a>
-          <a
-            href="https://github.com/flipped-aurora/gin-vue-admin"
-            target="_blank"
-          >
-            <img src="@/assets/github.png" class="link-icon">
-          </a>
-          <a href="https://space.bilibili.com/322210472" target="_blank">
-            <img src="@/assets/video.png" class="link-icon">
-          </a>
-        </div>
-        <div class="copyright">
-          <bootomInfo />
-        </div>
+        
+        
       </div>
     </div>
   </div>