diff --git a/src/views/components/commonBookTags/shopproduct.vue b/src/views/components/commonBookTags/shopproduct.vue index 358be78..3820f35 100644 --- a/src/views/components/commonBookTags/shopproduct.vue +++ b/src/views/components/commonBookTags/shopproduct.vue @@ -1,7 +1,9 @@ - + + + + 正在编辑课程:{{ editForm.title }} + + + + + + 不显示 + 初级 + 高级 + 不显示 + 必修 + 选修 + + + + + 取 消 + 确 定 + + @@ -172,7 +157,7 @@ export default { "isNoSearch", "isNoPaging", "axiosType", - "otherInfo", + "otherInfo" ], data() { return { @@ -194,7 +179,9 @@ export default { chooseBookVisible: false, bookIds: [], selectShopArr: [], - dataForm: {} + dataForm: {}, + editVisible: false, + editForm: {} }; }, watch: { @@ -219,6 +206,32 @@ export default { // await this.getGoodsTypeList(); }, methods: { + editHandleClose(){ + this.editForm = {} + this.editVisible = false + }, + submitEdit() { + this.$http({ + url: this.$http.adornUrl(`${this.urlList.editCourse}`), + method: "post", + data: this.$http.adornData(this.editForm) + }).then(data => { + this.$message.success("操作成功!"); + this.editHandleClose() + this.getAssociatedGoodsList() + }); + }, + editCourse(row) { + console.log("row", row); + this.editVisible = true; + this.editForm = { + title: row.title, + id: row.bindId, + sort:row.toSociologySort, + level:row.level, + selective:row.selective + }; + }, shopDelete(row) { this.$emit("delete", [row]); }, @@ -280,6 +293,7 @@ export default { // 获取数据列表 async getDataList(bookMarketId) { + this.bookMarketId = bookMarketId; this.dataListLoading = true; this.getDataList = []; @@ -325,15 +339,12 @@ export default { this.dataListLoading = true; - if (this.otherInfo.httpType == "raw"&&this.otherInfo.isNoPaging ) { + 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 - }, + data: { current: 1, limit: 99999999, ...form }, header: { //默认 无 说明:请求头 "Content-Type": "application/json" @@ -346,16 +357,13 @@ export default { this.dataListLoading = false; } }); - } - - else if (this.otherInfo.httpType == "raw") { + } else if (this.otherInfo.httpType == "raw") { this.$http .request({ url: this.$http.adornUrl(`${this.urlList.hasBindProductList}`), method: "POST", data: { - - ...form + ...form }, header: { //默认 无 说明:请求头 @@ -364,14 +372,14 @@ export default { }) .then(async ({ data }) => { if (data && data.code === 0) { - this.associatedGoodsList = [...data[this.otherInfo.httpDataValueName]]; + this.associatedGoodsList = [ + ...data[this.otherInfo.httpDataValueName] + ]; this.dataListLoading = false; } }); - } - - else { + } else { await this.$http({ url: this.$http.adornUrl(`${this.urlList.getAssociatedGoodsList}`), method: "post", diff --git a/src/views/modules/course/medicalLabel.vue b/src/views/modules/course/medicalLabel.vue index dc0eeba..c0c130f 100644 --- a/src/views/modules/course/medicalLabel.vue +++ b/src/views/modules/course/medicalLabel.vue @@ -209,6 +209,37 @@ /> + + + + + 不显示 + 初级 + 高级 + + + + + 不显示 + 必修 + 选修 + + @@ -353,9 +384,11 @@ export default { add: "/master/courseMedical/addCourseMedical", edit: "/master/courseMedical/editCourseMedical", hasBindProductList: "/master/courseMedical/getCourseListForMedical", - CanBindProductList: "/master/courseMedical/getCourseListCanMedical" + CanBindProductList: "/master/courseMedical/getCourseListCanMedical", + editCourse:'/master/courseMedical/updateCourseToMedicalSort' }, addForm: {}, + isFresh: false, dataRule: { name: [ diff --git a/static/config/index.js b/static/config/index.js index 9e62848..d81f202 100644 --- a/static/config/index.js +++ b/static/config/index.js @@ -7,8 +7,8 @@ // api接口请求地址 // window.SITE_CONFIG['baseUrl'] = 'http://192.168.110.100: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://api.nuttyreading.com'; // 线上正式环境 + window.SITE_CONFIG['baseUrl'] = 'https://testapi.nuttyreading.com'; // 线上测试环境11 + // window.SITE_CONFIG['baseUrl'] = 'https://api.nuttyreading.com'; // 线上正式环境 // 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://192.168.110.100:9200/pb';