cnf
9 天以前 975cb4cdd150c48f47d5d82138e1f9c9132c1483
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
new Vue({
    el: '#app',
    data: {
        tableHeight: 1,
        searchHeight: 1,
        isLoading: false,
        modelCjName:"",
        modelJson: []
    },
    mounted() {
        window.toAndroidCall = this.toAndroidCall;
        var that = this;
        this.erd = elementResizeDetectorMaker();
        this.$nextTick(() => {
            this.erd.listenTo(this.$refs.searchForm, element => {
                let searchHeight = that.$refs["searchForm"].clientHeight;
                let pageHeight = document.documentElement.clientHeight;
                if (pageHeight <= 0) pageHeight = 768;
                that.tableHeight = Number(pageHeight - (searchHeight)) - 10; // 计算完之后剩余table可用的高度
                that.searchHeight = searchHeight;
            });
        })
        this.getModel();
    },
    methods: {
        goUrl(item) {
            var that = this;
            window.location.href = "fjByPrd.aspx?cxId=" + item.lineId + "&cjId=" + that.Request("cjId");
        },
        getModel() {
            var that = this;
            that.isLoading = true;
            var model = {
                "inCjId": that.Request("cjId"),
            }
            var _apiUrl = ('BaoGong/GetLineList');
            that.AxiosHttp("post", _apiUrl, model)
                .then(function (res) {
                    var json = res;
                    if (json.rtnCode * 1 > 0) {
                        that.isLoading = false;
                        that.modelJson = res.rtnData;
                        that.modelCjName = res.rtnMsg;
                    }
                    else {
                        that.$message.error(json.rtnMsg);
                    }
                })
                .catch(function (error) {
                });
        },
    },
})