feat(force): 新增基础代码列表接口并集成到EasyComponent
新增xrBaseCodeList接口用于获取基础代码列表数据, 并将其集成到EasyComponent中作为BaseOptionsLoader的实现。 fix(doc): 修复文档组件模板缩进问题
This commit is contained in:
parent
27642a3ef5
commit
105aedc7dc
|
|
@ -232,3 +232,20 @@ export function isTaskCreater(params) {
|
|||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function xrBaseCodeList(data) {
|
||||
return request({
|
||||
useResponseData: true,
|
||||
url: '/xrBaseCode/list',
|
||||
method: 'post',
|
||||
data
|
||||
}).then((data) => {
|
||||
return data.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
value: item.code,
|
||||
label: item.name
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,14 @@ import util from '@/common/js/utils'
|
|||
import * as utils from './utils/index'
|
||||
import { parseTime } from '@/utils/index.js'
|
||||
|
||||
import { xrBaseCodeList } from './api/force'
|
||||
import hevueImgPreview from 'hevue-img-preview'
|
||||
import '@/plugins/EasyComponent/index'
|
||||
import EasyComponent from './plugins/EasyComponent/index'
|
||||
EasyComponent({
|
||||
BaseOptionsLoader(baseCode) {
|
||||
return xrBaseCodeList({ codeid: baseCode })
|
||||
}
|
||||
})
|
||||
import '@/plugins/element/index'
|
||||
Vue.use(hevueImgPreview)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<template>
|
||||
<template>
|
||||
<el-dialog
|
||||
title="强制注销决定书内容"
|
||||
:visible.sync="visible"
|
||||
|
|
|
|||
Loading…
Reference in New Issue