|
@@ -6,54 +6,17 @@
|
|
<div class="form-box" style="margin-right: 10rem">
|
|
<div class="form-box" style="margin-right: 10rem">
|
|
<dil-form :formId="330" v-model="form1"></dil-form>
|
|
<dil-form :formId="330" v-model="form1"></dil-form>
|
|
</div>
|
|
</div>
|
|
- <!-- <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"
|
|
|
|
- >
|
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
- <div slot="tip" class="el-upload__tip">
|
|
|
|
- 只能上传jpg/png文件,且不超过500kb
|
|
|
|
- </div>
|
|
|
|
- </el-upload>
|
|
|
|
<el-upload
|
|
<el-upload
|
|
class="upload-demo"
|
|
class="upload-demo"
|
|
- action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
|
|
|
+ action="http://localhost:8060/api/v1/rms/rmscarrier/uploadCarrier"
|
|
:on-preview="handlePreview"
|
|
:on-preview="handlePreview"
|
|
:on-remove="handleRemove"
|
|
:on-remove="handleRemove"
|
|
- :before-remove="beforeRemove"
|
|
|
|
- multiple
|
|
|
|
- :limit="1"
|
|
|
|
- :on-exceed="handleExceed"
|
|
|
|
|
|
+ :on-success="handleAvatarSuccess"
|
|
:file-list="fileList"
|
|
:file-list="fileList"
|
|
- >
|
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
- <div slot="tip" class="el-upload__tip">
|
|
|
|
- 只能上传jpg/png文件,且不超过500kb
|
|
|
|
- </div>
|
|
|
|
|
|
+ list-type="picture">
|
|
|
|
+ <el-button size="small" type="primary">点击上传照片</el-button>
|
|
|
|
+ <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
- <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"
|
|
|
|
- >
|
|
|
|
- <el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
- <div slot="tip" class="el-upload__tip">
|
|
|
|
- 只能上传jpg/png文件,且不超过500kb
|
|
|
|
- </div>
|
|
|
|
- </el-upload> -->
|
|
|
|
|
|
|
|
<div class="form-box f1">
|
|
<div class="form-box f1">
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
@@ -116,9 +79,20 @@ export default {
|
|
registerDate:"",
|
|
registerDate:"",
|
|
mapValue:""
|
|
mapValue:""
|
|
},
|
|
},
|
|
|
|
+ imageUrl:""
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleAvatarSuccess(res,file){
|
|
|
|
+ this.imageUrl=URL.createObjectURL(file.raw);
|
|
|
|
+ },
|
|
|
|
+ handleRemove(file,fileList){
|
|
|
|
+ console.log(file,fileList)
|
|
|
|
+ },
|
|
|
|
+ handlePreview(file) {
|
|
|
|
+ console.log("*********"+file);
|
|
|
|
+ },
|
|
|
|
+
|
|
onclick(){
|
|
onclick(){
|
|
this.options.requestUrl="/api/v1/rms/getCarrierBidAreaList?apiId=406&con=" +this.inputText;
|
|
this.options.requestUrl="/api/v1/rms/getCarrierBidAreaList?apiId=406&con=" +this.inputText;
|
|
},
|
|
},
|
|
@@ -228,7 +202,9 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
.el-form-item{
|
|
.el-form-item{
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ width: 350px;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
|
+
|
|
.el-form-item__label{
|
|
.el-form-item__label{
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -242,4 +218,19 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.upload-demo{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ padding-bottom: 1.0rem;
|
|
|
|
+ .el-upload__tip{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ }
|
|
|
|
+ .el-button el-button--primary el-button--small{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ word-wrap:break-word;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
</style>
|
|
</style>
|