Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcsjsb-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3bcc3c6b
authored
2023-07-27 13:32:32 +0800
by
yuanbo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加注释
1 parent
a87b1930
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
2 deletions
src/mixins/ruleMixin.js
src/mixins/tableMixin.js
src/mixins/ruleMixin.js
View file @
3bcc3c6
...
...
@@ -16,8 +16,16 @@ let mixin = {
this
.
featchData
()
},
methods
:
{
/**
* @description: featchData
* @author: renchao
*/
featchData
()
{
},
/**
* @description: verificationForm
* @author: renchao
*/
verificationForm
()
{
return
new
Promise
((
resolve
)
=>
{
this
.
$refs
[
'formList'
].
validate
((
valid
)
=>
{
...
...
@@ -29,9 +37,17 @@ let mixin = {
})
})
},
/**
* @description: changeCertificate
* @author: renchao
*/
changeCertificate
()
{
},
/**
* @description: featchRule
* @author: renchao
*/
async
featchRule
()
{
try
{
let
{
result
:
{
sysywsjbfieldlist
}
}
=
await
ruleConfig
.
getRuleList
(
this
.
bsmYwsjb
)
...
...
@@ -75,4 +91,4 @@ let mixin = {
}
}
}
export
default
mixin
\ No newline at end of file
export
default
mixin
...
...
src/mixins/tableMixin.js
View file @
3bcc3c6
...
...
@@ -21,13 +21,27 @@ let mixin = {
},
methods
:
{
// 表格索引得问题
/**
* @description: 表格索引得问题
* @param {*} index
* @author: renchao
*/
indexMethod
(
index
)
{
return
index
+
1
+
(
this
.
form
.
currentPage
-
1
)
*
this
.
formData
.
pageSize
;
},
/**
* @description: handleSizeChange
* @param {*} val
* @author: renchao
*/
handleSizeChange
(
val
)
{
this
.
formData
.
pageSize
=
val
this
.
featchData
()
},
/**
* @description: handleSearch
* @author: renchao
*/
handleSearch
()
{
this
.
form
.
currentPage
=
1
this
.
tableData
.
data
=
[]
...
...
@@ -38,15 +52,29 @@ let mixin = {
this
.
queryClick
()
}
},
/**
* @description: handleCurrentChange
* @param {*} val
* @author: renchao
*/
handleCurrentChange
(
val
)
{
this
.
form
.
currentPage
=
val
this
.
featchData
()
},
/**
* @description: handleSubmit
* @author: renchao
*/
handleSubmit
()
{
this
.
tableData
.
data
=
[]
this
.
featchData
()
},
// 详情
/**
* @description: 详情
* @param {*} row
* @author: renchao
*/
handleEdit
(
row
)
{
this
.
$refs
.
editLog
.
isShow
(
row
);
if
(
row
.
rectypeName
)
{
...
...
@@ -70,6 +98,10 @@ let mixin = {
}
},
// 重置表单
/**
* @description: 重置表单
* @author: renchao
*/
resetForm
()
{
if
(
!
this
.
form
)
return
Object
.
keys
(
this
.
form
).
forEach
((
key
)
=>
{
...
...
Please
register
or
sign in
to post a comment