Commit 2cf80604 authored by shenyanpei's avatar shenyanpei

数据字典地址

parent a8612cc9
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
</template> </template>
<script> <script>
import { getDictType, getByType } from '@/views/dataDictionary/api'
export default { export default {
name: 'DataDictionary', name: 'DataDictionary',
/** 进页面触发点击事件 */ /** 进页面触发点击事件 */
...@@ -95,22 +96,16 @@ export default { ...@@ -95,22 +96,16 @@ export default {
methods: { methods: {
/** 获取所有数据字典类型 */ /** 获取所有数据字典类型 */
getData() { getData() {
this.$axios({ getDictType().then(res => {
method: 'get', this.dictTypeList = res.data
url: 'http://117.122.212.101:8092/dictmanage/getAllDictType'
}).then(res => {
this.dictTypeList = res.data.data
}) })
}, },
handleSelect(item) { handleSelect(item) {
this.dictType = item.dictType this.dictType = item.dictType
this.dictTypeName = item.dictTypeName this.dictTypeName = item.dictTypeName
this.$axios({ getByType(this.dictType).then(res => {
method: 'get', this.dictTypeData = res.data
url: 'http://117.122.212.101:8092/dictmanage/getDictByType/' + item.dictType this.total = res.data.length
}).then(res => {
this.dictTypeData = res.data.data
this.total = res.data.data.length
}) })
}, },
/** 前端分页 */ /** 前端分页 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment