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) { export function listBusiCodeConfig(query) {
return request({ return request({
url: '/asset/busiCodeConfig/list', url: '/model/busiCodeConfig/list',
method: 'get', method: 'get',
params: query params: query
}) })
@ -12,7 +12,7 @@ export function listBusiCodeConfig(query) {
// 查询业务编码配置详细 // 查询业务编码配置详细
export function getBusiCodeConfig(id) { export function getBusiCodeConfig(id) {
return request({ return request({
url: '/asset/busiCodeConfig/' + id, url: '/model/busiCodeConfig/' + id,
method: 'get' method: 'get'
}) })
} }
@ -20,7 +20,7 @@ export function getBusiCodeConfig(id) {
// 新增业务编码配置 // 新增业务编码配置
export function addBusiCodeConfig(data) { export function addBusiCodeConfig(data) {
return request({ return request({
url: '/asset/busiCodeConfig', url: '/model/busiCodeConfig',
method: 'post', method: 'post',
data: data data: data
}) })
@ -29,7 +29,7 @@ export function addBusiCodeConfig(data) {
// 修改业务编码配置 // 修改业务编码配置
export function updateBusiCodeConfig(data) { export function updateBusiCodeConfig(data) {
return request({ return request({
url: '/asset/busiCodeConfig', url: '/model/busiCodeConfig',
method: 'put', method: 'put',
data: data data: data
}) })
@ -38,7 +38,7 @@ export function updateBusiCodeConfig(data) {
// 删除业务编码配置 // 删除业务编码配置
export function delBusiCodeConfig(id) { export function delBusiCodeConfig(id) {
return request({ return request({
url: '/asset/busiCodeConfig/' + id, url: '/model/busiCodeConfig/' + id,
method: 'delete' method: 'delete'
}) })
} }
@ -46,7 +46,7 @@ export function delBusiCodeConfig(id) {
// 查询编码规则列表 // 查询编码规则列表
export function listCodeConfig(query) { export function listCodeConfig(query) {
return request({ return request({
url: '/asset/codeDefine/list', url: '/model/codeDefine/list',
method: 'get', method: 'get',
params: query 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) { export function listCodeDefine(query) {
return request({ return request({
url: '/asset/codeDefine/list', url: '/model/codeDefine/list',
method: 'get', method: 'get',
params: query params: query
}) })
@ -12,7 +12,7 @@ export function listCodeDefine(query) {
// 查询编码规则定义详细 // 查询编码规则定义详细
export function getCodeDefine(id) { export function getCodeDefine(id) {
return request({ return request({
url: '/asset/codeDefine/' + id, url: '/model/codeDefine/' + id,
method: 'get' method: 'get'
}) })
} }
@ -20,7 +20,7 @@ export function getCodeDefine(id) {
// 新增编码规则定义 // 新增编码规则定义
export function addCodeDefine(data) { export function addCodeDefine(data) {
return request({ return request({
url: '/asset/codeDefine', url: '/model/codeDefine',
method: 'post', method: 'post',
data: data data: data
}) })
@ -29,7 +29,7 @@ export function addCodeDefine(data) {
// 修改编码规则定义 // 修改编码规则定义
export function updateCodeDefine(data) { export function updateCodeDefine(data) {
return request({ return request({
url: '/asset/codeDefine', url: '/model/codeDefine',
method: 'put', method: 'put',
data: data data: data
}) })
@ -38,7 +38,7 @@ export function updateCodeDefine(data) {
// 删除编码规则定义 // 删除编码规则定义
export function delCodeDefine(id) { export function delCodeDefine(id) {
return request({ return request({
url: '/asset/codeDefine/' + id, url: '/model/codeDefine/' + id,
method: 'delete' method: 'delete'
}) })
} }

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

@ -151,7 +151,7 @@
@import "@/assets/styles/self-defined.scss"; @import "@/assets/styles/self-defined.scss";
</style> </style>
<script setup name="BusiCodeConfig"> <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"; import lock from "@/assets/icons/svg/lock.svg";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();

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

@ -174,7 +174,7 @@
@import "@/assets/styles/self-defined.scss"; @import "@/assets/styles/self-defined.scss";
</style> </style>
<script setup name="CodeDefine"> <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"; import lock from "@/assets/icons/svg/lock.svg";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const { dc_code_split,dc_coderule_body_type } = proxy.useDict('dc_code_split','dc_coderule_body_type'); const { dc_code_split,dc_coderule_body_type } = proxy.useDict('dc_code_split','dc_coderule_body_type');

Loading…
Cancel
Save