vue error div bug fixed

This commit is contained in:
hysn99
2024-04-04 19:34:32 +03:00
parent eb0bc4dcfc
commit 138f515754
2 changed files with 5 additions and 3 deletions

View File

@@ -68,7 +68,7 @@
</q-card-section> </q-card-section>
<q-card-section> <q-card-section>
<div style="max-height: 200px; overflow: scroll; border: 1px gray solid;" class="q-pa-xs"> <div style="max-height: 200px; overflow: scroll; border: 1px gray solid; display: grid;" class="q-pa-xs">
<span v-for="(ln, ndx) in ld.logProcess" :key="ndx"> <span v-for="(ln, ndx) in ld.logProcess" :key="ndx">
{{ ndx }} {{ ln }} {{ ndx }} {{ ln }}
</span> </span>
@@ -102,7 +102,9 @@ onMounted(() => {
getCompanies() getCompanies()
wails.Events.On('logProcess', function (ev) { wails.Events.On('logProcess', function (ev) {
console.log(ev.data)
ld.logProcess.push(ev.data) ld.logProcess.push(ev.data)
console.log(ld.logProcess)
}) })
}) })
@@ -153,7 +155,8 @@ const upload = function () {
} }
const doRpa = function () { const doRpa = function () {
Rpa(ld.companyID, ld.month, ld.year).catch(err => console.log(err)) ld.logProcess = []
Rpa(ld.companyID, ld.month, ld.year).catch(err => console.log(err))
} }
</script> </script>

View File

@@ -52,7 +52,6 @@ type userInfo struct {
} }
func (s *Srv) Rpa(companyName string, month float64, year float64) error { func (s *Srv) Rpa(companyName string, month float64, year float64) error {
emitLog("")
type CompanyInfo struct { type CompanyInfo struct {
company *company.Company // float64.Company türünü gömme company *company.Company // float64.Company türünü gömme
month float64 // yeni bir alan ekliyoruz month float64 // yeni bir alan ekliyoruz