|
@@ -17,67 +17,7 @@
|
|
@select="handleSelect"
|
|
@select="handleSelect"
|
|
></el-autocomplete>
|
|
></el-autocomplete>
|
|
</div>
|
|
</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="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="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">
|
|
<div class="button_box">
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button @click="cancel">取消</el-button>
|
|
<el-button type="primary" @click="makeSure">确定</el-button>
|
|
<el-button type="primary" @click="makeSure">确定</el-button>
|
|
@@ -100,11 +40,6 @@ export default {
|
|
fileList: [],
|
|
fileList: [],
|
|
carrierIds:"",
|
|
carrierIds:"",
|
|
state: "",
|
|
state: "",
|
|
- imageUrl1:"",
|
|
|
|
- imageUrl2:"",
|
|
|
|
- imageUrl3:"",
|
|
|
|
- imageUrl4:"",
|
|
|
|
- imageUrls:[],
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -141,53 +76,6 @@ export default {
|
|
handleSelect(item){
|
|
handleSelect(item){
|
|
this.carrierIds=item.carrierIds;
|
|
this.carrierIds=item.carrierIds;
|
|
console.log(item)
|
|
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);
|
|
|
|
- },
|
|
|
|
- handlePreview(file) {
|
|
|
|
- console.log(file);
|
|
|
|
- },
|
|
|
|
- handleExceed(files, fileList) {
|
|
|
|
- this.$message.warning(
|
|
|
|
- `当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
|
|
|
|
- files.length + fileList.length
|
|
|
|
- } 个文件`
|
|
|
|
- );
|
|
|
|
- },
|
|
|
|
- beforeRemove(file, fileList) {
|
|
|
|
- return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
|
},
|
|
},
|
|
makeSure() {
|
|
makeSure() {
|
|
console.log(this.form1);
|
|
console.log(this.form1);
|
|
@@ -199,11 +87,6 @@ export default {
|
|
driverIdentityCard: this.form1.driverIdentityCard,
|
|
driverIdentityCard: this.form1.driverIdentityCard,
|
|
driverPhone: this.form1.driverPhone,
|
|
driverPhone: this.form1.driverPhone,
|
|
transportTypeId: this.form1.transportTypeId,
|
|
transportTypeId: this.form1.transportTypeId,
|
|
- // carrierId: this.form1.carrierId,
|
|
|
|
- driverPermitNo: this.form1.driverPermitNo,
|
|
|
|
- driverLicence: this.form1.driverLicence,
|
|
|
|
- driverLicence: this.form1.driverLicence,
|
|
|
|
- driverLicence: this.form1.driverLicence,
|
|
|
|
state:this.state,
|
|
state:this.state,
|
|
carrierName:this.state,
|
|
carrierName:this.state,
|
|
carrierIds: this.carrierIds,
|
|
carrierIds: this.carrierIds,
|
|
@@ -279,7 +162,6 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
margin-top: 0.1000rem;
|
|
margin-top: 0.1000rem;
|
|
margin-bottom: 0.25rem;
|
|
margin-bottom: 0.25rem;
|
|
- // margin-left: -18rem;
|
|
|
|
}
|
|
}
|
|
.inputBox{
|
|
.inputBox{
|
|
display: flex;
|
|
display: flex;
|