|
|
|
@ -316,6 +316,7 @@
|
|
|
|
|
:action="this.uploadUrl"
|
|
|
|
|
:on-preview="uploadHandlePreview"
|
|
|
|
|
:on-remove="uploadHandleRemove"
|
|
|
|
|
:before-remove="beforeRemove"
|
|
|
|
|
:headers="headers"
|
|
|
|
|
:limit="1"
|
|
|
|
|
:on-exceed="uploadHandleExceed"
|
|
|
|
@ -329,9 +330,7 @@
|
|
|
|
|
:show-file-list="true"
|
|
|
|
|
>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary"
|
|
|
|
|
:disabled="companyEditDisabled">选取文件
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
:disabled="inputQuery.licenseUrl === null || inputQuery.licenseUrl === ''"
|
|
|
|
|
@click.native="openFile(inputQuery.licenseUrl)"
|
|
|
|
@ -482,6 +481,7 @@ export default {
|
|
|
|
|
selectedOptions: [],
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
fromUdplatOptions: [],
|
|
|
|
|
fileList:[],
|
|
|
|
|
acoountInfo: "账号:" + "------" + "\n密码:" + "-----",
|
|
|
|
|
rules: {
|
|
|
|
|
nickName: [
|
|
|
|
@ -591,9 +591,6 @@ export default {
|
|
|
|
|
this.$message.error("企业名称不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let tQuery = {
|
|
|
|
|
companyName: this.inputQuery.companyName
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
registerConfig() {
|
|
|
|
|
getRegisterConfig().then((response) => {
|
|
|
|
@ -629,6 +626,24 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.inputQuery.areaCode = value.toString();
|
|
|
|
|
},
|
|
|
|
|
beforeRemove(file, fileList) {
|
|
|
|
|
return this.$confirm(`确定移除 ${ file.name }?`, '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '删除成功!'
|
|
|
|
|
});
|
|
|
|
|
this.inputQuery.licenseUrl = null;
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消删除'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
copy() {
|
|
|
|
|
|
|
|
|
|
let sel = this;
|
|
|
|
@ -694,6 +709,9 @@ export default {
|
|
|
|
|
this.$message.warning(`当前限制选择 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
|
|
|
|
|
},
|
|
|
|
|
uploadOnchange(file, fileList) {
|
|
|
|
|
console.log("触发了")
|
|
|
|
|
console.log(fileList)
|
|
|
|
|
console.log(file)
|
|
|
|
|
let fileName = file.name;
|
|
|
|
|
let uid = file.uid;
|
|
|
|
|
let pos = fileName.lastIndexOf(".");
|
|
|
|
@ -729,7 +747,12 @@ export default {
|
|
|
|
|
uploadHandleError() {
|
|
|
|
|
},
|
|
|
|
|
openFile(path) {
|
|
|
|
|
if (this.inputQuery.licenseUrl != null && this.inputQuery.licenseUrl != undefined
|
|
|
|
|
&& this.inputQuery.licenseUrl != '') {
|
|
|
|
|
window.open(this.fileUrl + path);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("请先上传营业执照!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|