|
@@ -73,7 +73,8 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <selectZyLevel ref="selectRef" @confirm-btn="selectZyLevelConfirm" :id="13"></selectZyLevel>
|
|
|
|
|
|
+ <selectZyLevel ref="selectRef" @confirm-btn="selectZyLevelConfirm" :mode=modeControl
|
|
|
|
+ :id="formData.baozhengJigouId"></selectZyLevel>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -147,6 +148,17 @@
|
|
zhiyeLevels() {
|
|
zhiyeLevels() {
|
|
return this.zhiyelevelsOpt.map(item => item.name);
|
|
return this.zhiyelevelsOpt.map(item => item.name);
|
|
},
|
|
},
|
|
|
|
+ modeControl() {
|
|
|
|
+ if (this.localStatus == 'addEdit') {
|
|
|
|
+ return 'danxuan'
|
|
|
|
+ } else if (this.status == 'add') {
|
|
|
|
+ return 'duoxuan'
|
|
|
|
+ } else if (this.localStatus == 'editAdd') {
|
|
|
|
+ return 'duoxuan'
|
|
|
|
+ } else {
|
|
|
|
+ return 'danxuan'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getJigou()
|
|
this.getJigou()
|
|
@@ -235,7 +247,7 @@
|
|
console.log('this.localStatus', this.localStatus);
|
|
console.log('this.localStatus', this.localStatus);
|
|
console.log('this.mergedArray', mergedArray);
|
|
console.log('this.mergedArray', mergedArray);
|
|
if (this.localStatus == 'addEdit') {
|
|
if (this.localStatus == 'addEdit') {
|
|
- this.$emit('addEdit', mergedArray, 'addEdit', this.currentIndex);
|
|
|
|
|
|
+ this.$emit('addEdit', mergedArray[0], 'addEdit', this.currentIndex);
|
|
} else if (this.status == 'add') {
|
|
} else if (this.status == 'add') {
|
|
this.$emit('addSave', mergedArray);
|
|
this.$emit('addSave', mergedArray);
|
|
} else if (this.localStatus == 'editAdd') {
|
|
} else if (this.localStatus == 'editAdd') {
|
|
@@ -328,6 +340,8 @@
|
|
this.formData.zongkeshi = ''
|
|
this.formData.zongkeshi = ''
|
|
this.isJgFlag = true
|
|
this.isJgFlag = true
|
|
this.isZyFlag = true
|
|
this.isZyFlag = true
|
|
|
|
+ this.zyNameAndLevel = ''
|
|
|
|
+ this.piliangArray = []
|
|
},
|
|
},
|
|
resetFun() {
|
|
resetFun() {
|
|
this.formData.zhiyeName = ''
|
|
this.formData.zhiyeName = ''
|