对接项目变更
This commit is contained in:
+5
-6
@@ -99,12 +99,11 @@
|
||||
editModel(value) {
|
||||
this.visible = true
|
||||
this.formInline.id = value.id
|
||||
if (!value.children) {
|
||||
if (!value.versionLast) {
|
||||
this.formInline.projectVersion = '01'
|
||||
} else if (value.children && value.children.length > 0) {
|
||||
let projectVersion = value.children[value.children.length - 1].projectVersion
|
||||
if (projectVersion.slice(0, 1) == '0') {
|
||||
let num = projectVersion.slice(1, 2)
|
||||
} else if (value.versionLast) {
|
||||
if (value.versionLast.slice(0, 1) == '0') {
|
||||
let num = value.versionLast.slice(1, 2)
|
||||
let numIndex = parseInt(num) + 1
|
||||
if (numIndex.length == 1) {
|
||||
this.formInline.projectVersion = '0' + numIndex
|
||||
@@ -112,7 +111,7 @@
|
||||
this.formInline.projectVersion = numIndex
|
||||
}
|
||||
} else {
|
||||
let index = parseInt(projectVersion) + 1
|
||||
let index = parseInt(value.versionLast) + 1
|
||||
if (index.length == 1) {
|
||||
this.formInline.projectVersion = '0' + index
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user