南骏 池
2025-03-19 564905ed2b4d1b977071f459ea1d7ab575051f9c
H5/Js/LLJ/Add.js
@@ -25,9 +25,16 @@
                boardStyle: ""
            },
            isShowTable: false,
            tableData: [],
            tableData: [],//返回的检验项目
            jymxData: [],//展示的检验项目
            ttrre: false
            ttrre: false,
            show: false,
            tableMxData: [],
            tabActive: 0,
            inputValue: '',//特征值输入
            resultValue: '',//检验结果录入
            showButton: false,//右上角菜单触发
        }
    },
    mounted() {
@@ -42,9 +49,42 @@
        this.init();
    },
    methods: {
        togglePopup(index) {
            // 切换指定索引的 popup 状态
            var that = this;
            this.show = true;
            console.log(index);
            console.log(that.tableData[index].guid);
            var mxguid = that.tableData[index].guid;
            that.jymxData = that.tableData[index];
            that.tabActive = index;
            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/GetModel12', {
                parentGuid : "",
                guid : mxguid ,
            }, true, 1).then(function (res1) {
                if (res1.rtnCode == 1) {
                    that.tableMxData = res1.rtnData;
                } else {
                    that.$toast.fail(res1.rtnMsg);
                }
            }).catch(function (error) {
                that.$toast.fail("网络错误,请重试!");
                console.log(error);
            });
        },
        handleTabClick() {
            console.log(this.tabActive)
            this.togglePopup(this.tabActive)
        },
        init() {
            //alert(this.Request("id"));
            var that = this;
            that.showButton = false;
            that.AxiosHttp("post", 'LLJ/getPage', {
                id: that.Request("id"),
                pageIndex: 1,
@@ -151,6 +191,9 @@
        },
        GetBack1() {
            window.history.back();
        }
        },
        onClickRight() {
        },
    }
})