提交 9c30d2d0 authored 作者: 龙菲's avatar 龙菲

修改环境

上级 cd3f87ea
......@@ -2,5 +2,6 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = 'http://222.85.214.245:9066/api'
# VUE_APP_BASE_API = 'http://222.85.214.245:9066/api'
VUE_APP_BASE_API = '/api'
......@@ -2,5 +2,6 @@
ENV = 'staging'
# base api
VUE_APP_BASE_API = 'http://222.85.214.245:9066/api'
# VUE_APP_BASE_API = 'http://222.85.214.245:9066/api'
VUE_APP_BASE_API = '/api'
......@@ -175,8 +175,6 @@ export default {
},
// 文件上传成功的钩子
handleSuccess(res, file, fileList) {
console.log("res", res);
console.log("fileList", fileList);
this.$message.success("上传成功");
this.changeFileList(fileList);
},
......
......@@ -89,8 +89,6 @@ export default {
this.isShowUploadVideo = true;
this.videoFlag = false;
this.videoUploadPercent = 0;
console.log(res);
//后台上传数据
if (res.success == true) {
this.videoForm.showVideoPath = res.data.url; //上传成功后端返回视频地址 回显
......
......@@ -139,7 +139,6 @@ export function downloadBlob(url, fileName, typeSuffix) {
}
}).
then(response => {
console.log('response', response);
const blob = new Blob([response.data])
const link = document.createElement('a')
link.href = URL.createObjectURL(blob)
......
......@@ -62,10 +62,10 @@ export default {
},
methods: {
handleOperation(type, row) {
console.log("handleOperation", type, row);
// console.log("handleOperation", type, row);
},
handleChangeStatus(status) {
console.log('status',status);
// console.log('status',status);
},
},
};
......
......@@ -290,7 +290,6 @@ export default {
watch: {
visible: {
handler: function (value) {
console.log('visible',value);
this.dialogVisible = value;
},
immediate: true,
......
......@@ -68,7 +68,7 @@ export default {
immediate: true,
},
filesList(value) {
console.log("value", value);
// console.log("value", value);
},
},
data() {
......
......@@ -96,7 +96,6 @@ export default {
},
reset() {
console.log("reset");
this.loadData();
},
......
......@@ -229,7 +229,6 @@ export default {
this.filesList = [];
this.uploadCount = 0;
this.cancelUploadArr = [];
console.log(this.filesList, this.uploadCount);
}
},
},
......@@ -269,7 +268,6 @@ export default {
if (params.status == "") {
delete params.status;
}
console.log("params", params);
let res = await getCulturalRelicList(params);
if (res.code == 0) {
this.list = res.data;
......@@ -277,7 +275,6 @@ export default {
},
reset() {
console.log("reset");
this.loadData();
},
......@@ -294,7 +291,6 @@ export default {
}
},
async handleOperation(value, row) {
console.log("handleOperation", value, row);
switch (value.type) {
case "add":
this.editVisible = true;
......@@ -419,13 +415,6 @@ export default {
.catch(() => {
console.log("用户取消操作");
});
// // 取消请求
// if (this.uploadCount != this.filesList.length) {
// this.cancelUploadArr.forEach((cancelCallBack) => cancelCallBack()); //批量取消上传
// this.$Message.warning("取消上传!");
// }
console.log("父组件关闭被触发");
},
handleSuccess(res) {
......@@ -448,7 +437,6 @@ export default {
}
},
async handleChangeStatus(row) {
console.log("status", row);
const { status } = row;
let newStatus = status === "0" ? "1" : "0";
const params = {
......@@ -477,24 +465,6 @@ export default {
this.list.current = value;
this.loadData();
},
// 搜索
onSubmitSearch() {
console.log("submit!");
},
// 打开drawer
handleOpenDialog(type, value) {
this.editVisible = true;
switch (type) {
case "add":
console.log("新增");
break;
case "edit":
console.log("编辑", value);
break;
}
},
// 关闭Dialog
handleEditClose() {
this.editVisible = false;
......
......@@ -150,7 +150,7 @@
<el-form-item label="展览图片" :label-width="formLabelWidth">
<ImageUploader
:files="images"
:fileLimit="6"
:fileLimit="20"
:fileSize="50"
listType="picture-card"
:fileType="['png', 'jpeg', 'jpg']"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论