功能條整
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
|
||||
<div id="content" class="container-fluid py-4">
|
||||
<keep-alive>
|
||||
<component :is="currentView" ref="myChild"
|
||||
<keep-alive :exclude="['pre_order-component']">
|
||||
<component :is="currentView" ref="myChild" :reload="reload"
|
||||
@custom-event="changeView" :search="search">
|
||||
</component>
|
||||
</keep-alive>
|
||||
@@ -50,6 +50,7 @@
|
||||
order_no: '',
|
||||
f_name:'',
|
||||
},
|
||||
reload:0,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -84,6 +85,7 @@
|
||||
if (item.action === "add") {
|
||||
this.currentView = "pre_order_reg-component";
|
||||
} else if (item.action === "list") {
|
||||
this.reload++;
|
||||
this.currentView = "pre_order-component";
|
||||
}
|
||||
},
|
||||
|
||||
@@ -14,11 +14,13 @@
|
||||
:page.sync="data_table.page"
|
||||
:items-per-page.sync="data_table.pageSize"
|
||||
class="elevation-1">
|
||||
|
||||
<template #item.reg_time="{ item }">
|
||||
{{ item.reg_time|timeString('YYYY/MM/DD') }}
|
||||
</template>
|
||||
<template #item.slot_btn="{ item }">
|
||||
<a @click.prevent="openReceipt(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-receipt-text"></i>開立收據</a>
|
||||
<!--<a :href="'reg.aspx?order_no='+item.order_no" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-pencil-box-outline"></i>編輯</a>
|
||||
<a @click="deleteItem(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-trash-can"></i>刪除</a>-->
|
||||
<a @click="deleteItem(item)" class="btn btn-outline-secondary btn-sm"><i class="mdi mdi-trash-can"></i>刪除</a>-->
|
||||
</template>
|
||||
</v-data-table>
|
||||
<v-container>
|
||||
@@ -67,13 +69,18 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
Vue.filter('timeString', function (value, myFormat) {
|
||||
return value == null || value == "" ? "" : moment(value).format(myFormat || 'YYYY-MM-DD, HH:mm:ss');
|
||||
});
|
||||
module.exports = {
|
||||
props: {
|
||||
formData: {},
|
||||
search: {
|
||||
|
||||
},
|
||||
|
||||
reload: {
|
||||
type: Number
|
||||
}
|
||||
},
|
||||
name:"ParentComponent",
|
||||
components: {
|
||||
@@ -105,7 +112,7 @@
|
||||
{ text: '功德項目數量', value: 'item_count' },
|
||||
{ text: '總金額', value: 'total_amt' },
|
||||
{ text: '收據金額', value: 'receipt_amt' },
|
||||
{ text: '登錄人員', value: 'admin_num' },
|
||||
{ text: '登錄人員', value: 'admin_name' },
|
||||
{ text: '登錄時間', value: 'reg_time' },
|
||||
{ text: '', value: 'slot_btn', sortable: false, align: 'end' }
|
||||
],
|
||||
@@ -168,7 +175,18 @@
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
options: {
|
||||
handler() {
|
||||
this.loadData()
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
reload: {
|
||||
handler() {
|
||||
this.loadData()
|
||||
},
|
||||
deep: true,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
pageCount() {
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
|
||||
<v-text-field v-model="picker.search.name" :label="picker.search.text" @keyup.enter.prevent=""></v-text-field>
|
||||
<v-text-field v-model="picker.search.name" :label="picker.search.text" @keyup.enter.prevent="getFollowers"></v-text-field>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<div class="row">
|
||||
@@ -182,6 +182,11 @@
|
||||
watch: {
|
||||
"picker.target": {
|
||||
handler(newVal) {
|
||||
//this.options.page = 1;
|
||||
//this.options.pageSize = 10;
|
||||
this.options = { multiSort: false }
|
||||
this.picker.data_table.page = 1;
|
||||
this.picker.data_table.pageSize=10;
|
||||
if (this.picker.target === "follower") {
|
||||
this.picker.search.name = ""
|
||||
this.picker.search.text = "信眾姓名"
|
||||
@@ -196,7 +201,12 @@
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
|
||||
options: {
|
||||
handler() {
|
||||
this.getFollowers()
|
||||
},
|
||||
deep: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleRowClick(item, row) {
|
||||
@@ -230,7 +240,7 @@
|
||||
page: page??1, pageSize: itemsPerPage??10
|
||||
};
|
||||
this.picker.data_table.loading = true;
|
||||
let search = {}
|
||||
let search = {u_name:this.picker.search.name}
|
||||
axios
|
||||
.post(HTTP_HOST + 'api/follower/GetList', search, { params: params })
|
||||
.then(response => {
|
||||
|
||||
@@ -973,7 +973,7 @@
|
||||
})
|
||||
return g;
|
||||
},
|
||||
renderNormal(mid, d)
|
||||
renderNormal(mid, d) {
|
||||
let self = this;
|
||||
let txt = $(`<div class='${d.elementID}'>${mid==undefined?"":mid}</div>`).css({
|
||||
"z-index": 9999, visibility: d.visibility,
|
||||
|
||||
Reference in New Issue
Block a user