-
+
-
-
+
+
-
-
-
-
保存
@@ -105,7 +92,7 @@ export default {
form: {
id: null,
categoryId: null,
- imgPath: null,
+ imgPath: '',
content: null,
listStartTime: null,
listEndTime: null,
@@ -156,7 +143,6 @@ export default {
this.$nextTick(() => {
//this.init()
if(this.form.id){
- console.log(this.form.id)
get(this.form.id).then(data => {
this.form = data
})
@@ -189,7 +175,7 @@ export default {
},
handleChange(value){
console.log(value)
- this.form.categoryId = value[value.length-1];
+ this.form.categoryIds = value;
},
addCustomDialog () {
window.UE.registerUI('yshop', function (editor, uiName) {
@@ -226,7 +212,7 @@ export default {
}
},
doAdd() {
- this.form.imgPath = this.form.imageInput;
+ this.form.cids = this.form.categoryIds;
add(this.form).then(res => {
this.resetForm()
this.$notify({
@@ -245,7 +231,7 @@ export default {
})
},
doEdit() {
- this.form.imgPath = this.form.imageInput;
+ this.form.cids = this.form.categoryIds;
edit(this.form).then(res => {
this.resetForm()
this.$notify({
diff --git a/src/views/course/courseLevel.vue b/src/views/course/courseLevel.vue
index 35fdc7b..5ef01be 100644
--- a/src/views/course/courseLevel.vue
+++ b/src/views/course/courseLevel.vue
@@ -7,9 +7,6 @@
-
-
-
@@ -19,15 +16,6 @@
-
-
-
-
-
-
-
-
-