bladex前端ui项目,基于avue-cli2.0开发
包含基础工作流,不包含表单设计器
https://git.javablade.com/blade/Saber
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.6 KiB
66 lines
1.6 KiB
|
7 years ago
|
<template>
|
||
|
|
<basic-container>
|
||
|
|
<avue-form :option="option" v-model="form" :upload-before="uploadBefore" :upload-after="uploadAfter"></avue-form>
|
||
|
|
</basic-container>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
form: {
|
||
|
|
imgUrl: [],
|
||
|
|
},
|
||
|
|
option: {
|
||
|
|
labelWidth: 120,
|
||
|
|
column: [
|
||
|
|
{
|
||
|
|
label: '流程类型',
|
||
|
|
prop: 'flowCategory',
|
||
|
|
type: 'select',
|
||
|
|
dicUrl: `/api/blade-system/dict/dictionary?code=flow`,
|
||
|
|
props: {
|
||
|
|
label: "dictValue",
|
||
|
|
value: "dictKey"
|
||
|
|
},
|
||
|
|
rules: [
|
||
|
|
{
|
||
|
|
required: true,
|
||
|
|
message: '请选择流程类型',
|
||
|
|
trigger: 'blur'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
label: '附件上传',
|
||
|
|
prop: 'imgUrl',
|
||
|
|
type: 'upload',
|
||
|
|
loadText: '附件上传中,请稍等',
|
||
|
|
span: 24,
|
||
|
|
propsHttp: {
|
||
|
|
res: 'data.0'
|
||
|
|
},
|
||
|
|
tip: '请上传 bpmn20.xml 标准格式文件',
|
||
|
|
},
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
uploadBefore(file, done, loading) {
|
||
|
|
console.log(file)
|
||
|
|
done()
|
||
|
|
this.$message.success('上传前的方法')
|
||
|
|
},
|
||
|
|
uploadAfter(res, done, loading) {
|
||
|
|
console.log(res)
|
||
|
|
done()
|
||
|
|
this.$message.success('上传后的方法')
|
||
|
|
},
|
||
|
|
submit() {
|
||
|
|
this.$message.success('当前数据' + JSON.stringify(this.form))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|