标准拆分->编辑后
This commit is contained in:
@@ -982,8 +982,12 @@ export default {
|
|||||||
}, res => {
|
}, res => {
|
||||||
res.data.list.map((item, index) => {
|
res.data.list.map((item, index) => {
|
||||||
if (item.collectId != null && item.collectId !== '') {
|
if (item.collectId != null && item.collectId !== '') {
|
||||||
|
item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit
|
||||||
|
item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit
|
||||||
item.collectBtn = false
|
item.collectBtn = false
|
||||||
} else {
|
} else {
|
||||||
|
item.showNumber= item.splitStatus=='0' ? item.showNumber : item.standNumSplit
|
||||||
|
item.standName=item.splitStatus=='0' ? item.standName : item.standNameSplit
|
||||||
item.collectBtn = true
|
item.collectBtn = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1036,7 +1036,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const query = this.infoForm
|
const query = this.infoForm
|
||||||
this.editForm.id = query.infoId
|
this.editForm.id = this.infoId
|
||||||
|
console.log("hello",this.editForm.id);
|
||||||
this.editForm.standNumSplit = query.standNumSplit
|
this.editForm.standNumSplit = query.standNumSplit
|
||||||
this.editForm.standNameSplit = query.standNameSplit
|
this.editForm.standNameSplit = query.standNameSplit
|
||||||
this.editForm.fileType = query.fileType
|
this.editForm.fileType = query.fileType
|
||||||
@@ -1046,6 +1047,7 @@ export default {
|
|||||||
editFormSave () {
|
editFormSave () {
|
||||||
this.$refs['editForm'].validate(valid => {
|
this.$refs['editForm'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.postData('lawss/sarFileSplitInfo/updateSarFileSplitInfo', this.editForm, {
|
this.$http.postData('lawss/sarFileSplitInfo/updateSarFileSplitInfo', this.editForm, {
|
||||||
_this: this
|
_this: this
|
||||||
@@ -2223,8 +2225,8 @@ export default {
|
|||||||
const query = info[0]
|
const query = info[0]
|
||||||
this.infoForm = {
|
this.infoForm = {
|
||||||
id: this.infoId,
|
id: this.infoId,
|
||||||
standNumSplit: query.splitStatus!=='0' ? query.showNumber : query.standNumSplit,
|
standNumSplit: query.splitStatus=='0' ? query.showNumber : query.standNumSplit,
|
||||||
standNameSplit: query.splitStatus!=='0' ? query.standName : query.standNameSplit,
|
standNameSplit: query.splitStatus=='0' ? query.standName : query.standNameSplit,
|
||||||
fileType: query.fileType
|
fileType: query.fileType
|
||||||
}
|
}
|
||||||
if (query.splitStatus === '0') {
|
if (query.splitStatus === '0') {
|
||||||
|
|||||||
Reference in New Issue
Block a user