安环接口联调

test
zhangdi 3 days ago
parent a1179be30f
commit ad5a620d1b
  1. 24
      pages/index/menu.js
  2. 4
      pages/safe/inspection.vue
  3. 4
      pages/sanitation/gasInspection.vue
  4. 4
      pages/sanitation/waterInspection.vue

@ -223,18 +223,18 @@ const menus = {
{ {
title: '安环管理', title: '安环管理',
children: [ children: [
{ // {
key: "spotCheck", // key: "spotCheck",
title: "安全点检", // title: "安全点检",
url: "../safe/spotCheck", // url: "../safe/spotCheck",
bgColor: '', // bgColor: '',
limit: 'RB2315', // limit: 'RB2315',
icon: { // icon: {
size: 20, // size: 20,
color: '#00b7ee', // color: '#00b7ee',
type: '' // type: ''
} // }
}, // },
{ {
key: "inspection", key: "inspection",
title: "安全巡检", title: "安全巡检",

@ -137,9 +137,11 @@ export default {
res.tempFilePaths.forEach((filePath) => { res.tempFilePaths.forEach((filePath) => {
console.log("file-----------", filePath); console.log("file-----------", filePath);
console.log("options.baseURL------", options.baseURL); console.log("options.baseURL------", options.baseURL);
const server_config = uni.getStorageSync("server-config")
console.log(999999,server_config)
uni.uploadFile({ uni.uploadFile({
url: url:
options.baseURL + server_config.rootUrl +
"/blade-resource/oss/endpoint/put-file-attach", "/blade-resource/oss/endpoint/put-file-attach",
filePath: filePath, filePath: filePath,
name: "file", name: "file",

@ -98,6 +98,8 @@ export default {
icon: 'none' icon: 'none'
}); });
} }
const server_config = uni.getStorageSync("server-config")
console.log(999999,server_config)
uni.chooseImage({ uni.chooseImage({
count: 9, count: 9,
// sizeType: ['compressed'], // sizeType: ['compressed'],
@ -108,7 +110,7 @@ export default {
}); });
res.tempFilePaths.forEach(filePath => { res.tempFilePaths.forEach(filePath => {
uni.uploadFile({ uni.uploadFile({
url: options.baseURL + '/blade-resource/oss/endpoint/put-file-attach', url: server_config.rootUrl + '/blade-resource/oss/endpoint/put-file-attach',
filePath: filePath, filePath: filePath,
name: 'file', name: 'file',
header: { header: {

@ -123,10 +123,12 @@ export default {
uni.showLoading({ uni.showLoading({
title: "上传中,请稍候", title: "上传中,请稍候",
}); });
const server_config = uni.getStorageSync("server-config")
console.log(999999,server_config)
res.tempFilePaths.forEach((filePath) => { res.tempFilePaths.forEach((filePath) => {
uni.uploadFile({ uni.uploadFile({
url: url:
options.baseURL + server_config.rootUrl +
"/blade-resource/oss/endpoint/put-file-attach", "/blade-resource/oss/endpoint/put-file-attach",
filePath: filePath, filePath: filePath,
name: "file", name: "file",

Loading…
Cancel
Save