caojunjie 4 rokov pred
rodič
commit
fe22866fdc

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "ruoyi",
   "version": "3.2.1",
-  "description": "途宝仓储管理系统",
+  "description": "大木仓储管理系统",
   "author": "大木",
   "license": "MIT",
   "scripts": {

BIN
public/favicon.ico


BIN
src/assets/logo/logo.png


+ 1 - 1
src/layout/components/Sidebar/Logo.vue

@@ -47,7 +47,7 @@ export default {
   },
   data() {
     return {
-      title: "途宝仓储管理系统",
+      title: "大木仓储管理系统",
       logo: logoImg,
     };
   },

+ 1 - 1
src/settings.js

@@ -1,5 +1,5 @@
 module.exports = {
-  title: '途宝仓储管理系统',
+  title: '大木仓储管理系统',
 
   /**
    * 侧边栏主题 深色主题theme-dark,浅色主题theme-light

+ 12 - 136
src/views/basicdata/fleet/carManage-add-or-update.vue

@@ -120,38 +120,13 @@
       <el-form label-width="125px">
         <el-collapse-item title="图片上传">
           <el-upload
-            action="#"
+            :action="uploadImgUrl"
             list-type="picture-card"
-            :auto-upload="false">
-            <i slot="default" class="el-icon-plus"></i>
-            <div slot="file" slot-scope="{file}">
-              <img
-                class="el-upload-list__item-thumbnail"
-                :src="file.url" alt=""
-              >
-              <span class="el-upload-list__item-actions">
-        <span
-          class="el-upload-list__item-preview"
-          @click="handlePictureCardPreview(file)"
-        >
-          <i class="el-icon-zoom-in"></i>
-        </span>
-        <span
-          v-if="!disabled"
-          class="el-upload-list__item-delete"
-          @click="handleDownload(file)"
-        >
-          <i class="el-icon-download"></i>
-        </span>
-        <span
-          v-if="!disabled"
-          class="el-upload-list__item-delete"
-          @click="handleRemove(file)"
-        >
-          <i class="el-icon-delete"></i>
-        </span>
-      </span>
-            </div>
+            :limit="1"
+            :on-success="success"
+            :on-preview="handlePictureCardPreview"
+            :on-remove="handleRemove">
+            <i class="el-icon-plus"></i>
           </el-upload>
           <el-dialog :visible.sync="dialogVisible">
             <img width="100%" :src="dialogImageUrl" alt="">
@@ -180,45 +155,6 @@ export default {
   data() {
     return {
       disabled: false,
-      fTmsorderbillsattachs: [
-        {
-          attachName: '',
-          attachUrl: '',
-          actId: '1'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '2'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '3'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '4'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '5'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '6'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '7'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '8'
-        }, {
-          attachName: '',
-          attachUrl: '',
-          actId: '9'
-        }
-      ],
       imageUrl: '',
       dataFormD: {},
       visible: false,
@@ -243,78 +179,18 @@ export default {
     }
   },
   methods: {
-    handleRemove(file) {
-      console.log(file);
+    success(response, file, fileList){
+      console.log(response, file, fileList)
+    },
+    handleRemove(file, fileList) {
+      console.log(file, fileList);
     },
     handlePictureCardPreview(file) {
       this.dialogImageUrl = file.url;
-      console.log(file)
-      // this.dialogVisible = true;
-    },
-    handleDownload(file) {
-      console.log(file);
-    },
-    handleAvatarSuccess(id,res,file) {
-      console.log(id)
-      console.log(res)
-      console.log(file)
-      if (res){
-        console.log(id)
-        // switch (id) {
-        //   case 1:
-        //     this.fTmsorderbillsattachs[0].actId = id
-        //     this.fTmsorderbillsattachs[0].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[0].attachUrl = res.url
-        //     break
-        //   case 2:
-        //     this.fTmsorderbillsattachs[1].actId = id
-        //     this.fTmsorderbillsattachs[1].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[1].attachUrl = res.url
-        //     break
-        //   case 3:
-        //     this.fTmsorderbillsattachs[2].actId = id
-        //     this.fTmsorderbillsattachs[2].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[2].attachUrl = res.url
-        //     break
-        //   case 4:
-        //     this.fTmsorderbillsattachs[3].actId = id
-        //     this.fTmsorderbillsattachs[3].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[3].attachUrl = res.url
-        //     break
-        //   case 5:
-        //     this.fTmsorderbillsattachs[4].actId = id
-        //     this.fTmsorderbillsattachs[4].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[4].attachUrl = res.url
-        //     break
-        //   case 6:
-        //     this.fTmsorderbillsattachs[5].actId = id
-        //     this.fTmsorderbillsattachs[5].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[5].attachUrl = res.url
-        //     break
-        //   case 7:
-        //     this.fTmsorderbillsattachs[6].actId = id
-        //     this.fTmsorderbillsattachs[6].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[6].attachUrl = res.url
-        //     break
-        //   case 8:
-        //     this.fTmsorderbillsattachs[7].actId = id
-        //     this.fTmsorderbillsattachs[7].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[7].attachUrl = res.url
-        //     break
-        //   case 9:
-        //     this.fTmsorderbillsattachs[8].actId = id
-        //     this.fTmsorderbillsattachs[8].attachName = res.fileName
-        //     this.fTmsorderbillsattachs[8].attachUrl = res.url
-        //     break
-        //   default:
-        //     this.$message.error('未知错误请刷新后再试');
-        // }
-      }
+      this.dialogVisible = true;
     },
     init() {
-      console.log(this.fTmsorderbillsattachs)
       this.visible = true
-      console.log(this.dataForm)
       if (this.dataForm.Id) {
         lookOver(this.dataForm.Id).then(data => {
           console.log(data)

+ 2 - 2
src/views/login.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="login">
     <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
-      <h3 class="title">途宝仓储管理系统</h3>
+      <h3 class="title">大木仓储管理系统</h3>
       <el-form-item prop="username">
         <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
 <!--          <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />-->
@@ -52,7 +52,7 @@
     </el-form>
     <!--  底部  -->
     <div class="el-login-footer">
-      <span>Copyright © 2020-2022 途宝仓储管理系统</span>
+      <span>Copyright © 2020-2022 大木仓储管理系统</span>
     </div>
   </div>
 </template>

+ 1 - 1
vue.config.js

@@ -6,7 +6,7 @@ function resolve(dir) {
   return path.join(__dirname, dir)
 }
 
-const name = defaultSettings.title || '途宝仓储管理系统' // 标题
+const name = defaultSettings.title || '大木仓储管理系统' // 标题
 
 const port = process.env.port || process.env.npm_config_port || 80 // 端口