|
@@ -15,7 +15,7 @@
|
|
|
width="100%"
|
|
width="100%"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
|
|
|
|
+
|
|
|
cache-key="produceOrderZ"
|
|
cache-key="produceOrderZ"
|
|
|
highlight-current-row
|
|
highlight-current-row
|
|
|
@row-click="rowClick"
|
|
@row-click="rowClick"
|
|
@@ -40,6 +40,12 @@
|
|
|
<span> {{ row.formingNum }} {{ row.weightUnit }} </span>
|
|
<span> {{ row.formingNum }} {{ row.weightUnit }} </span>
|
|
|
</template>
|
|
</template>
|
|
|
</ele-pro-table>
|
|
</ele-pro-table>
|
|
|
|
|
+
|
|
|
|
|
+ <template slot="footer">
|
|
|
|
|
+ <el-button size="mini" @click="handleClose">取 消</el-button>
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="handleSelect()">确 定</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -233,9 +239,9 @@
|
|
|
this.$refs.table.reload({ page: 1, where });
|
|
this.$refs.table.reload({ page: 1, where });
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- handleSelectionChange(val) {
|
|
|
|
|
|
|
+ handleSelect() {
|
|
|
let ids = [];
|
|
let ids = [];
|
|
|
- ids = val.map((item) => {
|
|
|
|
|
|
|
+ ids = this.selection.map((item) => {
|
|
|
return item.id;
|
|
return item.id;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -244,7 +250,9 @@
|
|
|
|
|
|
|
|
rowClick(e) {},
|
|
rowClick(e) {},
|
|
|
|
|
|
|
|
- handleClose() {}
|
|
|
|
|
|
|
+ handleClose() {
|
|
|
|
|
+ this.$emit('close');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|