refactor(api): 更新API接口URL路径

统一调整API接口路径命名规范,将带有xr前缀的路径更改为标准路径:
- /xrBaseCode/list -> /constant/list
- /xrAttachment/delLawFile -> /attachment/delLawFile
- /xrAttachment/listByBizSepNo -> /attachment/listByBizSepNo

feat(main): 添加全局console对象

在Vue原型链上添加console对象,便于全局调试使用

refactor(handle): 优化组件中的事件处理逻辑

- 修复radio组件change事件处理函数,使用箭头函数并修正参数引用
- 为flowModel添加默认空数组返回,避免undefined错误
- 修正API响应数据结构,从data.data获取实际数据
This commit is contained in:
chenxf 2026-01-06 15:37:26 +08:00
parent 65367e1169
commit 39597fe39b
3 changed files with 9 additions and 8 deletions

View File

@ -236,7 +236,7 @@ export function isTaskCreater(params) {
export function xrBaseCodeList(data) { export function xrBaseCodeList(data) {
return request({ return request({
useResponseData: true, useResponseData: true,
url: '/xrBaseCode/list', url: '/constant/list',
method: 'post', method: 'post',
data data
}).then((data) => { }).then((data) => {
@ -253,7 +253,7 @@ export function xrBaseCodeList(data) {
export function xrAttachmentDelLawFile(params) { export function xrAttachmentDelLawFile(params) {
return request({ return request({
useResponseData: true, useResponseData: true,
url: '/xrAttachment/delLawFile', url: '/attachment/delLawFile',
method: 'post', method: 'post',
params params
}) })
@ -262,7 +262,7 @@ export function xrAttachmentDelLawFile(params) {
export function xrAttachmentListByBizSepNo(data) { export function xrAttachmentListByBizSepNo(data) {
return request({ return request({
useResponseData: true, useResponseData: true,
url: '/xrAttachment/listByBizSepNo', url: '/attachment/listByBizSepNo',
method: 'post', method: 'post',
data data
}) })

View File

@ -49,6 +49,7 @@ Vue.prototype.$moment = moment
// 工具类 // 工具类
Vue.prototype.$util = util Vue.prototype.$util = util
Vue.prototype.$utils = utils Vue.prototype.$utils = utils
Vue.prototype.console = console
Vue.component('paper-swiper', () => import ('@/components/PaperSwiper')) Vue.component('paper-swiper', () => import ('@/components/PaperSwiper'))
Vue.component('paper', () => import ('@/components/Paper')) Vue.component('paper', () => import ('@/components/Paper'))
Vue.component('CommonTitle', () => import ('@/components/CommonTitle')) Vue.component('CommonTitle', () => import ('@/components/CommonTitle'))

View File

@ -109,9 +109,9 @@
<div class="opinion-selector"> <div class="opinion-selector">
<el-radio-group <el-radio-group
v-model="localSelection" v-model="localSelection"
@change="(val) => { @change="() => {
// isUpper // isUpper
getUsersWithPermission(val === '上级部门处理人' ? 1 : 0); getUsersWithPermission(localSelection === '上级部门处理人' ? 1 : 0);
scope.easyFormItemBindData.componentScope.formInstance.clearValidate(scope.field.prop); scope.easyFormItemBindData.componentScope.formInstance.clearValidate(scope.field.prop);
}" }"
> >
@ -396,7 +396,7 @@ export default {
required: true, required: true,
span: 24, span: 24,
options: ({ formData }) => { options: ({ formData }) => {
return this.flowModel return this.flowModel || []
}, },
showInForm: () => { showInForm: () => {
return !this.readonly return !this.readonly
@ -601,7 +601,7 @@ export default {
permission, permission,
this.$store.getters.orgId this.$store.getters.orgId
).then((data) => { ).then((data) => {
this.nextPerformerMap = data this.nextPerformerMap = data.data
})) }))
} }
return Promise.all(ps) return Promise.all(ps)
@ -677,7 +677,7 @@ export default {
this.$store.getters.orgId, this.$store.getters.orgId,
isUpper isUpper
).then((data) => { ).then((data) => {
this.nextPerformerMap = data this.nextPerformerMap = data.data
})) }))
} }
return Promise.all(ps) return Promise.all(ps)