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