Bladeren bron

fix:添加相关注释

wuguojie 1 jaar geleden
bovenliggende
commit
9d13208db5

+ 6 - 5
src/views/PeopleManage/Agent/AddCountDetail.vue

@@ -87,14 +87,14 @@ export default {
   components: { KtButton },
   data() {
     return {
-      quoteDetailForm: {},
-      tableData: [],
+      quoteDetailForm: {}, // 查询条件
+      tableData: [], // 列表数据
       pageNum: 1,
       pageSize: 10,
       total: 0,
-      dialogVisible: false,
-      addCountForm: {},
-      leftTree: []
+      dialogVisible: false, // 详情弹框
+      addCountForm: {}, // 详情form数据
+      leftTree: [] // 保险公司
     }
   },
   methods: {
@@ -142,6 +142,7 @@ export default {
       this.quoteDetailForm = {}
       this.initData();
     },
+    // 点击详情
     handleDetail(row) {
       this.dialogVisible = true
       row.agent = `${row.name}-${row.userId}`

+ 2 - 2
src/views/PeopleManage/Agent/QuoteCountManagement.vue

@@ -477,10 +477,10 @@ export default {
   },
   mounted() {
     this.initCompany();
-    // window.addEventListener('beforeunload', this.handleBeforeUnload);
+    window.addEventListener('beforeunload', this.handleBeforeUnload);
   },
   beforeDestroy() {
-    // window.removeEventListener('beforeunload', this.handleBeforeUnload)
+    window.removeEventListener('beforeunload', this.handleBeforeUnload)
   }
 }
 </script>

+ 9 - 9
src/views/PeopleManage/Agent/QuoteDetail.vue

@@ -91,13 +91,12 @@ export default {
   },
   data() {
     return {
-      quoteDetailForm: {},
-      tableData: [],
+      quoteDetailForm: {}, // 查询条件
+      tableData: [], // 列表数据
       pageNum: 1,
       pageSize: 10,
       total: 0,
       orderInfo: {
-        //选中的订单
         carinfo: {},
         applyinfo: {},
         insureinfo: {},
@@ -106,13 +105,14 @@ export default {
         ownerinfo: {},
         orderCommissionVo: {},
         extendInfo: {},
-      },
-      actionList: [],
-      resultList: [],
-      leftTree: []
+      }, //选中的订单
+      actionList: [], // 动过list
+      resultList: [], // 结果list
+      leftTree: [] // 保险公司
     }
   },
   methods: {
+    // 结果数据转换展示
     filterResult(value,row) {
       return row.result === value
     },
@@ -176,17 +176,17 @@ export default {
         this.$refs.detailsDialog.setBackupVisible(true);
       })
     },
+    // 动作
     initAction() {
       this.$api.quote.getQuoteAction().then(res => {
-        console.log('动作', res)
         if(res.code === 200) {
           this.actionList = res.data
         }
       })
     },
+    // 结果
     initResult() {
       this.$api.quote.getQuoteResult().then(res => {
-        console.log('结果', res)
         if(res.code === 200) {
           this.resultList = res.data
         }

+ 6 - 7
src/views/PeopleManage/Agent/QuoteManagement.vue

@@ -117,16 +117,16 @@ export default {
         people: '',
         agentId: '',
         companyId: ''
-      },
-      quoteData: [{}],
+      }, // 查询条件form
+      quoteData: [], // 列表数据
       pageNum: 1,
       pageSize: 10,
       total: 0,
-      dialogVisible: false,
+      dialogVisible: false, // 增加次数弹框
       addForm: {
         quoteNumber: 0,
         remark: ''
-      },
+      }, // 增加次数form
 
       quoteCompany:[], // 保险公司list
 
@@ -163,6 +163,7 @@ export default {
       this.pageNum = 1
       this.initData()
     },
+    // 点击增加次数
     addCount(index, row) {
       this.dialogVisible = true
       row.agent = `${row.name}-${row.userId}`
@@ -180,6 +181,7 @@ export default {
       this.quoteForm = {}
       this.initData();
     },
+    // 增加次数保存
     addCountSubmit() {
       this.$api.quote.appendUserConfig({
         userId: this.addForm.userId,
@@ -196,9 +198,6 @@ export default {
       })
     },
   },
-  mounted() {
-
-  }
 }
 </script>
 <style>