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) {
|
});
|
},
|
},
|
})
|