This commit is contained in:
2025-02-08 09:49:17 +08:00
parent 4cfa96d061
commit 98fd6893a6
7 changed files with 4356 additions and 6 deletions

View File

@@ -119,18 +119,19 @@
"
>
<div
style="width: 90px;float: left;font-weight: 800;border: 1px solid #bbbb; border-radius: 4px;line-height: 30px;"
style="width: 120px;float: left;font-weight: 800;line-height: 30px;overflow: hidden;"
>
<!-- <el-tag type="success" > -->
{{ v.title }}
<!-- </el-tag> -->
<span style="width: 80px;float: left;font-weight: 800;border: 1px solid #bbbb; border-radius: 4px;line-height: 30px;"> {{ v.title }} </span>
<span v-if="v.productList.length != 0"><img src="../../../../static/img/editPrice.png" alt="" @click="priceHandle(v)" style="width: 25px;height: 25px;"></span>
<!-- </el-tag> -->
</div>
<div
class="right"
:style="
`width: calc(100% - ${
scope.row.courseCatalogueEntityList.length > 1 ? 100 : 0
scope.row.courseCatalogueEntityList.length >= 1 ? 130 : 0
}px);float: right;`
"
>
@@ -405,6 +406,11 @@
></question-bank>
</div>
</el-drawer>
<price
v-if="priceVisible"
ref="priceUpdate"
@refreshDataList="getDataList"
></price>
</div>
</template>
@@ -413,9 +419,11 @@ import commonShopTable from "./shopproductTable.vue";
import commonCommont from "@/views/components/courseList/commont.vue";
import AddOrUpdate from "./course-add-or-update";
import questionBank from "./examination/questionBank";
import price from "./catalogue-price";
export default {
data() {
return {
priceVisible: false,
selectCourse: {},
showQuestionBank: false,
commontListVisible: false,
@@ -478,7 +486,8 @@ export default {
AddOrUpdate,
commonShopTable,
questionBank,
commonCommont
commonCommont,
price
},
activated() {
if (this.$route.query.upPageInde != null) {
@@ -490,6 +499,13 @@ export default {
this.getTreeList(this.urlList.sociologyList, 2);
},
methods: {
priceHandle(row) {
console.log("row1", row);
this.priceVisible = true;
this.$nextTick(() => {
this.$refs.priceUpdate.init(row, this.courseid);
});
},
delPro(val) {
console.log(val, this.relationProducts);
let list = this.relationProducts;