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 { else {
form.current = this.pageIndex; form.current = this.pageIndex;
await this.$http({ await this.$http({
url: this.$http.adornUrl(this.urlList.getNotToLabelList), url: this.$http.adornUrl(this.urlList.getNotToLabelList||this.urlList.CanBindProductList),
method: "post", method: "post",
data: this.$http.adornData(form) data: this.$http.adornData(form)
}).then(({ data }) => { }).then(({ data }) => {

View File

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

View File

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