|
|
@ -550,7 +550,7 @@ export class AddPlanone { |
|
|
|
this.dialogRef.close(); |
|
|
|
this.dialogRef.close(); |
|
|
|
} |
|
|
|
} |
|
|
|
levels//
|
|
|
|
levels//
|
|
|
|
isup: boolean = true //上传input框是否显示
|
|
|
|
isup: boolean = false //上传input框是否显示
|
|
|
|
isweb: boolean = false //web输入框是否显示
|
|
|
|
isweb: boolean = false //web输入框是否显示
|
|
|
|
isinput: boolean = false //编制按钮是否显示
|
|
|
|
isinput: boolean = false //编制按钮是否显示
|
|
|
|
defaultisshow = '0' //默认显示上传input框
|
|
|
|
defaultisshow = '0' //默认显示上传input框
|
|
|
@ -559,13 +559,13 @@ export class AddPlanone { |
|
|
|
cadPlan//是否为卡片预案
|
|
|
|
cadPlan//是否为卡片预案
|
|
|
|
//选择radio
|
|
|
|
//选择radio
|
|
|
|
selectradio(e) { |
|
|
|
selectradio(e) { |
|
|
|
if (e.value == "0") { //如果点击本地上传
|
|
|
|
if (e.value == "1") { //如果点击本地上传
|
|
|
|
this.isup = true |
|
|
|
this.isup = true |
|
|
|
this.isinput = false |
|
|
|
this.isinput = false |
|
|
|
this.isweb = false |
|
|
|
this.isweb = false |
|
|
|
this.webaddress = "" |
|
|
|
this.webaddress = "" |
|
|
|
} |
|
|
|
} |
|
|
|
if (e.value == "1") { //如果点击导入word文档
|
|
|
|
if (e.value == "4") { //如果点击导入word文档
|
|
|
|
this.isinput = true |
|
|
|
this.isinput = true |
|
|
|
this.isup = false |
|
|
|
this.isup = false |
|
|
|
this.isweb = false |
|
|
|
this.isweb = false |
|
|
@ -946,13 +946,13 @@ export class AddPlanone { |
|
|
|
PlanLevel = 8 |
|
|
|
PlanLevel = 8 |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.selectedPLanType != "1") {//如果创建的不是二维预案
|
|
|
|
if (this.selectedPLanType != "1") {//如果创建的不是二维预案
|
|
|
|
if (this.defaultisshow == '0' && this.file == null) { //如果是本地上传
|
|
|
|
if (this.defaultisshow == '1' && this.file == null) { //如果是本地上传
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('请先上传文件', '确定', config); |
|
|
|
this.snackBar.open('请先上传文件', '确定', config); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.defaultisshow == '0' && this.file) { //如果是本地上传并且有文件
|
|
|
|
if (this.defaultisshow == '1' && this.file) { //如果是本地上传并且有文件
|
|
|
|
//先上传成功
|
|
|
|
//先上传成功
|
|
|
|
this.startUploading("非二维") |
|
|
|
this.startUploading("非二维") |
|
|
|
|
|
|
|
|
|
|
@ -972,7 +972,7 @@ export class AddPlanone { |
|
|
|
// })
|
|
|
|
// })
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.defaultisshow == '1') {//如果是导入则很复杂
|
|
|
|
if (this.defaultisshow == '2') {//如果是导入则很复杂
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
@ -1015,13 +1015,13 @@ export class AddPlanone { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} else { //如果创建的是二维预案
|
|
|
|
} else { //如果创建的是二维预案
|
|
|
|
if (this.defaultisshow == '0' && this.file == null) { //如果是本地上传
|
|
|
|
if (this.defaultisshow == '1' && this.file == null) { //如果是本地上传
|
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
const config = new MatSnackBarConfig(); |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('请先上传文件', '确定', config); |
|
|
|
this.snackBar.open('请先上传文件', '确定', config); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.defaultisshow == '0' && this.file) { |
|
|
|
if (this.defaultisshow == '1' && this.file) { |
|
|
|
this.startUploading("二维") |
|
|
|
this.startUploading("二维") |
|
|
|
// let body = {
|
|
|
|
// let body = {
|
|
|
|
// id: "",
|
|
|
|
// id: "",
|
|
|
|