增加注释
Showing
2 changed files
with
50 additions
and
2 deletions
| ... | @@ -16,8 +16,16 @@ let mixin = { | ... | @@ -16,8 +16,16 @@ let mixin = { |
| 16 | this.featchData() | 16 | this.featchData() |
| 17 | }, | 17 | }, |
| 18 | methods: { | 18 | methods: { |
| 19 | /** | ||
| 20 | * @description: featchData | ||
| 21 | * @author: renchao | ||
| 22 | */ | ||
| 19 | featchData () { | 23 | featchData () { |
| 20 | }, | 24 | }, |
| 25 | /** | ||
| 26 | * @description: verificationForm | ||
| 27 | * @author: renchao | ||
| 28 | */ | ||
| 21 | verificationForm () { | 29 | verificationForm () { |
| 22 | return new Promise((resolve) => { | 30 | return new Promise((resolve) => { |
| 23 | this.$refs['formList'].validate((valid) => { | 31 | this.$refs['formList'].validate((valid) => { |
| ... | @@ -29,9 +37,17 @@ let mixin = { | ... | @@ -29,9 +37,17 @@ let mixin = { |
| 29 | }) | 37 | }) |
| 30 | }) | 38 | }) |
| 31 | }, | 39 | }, |
| 40 | /** | ||
| 41 | * @description: changeCertificate | ||
| 42 | * @author: renchao | ||
| 43 | */ | ||
| 32 | changeCertificate() { | 44 | changeCertificate() { |
| 33 | 45 | ||
| 34 | }, | 46 | }, |
| 47 | /** | ||
| 48 | * @description: featchRule | ||
| 49 | * @author: renchao | ||
| 50 | */ | ||
| 35 | async featchRule () { | 51 | async featchRule () { |
| 36 | try { | 52 | try { |
| 37 | let { result: { sysywsjbfieldlist } } = await ruleConfig.getRuleList(this.bsmYwsjb) | 53 | let { result: { sysywsjbfieldlist } } = await ruleConfig.getRuleList(this.bsmYwsjb) |
| ... | @@ -75,4 +91,4 @@ let mixin = { | ... | @@ -75,4 +91,4 @@ let mixin = { |
| 75 | } | 91 | } |
| 76 | } | 92 | } |
| 77 | } | 93 | } |
| 78 | export default mixin | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 94 | export default mixin | ... | ... |
| ... | @@ -21,13 +21,27 @@ let mixin = { | ... | @@ -21,13 +21,27 @@ let mixin = { |
| 21 | }, | 21 | }, |
| 22 | methods: { | 22 | methods: { |
| 23 | // 表格索引得问题 | 23 | // 表格索引得问题 |
| 24 | /** | ||
| 25 | * @description: 表格索引得问题 | ||
| 26 | * @param {*} index | ||
| 27 | * @author: renchao | ||
| 28 | */ | ||
| 24 | indexMethod (index) { | 29 | indexMethod (index) { |
| 25 | return index + 1 + (this.form.currentPage - 1) * this.formData.pageSize; | 30 | return index + 1 + (this.form.currentPage - 1) * this.formData.pageSize; |
| 26 | }, | 31 | }, |
| 32 | /** | ||
| 33 | * @description: handleSizeChange | ||
| 34 | * @param {*} val | ||
| 35 | * @author: renchao | ||
| 36 | */ | ||
| 27 | handleSizeChange (val) { | 37 | handleSizeChange (val) { |
| 28 | this.formData.pageSize = val | 38 | this.formData.pageSize = val |
| 29 | this.featchData() | 39 | this.featchData() |
| 30 | }, | 40 | }, |
| 41 | /** | ||
| 42 | * @description: handleSearch | ||
| 43 | * @author: renchao | ||
| 44 | */ | ||
| 31 | handleSearch () { | 45 | handleSearch () { |
| 32 | this.form.currentPage = 1 | 46 | this.form.currentPage = 1 |
| 33 | this.tableData.data = [] | 47 | this.tableData.data = [] |
| ... | @@ -38,15 +52,29 @@ let mixin = { | ... | @@ -38,15 +52,29 @@ let mixin = { |
| 38 | this.queryClick() | 52 | this.queryClick() |
| 39 | } | 53 | } |
| 40 | }, | 54 | }, |
| 55 | /** | ||
| 56 | * @description: handleCurrentChange | ||
| 57 | * @param {*} val | ||
| 58 | * @author: renchao | ||
| 59 | */ | ||
| 41 | handleCurrentChange (val) { | 60 | handleCurrentChange (val) { |
| 42 | this.form.currentPage = val | 61 | this.form.currentPage = val |
| 43 | this.featchData() | 62 | this.featchData() |
| 44 | }, | 63 | }, |
| 64 | /** | ||
| 65 | * @description: handleSubmit | ||
| 66 | * @author: renchao | ||
| 67 | */ | ||
| 45 | handleSubmit () { | 68 | handleSubmit () { |
| 46 | this.tableData.data = [] | 69 | this.tableData.data = [] |
| 47 | this.featchData() | 70 | this.featchData() |
| 48 | }, | 71 | }, |
| 49 | // 详情 | 72 | // 详情 |
| 73 | /** | ||
| 74 | * @description: 详情 | ||
| 75 | * @param {*} row | ||
| 76 | * @author: renchao | ||
| 77 | */ | ||
| 50 | handleEdit (row) { | 78 | handleEdit (row) { |
| 51 | this.$refs.editLog.isShow(row); | 79 | this.$refs.editLog.isShow(row); |
| 52 | if (row.rectypeName) { | 80 | if (row.rectypeName) { |
| ... | @@ -70,6 +98,10 @@ let mixin = { | ... | @@ -70,6 +98,10 @@ let mixin = { |
| 70 | } | 98 | } |
| 71 | }, | 99 | }, |
| 72 | // 重置表单 | 100 | // 重置表单 |
| 101 | /** | ||
| 102 | * @description: 重置表单 | ||
| 103 | * @author: renchao | ||
| 104 | */ | ||
| 73 | resetForm () { | 105 | resetForm () { |
| 74 | if (!this.form) return | 106 | if (!this.form) return |
| 75 | Object.keys(this.form).forEach((key) => { | 107 | Object.keys(this.form).forEach((key) => { | ... | ... |
-
Please register or sign in to post a comment