上传附件调整
This commit is contained in:
parent
5866ab9c00
commit
ded17a0b8e
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user