Browse Source

全景视图

zhengnaiwen_citu 6 months ago
parent
commit
b38ba4f9a3

+ 3 - 3
src/views/humanResources/panorama/dynamic/salary/payroll.vue

@@ -43,9 +43,9 @@ export default {
   },
   created () {
     const query = this.$route.query
-    if (query.certification) {
+    if (query.employeeNo) {
       Object.assign(this.query, {
-        unifiedCertificationNumber: query.certification
+        unifiedCertificationNumber: query.employeeNo
       })
     }
     this.onInit()
@@ -57,7 +57,7 @@ export default {
           label: '姓名',
           prop: 'employeeName',
           type: 'input',
-          hidden: this.$route.query.certification,
+          hidden: this.$route.query.employeeNo,
           option: {
             placeholder: '请输入姓名'
           }

+ 3 - 0
src/views/humanResources/panorama/panoramaDetails.vue

@@ -58,6 +58,9 @@ export default {
         return
       }
       this.paths = findPath(data, this.$route.query.organizationNo)
+      if (this.$route.query.employeeName && this.$route.query.employeeNo) {
+        this.paths.push({ value: this.$route.query.employeeNo, label: this.$route.query.employeeName })
+      }
 
       // 递归查找机构编码,返回从根节点开始的路径数组{ value, label }
       function findPath (tree, targetCode, path = []) {