parent
d24c9e9bcf
commit
2308dc4fa7
@ -0,0 +1,8 @@
|
||||
import request from "@/utils/request";
|
||||
export function statistic(name, params) {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: `/api/oa/flow-statistic/${name}`,
|
||||
params
|
||||
})
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
<template>
|
||||
<van-popup position="bottom" v-model="isShow">
|
||||
<van-picker
|
||||
show-toolbar
|
||||
:columns="columns"
|
||||
value-key="name"
|
||||
@confirm="onConfirm"
|
||||
/>
|
||||
</van-popup>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
columns: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isShow: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
show() {
|
||||
this.isShow = true
|
||||
},
|
||||
hide() {
|
||||
this.isShow = false
|
||||
},
|
||||
onConfirm(e) {
|
||||
this.$emit('confirm', e)
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
</style>
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,34 +0,0 @@
|
||||
export default function (device) {
|
||||
return device === 'desktop' ?
|
||||
new Map([
|
||||
['text', 'el-input'],
|
||||
['textarea', 'el-input'],
|
||||
['date', 'el-date-picker'],
|
||||
['datetime', 'el-date-picker'],
|
||||
['select', 'el-select'],
|
||||
['radio', 'el-radio-group'],
|
||||
['file', 'el-upload'],
|
||||
['label', 'div'],
|
||||
['static', 'el-link'],
|
||||
['hr', 'el-divider'],
|
||||
['choice', 'el-select'],
|
||||
['choices', 'el-select'],
|
||||
['sign', 'el-image'],
|
||||
['relation-flow','el-select']
|
||||
]) :
|
||||
new Map([
|
||||
['text', 'van-field'],
|
||||
['textarea', 'van-field'],
|
||||
['date', 'van-cell'],
|
||||
['datetime', 'van-datetime-picker'],
|
||||
['select', 'van-picker'],
|
||||
['radio', 'van-radio-group'],
|
||||
['file', 'el-upload'],
|
||||
['label', 'van-tag'],
|
||||
['static', 'el-link'],
|
||||
['hr', 'van-divide'],
|
||||
['choice', 'van-picker'],
|
||||
['choices', 'van-checkbox'],
|
||||
['sign', 'van-image']
|
||||
])
|
||||
}
|
||||
Loading…
Reference in new issue