From 7662665a4f88da0f8afa804bd4a34dfbefc1fb56 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 29 八月 2025 15:17:59 +0800
Subject: [PATCH] get_pre_page_subtable_next_row
---
pages/selPrj/index.vue | 27 ++++++++-------------------
1 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/pages/selPrj/index.vue b/pages/selPrj/index.vue
index 545d8a6..55751b9 100644
--- a/pages/selPrj/index.vue
+++ b/pages/selPrj/index.vue
@@ -1,5 +1,5 @@
<template>
- <view class="uni-page-selprj">
+ <view class="uni-page-selprj" :class="largeMode?'large-mode':''">
<view style="height:90%;">
<input type="text" class="txt_search" v-model="searchVal" @keyup="onkeyup"
:placeholder="translate('input_project_name_query')">
@@ -35,9 +35,12 @@
import {
projectGetAnalysisList
} from "@/api/index.js"
+ import {showInfo,
+ showError} from "@/js/Page.js"
export default {
data() {
return {
+ largeMode: getApp().globalData.largeMode || false,
title: this.translate('select_project'),
relation: '-1',
param: {},
@@ -78,12 +81,7 @@
this.data = list;
}).catch(ex => {
// console.log(ex);
- uni.showModal({
- title: this.translateSys("error") + "1.1",
- content: ex.errMsg,
- showCancel: false,
- confirmText: this.translateSys("close")
- });
+ showError(ex, this.translateSys('error') + "1.1")
});
},
methods: {
@@ -136,12 +134,7 @@
}).catch(ex => {
// console.log(ex);
- uni.showModal({
- title: this.translateSys("error") + "2.1",
- content: ex.errMsg,
- showCancel: false,
- confirmText: this.translateSys("close")
- });
+ showError(ex, this.translateSys('error') + "2.1")
});
},
@@ -165,12 +158,8 @@
}
}
if (data.length == 0) {
- uni.showModal({
- title: this.translateSys("tip"),
- content: this.translate('tip_no_select_project'),
- showCancel: false,
- confirmText: this.translateSys("close")
- });
+ showInfo(this.translate('tip_no_select_project'))
+
return;
}
const eventChannel = this.getOpenerEventChannel();
--
Gitblit v1.9.1