修改项目版bug-上传图片、文件、样式

This commit is contained in:
yjl 2022-11-02 17:51:02 +08:00
parent 1b276e9519
commit 6ca59d8e47
3 changed files with 19 additions and 15 deletions

View File

@ -44,9 +44,9 @@ export default new Vuex.Store({
PAGESIZRS: [10, 20, 30, 50],
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
// FILEURL:'http://10.0.1.43:6023/image/',//测试
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
// BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
// UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
// FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
/* 2022-05-16 */
// tag: 部署河南项目时,需要打开这两行代码
// UPLOADURL: 'http://139.9.66.234:6324/upload/image',
@ -56,8 +56,10 @@ export default new Vuex.Store({
// UPLOADURL: 'http://182.90.224.237:7000/upload/image',
// FILEURL: 'http://182.90.224.237:7000/image/',
// 邱平毅的
// UPLOADURL: 'http://192.168.34.116:6023/upload/image',
// FILEURL: 'http://192.168.34.116:6023/image/',
UPLOADURL:'http://192.168.34.116:6023/upload/image',
FILEURL: 'http://192.168.34.116:6023/image/',
BASEURL: 'http://192.168.34.116:6023/', //
// UPLOADURL: 'http://124.71.67.160:8088/upload/image',
// FILEURL: 'http://124.71.67.160:8088/image/',

View File

@ -633,15 +633,15 @@ export default {
//
handleBeforeUpload(file) {
if (
file.type != "image/jpeg" ||
file.type != "image/jpg" ||
file.type != "image/png" ||
file.type != "image/webp"
) {
this.$message.error(this.$t("message.laborMange.uploadedError"));
return false;
}
// if (
// file.type != "image/jpeg" ||
// file.type != "image/jpg" ||
// file.type != "image/png" ||
// file.type != "image/webp"
// ) {
// this.$message.error(this.$t("message.laborMange.uploadedError"));
// return false;
// }
},
//
handleRemove(file, fileList) {
@ -662,7 +662,8 @@ export default {
//
if (file.url) {
this.dialogImageUrl = this.fileUrl + file.url;
} else {
} else
{
this.dialogImageUrl = this.fileUrl + file.response.data[0].imageUrl;
}
},

View File

@ -445,6 +445,7 @@ export default {
box-sizing: border-box;
height: 60px;
background: #eeeeee;
line-height: 35px;
}
.type_content {