|
@@ -6,6 +6,7 @@
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
:datasource="form.datasource"
|
|
:datasource="form.datasource"
|
|
|
cache-key="systemRoleTable"
|
|
cache-key="systemRoleTable"
|
|
|
|
|
+ class="time-form"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -112,6 +113,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ props:{
|
|
|
|
|
+ delDetailIds:Array
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
const defaultForm = {
|
|
const defaultForm = {
|
|
|
key: null,
|
|
key: null,
|
|
@@ -173,11 +177,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
remove(row) {
|
|
remove(row) {
|
|
|
- console.log(row);
|
|
|
|
|
let index = this.form.datasource.findIndex((n) => n.key == row.key);
|
|
let index = this.form.datasource.findIndex((n) => n.key == row.key);
|
|
|
if (index !== -1) {
|
|
if (index !== -1) {
|
|
|
this.form.datasource.splice(index, 1);
|
|
this.form.datasource.splice(index, 1);
|
|
|
this.setSort();
|
|
this.setSort();
|
|
|
|
|
+ if(row.id){
|
|
|
|
|
+ this.delDetailIds.push(row.id)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 清空表格
|
|
// 清空表格
|
|
@@ -291,4 +297,7 @@ export default {
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-</style>
|
|
|
|
|
|
|
+ .time-form .el-form-item{
|
|
|
|
|
+ margin-bottom: 0!important;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|