caojunjie 3 lat temu
rodzic
commit
513f8c02d2

+ 1 - 1
src/views/basicData/landTransportation/driverInformation/index.vue

@@ -406,7 +406,7 @@ export default {
     this.option.column.forEach(item => {
       if (item.search) i++
     })
-    this.initData(website.tenantId)
+    this.initData(JSON.parse(localStorage.getItem("saber-userInfo")).content.tenant_id)
     if (i % 3 !== 0){
       const num = 3 - Number(i % 3)
       this.option.searchMenuSpan = num * 8;

+ 4 - 1
src/views/landTransportation/driver/index.vue

@@ -158,7 +158,7 @@
         ></c-upload>
         <span slot="footer" class="dialog-footer">
           <el-button @click="dialogVisible = false" size="small">取 消</el-button>
-          <el-button type="primary" @click="saveAnnex" size="small" :disabled="form.status===4">保 存</el-button>
+          <el-button type="primary" @click="saveAnnex" size="small" :loading="loadingTwo" :disabled="form.status===4">保 存</el-button>
         </span>
       </el-dialog>
     </basic-container>
@@ -183,6 +183,7 @@ export default {
       orderList:[],
       query:{},
       dialogVisible: false,
+      loadingTwo: false,
       loading: false,
       activeName:'',
       page: {
@@ -739,6 +740,7 @@ export default {
     },
     //打开附件
     annexOpen(row, index){
+      this.loadingTwo = false
       this.dialogVisible = true
       this.form = row
       getAttachment({id:row.id}).then(res=>{
@@ -748,6 +750,7 @@ export default {
     },
     //保存
     saveAnnex(){
+      this.loadingTwo = true
       saveAttached({
         id:this.form.id,
         fileList:this.orderList

+ 6 - 3
src/views/landTransportation/motorcadeDriver/index.vue

@@ -165,7 +165,7 @@
         ></c-upload>
         <span slot="footer" class="dialog-footer">
           <el-button @click="dialogVisible = false" size="small">取 消</el-button>
-          <el-button type="primary" @click="saveAnnex" size="small" :disabled="form.status >= 2">保 存</el-button>
+          <el-button type="primary" @click="saveAnnex" size="small" :loading="loadingTwo" :disabled="form.status >= 2">保 存</el-button>
         </span>
       </el-dialog>
 
@@ -286,6 +286,7 @@ export default {
         ]
       },
       form: {},
+      loadingTwo:false,
       dialogVisible: false,
       orderList: [],
       loading: false,
@@ -395,7 +396,7 @@ export default {
             filterable: true,
             disabled: true,
             type: 'select',
-            cascader: ['vehicleId'],
+            cascader: ['plateNo'],
             overHidden: true,
             prop: 'fleetId',
             dicUrl: "/api/blade-client/land-vehicle/list?size=1000&current=1&corpType=CD",
@@ -876,7 +877,7 @@ export default {
     },
     //打开附件
     annexOpen(row, index) {
-      console.log(row, index)
+      this.loadingTwo = false
       this.dialogVisible = true
       this.form = row
       getAttachment({id: row.id}).then(res => {
@@ -886,10 +887,12 @@ export default {
     },
     //保存
     saveAnnex() {
+      this.loadingTwo = true
       saveAttached({
         id: this.form.id,
         fileList: this.orderList
       }).then(res => {
+        this.$message.success('保存成功');
         this.annexOpen(this.form)
       })
     },