Commit 2cf80604 authored by shenyanpei's avatar shenyanpei

数据字典地址

parent a8612cc9
......@@ -66,6 +66,7 @@
</template>
<script>
import { getDictType, getByType } from '@/views/dataDictionary/api'
export default {
name: 'DataDictionary',
/** 进页面触发点击事件 */
......@@ -95,22 +96,16 @@ export default {
methods: {
/** 获取所有数据字典类型 */
getData() {
this.$axios({
method: 'get',
url: 'http://117.122.212.101:8092/dictmanage/getAllDictType'
}).then(res => {
this.dictTypeList = res.data.data
getDictType().then(res => {
this.dictTypeList = res.data
})
},
handleSelect(item) {
this.dictType = item.dictType
this.dictTypeName = item.dictTypeName
this.$axios({
method: 'get',
url: 'http://117.122.212.101:8092/dictmanage/getDictByType/' + item.dictType
}).then(res => {
this.dictTypeData = res.data.data
this.total = res.data.data.length
getByType(this.dictType).then(res => {
this.dictTypeData = res.data
this.total = res.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