3bcc3c6b by yuanbo

增加注释

1 parent a87b1930
......@@ -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
......
......@@ -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) => {
......