|
@@ -3,7 +3,7 @@
|
|
|
<div class="addWagonLoad">
|
|
|
<PageTitle>返回</PageTitle>
|
|
|
<el-divider content-position="left">司机信息</el-divider>
|
|
|
- <div class="form-box" style="margin-right: 10rem">
|
|
|
+ <div class="form_box" style="margin-right: 10rem">
|
|
|
<dil-form :formId="311" v-model="form1" ref="from1"></dil-form>
|
|
|
</div>
|
|
|
<div class="inputBox">
|
|
@@ -12,31 +12,74 @@
|
|
|
v-model="state"
|
|
|
@input="onInput"
|
|
|
:fetch-suggestions="querySearch"
|
|
|
- placeholder="请输入内容"
|
|
|
+ placeholder="边输入边查询"
|
|
|
:trigger-on-focus="false"
|
|
|
@select="handleSelect"
|
|
|
></el-autocomplete>
|
|
|
</div>
|
|
|
<div class="photoBox">
|
|
|
<el-upload
|
|
|
- class="upload-demo"
|
|
|
- action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
- :on-preview="handlePreview"
|
|
|
- :on-remove="handleRemove"
|
|
|
- :before-remove="beforeRemove"
|
|
|
- multiple
|
|
|
- :limit="1"
|
|
|
- :on-exceed="handleExceed"
|
|
|
- :file-list="fileList"
|
|
|
- >
|
|
|
- <div>驾驶证
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
- <div slot="tip" class="el-upload__tip">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-upload>
|
|
|
+ class="upload-demo"
|
|
|
+ action="http://localhost:8080/api/v1/rms/upload"
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :on-success="handleAvatarSuccess1"
|
|
|
+ :file-list="fileList"
|
|
|
+ list-type="picture">
|
|
|
+ <div>行驶证照片
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ </div>
|
|
|
+</el-upload>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="photoBox">
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ action="http://localhost:8080/api/v1/rms/upload"
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :on-success="handleAvatarSuccess2"
|
|
|
+ :file-list="fileList"
|
|
|
+ list-type="picture">
|
|
|
+ <div>驾驶证照片
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ </div>
|
|
|
+</el-upload>
|
|
|
</div>
|
|
|
- <div class="button-box">
|
|
|
+
|
|
|
+ <div class="photoBox">
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ action="http://localhost:8080/api/v1/rms/upload"
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :on-success="handleAvatarSuccess3"
|
|
|
+ :file-list="fileList"
|
|
|
+ list-type="picture">
|
|
|
+ <div>运输证照片
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ </div>
|
|
|
+</el-upload>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="photoBox">
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ action="http://localhost:8080/api/v1/rms/upload"
|
|
|
+ :on-preview="handlePreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :on-success="handleAvatarSuccess4"
|
|
|
+ :file-list="fileList"
|
|
|
+ list-type="picture">
|
|
|
+ <div>从业资格证照片
|
|
|
+ <el-button size="small" type="primary">点击上传</el-button>
|
|
|
+ </div>
|
|
|
+</el-upload>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="button_box">
|
|
|
+>>>>>>> 1807a4cbfb1e0a088bdcd174f97fd48986f268f8
|
|
|
<el-button @click="cancel">取消</el-button>
|
|
|
<el-button type="primary" @click="makeSure">确定</el-button>
|
|
|
</div>
|
|
@@ -58,7 +101,11 @@ export default {
|
|
|
fileList: [],
|
|
|
carrierIds:"",
|
|
|
state: "",
|
|
|
- sex: "男",
|
|
|
+ imageUrl1:"",
|
|
|
+ imageUrl2:"",
|
|
|
+ imageUrl3:"",
|
|
|
+ imageUrl4:"",
|
|
|
+ imageUrls:[],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -96,8 +143,37 @@ export default {
|
|
|
this.carrierIds=item.carrierIds;
|
|
|
console.log(item)
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+ beforeUpload2 (file) {
|
|
|
+ const isLt2M = file.size < 1024 * 1024 * 0.5
|
|
|
+ console.log('大小' + isLt2M)
|
|
|
+ if (!isLt2M) {
|
|
|
+ this.$message.error('上传文件大小不能超过500kb!')
|
|
|
+ }
|
|
|
+ let size = file.size / 1024
|
|
|
+ console.log('大小' + size)
|
|
|
+ let _URL = window.URL || window.webkitURL
|
|
|
+ let img = new Image()
|
|
|
+ img.onload = function () {
|
|
|
+ let width = img.width
|
|
|
+ let height = img.height
|
|
|
+ console.log('width--->' + width)
|
|
|
+ console.log('height--->' + height)
|
|
|
+ }
|
|
|
+ img.src = _URL.createObjectURL(file)
|
|
|
+ return isLt2M
|
|
|
+ },
|
|
|
+ handleAvatarSuccess1(res,file){
|
|
|
+ this.imageUrl1=URL.createObjectURL(file.raw);
|
|
|
+ },
|
|
|
+ handleAvatarSuccess2(res,file){
|
|
|
+ this.imageUrl2=URL.createObjectURL(file.raw);
|
|
|
+ },
|
|
|
+ handleAvatarSuccess3(res,file){
|
|
|
+ this.imageUrl3=URL.createObjectURL(file.raw);
|
|
|
+ },
|
|
|
+ handleAvatarSuccess4(res,file){
|
|
|
+ this.imageUrl4=URL.createObjectURL(file.raw);
|
|
|
+ },
|
|
|
handleRemove(file, fileList) {
|
|
|
console.log(file, fileList);
|
|
|
},
|
|
@@ -174,50 +250,59 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style lang='scss'>
|
|
|
-.button-box{
|
|
|
- display: flex;
|
|
|
- text-align: center;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-top: 0.3125rem;
|
|
|
- margin-bottom: 1.25rem;
|
|
|
-}
|
|
|
-.inputBox{
|
|
|
- display: flex;
|
|
|
- text-align: center;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-top: 0.1000rem;
|
|
|
- margin-bottom: 0.25rem;
|
|
|
- margin-left: -12.5rem;
|
|
|
-}
|
|
|
-.photoBox{
|
|
|
+.addWagonLoad {
|
|
|
+ .form_box {
|
|
|
+ width: 100%;
|
|
|
+ margin-top: 30px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ .el-form-item{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ .el-form-item__label{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .el-form-item__content{
|
|
|
+ .el-select{
|
|
|
+ width: 250px;
|
|
|
+ }
|
|
|
+ .el-input{
|
|
|
+ width: 250px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .photoBox{
|
|
|
display: flex;
|
|
|
text-align: center;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
margin-top: 0.1000rem;
|
|
|
margin-bottom: 0.25rem;
|
|
|
- margin-left: -18rem;
|
|
|
+ // margin-left: -18rem;
|
|
|
}
|
|
|
-.form-box{
|
|
|
- display:flex;
|
|
|
- justify-content: center;
|
|
|
- .el-form-item{
|
|
|
- display:flex;
|
|
|
+ .inputBox{
|
|
|
+ display: flex;
|
|
|
justify-content: center;
|
|
|
- .el-form-item__label{
|
|
|
- display:flex;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ .text{
|
|
|
+ text-align: right;
|
|
|
+ display: flex;
|
|
|
align-items: center;
|
|
|
+ margin-right: 5px;
|
|
|
}
|
|
|
- .el-form-item__content{
|
|
|
- .el-input{
|
|
|
- .el-input__inner{
|
|
|
- width:250px;
|
|
|
- }
|
|
|
- }
|
|
|
+ .input{
|
|
|
+ width: 250px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .button_box{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ .el-button{
|
|
|
+ width: 80px;
|
|
|
+ margin-right: 10px;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
</style>
|