Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
cf8a7f86
"src/main/java/net/mingsoft/cms" did not exist on "111333f7312ca5f38d0e2a0ff3ecab55f50e9107"
Unverified
Commit
cf8a7f86
authored
Jul 23, 2022
by
张政
Committed by
Gitee
Jul 23, 2022
Browse files
防止主键字段名与'row'或'ids'一致导致报错的问题。
parent
86fc709b
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm
View file @
cf8a7f86
...
@@ -492,8 +492,8 @@ function handleAdd() {
...
@@ -492,8 +492,8 @@ function handleAdd() {
/** 修改按钮操作 */
/** 修改按钮操作 */
function
handleUpdate
(
row
)
{
function
handleUpdate
(
row
)
{
reset
();
reset
();
const
${
pkColumn
.
javaField
}
=
row
.${
pkColumn
.
javaField
}
||
ids
.
value
const
_
${
pkColumn
.
javaField
}
=
row
.${
pkColumn
.
javaField
}
||
ids
.
value
get
${
BusinessName
}(${
pkColumn
.
javaField
}).
then
(
response
=>
{
get
${
BusinessName
}(
_
${
pkColumn
.
javaField
}).
then
(
response
=>
{
form
.
value
=
response
.
data
;
form
.
value
=
response
.
data
;
#
foreach
($
column
in
$
columns
)
#
foreach
($
column
in
$
columns
)
#
if
($
column
.
htmlType
==
"checkbox"
)
#
if
($
column
.
htmlType
==
"checkbox"
)
...
@@ -539,9 +539,9 @@ function submitForm() {
...
@@ -539,9 +539,9 @@ function submitForm() {
/** 删除按钮操作 */
/** 删除按钮操作 */
function
handleDelete
(
row
)
{
function
handleDelete
(
row
)
{
const
${
pkColumn
.
javaField
}
s
=
row
.${
pkColumn
.
javaField
}
||
ids
.
value
;
const
_
${
pkColumn
.
javaField
}
s
=
row
.${
pkColumn
.
javaField
}
||
ids
.
value
;
proxy
.
#
[[$
modal
]]
#
.
confirm
(
'
是否确认删除
${
functionName
}
编号为"
'
+
${
pkColumn
.
javaField
}
s
+
'
"的数据项?
'
).
then
(
function
()
{
proxy
.
#
[[$
modal
]]
#
.
confirm
(
'
是否确认删除
${
functionName
}
编号为"
'
+
_
${
pkColumn
.
javaField
}
s
+
'
"的数据项?
'
).
then
(
function
()
{
return
del
${
BusinessName
}(${
pkColumn
.
javaField
}
s
);
return
del
${
BusinessName
}(
_
${
pkColumn
.
javaField
}
s
);
}).
then
(()
=>
{
}).
then
(()
=>
{
getList
();
getList
();
proxy
.
#
[[$
modal
]]
#
.
msgSuccess
(
"
删除成功
"
);
proxy
.
#
[[$
modal
]]
#
.
msgSuccess
(
"
删除成功
"
);
...
...
Write
Preview
Supports
Markdown
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