xy 11 months ago
parent 53be4f7d6d
commit 5f28f07fc4

@ -516,7 +516,8 @@ export default function formBuilder(device, info, h, row, pWrite = false,pReadab
page: 1,
page_size: 9999,
is_simple: 1,
custom_model_id: info.stub
custom_model_id: info.stub,
is_auth: 1,
}).then(res => {
this.$set(this.flows, info.name, res.data.data)
})
@ -788,7 +789,8 @@ export default function formBuilder(device, info, h, row, pWrite = false,pReadab
page: 1,
page_size: 9999,
is_simple: 1,
custom_model_id: info.stub
custom_model_id: info.stub,
is_auth: 1
}).then(res => {
this.$set(this.flows, info.name, res.data.data)
})
@ -1370,7 +1372,8 @@ export default function formBuilder(device, info, h, row, pWrite = false,pReadab
page: 1,
page_size: 9999,
is_simple: 1,
custom_model_id: info.stub
custom_model_id: info.stub,
is_auth: 1
}).then(res => {
this.$set(this.flows, info.name, res.data.data)
})
@ -1663,7 +1666,8 @@ export default function formBuilder(device, info, h, row, pWrite = false,pReadab
page: 1,
page_size: 9999,
is_simple: 1,
custom_model_id: info.stub
custom_model_id: info.stub,
is_auth: 1
}).then(res => {
this.$set(this.flows, info.name, res.data.data)
})

@ -10,7 +10,7 @@ export async function print(printJs, isLog, form, logContent) {
const staticMap = new Map([
['apply_name', `<span>${form.creator?.name}</span>`],
['apply_department_name', `<span>${form.creator_department?.name}</span>`],
['apply_sign', `<img src="${form.creator?.sign_file}" alt="${form.creator?.name}" style="max-height: 80px;max-width: 120px;">`],
['apply_sign', form.creator?.sign_file ? `<img src="${form.creator?.sign_file}" alt="${form.creator?.name}" style="max-height: 80px;max-width: 120px;">` : `<span>${form.creator?.name}</span>`],
['created_at', `<span>${form.created_at}</span>`],
])

@ -4,15 +4,11 @@
<vxe-toolbar print custom export>
<template #buttons>
<el-date-picker
:value="(select.start_date && select.end_date) ? [select.start_date,select.end_date] : []"
type="daterange"
:value="select.month"
type="month"
size="small"
value-format="yyyy-MM-dd"
clearable
style="width: 260px;"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
style="width: 160px;">
</el-date-picker>
<el-button icon="el-icon-search" type="primary" plain size="small" style="margin-left: 6px;" @click="getList"></el-button>
</template>
@ -37,17 +33,35 @@
</template>
<script>
import { index } from '@/api/attendance'
export default {
data() {
return {
select: {},
select: {
month: this.$moment().format('YYYY-MM')
},
loading: false,
tableData: [],
}
},
methods: {},
methods: {
async getList () {
this.loading = true
try {
const res = await index(this.select,false)
console.log(res)
this.loading = false
} catch (err) {
console.error(err)
this.loading = false
}
}
},
computed: {},
created() {
this.getList()
}
}
</script>

Loading…
Cancel
Save