上传附件调整

This commit is contained in:
sunliwei 2024-09-04 14:36:17 +08:00
parent 5866ab9c00
commit ded17a0b8e

View File

@ -454,7 +454,7 @@
this.columns.push(arr)
console.log(res);
})
// request({
// url: '/system/dict-data/page?pageNo=1&pageSize=100&dictType=rescue_driver_record_type',
// method: 'get'
@ -764,8 +764,8 @@
url: '/infra/file/upload',
filePath: url,
}).then((res) => {
console.log('images', res.fileName);
this.images.push(res.fileName)
console.log('images', res.data.url);
this.images.push(res.data.url)
})
},
@ -773,7 +773,7 @@
permissions() {
// #ifdef APP-PLUS
// #ifdef APP-PLUS
if (plus.os.name == 'Android') { // Android
console.log('1212');
var main = plus.android.runtimeMainActivity();
@ -788,7 +788,7 @@
console.log(NotificationManagerCompat, 'NotificationManagerCompat');
console.log('areNotificationsEnabled12');
var areNotificationsEnabled = NotificationManagerCompat.from(main).areNotificationsEnabled();
//
//
console.log(areNotificationsEnabled, 'areNotificationsEnabled');
if (!areNotificationsEnabled) {
uni.showModal({
@ -798,21 +798,21 @@
if (res.confirm) {
var Intent = plus.android.importClass('android.content.Intent');
var Build = plus.android.importClass("android.os.Build");
//android 8.0
//android 8.0
if (Build.VERSION.SDK_INT >= 26) {
var intent = new Intent('android.settings.APP_NOTIFICATION_SETTINGS');
intent.putExtra('android.provider.extra.APP_PACKAGE', pkName);
} else if (Build.VERSION.SDK_INT >= 21) { //android 5.0-7.0
} else if (Build.VERSION.SDK_INT >= 21) { //android 5.0-7.0
var intent = new Intent('android.settings.APP_NOTIFICATION_SETTINGS');
intent.putExtra("app_package", pkName);
intent.putExtra("app_uid", uid);
} else { //(<21)--
} else { //(<21)--
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
var uri = Uri.fromParts("package", mainActivity.getPackageName(),
null);
intent.setData(uri);
}
//
//
main.startActivity(intent);
} else if (res.cancel) {
console.log('用户点击取消');
@ -850,7 +850,7 @@
})
}
}
// #endif
// #endif
}
}
}
@ -1230,4 +1230,4 @@
font-size: 16px;
font-weight: 700;
}
</style>
</style>