提交 75c80209 authored 作者: 龙菲's avatar 龙菲

修改环境

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