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

init
gongdi 3 years ago
parent 3ec517a782
commit 0e3d61e064

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

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

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

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

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

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

Loading…
Cancel
Save