forked from ZhiYiDai/Ffast-FE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
506 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<style scoped> | ||
</style> | ||
|
||
<template> | ||
<div class="main-view main-view-full" style="padding-top: 50px"> | ||
<row> | ||
</row> | ||
</div> | ||
</template> | ||
<script> | ||
import {} from 'components/'; | ||
export default { | ||
data () { | ||
return { | ||
} | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
mounted () {}, | ||
components: {} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<style scoped> | ||
</style> | ||
|
||
<template> | ||
<div class="main-view main-view-full" style="padding-top: 50px"> | ||
<row> | ||
</row> | ||
</div> | ||
</template> | ||
<script> | ||
import {} from 'components/'; | ||
export default { | ||
data () { | ||
return { | ||
} | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
mounted () {}, | ||
components: {} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<style scoped> | ||
</style> | ||
|
||
<template> | ||
<CrudTreeView :treeOptions="treeOptions"> | ||
</CrudTreeView> | ||
</template> | ||
<script> | ||
/** | ||
* 弹出式表单参数 | ||
*/ | ||
const treeEditOptions = { | ||
width: 400, | ||
labelWidth: 80, | ||
dynamic: [ | ||
[ | ||
{name: 'id', hidden: true}, | ||
{name: 'parentId', type: 'treeSelect', dataFromTree: true, span: 24, label: '父类标识'}, | ||
{name: 'identity', type: 'text', span: 24, label: '分类标识', rules: {required: true}} | ||
], | ||
[ | ||
{name: 'name', type: 'text', span: 24, label: '分类名称', rules: {required: true}} | ||
] | ||
] | ||
}; | ||
/** | ||
* 树参数 | ||
*/ | ||
const treeOptions = { | ||
showToolbar: true, | ||
editOptions: treeEditOptions, | ||
permsPrefix: 'dict', | ||
categoryField: 'dictTypeId', | ||
dataUrl: '/sys/dictType/list', | ||
createUrl: '/sys/dictType/create', | ||
deleteUrl: '/sys/dictType/delete', | ||
updateUrl: '/sys/dictType/update', | ||
title: '字典分类' | ||
}; | ||
import {CrudTreeView} from 'components/'; | ||
export default { | ||
data () { | ||
return { | ||
treeOptions | ||
} | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
mounted () {}, | ||
components: {CrudTreeView} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<style scoped> | ||
</style> | ||
|
||
<template> | ||
|
||
</template> | ||
<script> | ||
import {} from 'components/'; | ||
export default { | ||
data () { | ||
return { | ||
} | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
mounted () {}, | ||
components: {} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<style scoped> | ||
</style> | ||
|
||
<template> | ||
<div class="main-view main-view-full" style="padding-top: 50px"> | ||
<row style="padding-top: 50px"> | ||
small | ||
</br> | ||
<DataSelect size='small' | ||
dataUrl="/sys/role/list" | ||
:param='param1' | ||
style='width:200px' | ||
valField='id' | ||
textField='name' | ||
:disabled="false" | ||
placeholder="角色列表" | ||
@on-change="onSelectChange1" | ||
clearable | ||
v-model='val1'/> | ||
</row> | ||
|
||
<row style="padding-top: 50px"> | ||
绑定数据源 | ||
</br> | ||
<DataSelect | ||
dataUrl="/sys/role/list" | ||
:param='param2' | ||
style='width:200px' | ||
valField='id' | ||
textField='name' | ||
:disabled="false" | ||
placeholder="角色列表" | ||
@on-change="onSelectChange1" | ||
clearable | ||
v-model='val2'/> | ||
</row> | ||
<row style="padding-top: 50px"> | ||
本地数据 | ||
</br> | ||
<DataSelect | ||
:data="[ | ||
{label: '选项1', value: 0}, {label: '选项2', value: 1}, | ||
{label: '选项3', value: 2}, {label: '选项4', value: 3} | ||
]" | ||
style='width:200px' | ||
:disabled="false" | ||
placeholder="本地数据" | ||
@on-change="onSelectChange1" | ||
clearable | ||
v-model='val2'/> | ||
</row> | ||
<row style="padding-top: 50px"> | ||
字典数据 | ||
</br> | ||
<DataSelect | ||
dict="job" | ||
style='width:200px' | ||
:disabled="false" | ||
placeholder="字典数据" | ||
@on-change="onSelectChange1" | ||
clearable | ||
v-model='val2'/> | ||
</row> | ||
</div> | ||
</template> | ||
<script> | ||
import {DataSelect} from 'components/'; | ||
export default { | ||
data() { | ||
return { | ||
val1: null, | ||
param1: {}, | ||
param2: {name: '超级'} | ||
} | ||
}, | ||
computed: {}, | ||
methods: { | ||
onSelectChange1(value) { | ||
alert(value); | ||
} | ||
}, | ||
mounted() { | ||
}, | ||
components: {DataSelect} | ||
} | ||
</script> |
Oops, something went wrong.