洋浦学校八大中心 德育管理前端

init
gongdi 3 years ago
parent 3ec517a782
commit 0e3d61e064

@ -230,6 +230,7 @@
},
// eslint-disable-next-line no-unused-vars
onFilesAdded: function (uploader, files, success) {
console.log("filessss:",files)
this.alertShow = false;
this.isLoading = true;
files.forEach((file) => {

@ -10,8 +10,8 @@ function getContextHtmlPath (){//获取桶名信息
}
return result;
}
axios.defaults.baseURL = getContextHtmlPath();
//axios.defaults.baseURL = '/dsideal_yy/'
//axios.defaults.baseURL = getContextHtmlPath();
axios.defaults.baseURL = '/dsideal_yy/'
axios.defaults.timeout = 800000
axios.defaults.withCredentials = false
// axios.defaults.headers['Content-Type'] = 'application/json;charset=UTF-8';

@ -683,16 +683,12 @@ StaticParams.closePopModal = (com) => {
* insert:是否调插入资源表接口 默认true
* */
StaticParams.uploadFile = (file, callback = null,insert = true) => {
console.log("file:",file)
console.log("callback:",callback)
console.log("insert:",insert)
let split = file.name.split('.');
let guid = GUID_UUID.guid();
let key = BaseConfig.url_path_suffix + guid.substring(0, 2) + "/" + guid + "." + split[1]
let fd = new FormData();
fd.append('name', file.name)
fd.append('key', key)
if (BaseConfig.pt_type === "1") {
InterfaceConfig.callInterface([{ url: "uploadres/getSignatureInfo", method: "get", params: {}, isTestLogin: true }], (result) => {
if (result[0].success || result[0].status === 200) {
@ -717,10 +713,10 @@ StaticParams.uploadFile = (file, callback = null,insert = true) => {
},
}).then((rsp) => {
//rsp云上传这里传的值和局上传不一样
console.log("insert111:",insert)
if(insert === true){
StaticParams.insertResource(rsp, file, guid, split[0], split[1], callback)
}else {
rsp.data = {url:key}
callback({ success: true, data: rsp })
}
}).catch((error) => {

@ -234,6 +234,10 @@
}
span {
line-height: 30px !important;
background-color:transparent !important;
}
strong{
background-color:transparent !important;
}
}
}

@ -198,6 +198,7 @@
}
},
attachmentFile: function (file) {
console.log("file:",file)
this.attachmentJson = file;
},
onChange(value, dateString) {

@ -96,7 +96,8 @@
"query": {
"query_id": "query_dangjian_tuandui",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
//this.BaseConfig.person_info_my.bureau_id + ""
"900008135"
]
},
"query_cache": 0,
@ -134,6 +135,7 @@
})
},
showInfo: function (item) {
let param = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
"query": {
@ -155,6 +157,7 @@
let dataInfo = JSON.parse(result[0].data.result);
if(dataInfo && dataInfo.length > 0){
let info = dataInfo[0];
console.log("info:",info)
let infoObj = {
title:info.info_title,
infoArr:[

Loading…
Cancel
Save