Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
vue-gjjs
Commits
a3ed7192
Commit
a3ed7192
authored
Jan 16, 2023
by
yuanliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
txm前端添加规则校验,错误判断
parent
4c1d2dd2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
+24
-8
Txm.js
src/views/Statics/Dbitxm/Txm.js
+4
-0
TxmInfo.vue
src/views/Statics/Dbitxm/TxmInfo.vue
+2
-2
index.vue
src/views/Statics/Dbitxm/index.vue
+13
-5
Infsea.vue
src/views/Statics/Inftxm/Infsea.vue
+5
-1
No files found.
src/views/Statics/Dbitxm/Txm.js
View file @
a3ed7192
...
...
@@ -17,4 +17,8 @@ export const Pattern = {
{
required
:
true
,
message
:
"必输项"
,
type
:
"string"
,
trigger
:
"blur"
},
{
max
:
8
,
message
:
"最大长度8个字符"
,
trigger
:
"blur"
},
],
extkey
:
[{
max
:
17
,
message
:
"最大长度17个字符"
,
trigger
:
"blur"
}],
nam
:
[{
max
:
40
,
message
:
"最大长度40个字符"
,
trigger
:
"blur"
}],
uil
:
[{
max
:
2
,
message
:
"最大长度2个字符"
,
trigger
:
"blur"
}],
etgextkey
:
[{
max
:
8
,
message
:
"最大长度8个字符"
,
trigger
:
"blur"
}],
};
src/views/Statics/Dbitxm/TxmInfo.vue
View file @
a3ed7192
...
...
@@ -2,7 +2,7 @@
<div
class=
"eibs-tab"
>
<c-col
:span=
"12"
class=
"col-left"
>
<el-form-item
label=
"INR"
prop=
"inr"
v-if=
"type !== 'add'"
>
<c-input
v-model=
"model.inr"
placeholder=
"请输入主键"
>
<c-input
v-model=
"model.inr"
placeholder=
"请输入主键"
:disabled=
"type === 'edit'"
>
</c-input>
</el-form-item>
<el-form-item
label=
"名称"
prop=
"nam"
>
...
...
@@ -47,7 +47,7 @@ import codes from "~/config/CodeTable";
export
default
{
name
:
""
,
entyGrp
:
[],
props
:
[
"model"
,
"type"
],
props
:
[
"model"
,
"type"
],
data
()
{
return
{};
},
...
...
src/views/Statics/Dbitxm/index.vue
View file @
a3ed7192
...
...
@@ -6,7 +6,7 @@
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
>
<el-tab-pane
label=
"固定格式文本信息"
name=
"txm"
>
<c-content>
<m-txm-info
:model=
"model"
:type=
"type"
/>
<m-txm-info
:model=
"model"
:type=
"type"
/>
</c-content>
</el-tab-pane>
</c-tabs>
...
...
@@ -96,8 +96,12 @@ export default {
if
(
validated
)
{
edit
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"修改成功!"
);
this
.
goBack
(
true
)
if
(
res
.
inr
)
{
this
.
$message
.
success
(
"修改成功!"
);
this
.
goBack
(
true
)
}
else
{
this
.
$message
.
error
(
"修改失败!"
);
}
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"修改失败!"
);
...
...
@@ -116,8 +120,12 @@ export default {
.
then
(()
=>
{
deleteById
(
this
.
model
.
inr
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
goBack
(
true
)
if
(
res
===
true
)
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
goBack
(
true
)
}
else
{
this
.
$message
.
error
(
"删除失败,请刷新后再试"
);
}
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"删除失败!"
);
...
...
src/views/Statics/Inftxm/Infsea.vue
View file @
a3ed7192
...
...
@@ -99,9 +99,13 @@ export default {
this
.
model
.
pageNum
=
1
;
this
.
onInftxmSearch
();
},
langValue
(
key
)
{
return
this
.
lang
.
filter
(
item
=>
item
.
value
===
key
)[
0
]?.
label
;
},
onInftxmSearch
()
{
queryByPage
(
this
.
model
).
then
((
res
)
=>
{
const
list
=
res
.
list
;
const
list
=
res
.
list
??
[];
list
.
map
(
item
=>
item
.
uil
=
this
.
langValue
(
item
.
uil
)
??
item
.
uil
);
this
.
txmData
=
list
;
this
.
model
.
pageNum
=
res
.
pageNumber
;
this
.
model
.
pageSize
=
res
.
pageSize
;
...
...
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