|
@@ -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¤t=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)
|
|
|
})
|
|
|
},
|