全部提交

This commit is contained in:
liqianyouyou
2024-03-27 23:30:49 +08:00
parent 8b57a99914
commit 0e4b8cd484
8 changed files with 1199 additions and 148 deletions

View File

@@ -12,7 +12,7 @@
</el-form-item> -->
<el-form-item>
<el-button @click="pageIndex = 1;getDataList()">查询</el-button>
<el-button v-if="isAuth('book:book:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
<!-- <el-button v-if="isAuth('book:book:delete')" type="danger" @click="deleteHandle()"
:disabled="dataListSelections.length <= 0">批量删除</el-button> -->
</el-form-item>
@@ -157,7 +157,7 @@
<router-link :to="{path: 'course-courseCatalogue' , query:{ id : scope.row.id , pageIndex} }">
<el-button type="text" size="small">目录管理</el-button>
</router-link>
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</div>
</template>
@@ -248,10 +248,10 @@ export default {
this.dataListSelections = val
},
// 新增 / 修改
addOrUpdateHandle(id) {
addOrUpdateHandle(row) {
this.addOrUpdateVisible = true
this.$nextTick(() => {
this.$refs.addOrUpdate.init(id)
this.$refs.addOrUpdate.init(row)
})
},
// 删除