cuiqian2004
4 天以前 07925905f1a596e20e980de6d42db217abb753b0
plugin
7个文件已添加
19个文件已修改
349 ■■■■■ 已修改文件
.hbuilderx/launch.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
App.vue 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/Page.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/honrfid/android/DataCollection.aar 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/honrfid/android/HonRFID-release.aar 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/honrfid/android/honeywell_rfid_sdk.aar 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/honrfid/package.json 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/rfid/package.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/rfid2/android/honeywell_rfid_sdk.aar 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/rfid2/android/rfid-release.aar 补丁 | 查看 | 原始文档 | blame | 历史
nativeplugins/rfid2/package.json 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/index.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3018.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3018_2.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3037.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3037_2.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3200.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3200_view.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3201.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3202.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/3202_view.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/5600.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/5601.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/5602.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/modal/form/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.hbuilderx/launch.json
@@ -16,7 +16,7 @@
            "type" : "uniCloud"
        },
        {
            "playground" : "standard",
            "playground" : "custom",
            "type" : "uni-app:app-android"
        },
        {
App.vue
@@ -5,6 +5,7 @@
        showError
    } from "@/js/Page.js"
    const rfidModule = uni.requireNativePlugin('RFIDModule');
    // const honrfidModule = uni.requireNativePlugin('HonRFIDModule');
    var main;
    export default {
        globalData: {
@@ -39,11 +40,20 @@
            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); // 停止监听广播
@@ -65,24 +75,42 @@
            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
@@ -127,7 +155,9 @@
                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) => {
@@ -152,7 +182,12 @@
                        callback(result);
                    });
                }
                } else {
                    uni.$off("scanresult");
                    uni.$on("scanresult", (result) => {
                        callback(result);
                    });
                }
            },
        }
js/Page.js
@@ -95,7 +95,7 @@
            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=""){
manifest.json
@@ -2,8 +2,8 @@
    "name" : "MoboxPDA",
    "appid" : "__UNI__56D451E",
    "description" : "",
    "versionName" : "1.1.75",
    "versionCode" : 1175,
    "versionName" : "1.1.77",
    "versionCode" : 1177,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
@@ -41,7 +41,11 @@
                    "<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"
@@ -63,22 +67,7 @@
                }
            }
        },
        "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" : {},
nativeplugins/honrfid/android/DataCollection.aar
Binary files differ
nativeplugins/honrfid/android/HonRFID-release.aar
Binary files differ
nativeplugins/honrfid/android/honeywell_rfid_sdk.aar
Binary files differ
nativeplugins/honrfid/package.json
New file
@@ -0,0 +1,24 @@
{
    "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
        }
    }
}
nativeplugins/rfid/package.json
@@ -22,3 +22,6 @@
    }
}
}
}
nativeplugins/rfid2/android/honeywell_rfid_sdk.aar
Binary files differ
nativeplugins/rfid2/android/rfid-release.aar
Binary files differ
nativeplugins/rfid2/package.json
New file
@@ -0,0 +1,36 @@
{
    "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"]
                }
            }
        }
    }
}
}
}
pages/login/index.vue
@@ -6,8 +6,12 @@
        <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>
@@ -287,11 +291,6 @@
                    }
                })
            },
            clickSetLanguage() {
                uni.navigateTo({
                    url: './language'
                });
            },
            dialogInputConfirm(val) {
                // console.log(val);
@@ -543,7 +542,8 @@
        background-repeat: no-repeat !important; */
        }
        .SetServer {
        .set-language,
        .set-server {
            float: left;
            margin-left: 20rpx;
        }
pages/modal/3018.vue
@@ -382,13 +382,16 @@
        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;
            }
pages/modal/3018_2.vue
@@ -116,7 +116,7 @@
                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) {
@@ -177,14 +177,16 @@
                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)
@@ -521,16 +523,16 @@
                                            })
                                        });
                                    } 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'))
                                    }
@@ -563,7 +565,7 @@
            },
            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") {
