Browse Source

jiahan.wu [cr]

1.编码规则、业务编码配置代码从大数据平台迁移到IOT
2.设备编码通过编码规则接口生成
develop
eric777 10 months ago
parent
commit
97268ef18c
  1. 12
      src/api/model/busiCodeConfig.js
  2. 10
      src/api/model/codeDefine.js
  3. 2
      src/views/model/busiCodeConfig/index.vue
  4. 2
      src/views/model/codeDefine/index.vue

12
src/api/model/asset/busiCodeConfig.js → src/api/model/busiCodeConfig.js

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询业务编码配置列表
export function listBusiCodeConfig(query) {
return request({
url: '/asset/busiCodeConfig/list',
url: '/model/busiCodeConfig/list',
method: 'get',
params: query
})
@ -12,7 +12,7 @@ export function listBusiCodeConfig(query) {
// 查询业务编码配置详细
export function getBusiCodeConfig(id) {
return request({
url: '/asset/busiCodeConfig/' + id,
url: '/model/busiCodeConfig/' + id,
method: 'get'
})
}
@ -20,7 +20,7 @@ export function getBusiCodeConfig(id) {
// 新增业务编码配置
export function addBusiCodeConfig(data) {
return request({
url: '/asset/busiCodeConfig',
url: '/model/busiCodeConfig',
method: 'post',
data: data
})
@ -29,7 +29,7 @@ export function addBusiCodeConfig(data) {
// 修改业务编码配置
export function updateBusiCodeConfig(data) {
return request({
url: '/asset/busiCodeConfig',
url: '/model/busiCodeConfig',
method: 'put',
data: data
})
@ -38,7 +38,7 @@ export function updateBusiCodeConfig(data) {
// 删除业务编码配置
export function delBusiCodeConfig(id) {
return request({
url: '/asset/busiCodeConfig/' + id,
url: '/model/busiCodeConfig/' + id,
method: 'delete'
})
}
@ -46,7 +46,7 @@ export function delBusiCodeConfig(id) {
// 查询编码规则列表
export function listCodeConfig(query) {
return request({
url: '/asset/codeDefine/list',
url: '/model/codeDefine/list',
method: 'get',
params: query
})

10
src/api/model/asset/codeDefine.js → src/api/model/codeDefine.js

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询编码规则定义列表
export function listCodeDefine(query) {
return request({
url: '/asset/codeDefine/list',
url: '/model/codeDefine/list',
method: 'get',
params: query
})
@ -12,7 +12,7 @@ export function listCodeDefine(query) {
// 查询编码规则定义详细
export function getCodeDefine(id) {
return request({
url: '/asset/codeDefine/' + id,
url: '/model/codeDefine/' + id,
method: 'get'
})
}
@ -20,7 +20,7 @@ export function getCodeDefine(id) {
// 新增编码规则定义
export function addCodeDefine(data) {
return request({
url: '/asset/codeDefine',
url: '/model/codeDefine',
method: 'post',
data: data
})
@ -29,7 +29,7 @@ export function addCodeDefine(data) {
// 修改编码规则定义
export function updateCodeDefine(data) {
return request({
url: '/asset/codeDefine',
url: '/model/codeDefine',
method: 'put',
data: data
})
@ -38,7 +38,7 @@ export function updateCodeDefine(data) {
// 删除编码规则定义
export function delCodeDefine(id) {
return request({
url: '/asset/codeDefine/' + id,
url: '/model/codeDefine/' + id,
method: 'delete'
})
}

2
src/views/model/busiCodeConfig/index.vue

@ -151,7 +151,7 @@
@import "@/assets/styles/self-defined.scss";
</style>
<script setup name="BusiCodeConfig">
import { listBusiCodeConfig, getBusiCodeConfig, delBusiCodeConfig, addBusiCodeConfig, updateBusiCodeConfig, listCodeConfig} from "@/api/model/asset/busiCodeConfig";
import { listBusiCodeConfig, getBusiCodeConfig, delBusiCodeConfig, addBusiCodeConfig, updateBusiCodeConfig, listCodeConfig} from "@/api/model/busiCodeConfig";
import lock from "@/assets/icons/svg/lock.svg";
const { proxy } = getCurrentInstance();

2
src/views/model/codeDefine/index.vue

@ -174,7 +174,7 @@
@import "@/assets/styles/self-defined.scss";
</style>
<script setup name="CodeDefine">
import { listCodeDefine, getCodeDefine, delCodeDefine, addCodeDefine, updateCodeDefine } from "@/api/model/asset/codeDefine";
import { listCodeDefine, getCodeDefine, delCodeDefine, addCodeDefine, updateCodeDefine } from "@/api/model/codeDefine";
import lock from "@/assets/icons/svg/lock.svg";
const { proxy } = getCurrentInstance();
const { dc_code_split,dc_coderule_body_type } = proxy.useDict('dc_code_split','dc_coderule_body_type');

Loading…
Cancel
Save