diff --git a/src/api/modules/dictionary.js b/src/api/modules/dictionary.js new file mode 100644 index 0000000..1a818b8 --- /dev/null +++ b/src/api/modules/dictionary.js @@ -0,0 +1,31 @@ +import { instance as request } from '@/utils/request' + +export default { + addDic (data) { + return request({ + url: '/api/sys/dict/add', + method: 'post', + data + }) + }, + editDic (data) { + return request({ + url: '/api/sys/dict/edit', + method: 'put', + data + }) + }, + getDic (data) { + return request({ + url: '/api/sys/dict/page', + method: 'get', + params:data + }) + }, + delDic (data) { + return request({ + url: '/api/sys/dict/'+data, + method: 'get', + }) + }, +} diff --git a/src/components/newTranslate.vue b/src/components/newTranslate.vue new file mode 100644 index 0000000..e6df410 --- /dev/null +++ b/src/components/newTranslate.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/views/System/dataDictionary.vue b/src/views/System/dataDictionary.vue index 3e4868a..79902a1 100644 --- a/src/views/System/dataDictionary.vue +++ b/src/views/System/dataDictionary.vue @@ -8,9 +8,9 @@
- + - +
@@ -36,9 +36,9 @@ {{ rowIndex + (q.pageNo - 1) * q.pageSize + 1 }} - - - + + +