@@ -720,7 +722,7 @@
                }
            },
            async onFormEventResult(data, callbackEventId, item) {
            async onFormEventResult( data, callbackEventId, item,req) {
                try {
                    const $this = this
                    var enviroment = {
@@ -1071,7 +1073,7 @@
                    userlogin: '',
                    clsid: $this.param.DataCls.id,
                    objid: "",
                    attr: $this.popupParam.req,
                    attr: $this.popupParam.req || [],
                    dataJson: data
                }
                $this.DataObjRunCustomEvent(info, $this.popupParam.data_attr);
@@ -1112,13 +1114,13 @@
                        }
                    }
                    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 + '}';
@@ -1223,7 +1225,7 @@
                // return;
                runCustomEvent(dataInfo).then(data => {
                    hideLoading()
                    $this.onFormEventResult(data, button_callback, item)
                    $this.onFormEventResult( data, button_callback,item,req)
                }).catch(ex => {
                    // console.log(ex);
pages/modal/3037.vue
@@ -703,13 +703,16 @@
                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("该功能点未配置界面窗口,请重新配置!")
pages/modal/3037_2.vue
@@ -173,11 +173,14 @@
                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
@@ -875,7 +878,7 @@
                // return;
                runCustomEvent(dataInfo).then(data => {
                    hideLoading()
                    $this.onFormEventResult(data, button_callback, item)
                    $this.onFormEventResult(data, button_callback, item,req)
                }).catch(ex => {
                    // console.log(ex);
@@ -933,7 +936,7 @@
                }
            },
            async onFormEventResult(data, callbackEventId, item) {
            async onFormEventResult(data, callbackEventId, item,req) {
                try {
                    const $this = this
                    var enviroment = {
pages/modal/3200.vue
@@ -155,13 +155,16 @@
                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);
@@ -1795,17 +1798,17 @@
                                            // });
                                        } else {
                                            showInfo(this
                                            showInfo($this
                                                .translateSys(
                                                    "quotation_mark_left"
                                                ) +
                                                item
                                                .action_type +
                                                this
                                                $this
                                                .translateSys(
                                                    "quotation_mark_right"
                                                ) +
                                                this
                                                $this
                                                .translate(
                                                    "tip_action_unprocessed"
                                                ))
pages/modal/3200_view.vue
@@ -98,13 +98,16 @@
                },
            };
        },
        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);
pages/modal/3201.vue
@@ -97,12 +97,15 @@
            //     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);
pages/modal/3202.vue
@@ -117,13 +117,16 @@
            },
        },
        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
pages/modal/3202_view.vue
@@ -117,13 +117,16 @@
        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 = {
@@ -403,7 +406,7 @@
                try {
                    var $this = this;
                    runCustomEvent(dataInfo).then(result => {
                    const result = await runCustomEvent(dataInfo)
                        console.log(result);
                        if (result.ret != 0 && result.ret != 1) {
@@ -478,11 +481,7 @@
                            }
                        }
                    }).catch(ex => {
                        console.log(ex);
                        showError(ex, this.translateSys("error") + "9.1")
                    });
                } catch (ex) {
                    showError(ex, this.translateSys('error') + "9.2")
pages/modal/5600.vue
@@ -248,17 +248,21 @@
                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) {
pages/modal/5601.vue
@@ -191,10 +191,12 @@
                };
            },
        },
        onLoad(options) {
        onReady() {
            uni.setNavigationBarTitle({
                title: options.titlename
                title: this.title
            }); //设置顶部标题 
        },
        onLoad(options) {
            this.title = options.titlename;
            this.param = JSON.parse(options.param);
            //获取主数据类ID
@@ -430,24 +432,24 @@
                                                .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"
                                                        ),
@@ -2540,14 +2542,14 @@
                // 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 = {
@@ -2627,24 +2629,24 @@
                                            .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"
                                                    ),
pages/modal/5602.vue
@@ -252,11 +252,13 @@
                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);
pages/modal/form/index.vue
@@ -133,6 +133,11 @@
                };
            },
        },
        onReady() {
            uni.setNavigationBarTitle({
                title: this.title
            }); //设置顶部标题
        },
        onLoad(options) {
            this.param = JSON.parse(options.param);
@@ -153,11 +158,6 @@
            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 {
@@ -717,7 +717,7 @@
                    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 = {
@@ -1262,7 +1262,7 @@
                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")