Commit 2fd82290 authored by jiaorz's avatar jiaorz

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform-ui into base-modify

parents 4a90da72 2e83f967
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
<th style="font-size: 30px"></th> <th style="font-size: 30px"></th>
<th style="font-size: 30px"></th> <th style="font-size: 30px"></th>
</tr> </tr>
<tr v-for=" row in getEevryDayThisMonth " class="el-date-table__row"> <!-- <tr v-for=" row in getEevryDayThisMonth " class="el-date-table__row">
<td v-for=" col in row " :class="col.class" :style="col.style"> <td v-for=" col in row " :class="col.class" :style="col.style">
{{col.day}} {{col.day}}
<span v-if=" col.isBooked === true " <span v-if=" col.isBooked === true "
:style="{position: 'relative', fontSize: 10+'px', color: 'rgba(15, 159, 214, 0.6)', float: 'right'}">订</span> :style="{position: 'relative', fontSize: 10+'px', color: 'rgba(15, 159, 214, 0.6)', float: 'right'}">订</span>
</td> </td>
</tr> </tr> -->
</tbody> </tbody>
</table> --> </table> -->
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
......
...@@ -737,7 +737,7 @@ ...@@ -737,7 +737,7 @@
<el-form-item label="行驶证" prop="drivingLicensePath" :style="{display:'block'}"> <el-form-item label="行驶证" prop="drivingLicensePath" :style="{display:'block'}">
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
:action="BASE_API + '/vehicle/vehicleInfo/upload/drivingLicense'" :action="BASE_API + '/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false" :show-file-list="false"
:headers="getHeaderWithToken" :headers="getHeaderWithToken"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
...@@ -763,7 +763,7 @@ ...@@ -763,7 +763,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
:action="BASE_API + '/vehicle/vehicleInfo/upload/drivingLicense'" :action="BASE_API + '/api/universal/file/app/unauth/admin/upload'"
:show-file-list="false" :show-file-list="false"
:headers="getHeaderWithToken" :headers="getHeaderWithToken"
:on-success="handleAvatarSuccessF" :on-success="handleAvatarSuccessF"
...@@ -798,8 +798,8 @@ ...@@ -798,8 +798,8 @@
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel('form')"> </el-button> <el-button @click="cancel('form')">取消</el-button>
<el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')"> </el-button> <el-button v-if="dialogStatus=='create'" type="primary" @click="create('form')">确定</el-button>
<el-button <el-button
type="primary" type="primary"
@click="update('form')" @click="update('form')"
...@@ -1182,7 +1182,8 @@ export default { ...@@ -1182,7 +1182,8 @@ export default {
} }
}) })
}, },
trigger: 'blur' trigger: 'blur',
required: true
} }
], ],
engineNum: [ engineNum: [
...@@ -2448,11 +2449,19 @@ export default { ...@@ -2448,11 +2449,19 @@ export default {
this.dialogForm4LicenceVisible = true this.dialogForm4LicenceVisible = true
}, },
getDrivingLicenseUrl(drivingLicensePath) { getDrivingLicenseUrl(drivingLicensePath) {
console.log(drivingLicensePath);
if (drivingLicensePath.indexOf('https') > -1) {
return drivingLicensePath
}else{
return ( return (
process.env.BASE_API + process.env.BASE_API +
'/vehicle/vehicleInfo/download/drivingLicense?realFileRelPath=' + '/vehicle/vehicleInfo/download/drivingLicense?realFileRelPath=' +
encodeURI(drivingLicensePath) encodeURI(drivingLicensePath)
) )
}
}, },
handleAvatarSuccess(res, file) { handleAvatarSuccess(res, file) {
this.form.drivingLicensePath = res.data this.form.drivingLicensePath = res.data
...@@ -2869,6 +2878,7 @@ export default { ...@@ -2869,6 +2878,7 @@ export default {
}, },
create(formName) { create(formName) {
const set = this.$refs const set = this.$refs
debugger
set[formName].validate(valid => { set[formName].validate(valid => {
if (valid) { if (valid) {
let formTemp = this.fillDateRange2Object( let formTemp = this.fillDateRange2Object(
...@@ -2901,6 +2911,7 @@ export default { ...@@ -2901,6 +2911,7 @@ export default {
} }
}) })
} else { } else {
this.$message('必填项不能为空')
return false return false
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment