批次報名移除排序功能·移除一些console.log

This commit is contained in:
2026-06-23 07:56:12 +08:00
parent 5fa147f960
commit 7db39117b4
13 changed files with 47 additions and 54 deletions
+2 -2
View File
@@ -114,7 +114,7 @@
.catch(error => console.log(error)) .catch(error => console.log(error))
}, },
editItem(item) { editItem(item) {
console.log("edit", item);
}, },
deleteItem(item) { deleteItem(item) {
if (confirm('是否確定刪除此筆資料?')) { if (confirm('是否確定刪除此筆資料?')) {
@@ -123,7 +123,7 @@
axios axios
.delete(HTTP_HOST + 'api/accounting/' + item.num) .delete(HTTP_HOST + 'api/accounting/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.data_table.list.splice(index, 1); this.data_table.list.splice(index, 1);
this.data_table.count = this.data_table.list.length this.data_table.count = this.data_table.list.length
}) })
+6 -7
View File
@@ -29,7 +29,7 @@
], ],
selected: {}, selected: {},
select(t) { select(t) {
console.log("select search1", t);
} }
}, search2: { }, search2: {
id: 'search2', id: 'search2',
@@ -45,7 +45,7 @@
], ],
selected: {}, selected: {},
select(t) { select(t) {
console.log("select search2", t);
} }
}, },
search3: { search3: {
@@ -64,7 +64,7 @@
], ],
selected: {}, selected: {},
select(t) { select(t) {
console.log("select search3", t);
} }
}, },
@@ -86,7 +86,6 @@
], ],
selected: {}, selected: {},
select(t) { select(t) {
console.log("select search4", t);
} }
}, },
@@ -151,7 +150,7 @@
options: { options: {
handler() { handler() {
this.search_get() this.search_get()
console.log("watch2", this.search_dialog, this.search_dialog.page);
}, },
deep: true, deep: true,
}, },
@@ -188,7 +187,7 @@
search[t.id] = t.value; search[t.id] = t.value;
}); });
console.log("search_get", api_url, search, params, this.options);
this.search_dialog.loading = true this.search_dialog.loading = true
axios.post(api_url, search, { params: params }) axios.post(api_url, search, { params: params })
.then(response => { .then(response => {
@@ -375,7 +374,7 @@
axios axios
.delete(HTTP_HOST + 'api/accounting/DeleteFilesItem/' + item.num) .delete(HTTP_HOST + 'api/accounting/DeleteFilesItem/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.desserts.splice(index, 1) this.desserts.splice(index, 1)
this.desserts_count = this.desserts_count - 1; this.desserts_count = this.desserts_count - 1;
}) })
+2 -2
View File
@@ -99,7 +99,7 @@
.catch(error => console.log(error)) .catch(error => console.log(error))
}, },
editItem(item) { editItem(item) {
console.log("edit", item);
}, },
copyItem(item) { copyItem(item) {
@@ -132,7 +132,7 @@
axios axios
.delete(HTTP_HOST + 'api/activity/' + item.num) .delete(HTTP_HOST + 'api/activity/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.data_table.list.splice(index, 1); this.data_table.list.splice(index, 1);
this.data_table.count = this.data_table.list.length this.data_table.count = this.data_table.list.length
}) })
+3 -3
View File
@@ -107,7 +107,7 @@
select(t, data) { select(t, data) {
data.search.kind = t.num; data.search.kind = t.num;
data.btn_search() data.btn_search()
console.log("select search1", t);
} }
} }
}, },
@@ -215,7 +215,7 @@
}, },
editItem(item) { editItem(item) {
console.log("edit", item);
}, },
deleteItem(item) { deleteItem(item) {
@@ -306,7 +306,7 @@
search[t.id] = t.value; search[t.id] = t.value;
}); });
console.log("search_get", api_url, search, params, this.options);
this.search_dialog.loading = true this.search_dialog.loading = true
axios.post(api_url, search, { params: params }) axios.post(api_url, search, { params: params })
.then(response => { .then(response => {
+4 -4
View File
@@ -46,7 +46,7 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search1", t);
} }
}, },
search2: { search2: {
@@ -63,7 +63,7 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search2", t);
item.files_num_selected.text = t.subject //=====? item.files_num_selected.text = t.subject //=====?
item.files_num_selected.val = t.num //=====? item.files_num_selected.val = t.num //=====?
@@ -85,7 +85,7 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search3", item, t);
//debugger; //debugger;
item.actItem.subject = t.subject item.actItem.subject = t.subject
item.actItem.num = t.num item.actItem.num = t.num
@@ -371,7 +371,7 @@
axios axios
.delete(HTTP_HOST + 'api/activity/DeleteFilesItem/' + item.num) .delete(HTTP_HOST + 'api/activity/DeleteFilesItem/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.desserts.splice(index, 1) this.desserts.splice(index, 1)
this.desserts_count = this.desserts_count - 1; this.desserts_count = this.desserts_count - 1;
}) })
+5 -7
View File
@@ -10,7 +10,7 @@
el: '#app', el: '#app',
vuetify: new Vuetify(vuetify_options), vuetify: new Vuetify(vuetify_options),
data() { data() {
console.log("yes",<%= _this_id %>);
return { return {
this_id: '<%= _this_id %>', this_id: '<%= _this_id %>',
options: {}, options: {},
@@ -33,8 +33,6 @@
], ],
selected: {}, selected: {},
select(item,t) { select(item,t) {
console.log("select search1", t);
item.actItem_num.text = t.subject item.actItem_num.text = t.subject
item.actItem_num.val = t.num item.actItem_num.val = t.num
@@ -114,7 +112,7 @@
handler() { handler() {
//console.log("watch1", this.search_dialog, this.search_dialog.page); //console.log("watch1", this.search_dialog, this.search_dialog.page);
this.search_get() this.search_get()
console.log("watch2", this.search_dialog, this.search_dialog.page);
}, },
deep: true, deep: true,
}, },
@@ -154,7 +152,7 @@
if (this.search_dialog.current.id == 'search1') { if (this.search_dialog.current.id == 'search1') {
search['categorys'] = "1,2,4";//報名,掛單,贊助 search['categorys'] = "1,2,4";//報名,掛單,贊助
} }
console.log("search_get", api_url, search, params, this.options);
this.search_dialog.loading = true this.search_dialog.loading = true
axios.post(api_url, search, { params: params }) axios.post(api_url, search, { params: params })
.then(response => { .then(response => {
@@ -233,7 +231,7 @@
axios axios
.delete(HTTP_HOST + 'api/activity/DeleteActKindDetail/' + item.num) .delete(HTTP_HOST + 'api/activity/DeleteActKindDetail/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.desserts.splice(index, 1) this.desserts.splice(index, 1)
this.desserts_count = this.desserts_count - 1; this.desserts_count = this.desserts_count - 1;
}) })
@@ -321,7 +319,7 @@
} }
}, customSearch(value, item) { }, customSearch(value, item) {
console.log(value, item)
}, },
searchData(event) { searchData(event) {
this.desserts = this.desserts.filter(item => item.actItem_num.text.toLowerCase().includes(event)); this.desserts = this.desserts.filter(item => item.actItem_num.text.toLowerCase().includes(event));
+8 -12
View File
@@ -24,11 +24,11 @@
if (data.isOk) { if (data.isOk) {
$(btn).parents('.row.label-sm-right').find('.lunar').text(data.cDate); $(btn).parents('.row.label-sm-right').find('.lunar').text(data.cDate);
} else { } else {
console.log(data.msg);
} }
}); });
} }
console.log(_date);
} }
let VueApp = new Vue({ let VueApp = new Vue({
@@ -58,12 +58,12 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search1", t);
//帶入預設日期 //帶入預設日期
axios axios
.get(HTTP_HOST + 'api/activity/GetKindDate/' + t.num) .get(HTTP_HOST + 'api/activity/GetKindDate/' + t.num)
.then(response => { .then(response => {
console.log(response.data.startDate_solar);
$('#<%= startDate_solar.ClientID%>').val(response.data.startDate_solar); $('#<%= startDate_solar.ClientID%>').val(response.data.startDate_solar);
$('#<%= endDate_solar.ClientID%>').val(response.data.endDate_solar); $('#<%= endDate_solar.ClientID%>').val(response.data.endDate_solar);
$('#<%= startDate_lunar.ClientID%>').val(response.data.startDate_lunar); $('#<%= startDate_lunar.ClientID%>').val(response.data.startDate_lunar);
@@ -91,8 +91,6 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search2", t);
item.act_item_selected.text = t.subject item.act_item_selected.text = t.subject
item.act_item_selected.val = t.num item.act_item_selected.val = t.num
item.price = t.price item.price = t.price
@@ -115,7 +113,6 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search3", t);
item.act_item_selected.text = t.subject item.act_item_selected.text = t.subject
item.act_item_selected.val = t.num item.act_item_selected.val = t.num
@@ -136,7 +133,6 @@
], ],
selected: {}, selected: {},
select(item, t) { select(item, t) {
console.log("select search4", t);
} }
}, },
@@ -304,7 +300,7 @@
handler() { handler() {
//console.log("watch1", this.search_dialog, this.search_dialog.page); //console.log("watch1", this.search_dialog, this.search_dialog.page);
this.search_get() this.search_get()
console.log("watch2", this.search_dialog, this.search_dialog.page);
}, },
deep: true, deep: true,
}, },
@@ -350,7 +346,7 @@
if (this.search_dialog.current.id == 'search3') { if (this.search_dialog.current.id == 'search3') {
search['category'] = "3";//備品 search['category'] = "3";//備品
} }
console.log("search_get", api_url, search, params, this.options);
this.search_dialog.loading = true this.search_dialog.loading = true
axios.post(api_url, search, { params: params }) axios.post(api_url, search, { params: params })
.then(response => { .then(response => {
@@ -442,7 +438,7 @@
axios axios
.delete(HTTP_HOST + 'api/activity/DeleteRelatingData/' + item.num) .delete(HTTP_HOST + 'api/activity/DeleteRelatingData/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.desserts.splice(index, 1) this.desserts.splice(index, 1)
this.desserts_count = this.desserts_count - 1; this.desserts_count = this.desserts_count - 1;
}) })
@@ -742,7 +738,7 @@
}; };
// Add form fields // Add form fields
console.log(this.thisItemSelected.val, this.thisFilesSelected.val,JSON.stringify(list));
addHiddenField("item", this.thisItemSelected.val); addHiddenField("item", this.thisItemSelected.val);
addHiddenField("file", this.thisFilesSelected.val); addHiddenField("file", this.thisFilesSelected.val);
addHiddenField("list", JSON.stringify(list)); addHiddenField("list", JSON.stringify(list));
+2 -3
View File
@@ -110,7 +110,7 @@
.then(res => { .then(res => {
this.activity_statistics.items = res.data.items; this.activity_statistics.items = res.data.items;
this.activity_statistics.totalItems = res.data.count; this.activity_statistics.totalItems = res.data.count;
console.log(this.activity_statistics.options)
}) })
.catch(error => { .catch(error => {
@@ -123,8 +123,7 @@
watch: { watch: {
selected_activity: { selected_activity: {
handler(newvalue, oldvalue) { handler(newvalue, oldvalue) {
console.log('新值:', newvalue);
console.log('舊值:', oldvalue);
}, },
deep: true deep: true
}, },
@@ -400,7 +400,7 @@
async saveRegistrantMethod() { async saveRegistrantMethod() {
try { try {
const response = await axios.post(HTTP_HOST + 'api/ancestraltablet/registrant/create', this.form.createRegister); const response = await axios.post(HTTP_HOST + 'api/ancestraltablet/registrant/create', this.form.createRegister);
console.log('保存成功', response.data);
// 可選:提示用戶、關閉對話框、刷新數據等 // 可選:提示用戶、關閉對話框、刷新數據等
this.$toast?.success('登記人保存成功'); // 取決於你是否使用 toast 插件 this.$toast?.success('登記人保存成功'); // 取決於你是否使用 toast 插件
@@ -416,7 +416,7 @@
updateRegistrantMethod() { updateRegistrantMethod() {
axios.post(HTTP_HOST + 'api/ancestraltablet/registrant/update', this.form.createRegister) axios.post(HTTP_HOST + 'api/ancestraltablet/registrant/update', this.form.createRegister)
.then(response => { .then(response => {
console.log('登記人更新成功:', response.data);
this.$toast?.success?.('登記人更新成功'); // 可選:使用 toast 彈出提示 this.$toast?.success?.('登記人更新成功'); // 可選:使用 toast 彈出提示
//this.showCreatePWFlag = false; // 關閉彈出視窗 //this.showCreatePWFlag = false; // 關閉彈出視窗
// 可選:刷新列表等 // 可選:刷新列表等
+2 -2
View File
@@ -76,7 +76,7 @@
if (getArray != undefined && getArray != null ) { if (getArray != undefined && getArray != null ) {
var keys = Object.keys(getArray); var keys = Object.keys(getArray);
for (let i = 0; i < keys.length; i++) { for (let i = 0; i < keys.length; i++) {
console.log(`${keys[i]}:${getArray[keys[i]]}`); //value : text
var _tmp = { var _tmp = {
text: getArray[keys[i]], text: getArray[keys[i]],
val: parseInt(keys[i]), val: parseInt(keys[i]),
@@ -125,7 +125,7 @@
axios axios
.delete(HTTP_HOST + 'api/bed_kind/DeleteBedKindDetail/' + item.num) .delete(HTTP_HOST + 'api/bed_kind/DeleteBedKindDetail/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.desserts.splice(index, 1) this.desserts.splice(index, 1)
this.desserts_count = this.desserts_count - 1; this.desserts_count = this.desserts_count - 1;
}) })
+3 -3
View File
@@ -528,7 +528,7 @@
if (selectedItem.price) { if (selectedItem.price) {
this.currentRow.selected_items_text += ` (NT$${Number(selectedItem.price).toLocaleString()})`; this.currentRow.selected_items_text += ` (NT$${Number(selectedItem.price).toLocaleString()})`;
} }
console.log('已選擇項目:', selectedItem.subject, '項目編號:', selectedItem.num);
} }
} }
} }
@@ -731,7 +731,7 @@
search.is_reconcile = 'Y'; search.is_reconcile = 'Y';
} }
console.log("search_get", api_url, search, params, this.options);
this.search_dialog.loading = true; this.search_dialog.loading = true;
axios.post(api_url, search, { params: params }) axios.post(api_url, search, { params: params })
@@ -770,7 +770,7 @@
curr.select(this, row); curr.select(this, row);
} }
this.search_dialog.show = false; this.search_dialog.show = false;
console.log('Selected row:', row);
}, },
showItemSelectDialog(item) { showItemSelectDialog(item) {
// 設定當前正在編輯的行 // 設定當前正在編輯的行
+3 -3
View File
@@ -81,7 +81,7 @@
.catch(error => console.log(error)) .catch(error => console.log(error))
}, },
editItem(item) { editItem(item) {
console.log("edit", item);
}, },
deleteItem(item) { deleteItem(item) {
@@ -91,7 +91,7 @@
axios axios
.delete(HTTP_HOST + 'api/FilesSet/' + item.num) .delete(HTTP_HOST + 'api/FilesSet/' + item.num)
.then(response => { .then(response => {
console.log("del", item);
this.data_table.list.splice(index, 1); this.data_table.list.splice(index, 1);
this.data_table.count = this.data_table.list.length this.data_table.count = this.data_table.list.length
}) })
@@ -104,7 +104,7 @@
axios axios
.delete(HTTP_HOST + 'api/FilesSet/Delete/' + this.data_table.selected.map(x => x.num)) .delete(HTTP_HOST + 'api/FilesSet/Delete/' + this.data_table.selected.map(x => x.num))
.then(response => { .then(response => {
console.log("delAll");
for (var i = 0; i < this.data_table.selected.length; i++) { for (var i = 0; i < this.data_table.selected.length; i++) {
const index = this.data_table.list.indexOf(this.data_table.selected[i]); const index = this.data_table.list.indexOf(this.data_table.selected[i]);
+1
View File
@@ -25,6 +25,7 @@
hide-default-footer hide-default-footer
:page.sync="detail_table.page" :page.sync="detail_table.page"
:items-per-page.sync="detail_table.pageSize" :items-per-page.sync="detail_table.pageSize"
disable-sort
class="elevation-1"> class="elevation-1">
<template #item.slot_btn="{ item }"> <template #item.slot_btn="{ item }">
</template> </template>