This commit is contained in:
2024-05-21 15:04:22 +08:00
parent db0a4f04d8
commit 03782f7635
3 changed files with 20 additions and 20 deletions

View File

@@ -281,7 +281,7 @@ export default {
else {
form.current = this.pageIndex;
await this.$http({
url: this.$http.adornUrl(this.urlList.getNotToLabelList),
url: this.$http.adornUrl(this.urlList.getNotToLabelList||this.urlList.CanBindProductList),
method: "post",
data: this.$http.adornData(form)
}).then(({ data }) => {

View File

@@ -534,8 +534,8 @@ export default {
this.$nextTick(async () => {
this.$refs.commonTree.setCurrentNodeShow(data.market.id);
this.addForm = data.result;
this.currentNode = { data: { ...data.result } };
this.addForm = data.market;
this.currentNode = { data: { ...data.market } };
this.$message({
message: "操作成功",
type: "success",

View File

@@ -2,7 +2,7 @@
<div class="mod-config">
<commonTree
source="tags"
axiosType="raw"
axiosResultKey="market"
@changeCurrentNode="changeCurrentNode"
ref="commonTree"
@@ -94,7 +94,7 @@
<commonShop
:isNoSearch="true"
:otherInfo="{
httpType: 'raw',
httpDataValueName: 'courseList'
}"
:defaultForm="{
@@ -229,8 +229,8 @@
httpDataTotalName: 'total'
}"
:defaultForm="{
keywords: '',
id: addForm.id
title: '',
marketId: addForm.id
}"
:urlList="urlList"
:tableColumnList="tableColumnList"
@@ -241,12 +241,12 @@
@submit="handleSubmitShopTable"
>
<template slot="searchFormItem" slot-scope="slotProps">
<el-form-item label="课程名称" prop="keywords" class="form_item">
<el-form-item label="课程名称" prop="title" class="form_item">
<el-input
size="small"
placeholder="请输入课程名称"
style="width: 100%"
v-model="slotProps.dataForm.keywords"
v-model="slotProps.dataForm.title"
clearable
>
</el-input>
@@ -314,16 +314,16 @@ export default {
checkAll: false,
isIndeterminate: true,
urlList: {
treeList: "/master/courseSociologyMarket/marketTree",
delete: "/master/courseSociologyMarket/delMarket",
treeList: "/master/courseMedicineMarket/marketTree",
delete: "/master/courseMedicineMarket/delMarket",
deleteShop:
"/master/courseSociologyMarket/unbindCourseAndSociologyMarket",
saveShop: "/master/courseSociologyMarket/bindCourseAndSociologyMarket",
add: "/master/courseSociologyMarket/addSociologyMarket",
edit: "/master/courseSociologyMarket/editSociologyMarket",
hasBindProductList:
"/master/courseSociologyMarket/getCourseListByMarketId",
CanBindProductList: "/master/courseSociologyMarket/getNotToMarketList"
"/master/courseMedicineMarket/delToMarket",
saveShop: "/master/courseMedicineMarket/saveToMarket",
add: "/master/courseMedicineMarket/saveOrUpdateMarket",
edit: "/master/courseMedicineMarket/saveOrUpdateMarket",
getAssociatedGoodsList:
"/master/courseMedicineMarket/getCourseByMarketId",
getNotToLabelList: "/master/courseMedicineMarket/getNotToMarketList"
},
addForm: {},
isFresh: false,
@@ -532,7 +532,7 @@ export default {
await this.getDataList();
this.$nextTick(async () => {
this.$refs.commonTree.setCurrentNodeShow(data.market.id);
this.$refs.commonTree.setCurrentNodeShow(data.result.id);
this.addForm = data.result;
this.currentNode = { data: { ...data.result } };