Browse Source

优化表单提交方法,调整代码格式,增加注释

chrislee 4 days ago
parent
commit
9601fb1a69
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/views/modules/tech/project-product-selection.vue

+ 5 - 3
src/views/modules/tech/project-product-selection.vue

@@ -93,7 +93,9 @@ export default {
       this.$refs.multipleTable.clearSelection()
       this.$refs.multipleTable.toggleRowSelection(row)
     },
-    // 表单提交
+    /**
+     * 表单提交
+     */
     dataFormSubmit() {
       if (this.multipleSelection == null || this.multipleSelection.length === 0) {
         this.$message.error('请选择清单')
@@ -103,8 +105,8 @@ export default {
         url: this.$http.adornUrl(`/biz-service/projProduct/selection`),
         method: 'post',
         data: this.$http.adornData({
-          productTechnologyId: this.dataForm.productTechnologyId
-          , productId: this.multipleSelection[0].productId
+          productTechnologyId: this.dataForm.productTechnologyId,
+          productId: this.multipleSelection[0].productId
         })
       }).then(({ data }) => {
         if (data && data.code === '200') {