|
|
@@ -329,6 +329,13 @@ export default {
|
|
|
changeModel(val) {
|
|
|
this.form.qualityMode = val;
|
|
|
if (this.form.qualityMode == 1) {
|
|
|
+ if (this.schemeList.length == 0) {
|
|
|
+ for (let i = 0; i < this.packingList.length; i++) {
|
|
|
+ console.log(this.packingList[i], 'selection[i]')
|
|
|
+ this.$set(this.packingList[i], 'qualityStatus', 2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
this.sampleList = this.packingList;
|
|
|
this.samplePagination.currentPage = 1;
|
|
|
this.samplePagination.total = this.packingList.length;
|
|
|
@@ -374,6 +381,13 @@ export default {
|
|
|
console.log(selection, '勾选列表');
|
|
|
if (this.form.qualityMode === 2) {
|
|
|
this.selectedList = selection;
|
|
|
+
|
|
|
+ if (this.schemeList.length == 0) {
|
|
|
+ for (let i = 0; i < selection.length; i++) {
|
|
|
+ console.log(selection[i], 'selection[i]')
|
|
|
+ this.$set(selection[i], 'qualityStatus', 2)
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
this.sampleList = selection;
|
|
|
this.samplePagination.currentPage = 1;
|