安环接口联调

test
zhangdi 1 day 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: '安环管理',
children: [
{
key: "spotCheck",
title: "安全点检",
url: "../safe/spotCheck",
bgColor: '',
limit: 'RB2315',
icon: {
size: 20,
color: '#00b7ee',
type: ''
}
},
// {
// key: "spotCheck",
// title: "安全点检",
// url: "../safe/spotCheck",
// bgColor: '',
// limit: 'RB2315',
// icon: {
// size: 20,
// color: '#00b7ee',
// type: ''
// }
// },
{
key: "inspection",
title: "安全巡检",

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

@ -98,6 +98,8 @@ export default {
icon: 'none'
});
}
const server_config = uni.getStorageSync("server-config")
console.log(999999,server_config)
uni.chooseImage({
count: 9,
// sizeType: ['compressed'],
@ -108,7 +110,7 @@ export default {
});
res.tempFilePaths.forEach(filePath => {
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,
name: 'file',
header: {

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

Loading…
Cancel
Save