diff --git a/src/views/College/components/CollegeDate.vue b/src/views/College/components/CollegeDate.vue
index b3f3a2c..7f57a09 100644
--- a/src/views/College/components/CollegeDate.vue
+++ b/src/views/College/components/CollegeDate.vue
@@ -17,7 +17,7 @@
-
+
diff --git a/src/views/College/components/CollegeEdit.vue b/src/views/College/components/CollegeEdit.vue
index a60778a..0bd5c7a 100644
--- a/src/views/College/components/CollegeEdit.vue
+++ b/src/views/College/components/CollegeEdit.vue
@@ -10,7 +10,6 @@
v-model="editVisible"
width="700px"
>
- {{ editData }}
@@ -81,13 +80,21 @@
-
-
+
+
+
{{ item }}
@@ -104,8 +111,14 @@
-
- {{ item.moldName }}
+
+ {{ item.moldName }}
@@ -170,8 +183,9 @@ export default {
this.times = this.editData.times
this.type = this.editData.type
this.whetherShow = this.editData.whetherShow
+ this.banner = this.editData.moldIds
this.fileList.push(this.editData.coverPicture)
- console.log("======>collegeEdit",this.data)
+ console.log("======>collegeEdit")
},
methods: {
@@ -181,13 +195,9 @@ export default {
this.fileList = []
this.editData.picUrl = ''
},
- changeBirthday(date, dateString) {
- // console.log(this.$moment(date._e).format('YYYY-MM-DD HH:mm:ss'));
- this.times = this.$moment(date._e).format('YYYY-MM-DD HH:mm:ss');
- },
- onChangeBan(e) {
- this.banner = e;
- console.log(this.banner)
+ changeTime(e){
+ return this.$moment(e).format('YYYY-MM-DD HH:mm:ss');
+
},
// 上传图片事件
handleChange(info) {
@@ -221,15 +231,14 @@ export default {
if (this.fileList.length > 0 || this.editData.picUrl) {
try {
console.log("handleSubmit",values)
- this.picId = this.fileList[0];
const params = {
param: {
academyId: this.editData.academyId,
- banners: this.banner,
+ banners: values.banner,
contentUrl: values.contentUrl,
coverPicture: this.fileList[0] || this.editData.coverPicture,
intro: values.intro,
- times: this.times,
+ times: this.changeTime(values.times._d),
title: values.title,
type: values.type,
whetherShow: values.whetherShow,