课程营销标签
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<slot name="tableItem"></slot>
|
<slot name="tableItem"></slot>
|
||||||
|
|
||||||
<!-- <el-table-column
|
<!-- <el-table-column
|
||||||
:reserve-selection="true"
|
:reserve-selection="true"
|
||||||
type="selection"
|
type="selection"
|
||||||
@@ -82,9 +83,11 @@
|
|||||||
header-align="center"
|
header-align="center"
|
||||||
align="center"
|
align="center"
|
||||||
label="操作"
|
label="操作"
|
||||||
width="80"
|
|
||||||
|
width="120"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<slot name="operation" :row="scope.row"></slot>
|
||||||
<el-button
|
<el-button
|
||||||
type="text"
|
type="text"
|
||||||
style="color: red;"
|
style="color: red;"
|
||||||
@@ -322,12 +325,36 @@ export default {
|
|||||||
|
|
||||||
this.dataListLoading = true;
|
this.dataListLoading = true;
|
||||||
|
|
||||||
if (this.otherInfo.httpType == "raw") {
|
if (this.otherInfo.httpType == "raw"&&this.otherInfo.isNoPaging ) {
|
||||||
|
this.$http
|
||||||
|
.request({
|
||||||
|
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
||||||
|
method: "POST",
|
||||||
|
data: { current: 1,
|
||||||
|
limit: 99999999,
|
||||||
|
...form
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
//默认 无 说明:请求头
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(async ({ data }) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.associatedGoodsList = [...data.result.records];
|
||||||
|
|
||||||
|
this.dataListLoading = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (this.otherInfo.httpType == "raw") {
|
||||||
this.$http
|
this.$http
|
||||||
.request({
|
.request({
|
||||||
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`),
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
|
|
||||||
...form
|
...form
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
|
|||||||
@@ -248,6 +248,7 @@ export default {
|
|||||||
this.clear();
|
this.clear();
|
||||||
if (this.otherInfo.httpType == "raw") {
|
if (this.otherInfo.httpType == "raw") {
|
||||||
form.page = this.pageIndex;
|
form.page = this.pageIndex;
|
||||||
|
form.current = this.pageIndex;
|
||||||
this.$http
|
this.$http
|
||||||
.request({
|
.request({
|
||||||
url: this.$http.adornUrl(`${this.urlList.CanBindProductList}`),
|
url: this.$http.adornUrl(`${this.urlList.CanBindProductList}`),
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -179,6 +179,14 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
</template> <template slot="operation" slot-scope="slotProps">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
|
||||||
|
@click="dataFormEdit(slotProps.row)"
|
||||||
|
size="mini"
|
||||||
|
>修改排序</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</commonShop>
|
</commonShop>
|
||||||
|
|
||||||
@@ -297,6 +305,51 @@
|
|||||||
ref="addOrUpdate"
|
ref="addOrUpdate"
|
||||||
@refreshDataList="getDataList"
|
@refreshDataList="getDataList"
|
||||||
></add-or-update>
|
></add-or-update>
|
||||||
|
<el-dialog
|
||||||
|
:append-to-body="true"
|
||||||
|
:modal-append-to-body="false"
|
||||||
|
title="修改排序"
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
width="30%"
|
||||||
|
:before-close="handleClose"
|
||||||
|
>
|
||||||
|
<div class="addFormBox selectTimeBox">
|
||||||
|
<el-form ref="addForm" :model="dataForm" label-width="80px">
|
||||||
|
<slot name="searchFormItem" :dataForm="dataForm"></slot>
|
||||||
|
|
||||||
|
<el-form-item
|
||||||
|
label="课程名称:"
|
||||||
|
class="form_item"
|
||||||
|
style="width: 100% !important"
|
||||||
|
>
|
||||||
|
<p class="input_item">
|
||||||
|
{{ dataForm.title }}
|
||||||
|
</p>
|
||||||
|
<!-- selectCourse -->
|
||||||
|
<!-- <el-input
|
||||||
|
v-model="selectCourse.courseCatalogueTitle"
|
||||||
|
readonly
|
||||||
|
></el-input> -->
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="排序:"
|
||||||
|
class="form_item"
|
||||||
|
style="width: 100% !important"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="dataForm.toSociologySort"
|
||||||
|
type="number"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="handleSubmitDataForm"
|
||||||
|
>确 定</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -310,6 +363,7 @@ import commonTree from "@/views/components/commonBookTags/tags.vue";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dialogVisible: false,
|
||||||
isEdit: false,
|
isEdit: false,
|
||||||
checkAll: false,
|
checkAll: false,
|
||||||
isIndeterminate: true,
|
isIndeterminate: true,
|
||||||
@@ -324,6 +378,9 @@ export default {
|
|||||||
hasBindProductList:
|
hasBindProductList:
|
||||||
"/master/courseSociologyMarket/getCourseListByMarketId",
|
"/master/courseSociologyMarket/getCourseListByMarketId",
|
||||||
CanBindProductList: "/master/courseSociologyMarket/getNotToMarketList"
|
CanBindProductList: "/master/courseSociologyMarket/getNotToMarketList"
|
||||||
|
, editSort: "/master/courseSociology/updateCourseToSociologySort",
|
||||||
|
}, dataForm: {
|
||||||
|
key: ""
|
||||||
},
|
},
|
||||||
addForm: {},
|
addForm: {},
|
||||||
isFresh: false,
|
isFresh: false,
|
||||||
@@ -415,13 +472,16 @@ export default {
|
|||||||
this.isEdit = false;
|
this.isEdit = false;
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: { handleClose() {
|
||||||
|
this.dataForm = {};
|
||||||
|
this.dialogVisible = false;
|
||||||
|
},
|
||||||
UpNumber(e) {
|
UpNumber(e) {
|
||||||
e.target.value = e.target.value.replace(/[^\d]/g, "");
|
e.target.value = e.target.value.replace(/[^\d]/g, "");
|
||||||
},
|
},
|
||||||
dataFormEdit() {
|
dataFormEdit(row) {
|
||||||
this.checkAll = false;
|
this.dataForm = { ...row };
|
||||||
this.isEdit = !this.isEdit;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
handleCheckAllChange(val) {
|
handleCheckAllChange(val) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
@@ -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,8 +94,8 @@
|
|||||||
<commonShop
|
<commonShop
|
||||||
:isNoSearch="true"
|
:isNoSearch="true"
|
||||||
:otherInfo="{
|
:otherInfo="{
|
||||||
|
httpType: 'raw',
|
||||||
httpDataValueName: 'courseList'
|
httpDataValueName: 'list'
|
||||||
}"
|
}"
|
||||||
:defaultForm="{
|
:defaultForm="{
|
||||||
marketId: addForm.id
|
marketId: addForm.id
|
||||||
@@ -180,6 +180,14 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
|
<template slot="operation" slot-scope="slotProps">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
@click="dataFormEdit(slotProps.row)"
|
||||||
|
size="mini"
|
||||||
|
>修改排序</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
</commonShop>
|
</commonShop>
|
||||||
|
|
||||||
<div class="submitButton submitButtonBox">
|
<div class="submitButton submitButtonBox">
|
||||||
@@ -229,8 +237,8 @@
|
|||||||
httpDataTotalName: 'total'
|
httpDataTotalName: 'total'
|
||||||
}"
|
}"
|
||||||
:defaultForm="{
|
:defaultForm="{
|
||||||
title: '',
|
keywords: '',
|
||||||
marketId: addForm.id
|
id: addForm.id
|
||||||
}"
|
}"
|
||||||
:urlList="urlList"
|
:urlList="urlList"
|
||||||
:tableColumnList="tableColumnList"
|
:tableColumnList="tableColumnList"
|
||||||
@@ -241,12 +249,12 @@
|
|||||||
@submit="handleSubmitShopTable"
|
@submit="handleSubmitShopTable"
|
||||||
>
|
>
|
||||||
<template slot="searchFormItem" slot-scope="slotProps">
|
<template slot="searchFormItem" slot-scope="slotProps">
|
||||||
<el-form-item label="课程名称" prop="title" class="form_item">
|
<el-form-item label="课程名称" prop="keywords" class="form_item">
|
||||||
<el-input
|
<el-input
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入课程名称"
|
placeholder="请输入课程名称"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model="slotProps.dataForm.title"
|
v-model="slotProps.dataForm.keywords"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
@@ -273,6 +281,13 @@
|
|||||||
label="课程名称"
|
label="课程名称"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="sort"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="排序"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
header-align="center"
|
header-align="center"
|
||||||
@@ -297,6 +312,51 @@
|
|||||||
ref="addOrUpdate"
|
ref="addOrUpdate"
|
||||||
@refreshDataList="getDataList"
|
@refreshDataList="getDataList"
|
||||||
></add-or-update>
|
></add-or-update>
|
||||||
|
<el-dialog
|
||||||
|
:append-to-body="true"
|
||||||
|
:modal-append-to-body="false"
|
||||||
|
title="修改排序"
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
width="30%"
|
||||||
|
:before-close="handleClose"
|
||||||
|
>
|
||||||
|
<div class="addFormBox selectTimeBox">
|
||||||
|
<el-form ref="addForm" :model="dataForm" label-width="80px">
|
||||||
|
<slot name="searchFormItem" :dataForm="dataForm"></slot>
|
||||||
|
|
||||||
|
<el-form-item
|
||||||
|
label="课程名称:"
|
||||||
|
class="form_item"
|
||||||
|
style="width: 100% !important"
|
||||||
|
>
|
||||||
|
<p class="input_item">
|
||||||
|
{{ dataForm.title }}
|
||||||
|
</p>
|
||||||
|
<!-- selectCourse -->
|
||||||
|
<!-- <el-input
|
||||||
|
v-model="selectCourse.courseCatalogueTitle"
|
||||||
|
readonly
|
||||||
|
></el-input> -->
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="排序:"
|
||||||
|
class="form_item"
|
||||||
|
style="width: 100% !important"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="dataForm.toSociologySort"
|
||||||
|
type="number"
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="handleSubmitDataForm"
|
||||||
|
>确 定</el-button
|
||||||
|
>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -310,6 +370,7 @@ import commonTree from "@/views/components/commonBookTags/tags.vue";
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dialogVisible: false,
|
||||||
isEdit: false,
|
isEdit: false,
|
||||||
checkAll: false,
|
checkAll: false,
|
||||||
isIndeterminate: true,
|
isIndeterminate: true,
|
||||||
@@ -317,13 +378,13 @@ export default {
|
|||||||
treeList: "/master/courseMedicineMarket/marketTree",
|
treeList: "/master/courseMedicineMarket/marketTree",
|
||||||
delete: "/master/courseMedicineMarket/delMarket",
|
delete: "/master/courseMedicineMarket/delMarket",
|
||||||
deleteShop:
|
deleteShop:
|
||||||
"/master/courseMedicineMarket/delToMarket",
|
"/master/courseMedicineMarket/unbindCourseAndMedicineMarket",
|
||||||
saveShop: "/master/courseMedicineMarket/saveToMarket",
|
saveShop: "/master/courseMedicineMarket/bindCourseAndMedicineMarket",
|
||||||
add: "/master/courseMedicineMarket/saveOrUpdateMarket",
|
add: "/master/courseMedicineMarket/addSociologyMarket",
|
||||||
edit: "/master/courseMedicineMarket/saveOrUpdateMarket",
|
edit: "/master/courseMedicineMarket/editSociologyMarket",
|
||||||
getAssociatedGoodsList:
|
hasBindProductList: "/master/courseMedicineMarket/getCourseByMarketId",
|
||||||
"/master/courseMedicineMarket/getCourseByMarketId",
|
CanBindProductList: "/master/courseMedicineMarket/getNotToMarketList",
|
||||||
getNotToLabelList: "/master/courseMedicineMarket/getNotToMarketList"
|
editSort: "/master/courseSociology/updateCourseToSociologySort"
|
||||||
},
|
},
|
||||||
addForm: {},
|
addForm: {},
|
||||||
isFresh: false,
|
isFresh: false,
|
||||||
@@ -416,12 +477,49 @@ export default {
|
|||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleClose() {
|
||||||
|
this.dataForm = {};
|
||||||
|
this.dialogVisible = false;
|
||||||
|
},
|
||||||
|
handleSubmitDataForm: debounce(async function() {
|
||||||
|
var that = this;
|
||||||
|
this.$http
|
||||||
|
.request({
|
||||||
|
url: this.$http.adornUrl(`${this.urlList.editSort}`),
|
||||||
|
method: "POST",
|
||||||
|
data: {
|
||||||
|
id: this.dataForm.bindId,
|
||||||
|
sort: Number(this.dataForm.toSociologySort)
|
||||||
|
},
|
||||||
|
header: {
|
||||||
|
//默认 无 说明:请求头
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
.then(async ({ data }) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message.success(data.msg);
|
||||||
|
|
||||||
|
if (this.$refs.commonShop) {
|
||||||
|
this.$refs.commonShop.getAssociatedGoodsList({
|
||||||
|
courseId: this.addForm.id
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg);
|
||||||
|
}
|
||||||
|
that.dialogVisible = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
that.$forceUpdate();
|
||||||
|
}, 200),
|
||||||
UpNumber(e) {
|
UpNumber(e) {
|
||||||
e.target.value = e.target.value.replace(/[^\d]/g, "");
|
e.target.value = e.target.value.replace(/[^\d]/g, "");
|
||||||
},
|
},
|
||||||
dataFormEdit() {
|
dataFormEdit(row) {
|
||||||
this.checkAll = false;
|
this.dataForm = { ...row };
|
||||||
this.isEdit = !this.isEdit;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
handleCheckAllChange(val) {
|
handleCheckAllChange(val) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -532,10 +630,10 @@ export default {
|
|||||||
await this.getDataList();
|
await this.getDataList();
|
||||||
|
|
||||||
this.$nextTick(async () => {
|
this.$nextTick(async () => {
|
||||||
this.$refs.commonTree.setCurrentNodeShow(data.result.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",
|
||||||
@@ -549,7 +647,7 @@ export default {
|
|||||||
this.$message.error(data.msg);
|
this.$message.error(data.msg);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.addForm = { ...this.currentNode.data };
|
this.addForm = { ...this.currentNode.data };
|
||||||
},500)
|
}, 500);
|
||||||
|
|
||||||
// console.log('this.addForm at line 550:', this.addForm)
|
// console.log('this.addForm at line 550:', this.addForm)
|
||||||
// console.log('this.addForm at line 550:', this.currentNode)
|
// console.log('this.addForm at line 550:', this.currentNode)
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
>
|
>
|
||||||
<div class="title_box" style="margin-bottom: 10px; height: 40px">
|
<div class="title_box" style="margin-bottom: 10px; height: 40px">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<span class="line"></span>已绑定课程列表
|
<span class="line"></span>已关联课程列表
|
||||||
<el-button
|
<el-button
|
||||||
plain
|
plain
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -289,10 +289,10 @@ export default {
|
|||||||
UpNumber(e) {
|
UpNumber(e) {
|
||||||
e.target.value = e.target.value.replace(/[^\d]/g, "");
|
e.target.value = e.target.value.replace(/[^\d]/g, "");
|
||||||
},
|
},
|
||||||
dataFormEdit() {
|
// dataFormEdit() {
|
||||||
this.checkAll = false;
|
// this.checkAll = false;
|
||||||
this.isEdit = !this.isEdit;
|
// this.isEdit = !this.isEdit;
|
||||||
},
|
// },
|
||||||
handleCheckAllChange(val) {
|
handleCheckAllChange(val) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.commonShop.handleCheckAllChange(val);
|
this.$refs.commonShop.handleCheckAllChange(val);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||||
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
// window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.110:9200/pb';//磊哥
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://59.110.212.44:9200/pb';
|
||||||
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
// window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100:9200/pb';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user