提交 8a44ca56 编写于 作者: kai.wang's avatar kai.wang

Merge branch 'dev-yqLive-20200611' of...

Merge branch 'dev-yqLive-20200611' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-yqLive-20200611
......@@ -117,10 +117,10 @@
contentList: [
{
value: '1',
label: '所有人可发布动态'
label: '所有人可发布'
}, {
value: '2',
label: '嘉宾可发布动态'
label: '管理员可发布'
},
],
}
......@@ -182,6 +182,7 @@
image.onload = function () {
let _this = this;
if (_this.width != fileLimit.width || _this.height != fileLimit.height) {
// if (false) {
vm.$message.error("图片尺寸不符合规范,请根据规范上传图片");
} else {
openLoading(vm);
......
......@@ -29,6 +29,7 @@
</div>
</template>
<script>
let vm = null;
import BreadCrumb from "@/components/breadcrumb.vue";
import BaseInfo from '@/components/yqrange/baseinfo.vue';
import Organzation from '@/components/yqrange/organzation.vue';
......@@ -61,6 +62,8 @@
}
},
created() {
vm = this;
// 根据ID是否有值判断编辑还是create
// debugger
const { enterType, id } = this.$route.query;
......@@ -83,6 +86,8 @@
if (this.enterType == 1) {
//edit
console.log("add");
this.commitQuanziInfo();
} else {
console.log("edit");
this.active = 1
......@@ -94,6 +99,25 @@
returnTypeData(item) {
this.formData[item.name] = item.val
},
commitQuanziInfo() {
let req = {
name: this.formData.projectName,
headUrl: this.formData.imgUrl1,
coverUrl: this.formData.imgUrl2,
introduce: this.formData.introduce,
dynamicFlag: this.formData.contentRole,
};
console.log("commitQuanziInfo() : name = " + req.name + ", headUrl = " + req.headUrl
+ ", coverUrl = " + req.coverUrl + ", introduce = " + req.introduce + ", dynamicFlag = " + req.dynamicFlag)
vm.POST("circle/circle/save", req).then(res => {
if (res.code == "000000") {
// console.log(res);
this.formData.id = res.id
} else {
//
}
});
},
}
}
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册