功能調整

This commit is contained in:
2026-05-27 17:52:36 +08:00
parent 669b29d183
commit 2b9e266eb0
7 changed files with 193 additions and 179 deletions
+17 -122
View File
@@ -6,11 +6,12 @@
<v-expansion-panel-header>查詢條件</v-expansion-panel-header>
<v-expansion-panel-content>
<v-row>
<v-col cols="2" md="2">
<v-text-field label="法會分類">
<!-- <v-col cols="2" md="2">-->
<!--<v-text-field label="法會分類">
</v-text-field>
</v-col>
</v-text-field>-->
<!--</v-col>-->
<v-col cols="2" md="2">
<v-text-field label="法會名稱" v-model="search.subject">
@@ -38,25 +39,6 @@
@input="startmenu = false"></v-date-picker>
</v-menu>
</v-col>
<!--<v-col cols="2" md="2">
<v-menu v-model="endmenu"
:close-on-content-click="false"
:nudge-right="40"
transition="scale-transition"
offset-y
min-width="auto">
<template v-slot:activator="{ on, attrs }">
<v-text-field v-model="search.up_time2"
label="結束日期"
prepend-icon="mdi-calendar"
readonly
v-bind="attrs"
v-on="on"></v-text-field>
</template>
<v-date-picker v-model="search.up_time2"
@input="endmenu = false"></v-date-picker>
</v-menu>
</v-col>-->
<v-col cols="2" md="2">
<v-btn @click.prevent="getDefault()">查詢</v-btn>
<v-btn @click.prevent="clearSearch()">清空條件</v-btn>
@@ -67,7 +49,6 @@
</v-expansion-panels>
<v-data-table v-model="data_table.selected"
:items="data_table.list"
item-key="order_no"
:options.sync="options"
:headers="data_table.header"
@@ -75,7 +56,6 @@
:server-items-length="data_table.count"
:loading="data_table.loading"
:single-select="data_table.singleSelect"
show-select
hide-default-footer
:page.sync="data_table.page"
:items-per-page.sync="data_table.pageSize"
@@ -128,6 +108,7 @@
search_options: { multiSort: false },
startmenu: false,
endmenu: false,
itemKindList:[],
data_table: {
loading: true,
list: [],
@@ -149,18 +130,6 @@
itemsPerPageOptions: [5, 10, 20, 30],
},
},
//列印管理報表
//print_conditions: 'yy',
//print_search: {
// year: '',
// month: '',
// season: '',
// chk_hasact: false,
// chk_noact: false,
// select_act: '',
// select_actitem: '',
//},
select_act_list: [],
select_items: {
month: [{
@@ -172,85 +141,6 @@
val: 0
},],
},
//print_dialog: {
// show: false,
//},
//search_dialog: {
// controls: {
// search1: {
// id: 'search1',
// title: '國籍',
// text_prop: 'name_zh',
// value_prop: 'id',
// keys: [
// { id: 'keyword', title: '關鍵字' },
// ],
// api_url: HTTP_HOST + 'api/country/GetList',
// columns: [
// { id: 'id', title: '代碼' },
// { id: 'name_en', title: '英文短名稱' },
// { id: 'name_zh', title: '中文名稱' },
// ],
// selected: {},
// select(item, t) {
// //console.log("select search1", t);
// t.search.country = item.id;
// t.search.country2 = '';
// }
// },
// search2: {
// id: 'search2',
// title: '報名活動',
// text_prop: 'subject',
// value_prop: 'num',
// keys: [
// { id: 'subject', title: '活動名稱', value: '' },
// { id: 'kindTxt', title: '活動分類' },
// ],
// api_url: HTTP_HOST + 'api/activity/GetList',
// columns: [
// { id: 'subject', title: '活動名稱' },
// { id: 'kindTxt', title: '活動分類' },
// ],
// selected: {},
// select(item, t) {
// t.print_search.select_act = item.num;
// }
// },
// search3: {
// id: 'search3',
// title: '活動品項',
// text_prop: 'subject',
// value_prop: 'num',
// keys: [
// { id: 'subject', title: '項目名稱', value: '' },
// { id: 'kindTxt', title: '項目分類' },
// { id: 'num', visible: false },
// ],
// api_url: HTTP_HOST + 'api/activity/GetOrderList',
// columns: [
// { id: 'subject', title: '項目名稱' },
// { id: 'kindTxt', title: '項目分類' },
// ],
// selected: {},
// select(item, t) {
// t.print_search.select_actitem = item.num;
// }
// }
// }, show: false,
// current: {},
// list: [],
// count: 0,
// page: 1,
// loading: false,
// footer: {
// showFirstLastPage: true,
// disableItemsPerPage: true,
// itemsPerPageAllText: '',
// itemsPerPageText: '',
// },
//},
search: {
keyin1: '',
order_no: '',
@@ -274,12 +164,6 @@
};
},
mounted() {
//this.detalKeyinArray();
//this.search_dialog.current = this.search_dialog.controls.search1 ///default
//if (this.this_act != '')
// this.search.activity_num = this.this_act;
//this.initPrintSearch();
//this.initActivity();
const navEntries = performance.getEntriesByType("navigation");
const isReload = navEntries.length > 0 && navEntries[0].type === "reload";
if (isReload) {
@@ -291,6 +175,7 @@
this.options.page = savedPage;
}
}
this.initKindList()
},
watch: {
options: {
@@ -307,6 +192,16 @@
},
},
methods: {
initKindList() {
axios
//.get(HTTP_HOST + 'api/activity_kind')
.get(HTTP_HOST + 'api/actItem_kind/GetAll')
.then(response => {
this.itemKindList = response.data
})
.catch(error => console.log(error))
},
clearSearch() {
this.search.subject = ""
this.search.up_time1=""