Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weiqiao-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
金民
weiqiao-vue
Commits
684dd5c3
Commit
684dd5c3
authored
Jan 16, 2026
by
张珈源
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/weiqiao-vue3' into weiqiao-vue3
parents
e037d690
12be930b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
xjrsoft-vue3/.env.development
+0
-1
xjrsoft-vue3/src/components/Form/src/components/SubForm.vue
+3
-3
xjrsoft-vue3/src/utils/event/data.ts
+2
-0
xjrsoft-vue3/src/views/ckgl/cgdh/components/Form.vue
+0
-0
xjrsoft-vue3/src/views/ckgl/cgdh/components/config.ts
+11
-2
No files found.
xjrsoft-vue3/.env.development
View file @
684dd5c3
...
@@ -16,7 +16,6 @@ VITE_DROP_CONSOLE = false
...
@@ -16,7 +16,6 @@ VITE_DROP_CONSOLE = false
# 接口地址
# 接口地址
# 如果没有跨域问题,直接在这里配置即可
# 如果没有跨域问题,直接在这里配置即可
# VITE_GLOB_API_URL=http://192.168.8.37:8080
VITE_GLOB_API_URL=http://localhost:8080
VITE_GLOB_API_URL=http://localhost:8080
# 文件上传接口 可选
# 文件上传接口 可选
...
...
xjrsoft-vue3/src/components/Form/src/components/SubForm.vue
View file @
684dd5c3
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<a-button
<a-button
v-else
v-else
:type=
"item.style"
:type=
"item.style"
@
click=
"
customClick(item)
"
@
click=
"
() =>
{ console.log('Button clicked directly:', item); customClick(item); }
"
:disabled="disabled"
:disabled="disabled"
class="mr-2"
class="mr-2"
>
>
...
@@ -487,6 +487,7 @@
...
@@ -487,6 +487,7 @@
rowResize
:
Boolean
,
rowResize
:
Boolean
,
height
:
Number
,
height
:
Number
,
});
});
console
.
log
(
'SubForm props:'
,
{
topButtonList
:
props
.
topButtonList
});
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
userStore
=
useUserStore
();
const
userStore
=
useUserStore
();
const
data
=
ref
<
Recordable
[]
>
([]);
const
data
=
ref
<
Recordable
[]
>
([]);
...
@@ -1667,7 +1668,6 @@
...
@@ -1667,7 +1668,6 @@
curRecord
.
value
=
index
;
curRecord
.
value
=
index
;
curButtonModalConfig
.
value
=
executeButton
.
modal
;
curButtonModalConfig
.
value
=
executeButton
.
modal
;
let
obj
=
{
let
obj
=
{
selectedRows
:
selectedRowsData
.
value
,
selectedRows
:
selectedRowsData
.
value
,
tableDatas
:
data
.
value
,
tableDatas
:
data
.
value
,
...
@@ -1675,7 +1675,7 @@
...
@@ -1675,7 +1675,7 @@
curIndex
:
index
,
curIndex
:
index
,
formApi
,
formApi
,
};
};
executeCurFormEvent
(
executeButton
.
event
,
formModel
,
isCamelCase
,
obj
);
executeCurFormEvent
(
executeButton
.
event
,
{}
,
isCamelCase
,
obj
);
}
}
function
showModal
(
column
,
record
,
index
)
{
function
showModal
(
column
,
record
,
index
)
{
curRecord
.
value
=
index
;
curRecord
.
value
=
index
;
...
...
xjrsoft-vue3/src/utils/event/data.ts
View file @
684dd5c3
...
@@ -339,8 +339,10 @@ export const executeCustomEvent = (setting, api, releaseId, selectedKeys?, selec
...
@@ -339,8 +339,10 @@ export const executeCustomEvent = (setting, api, releaseId, selectedKeys?, selec
};
};
//表单弹窗自定义按钮,表格组件和次级表格组件行内按钮,系统表单和自定义表单公用;
//表单弹窗自定义按钮,表格组件和次级表格组件行内按钮,系统表单和自定义表单公用;
export
const
executeCurFormEvent
=
(
setting
,
formModel
,
isCamelCase
=
false
,
tableData
?)
=>
{
export
const
executeCurFormEvent
=
(
setting
,
formModel
,
isCamelCase
=
false
,
tableData
?)
=>
{
console
.
log
(
'executeCurFormEvent called:'
,
{
setting
,
formModel
,
isCamelCase
,
tableData
});
if
(
setting
?.
length
)
{
if
(
setting
?.
length
)
{
setting
.
forEach
(
async
(
item
)
=>
{
setting
.
forEach
(
async
(
item
)
=>
{
console
.
log
(
'Processing event item:'
,
item
);
if
(
if
(
item
.
operateType
==
ExecuteType
.
API
&&
item
.
operateType
==
ExecuteType
.
API
&&
item
.
operateConfig
&&
item
.
operateConfig
&&
...
...
xjrsoft-vue3/src/views/ckgl/cgdh/components/Form.vue
View file @
684dd5c3
xjrsoft-vue3/src/views/ckgl/cgdh/components/config.ts
View file @
684dd5c3
...
@@ -1052,9 +1052,18 @@ export const formProps: FormProps = {
...
@@ -1052,9 +1052,18 @@ export const formProps: FormProps = {
label
:
'批量报检'
,
label
:
'批量报检'
,
icon
:
'ant-design:alert-outlined'
,
icon
:
'ant-design:alert-outlined'
,
style
:
'primary'
,
style
:
'primary'
,
event
:
[],
event
:
[
{
key
:
'1'
,
type
:
2
,
operateType
:
2
,
operateConfig
:
{
js
:
"if (formActionType.selectedRowsData && formActionType.selectedRowsData.length === 0) { formActionType.showMessage('请先勾选物料明细数据'); } else { const ids = formActionType.selectedRowsData.map(item => item.id); console.log('Extracted ids:', ids); formActionType.httpRequest({ requestUrl: '/ckgl/cgdh/quailty', requestType: 'put', params: ids, errorMessageMode: 'message' }).then(response => { console.log('Quality check response:', response); if (formActionType.showSuccessMessage) { formActionType.showSuccessMessage('报检处理成功!'); } else if (formActionType.message) { formActionType.message.success('报检处理成功!'); } else { formActionType.showMessage('报检处理成功!'); } if (formActionType.clearSelection) { formActionType.clearSelection(); } }).catch(error => { console.error('Quality check error:', error); formActionType.showMessage('批量报检失败,请重试!'); }); }"
}
}
],
type
:
1
,
type
:
1
,
}
,
}
],
],
isExport
:
false
,
isExport
:
false
,
isImport
:
false
,
isImport
:
false
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment