信眾牌位範本
This commit is contained in:
@@ -143,6 +143,25 @@ public class FollowerController : ApiController
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[Route("api/follower/GetFollowerFamilies")]
|
||||||
|
public IHttpActionResult GetFollowerFamilies([FromBody] Model.ViewModel.follower q)
|
||||||
|
{
|
||||||
|
|
||||||
|
var qry = _db.family_members.AsQueryable();
|
||||||
|
if (q.num.HasValue&&q.num>0)
|
||||||
|
{
|
||||||
|
qry = qry.Where(x=>x.follower_num==q.num);
|
||||||
|
}
|
||||||
|
return Ok(new
|
||||||
|
{
|
||||||
|
list = qry.Select(x => new
|
||||||
|
{
|
||||||
|
x.num,x.follower_num,x.fam_name,x.deceased,x.fam_gender,x.fam_title
|
||||||
|
}).ToList(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
[Route("api/follower/GetFollowerNew")]
|
[Route("api/follower/GetFollowerNew")]
|
||||||
public IHttpActionResult GetFollowerNew([FromBody] Model.ViewModel.follower q)
|
public IHttpActionResult GetFollowerNew([FromBody] Model.ViewModel.follower q)
|
||||||
@@ -1222,6 +1241,60 @@ public class FollowerController : ApiController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[Route("api/follower/GetTabletTemplateNameList")]
|
||||||
|
public IHttpActionResult GetTabletTemplateNameList([FromBody] Model.ViewModel.follower q)
|
||||||
|
{
|
||||||
|
var qry=_db.followers_tablet_template.AsQueryable();
|
||||||
|
if (q.num.HasValue&&q.num>0)
|
||||||
|
{
|
||||||
|
qry= qry.Where(x => x.follower_num == q.num);
|
||||||
|
}
|
||||||
|
return Ok(new
|
||||||
|
{
|
||||||
|
list=qry.Select(x=>new
|
||||||
|
{
|
||||||
|
x.name,x.num,x.follower_num
|
||||||
|
}).ToList()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[Route("api/follower/GetTabletTemplateList")]
|
||||||
|
public IHttpActionResult GetTabletTemplateList([FromBody] Model.ViewModel.follower q)
|
||||||
|
{
|
||||||
|
var qry = _db.followers_tablet_template.AsQueryable();
|
||||||
|
if (q.num.HasValue && q.num > 0)
|
||||||
|
{
|
||||||
|
qry = qry.Where(x => x.follower_num == q.num);
|
||||||
|
}
|
||||||
|
return Ok(new
|
||||||
|
{
|
||||||
|
list = qry.Select(x => new
|
||||||
|
{
|
||||||
|
x.name,
|
||||||
|
x.num,
|
||||||
|
x.follower_num,x.style_id,x.tablet,x.shuwen
|
||||||
|
}).ToList()
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[Route("api/follower/SaveTabletTemplate")]
|
||||||
|
public IHttpActionResult SaveTabletTemplate([FromBody] Model.followers_tablet_template q)
|
||||||
|
{
|
||||||
|
if (q.num>0)
|
||||||
|
{//表示要更新
|
||||||
|
var qry = _db.followers_tablet_template.AsQueryable();
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class AutoOrderService
|
public static class AutoOrderService
|
||||||
|
|||||||
@@ -550,6 +550,7 @@
|
|||||||
{ text: '亥時 (21:00~23:00)', value: '亥時' }
|
{ text: '亥時 (21:00~23:00)', value: '亥時' }
|
||||||
],
|
],
|
||||||
currentView: 'shuwen-component',
|
currentView: 'shuwen-component',
|
||||||
|
externalHtml:'<p>loading...</p>'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -562,6 +563,8 @@
|
|||||||
this.getCityOptions();
|
this.getCityOptions();
|
||||||
this.onCityChange();
|
this.onCityChange();
|
||||||
this.initAutoEnroll();
|
this.initAutoEnroll();
|
||||||
|
this.loadExternalHtml();
|
||||||
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
options: {
|
options: {
|
||||||
@@ -608,6 +611,22 @@
|
|||||||
'shuwen-component': httpVueLoader('./tablet_template.vue'),
|
'shuwen-component': httpVueLoader('./tablet_template.vue'),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async loadExternalHtml() {
|
||||||
|
try {
|
||||||
|
// 請求外部的 HTML 檔案或 API 路由
|
||||||
|
const response = await axios.get('tablet_template.html');
|
||||||
|
// 將取得的 HTML 字串存入變數
|
||||||
|
this.externalHtml = response.data;
|
||||||
|
$("#sec2-page6").html(this.externalHtml);
|
||||||
|
setTimeout(() => {
|
||||||
|
//console.log("load html:",this.follower_id);
|
||||||
|
designer.follower_num = this.follower_id;
|
||||||
|
//designer.getFamilies();
|
||||||
|
},100);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('載入失敗', error);
|
||||||
|
}
|
||||||
|
},
|
||||||
initAutoEnroll() {
|
initAutoEnroll() {
|
||||||
if (this.follower_id != '') {
|
if (this.follower_id != '') {
|
||||||
axios.get(HTTP_HOST + `api/follower/GetAutoEnrollList/${this.follower_id}`)
|
axios.get(HTTP_HOST + `api/follower/GetAutoEnrollList/${this.follower_id}`)
|
||||||
@@ -2497,12 +2516,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="sec2-page6" role="tabpanel" aria-labelledby="sec2-tab6" >
|
<div class="tab-pane fade" id="sec2-page6" role="tabpanel" aria-labelledby="sec2-tab6" >
|
||||||
<v-card class="mx-auto" outlined v-if="follower_id!=''">
|
<%--<div v-html="externalHtml"></div>--%>
|
||||||
<keep-alive>
|
|
||||||
<component :is="currentView" >
|
|
||||||
</component>
|
|
||||||
</keep-alive>
|
|
||||||
</v-card>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -476,12 +476,6 @@
|
|||||||
let pageSize = self.allSize.find(y => y.paperID == style.paperSize);
|
let pageSize = self.allSize.find(y => y.paperID == style.paperSize);
|
||||||
//包含空白用來折的尺寸
|
//包含空白用來折的尺寸
|
||||||
let printSize = self.allSize.find(y => y.paperID == style.printSize);
|
let printSize = self.allSize.find(y => y.paperID == style.printSize);
|
||||||
//let scaleSize = 1
|
|
||||||
//let documentHeight = document.documentElement.scrollHeight;
|
|
||||||
//if ((Number(pageSize.height) / 0.265) >= (Number(documentHeight) * 0.8)) {
|
|
||||||
// scaleSize = (Number(documentHeight) * 0.8) / (Number(pageSize.height) / 0.265)
|
|
||||||
//}
|
|
||||||
//$("#scaleSize").html((scaleSize * 100) + "%")
|
|
||||||
tabletpaper = $(` <div class="tablet-paper" style="transform-origin:top left;transform:scale(${this.zoomScale})"></div>`)
|
tabletpaper = $(` <div class="tablet-paper" style="transform-origin:top left;transform:scale(${this.zoomScale})"></div>`)
|
||||||
let img = self.bg.find(y => y.name == style.backendImg);
|
let img = self.bg.find(y => y.name == style.backendImg);
|
||||||
let details = this.allStyleDetails.filter(y => y.styleID == style.styleID);
|
let details = this.allStyleDetails.filter(y => y.styleID == style.styleID);
|
||||||
|
|||||||
Reference in New Issue
Block a user