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: 1,
page_size: 9999, page_size: 9999,
is_simple: 1, is_simple: 1,
custom_model_id: info.stub custom_model_id: info.stub,
is_auth: 1,
}).then(res => { }).then(res => {
this.$set(this.flows, info.name, res.data.data) 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: 1,
page_size: 9999, page_size: 9999,
is_simple: 1, is_simple: 1,
custom_model_id: info.stub custom_model_id: info.stub,
is_auth: 1
}).then(res => { }).then(res => {
this.$set(this.flows, info.name, res.data.data) 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: 1,
page_size: 9999, page_size: 9999,
is_simple: 1, is_simple: 1,
custom_model_id: info.stub custom_model_id: info.stub,
is_auth: 1
}).then(res => { }).then(res => {
this.$set(this.flows, info.name, res.data.data) 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: 1,
page_size: 9999, page_size: 9999,
is_simple: 1, is_simple: 1,
custom_model_id: info.stub custom_model_id: info.stub,
is_auth: 1
}).then(res => { }).then(res => {
this.$set(this.flows, info.name, res.data.data) 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([ const staticMap = new Map([
['apply_name', `<span>${form.creator?.name}</span>`], ['apply_name', `<span>${form.creator?.name}</span>`],
['apply_department_name', `<span>${form.creator_department?.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>`], ['created_at', `<span>${form.created_at}</span>`],
]) ])

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

Loading…
Cancel
Save