| | |
| | | "type" : "uniCloud" |
| | | }, |
| | | { |
| | | "playground" : "standard", |
| | | "playground" : "custom", |
| | | "type" : "uni-app:app-android" |
| | | }, |
| | | { |
| | |
| | | showError |
| | | } from "@/js/Page.js" |
| | | const rfidModule = uni.requireNativePlugin('RFIDModule'); |
| | | // const honrfidModule = uni.requireNativePlugin('HonRFIDModule'); |
| | | var main; |
| | | export default { |
| | | globalData: { |
| | |
| | | this.init(); |
| | | }, |
| | | onUnload() { |
| | | |
| | | if (this.deviceInfo) { |
| | | if (this.deviceInfo?.brand.includes('alps')) { // 汉德霍尔设备特征 |
| | | // 汉德霍尔 PDA rfid扫码页面卸载时释放资源 |
| | | if (rfidModule) { |
| | | rfidModule.closeModule(); |
| | | } |
| | | } else if (this.deviceInfo?.brand.includes('honeywell') || this.deviceInfo?.deviceBrand.includes( |
| | | 'honeywell')) { |
| | | // 霍尼韦尔 PDA rfid扫码页面卸载时释放资源 |
| | | if (rfidModule) { |
| | | rfidModule.closeModule(); |
| | | } |
| | | } else { |
| | | main.unregisterReceiver(receiver); // 停止监听广播 |
| | | } |
| | | } else { |
| | | main.unregisterReceiver(receiver); // 停止监听广播 |
| | |
| | | |
| | | init() { |
| | | let that = this; |
| | | |
| | | if (this.deviceInfo?.brand.includes('alps')) { // 汉德霍尔设备特征 |
| | | console.log(this.deviceInfo); |
| | | if (this.deviceInfo) { |
| | | if (this.deviceInfo.brand.includes('alps')) { // 汉德霍尔设备特征 |
| | | |
| | | rfidModule.initModule((res) => { |
| | | console.log("alps rfid initModule", res) |
| | | if (res.code < 0) { |
| | | showInfo(res.msg); |
| | | } |
| | | |
| | | }) |
| | | } else if (this.deviceInfo.brand.includes('honeywell') || this.deviceInfo.deviceBrand.includes( |
| | | 'honeywell')) { // 霍尼韦尔 |
| | | console.log("honeywell rfid initModule") |
| | | rfidModule.initModule("honeywell",(res) => { |
| | | console.log("rfid initModule", res) |
| | | if (res.code < 0) { |
| | | showInfo(res.msg); |
| | | } |
| | | |
| | | }) |
| | | } else if (this.deviceInfo?.brand.includes('mobiwire') || this.deviceInfo?.deviceBrand.includes( |
| | | |
| | | } else if (this.deviceInfo.brand.includes('mobiwire') || this.deviceInfo.deviceBrand.includes( |
| | | 'mobiwire')) { // 霍尼韦尔 |
| | | |
| | | this.initMobiwireScan() |
| | | } else { |
| | | |
| | | console.log(this.initScan); |
| | | this.initScan() |
| | | } |
| | | } else { |
| | | |
| | | this.initScan() |
| | | } |
| | | |
| | | }, |
| | | initMobiwireScan() { |
| | | main = plus.android.runtimeMainActivity(); // 获取主 activity |
| | |
| | | main.registerReceiver(receiver, filter); //注册监听 |
| | | }, |
| | | onScan(callback) { |
| | | if (this.deviceInfo?.brand.includes('alps')) { // 汉德霍尔设备特征 |
| | | if (this.deviceInfo) { |
| | | if (this.deviceInfo?.brand.includes('alps') ||(this.deviceInfo?.brand.includes('honeywell') || this.deviceInfo?.deviceBrand.includes( |
| | | 'honeywell'))) { // 汉德霍尔设备特征 |
| | | if (!rfidModule) |
| | | return |
| | | rfidModule.startScan((ret) => { |
| | |
| | | callback(result); |
| | | }); |
| | | } |
| | | |
| | | } else { |
| | | uni.$off("scanresult"); |
| | | uni.$on("scanresult", (result) => { |
| | | callback(result); |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | } |
| | |
| | | exStr = ex |
| | | tip = typeof ex.errMsg == "string" ? ex.errMsg :typeof ex.message == "string" ? ex.message: exStr |
| | | } |
| | | plus.nativeUI.toast(tip , {verticalAlign:"center",duration:"short"}); |
| | | plus.nativeUI.toast(`<div>${tip}</div>` , {verticalAlign:"center",type:"richtext",duration:"short"}); |
| | | } |
| | | |
| | | export function showError(ex,title=""){ |
| | |
| | | "name" : "MoboxPDA", |
| | | "appid" : "__UNI__56D451E", |
| | | "description" : "", |
| | | "versionName" : "1.1.75", |
| | | "versionCode" : 1175, |
| | | "versionName" : "1.1.77", |
| | | "versionCode" : 1177, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NOTIFICATION_POLICY\"/>" |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NOTIFICATION_POLICY\"/>", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH\" />", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\" />", |
| | | "<uses-permission android:name=\"android.permission.BLUETOOTH_SCAN\" />", |
| | | "<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />" |
| | | ], |
| | | "abiFilters" : [ "armeabi-v7a", "arm64-v8a" ], |
| | | "schemes" : "wmspda" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "nativePlugins" : { |
| | | "rfid" : { |
| | | "__plugin_info__" : { |
| | | "name" : "rfid", |
| | | "description" : "My rfid Plugin", |
| | | "platforms" : "Android", |
| | | "url" : "", |
| | | "android_package_name" : "", |
| | | "ios_bundle_id" : "", |
| | | "isCloud" : false, |
| | | "bought" : -1, |
| | | "pid" : "", |
| | | "parameters" : {} |
| | | } |
| | | } |
| | | } |
| | | "nativePlugins" : {} |
| | | }, |
| | | /* 快应用特有相关 */ |
| | | "quickapp" : {}, |
| New file |
| | |
| | | { |
| | | "name": "honrfid", |
| | | "id": "honrfid", |
| | | "version": "1.0.0", |
| | | "description": "honeywell rfid Plugin", |
| | | "_dp_type": "nativeplugin", |
| | | "_dp_nativeplugin": { |
| | | "android": { |
| | | "plugins": [{ |
| | | "type": "module", |
| | | "name": "RFIDModule", |
| | | "class": "com.handheld.honrfid.RFIDModule" |
| | | }], |
| | | "resources": [ |
| | | "res/raw/barcodebeep", |
| | | "res/raw/beeps", |
| | | "res/raw/beeps" |
| | | ], |
| | | "integrateType": "aar", |
| | | "minSdkVersion": 26 |
| | | } |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | { |
| | | "name": "rfid", |
| | | "id": "rfid", |
| | | "version": "1.0.0", |
| | | "description": "My rfid Plugin", |
| | | "_dp_type": "nativeplugin", |
| | | "_dp_nativeplugin": { |
| | | "android": { |
| | | "plugins": [{ |
| | | "type": "module", |
| | | "name": "RFIDModule", |
| | | "class": "com.handheld.rfid.RFIDModule" |
| | | }], |
| | | "resources": [ |
| | | "res/raw/barcodebeep", |
| | | "res/raw/beeps", |
| | | "res/raw/beeps" |
| | | ], |
| | | "integrateType": "aar", |
| | | "minSdkVersion": 26, |
| | | "gradleOptions": { |
| | | // 正确语法 |
| | | "packagingOptions": "pickFirst 'lib/**/libModuleAPIJni.so'", |
| | | |
| | | // 排除重复依赖 |
| | | "dependencies": { |
| | | "exclude": ["com.uhf.api.cls:ModuleAPI_J"] |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <div class="mui-content"> |
| | | <form id='login-form' class="mui-input-group"> |
| | | |
| | | <a href="javascript:;" class="SetServer" @click="inputDialogToggle">{{translateSys('set')}}</a> |
| | | <a href="javascript:;" class="SetServer" @click="clickSetLanguage">{{translateSys('language')}}</a> |
| | | <a href="javascript:;" class="set-server" @click="inputDialogToggle">{{translateSys('set')}}</a> |
| | | <navigator class="set-language" url="./language"> |
| | | <a href="javascript:;">{{translateSys('language')}}</a> |
| | | </navigator> |
| | | |
| | | |
| | | <div class="mui-input-row"> |
| | | <label class="la_icon"> |
| | | <image class="logo_input" src="../../images/login/person_30.png"></image> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | clickSetLanguage() { |
| | | uni.navigateTo({ |
| | | url: './language' |
| | | }); |
| | | }, |
| | | |
| | | dialogInputConfirm(val) { |
| | | // console.log(val); |
| | |
| | | background-repeat: no-repeat !important; */ |
| | | } |
| | | |
| | | .SetServer { |
| | | .set-language, |
| | | .set-server { |
| | | float: left; |
| | | margin-left: 20rpx; |
| | | } |
| | |
| | | mounted() { |
| | | console.log("3018 mounted"); |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | console.log("3018", options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | var param = JSON.parse(options.param); |
| | | this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //设置按钮文字 |
| | | this.title = options.titlename; //设置按钮文字param.Add_BtnName ? param.Add_BtnName : |
| | | if (options.type) { |
| | | this.type = options.type; |
| | | } |
| | |
| | | uni.scanCode({ |
| | | scanType: ["qrCode", 'barCode'], |
| | | success: function(res) { |
| | | |
| | | console.log(res) |
| | | if ($this.focusFieldId) { |
| | | const items = $this.head_styledef.form.items || [] |
| | | for (let i in items) { |
| | |
| | | this.loadData() |
| | | } |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.param = JSON.parse(options.param); |
| | | this.title = this.param.Add_BtnName ? this.param.Add_BtnName : options |
| | | .titlename; //设置按钮文字 |
| | | this.title = options.titlename; //设置按钮文字 this.param.Add_BtnName ? this.param.Add_BtnName : |
| | | this.btnName = this.param.Add_BtnName || "" |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | | this.loadData(paramValue) |
| | |
| | | }) |
| | | }); |
| | | } else { |
| | | showInfo(this.translate( |
| | | showInfo($this.translate( |
| | | 'execute_init_event_failed') + |
| | | this.translateSys("full_stop") + |
| | | this.translate('reason') + this |
| | | $this.translateSys("full_stop") + |
| | | $this.translate('reason') + $this |
| | | .translateSys( |
| | | "colon") + |
| | | this.translateSys("quotation_mark_left") + |
| | | $this.translateSys("quotation_mark_left") + |
| | | action |
| | | .action_type + this.translateSys( |
| | | "quotation_mark_right") + this |
| | | .action_type + $this.translateSys( |
| | | "quotation_mark_right") + $this |
| | | .translate('tip_action_unprocessed')) |
| | | |
| | | } |
| | |
| | | }, |
| | | onScanValue(item, value) { |
| | | const $this = this; |
| | | //console.log("onScanValue", item); |
| | | console.log("onScanValue", value); |
| | | item.value = value |
| | | let newVal = item.value |
| | | if (typeof item.value == "string") { |
| | |
| | | } |
| | | |
| | | }, |
| | | async onFormEventResult(data, callbackEventId, item) { |
| | | async onFormEventResult( data, callbackEventId, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |
| | |
| | | userlogin: '', |
| | | clsid: $this.param.DataCls.id, |
| | | objid: "", |
| | | attr: $this.popupParam.req, |
| | | attr: $this.popupParam.req || [], |
| | | dataJson: data |
| | | } |
| | | $this.DataObjRunCustomEvent(info, $this.popupParam.data_attr); |
| | |
| | | } |
| | | } |
| | | enviroment = Base64.encode(JSON.stringify(enviroment)); //将字符串转换为base64编码 |
| | | var input_param = Base64.encode(JSON.stringify(info.attr)); //将字符串转换为base64编码 |
| | | var input_param = info.attr ? Base64.encode(JSON.stringify(info.attr)):"" //将字符串转换为base64编码 |
| | | var global_attr = Base64.encode(JSON.stringify(this |
| | | .global_attr)); //将字符串转换为base64编码 |
| | | if (info.dataJson) |
| | | info.dataJson = Base64.encode(JSON.stringify(info.dataJson)); //将字符串转换为base64编码 |
| | | var obj_attr = {}; |
| | | info.attr.forEach(item => { |
| | | (info.attr || []).forEach(item => { |
| | | obj_attr[item.attr] = item.value; |
| | | }); |
| | | if (!info.eventid.includes('{')) info.eventid = '{' + info.eventid + '}'; |
| | |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | hideLoading() |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult( data, button_callback,item,req) |
| | | |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | |
| | | check_list: {}, |
| | | } |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | var param = JSON.parse(options.param); |
| | | this.title = param.Add_BtnName ? param.Add_BtnName : options.titlename; //设置按钮文字 |
| | | this.title = options.titlename; //设置按钮文字param.Add_BtnName ? param.Add_BtnName : |
| | | console.log(param); |
| | | if (!param.Master_Cls.View_Style) { |
| | | showInfo("该功能点未配置界面窗口,请重新配置!") |
| | |
| | | saving: false, |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | hideLoading() |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult(data, button_callback, item,req) |
| | | |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | |
| | | } |
| | | |
| | | }, |
| | | async onFormEventResult(data, callbackEventId, item) { |
| | | async onFormEventResult(data, callbackEventId, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |
| | |
| | | refreshing: false |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | // console.log(options); |
| | | try { |
| | | showLoading("loading...") |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | |
| | |
| | | // }); |
| | | |
| | | } else { |
| | | showInfo(this |
| | | showInfo($this |
| | | .translateSys( |
| | | "quotation_mark_left" |
| | | ) + |
| | | item |
| | | .action_type + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | $this |
| | | .translate( |
| | | "tip_action_unprocessed" |
| | | )) |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | // console.log(options); |
| | | try { |
| | | showLoading("loading...") |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | console.log(this.param); |
| | |
| | | // console.log('动画支持完毕') |
| | | // }); |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | // console.log(options); |
| | | this.duration = 2000; |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | console.log(this.param); |
| | |
| | | }, |
| | | |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | try { |
| | | showLoading("loading...") |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | |
| | | onBackPress(e) { |
| | | this.beforeNavigateBack() |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | async onLoad(options) { |
| | | try { |
| | | showLoading("loading...") |
| | | console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | this.head_styledef = { |
| | |
| | | try { |
| | | var $this = this; |
| | | |
| | | runCustomEvent(dataInfo).then(result => { |
| | | const result = await runCustomEvent(dataInfo) |
| | | console.log(result); |
| | | |
| | | if (result.ret != 0 && result.ret != 1) { |
| | |
| | | } |
| | | |
| | | } |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | showError(ex, this.translateSys("error") + "9.1") |
| | | |
| | | }); |
| | | } catch (ex) { |
| | | showError(ex, this.translateSys('error') + "9.2") |
| | | |
| | |
| | | popupParam: {}, |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | // console.log(this.param); |
| | | const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined |
| | | this.loadData(paramValue) |
| | | }, |
| | | |
| | | //页面初始化获取焦点 |
| | | methods: { |
| | | setData: function(obj) { |
| | |
| | | }; |
| | | }, |
| | | }, |
| | | onLoad(options) { |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | //获取主数据类ID |
| | |
| | | .DefList.length > 0 |
| | | ) { //判断是否清空页签内容,正在码盘是否有数据 |
| | | uni.showModal({ |
| | | title: this |
| | | title: $this |
| | | .translateSys( |
| | | 'tip'), |
| | | content: this |
| | | content: $this |
| | | .translate( |
| | | "are_you_sure_clear_first" |
| | | ) + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_left" |
| | | ) + |
| | | value |
| | | .page_name + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | $this |
| | | .translate( |
| | | "are_you_sure_clear_last" |
| | | ), |
| | |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | hideLoading() |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult(data, button_callback, item,req) |
| | | }).catch(ex => { |
| | | hideLoading() |
| | | showError(ex, this.translateSys("error") + "5.1") |
| | | }); |
| | | }, |
| | | |
| | | async onFormEventResult(data, callbackEventId, item) { |
| | | async onFormEventResult(data, callbackEventId, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |
| | |
| | | .DefList.length > 0 |
| | | ) { //判断是否清空页签内容,正在码盘是否有数据 |
| | | uni.showModal({ |
| | | title: this |
| | | title: $this |
| | | .translateSys( |
| | | 'tip'), |
| | | content: this |
| | | content: $this |
| | | .translate( |
| | | "are_you_sure_clear_first" |
| | | ) + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_left" |
| | | ) + |
| | | value |
| | | .page_name + |
| | | this |
| | | $this |
| | | .translateSys( |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | $this |
| | | .translate( |
| | | "are_you_sure_clear_last" |
| | | ), |
| | |
| | | popupParam: {}, |
| | | }; |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | // console.log(options); |
| | | uni.setNavigationBarTitle({ |
| | | title: options.titlename |
| | | }); //设置顶部标题 |
| | | this.title = options.titlename; |
| | | this.param = JSON.parse(options.param); |
| | | // console.log(this.param); |
| | |
| | | }; |
| | | }, |
| | | }, |
| | | onReady() { |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | }, |
| | | onLoad(options) { |
| | | |
| | | this.param = JSON.parse(options.param); |
| | |
| | | if (options.dataJson) |
| | | this.data_json = JSON.parse(options.dataJson); |
| | | this.title = options.titlename ? options.titlename : this.param.ShowName; //设置按钮文字 |
| | | // console.log(options) |
| | | uni.setNavigationBarTitle({ |
| | | title: this.title |
| | | }); //设置顶部标题 |
| | | |
| | | if (this.clsId) { |
| | | this.loadData(objAttr) |
| | | } else { |
| | |
| | | showError(ex, this.translateSys('tip') + "4.2") |
| | | } |
| | | }, |
| | | async onFormEventResult(data, button_callback, item) { |
| | | async onFormEventResult(data, button_callback, item,req) { |
| | | try { |
| | | const $this = this |
| | | var enviroment = { |
| | |
| | | console.log(dataInfo); |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | $this.onFormEventResult(data, button_callback, item) |
| | | $this.onFormEventResult(data, button_callback, item,req) |
| | | |
| | | }).catch(ex => { |
| | | showError(ex, this.translateSys('tip') + "5.1") |