rev: api位置挪动
This commit is contained in:
@@ -202,8 +202,8 @@
|
||||
|
||||
<script>
|
||||
import crud from '@/mixins/crud'
|
||||
import { update, get } from '@/api/generator/genConfig'
|
||||
import { save, sync, generator } from '@/api/generator/generator'
|
||||
import { update, get } from '@/views/generator/genConfig'
|
||||
import { save, sync, generator } from '@/views/generator/generator'
|
||||
import { getDicts } from '@/views/system/dict/dict'
|
||||
export default {
|
||||
name: 'GeneratorConfig',
|
||||
|
||||
16
nladmin-ui/src/views/generator/genConfig.js
Normal file
16
nladmin-ui/src/views/generator/genConfig.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function get(tableName) {
|
||||
return request({
|
||||
url: 'api/genConfig/' + tableName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function update(data) {
|
||||
return request({
|
||||
url: 'api/genConfig',
|
||||
data,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
33
nladmin-ui/src/views/generator/generator.js
Normal file
33
nladmin-ui/src/views/generator/generator.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getAllTable() {
|
||||
return request({
|
||||
url: 'api/generator/tables/all',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function generator(tableName, type) {
|
||||
return request({
|
||||
url: 'api/generator/' + tableName + '/' + type,
|
||||
method: 'post',
|
||||
responseType: type === 2 ? 'blob' : ''
|
||||
})
|
||||
}
|
||||
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: 'api/generator',
|
||||
data,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
export function sync(tables) {
|
||||
return request({
|
||||
url: 'api/generator/sync',
|
||||
method: 'post',
|
||||
data: tables
|
||||
})
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
import { generator, sync } from '@/api/generator/generator'
|
||||
import { generator, sync } from '@/views/generator/generator'
|
||||
import { downloadFile } from '@/utils/index'
|
||||
import CRUD, { presenter, header } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<script>
|
||||
import Java from '@/components/JavaEdit/index'
|
||||
import { generator } from '@/api/generator/generator'
|
||||
import { generator } from '@/views/generator/generator'
|
||||
export default {
|
||||
name: 'Preview',
|
||||
components: { Java },
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getErrDetail, delAllError } from '@/api/monitor/log'
|
||||
import { getErrDetail, delAllError } from '@/views/monitor/log/log'
|
||||
import Search from './search'
|
||||
import CRUD, { presenter } from '@crud/crud'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
<script>
|
||||
import Search from './search'
|
||||
import { delAllInfo } from '@/api/monitor/log'
|
||||
import { delAllInfo } from '@/views/monitor/log/log'
|
||||
import CRUD, { presenter } from '@crud/crud'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
|
||||
22
nladmin-ui/src/views/monitor/log/log.js
Normal file
22
nladmin-ui/src/views/monitor/log/log.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getErrDetail(id) {
|
||||
return request({
|
||||
url: 'api/logs/error/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function delAllError() {
|
||||
return request({
|
||||
url: 'api/logs/del/error',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function delAllInfo() {
|
||||
return request({
|
||||
url: 'api/logs/del/info',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -58,7 +58,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { del } from '@/api/monitor/online'
|
||||
import { del } from '@/views/monitor/online/online'
|
||||
import CRUD, { presenter, header, crud } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
|
||||
9
nladmin-ui/src/views/monitor/online/online.js
Normal file
9
nladmin-ui/src/views/monitor/online/online.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function del(keys) {
|
||||
return request({
|
||||
url: 'auth/online',
|
||||
method: 'delete',
|
||||
data: keys
|
||||
})
|
||||
}
|
||||
22
nladmin-ui/src/views/system/auto/autorun.js
Normal file
22
nladmin-ui/src/views/system/auto/autorun.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getAll() {
|
||||
return request({
|
||||
url: 'api/autorun',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function start(id) {
|
||||
return request({
|
||||
url: 'api/autorun/start/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
} export function stop(id) {
|
||||
return request({
|
||||
url: 'api/autorun/stop/' + id,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
export default { start, stop }
|
||||
@@ -44,7 +44,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudAutoRun from '@/api/system/autorun'
|
||||
import crudAutoRun from '@/views/system/auto/autorun'
|
||||
import CRUD, { presenter, header, form, crud } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudDept from '@/api/system/dept'
|
||||
import crudDept from '@/views/system/dept/dept'
|
||||
import Treeselect, { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
|
||||
@@ -52,7 +52,7 @@ import DiagramToolbar from './DiagramToolbar.vue'
|
||||
import DiagramSidebar from './DiagramSidebar.vue'
|
||||
import PropertyPanel from './PropertyPanel.vue'
|
||||
import { registerCustomElement } from './node'
|
||||
import crudStage from '@/api/logicflow/stage'
|
||||
import crudStage from '@/views/system/logicflow/stage'
|
||||
|
||||
let data = ''
|
||||
let lf = ''
|
||||
|
||||
@@ -89,7 +89,7 @@ import ZoomOut from './icon/ZoomOut.vue'
|
||||
import StepBack from './icon/StepBack.vue'
|
||||
import StepFoward from './icon/StepFoward.vue'
|
||||
import AreaSelect from './icon/AreaSelect.vue'
|
||||
import crudStage from '@/api/logicflow/stage'
|
||||
import crudStage from '@/views/system/logicflow/stage'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
<script>
|
||||
import { Sketch } from 'vue-color'
|
||||
import { shortStyles, borderStyles, fontFamilies } from '../constant'
|
||||
import crudStageImage from '@/api/logicflow/stageImage'
|
||||
import crudStageImage from '@/views/system/logicflow/stageImage'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudStageImage from '@/api/logicflow/stageImage'
|
||||
import crudStageImage from '@/views/system/logicflow/stageImage'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudStage from '@/api/logicflow/stage'
|
||||
import crudStage from '@/views/system/logicflow/stage'
|
||||
import CRUD, { presenter, header, form, crud } from '@crud/crud'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
|
||||
50
nladmin-ui/src/views/system/logicflow/stage.js
Normal file
50
nladmin-ui/src/views/system/logicflow/stage.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/stage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/stage/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/stage',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectStageList() {
|
||||
return request({
|
||||
url: 'api/stage/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function addNewStage(data) { // 保存舞台数据
|
||||
return request({
|
||||
url: 'api/stage/addNewStage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getNewStageDataByCode(code) {
|
||||
return request({
|
||||
url: 'api/stage/getNewStageDataByCode',
|
||||
method: 'post',
|
||||
data: code
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectStageList, addNewStage, getNewStageDataByCode }
|
||||
34
nladmin-ui/src/views/system/logicflow/stageImage.js
Normal file
34
nladmin-ui/src/views/system/logicflow/stageImage.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function add(data) {
|
||||
return request({
|
||||
url: 'api/stageImage',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function del(ids) {
|
||||
return request({
|
||||
url: 'api/stageImage/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export function edit(data) {
|
||||
return request({
|
||||
url: 'api/stageImage',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function selectStageIconList() {
|
||||
return request({
|
||||
url: 'api/stageImage/selectList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, selectStageIconList }
|
||||
@@ -176,7 +176,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudMenu from '@/api/system/menu'
|
||||
import crudMenu from '@/views/system/menu/menu'
|
||||
import IconSelect from '@/components/IconSelect'
|
||||
import Treeselect from '@riophae/vue-treeselect'
|
||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crudStage from '@/api/logicflow/stage'
|
||||
import crudStage from '@/views/system/logicflow/stage'
|
||||
import paramCrud from '@/views/system/param/param'
|
||||
import '@logicflow/core/dist/style/index.css'
|
||||
import '@logicflow/extension/lib/style/index.css'
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getCache, getKeyDefineList, getKeyValueList, batch } from '@/api/system/redis'
|
||||
import { getCache, getKeyDefineList, getKeyValueList, batch } from '@/views/system/redis/redis'
|
||||
import echarts from 'echarts'
|
||||
import i18n from '@/i18n'
|
||||
export default {
|
||||
|
||||
35
nladmin-ui/src/views/system/redis/redis.js
Normal file
35
nladmin-ui/src/views/system/redis/redis.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询缓存详细
|
||||
export function getCache() {
|
||||
return request({
|
||||
url: '/api/redis/get-monitor-info',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取模块
|
||||
export function getKeyDefineList() {
|
||||
return request({
|
||||
url: '/api/redis/get-key-define-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取模块
|
||||
export function getKeyValueList() {
|
||||
return request({
|
||||
url: '/api/redis/get-key-value-list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function batch(ids) {
|
||||
return request({
|
||||
url: 'api/redis/',
|
||||
method: 'delete',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
export default { getCache, getKeyDefineList, batch }
|
||||
@@ -122,8 +122,8 @@
|
||||
|
||||
<script>
|
||||
import crudRoles from './role'
|
||||
import crudMenu from '@/api/system/menu'
|
||||
import { getChild, getMenusTree } from '@/api/system/menu'
|
||||
import crudMenu from '@/views/system/menu/menu'
|
||||
import { getChild, getMenusTree } from '@/views/system/menu/menu'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
|
||||
15
nladmin-ui/src/views/system/user/center/code.js
Normal file
15
nladmin-ui/src/views/system/user/center/code.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function resetEmail(data) {
|
||||
return request({
|
||||
url: 'api/code/resetEmail?email=' + data,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function updatePass(pass) {
|
||||
return request({
|
||||
url: 'api/users/updatePass/' + pass,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
import store from '@/store'
|
||||
import { validEmail } from '@/utils/validate'
|
||||
import { updateEmail } from '@/views/system/user'
|
||||
import { resetEmail } from '@/api/system/code'
|
||||
import { resetEmail } from '@/views/system/user/center/code'
|
||||
export default {
|
||||
props: {
|
||||
email: {
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
import crudDept from '@/api/system/dept'
|
||||
import crudDept from '@/views/system/dept/dept'
|
||||
import CRUD, { header, presenter } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
|
||||
@@ -327,7 +327,7 @@
|
||||
|
||||
<script>
|
||||
import crudUser from '@/views/system/user/user'
|
||||
import crudDept from '@/api/system/dept'
|
||||
import crudDept from '@/views/system/dept/dept'
|
||||
import crudDataPermission from '@/views/system/dataPermission/dataPermission'
|
||||
import { getAll, getLevel } from '@/views/system/role/role'
|
||||
import CRUD, { crud, form, header, presenter } from '@crud/crud'
|
||||
|
||||
Reference in New Issue
Block a user