|
@@ -816,7 +816,9 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
// 订单类型改变回调
|
|
|
- orderTypeChange(type) {},
|
|
|
+ orderTypeChange(type) {
|
|
|
+ this.getList(false, type);
|
|
|
+ },
|
|
|
// 重置审计表单数据
|
|
|
resetFormData() {
|
|
|
Object.assign(this.formData, {
|
|
@@ -955,7 +957,7 @@ export default {
|
|
|
];
|
|
|
},
|
|
|
/** 查询列表 */
|
|
|
- getList(queryParams) {
|
|
|
+ getList(queryParams, orderType = 0) {
|
|
|
this.loading = true;
|
|
|
// 序列化当前查询参数列表
|
|
|
queryParams && (this.queryParams.queryMap = queryParams.queryMap);
|
|
@@ -1010,7 +1012,13 @@ export default {
|
|
|
this.queryParams.orderByColumn || ""
|
|
|
);
|
|
|
// 根据sql语句查询当前表数据
|
|
|
- unionListTableData(this.queryParams).then(async (res) => {
|
|
|
+ let getListFun = orderType == 0 ? unionListTableData : getTableList1;
|
|
|
+ if (orderType != 0) {
|
|
|
+ this.queryParams.conditionMap = {
|
|
|
+ orderType,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ getListFun(this.queryParams).then(async (res) => {
|
|
|
this.tableList = [];
|
|
|
res.rows.forEach((item) => {
|
|
|
this.tableList.push(item.resultMap);
|