You need to sign in or sign up before continuing.
index.js 951 Bytes
import Api from '~/service/Api';
import CommonEvent from "../../common/event/CommonEvent"
export default {
	mixins:[CommonEvent],
	methods: {
		async query(){
			if (this.model.recp.filnamsel == null||this.model.recp.filnamsel == "") {
							this.$notify.error({ title: '错误', message: '请输入导入文件名称' });
				          return;
	         }
			const loading = this.loading();
            const rtnmsg = await Api.post(`/${this.moduleRouter()}/${this.root.trnName}/query`,
            {
                ...this.model.recp,
                pageNum: this.pagination.pageNum,
                pageSize: this.pagination.pageSize
            });
			if (rtnmsg.respCode === SUCCESS) {
			  this.model.upllst = rtnmsg.data.list;
			
			  this.pagination.total =rtnmsg.data.total;
			}
			else{

                this.model.upllst = rtnmsg.data.list;
                this.pagination.total =rtnmsg.data.total;
			}
			loading.close();
		  },
	}
}