功能细化

This commit is contained in:
@fawn-nine
2024-06-12 16:41:22 +08:00
parent 83987414aa
commit 3e8e5cf7e4
5 changed files with 163 additions and 60 deletions

View File

@@ -77,7 +77,14 @@
</div>
</template>
</el-table-column>
<el-table-column
prop="buyPeoples"
header-align="center"
align="center"
label="购买人数"
width="80"
>
</el-table-column>
<el-table-column
prop="sort"
header-align="center"
@@ -142,8 +149,7 @@
@click.native="handleCreateProduct(scope.row.id)"
>创建商品</el-dropdown-item
>
<el-dropdown-item
@click.native="migrate(scope.row)"
<el-dropdown-item @click.native="migrate(scope.row)"
>迁移本部</el-dropdown-item
>
</el-dropdown-menu>
@@ -163,8 +169,9 @@
@refreshDataList="getDataList"
></add-or-update>
<move-course
v-if="drawerVisible"
ref="moveCourse" @mycloseDrawer="mycloseDrawer"
v-if="drawerVisible" :catalogueId="catalogueId" :catalogueTitle = "catalogueTitle"
ref="moveCourse"
@mycloseDrawer="mycloseDrawer"
></move-course>
<price
v-if="priceVisible"
@@ -190,7 +197,7 @@ export default {
sociologyId: "",
keywords: ""
},
drawerVisible:false,
drawerVisible: false,
dataList: [],
delFlag: false,
pageIndex: 1,
@@ -202,7 +209,10 @@ export default {
priceVisible: false,
urlList: {
createProduct: "/master/course/createProductForCatalogue"
}
},
catalogueId:null, // 操作的目录id,
courseId:null, // 勾选的课程id,
catalogueTitle:'' //迁移的课程名称
};
},
components: {
@@ -244,31 +254,30 @@ export default {
}
this.dataListLoading = false;
});
},
mycloseDrawer(val){
console.log('999999',val)
this.drawerVisible = false
this.getDataList()
},
migrate(item){
},
mycloseDrawer(val) {
console.log("999999", val);
this.drawerVisible = false;
this.getDataList();
},
migrate(item) {
// 课程迁移
console.log(item)
this.$confirm('您正在进行课程迁移操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.drawerVisible = true
// console.log(item);
// this.$confirm("您正在进行课程迁移操作, 是否继续?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning"
// })
// .then(() => {
this.catalogueId = item.id
this.catalogueTitle = item.title
this.drawerVisible = true;
this.$nextTick(() => {
this.$refs["moveCourse"].getDataList();
});
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(() => {
})
this.$refs["moveCourse"].getDataList();
});
// })
// .catch(() => {});
},
// 每页数
sizeChangeHandle(val) {
@@ -294,7 +303,7 @@ export default {
});
},
handleCreateProduct(id) {
console.log('id at line 260:', id)
console.log("id at line 260:", id);
this.$http
.request({
url: this.$http.adornUrl(`${this.urlList.createProduct}`),