zhengnaiwen_citu 4 月之前
父节点
当前提交
0ad6443620

+ 5 - 0
src/views/accumulatePoints/accumulatePointsApply/index.vue

@@ -54,6 +54,7 @@ export default {
         { label: '积分类型', prop: 'title' },
         { label: '积分值', prop: 'score', align: 'center' },
         { label: '描述', prop: 'desc' },
+        { label: '提交时间', prop: 'createDate' },
         { label: '操作', prop: 'actions' }
       ],
       items: [],
@@ -82,6 +83,10 @@ export default {
       this.$refs.accumulatePointsApplyEditRefs.open()
     },
     getFile (row) {
+      if (!row.images) {
+        this.$message.warning('暂无附件')
+        return
+      }
       this.previewUrl = row.images
       this.$nextTick(() => {
         setTimeout(() => {

+ 13 - 2
src/views/accumulatePoints/accumulatePointsIntegralList/index.vue

@@ -1,6 +1,6 @@
 <template>
-  <div class="pa-3 white">
-    <m-search class="mb-3" :items="searchItems" v-model="searchValues" @search="onSearch"></m-search>
+  <div class="white" :class="{ 'p-3': !$attrs.panorama }">
+    <m-search v-if="!$attrs.panorama" class="mb-3" :items="searchItems" v-model="searchValues" @search="onSearch"></m-search>
     <m-table
       v-loading="loading"
       :items="items"
@@ -57,6 +57,10 @@ export default {
     }
   },
   created () {
+    // 全景视图终止自动调用
+    if (this.$attrs.panorama) {
+      return
+    }
     this.onInit()
   },
   computed: {
@@ -85,6 +89,13 @@ export default {
     }
   },
   methods: {
+    onInitPanorama (organizationNo, employeeNo) {
+      this.searchValues = {
+        organizationNo,
+        employeeNo
+      }
+      this.onInit()
+    },
     async onInit () {
       this.loading = true
       try {

+ 4 - 0
src/views/accumulatePoints/components/accumulatePointsApplyDetails.vue

@@ -57,6 +57,10 @@ export default {
       }
     },
     getFile (row) {
+      if (!row.images) {
+        this.$message.warning('暂无附件')
+        return
+      }
       this.previewUrl = row.images
       this.$nextTick(() => {
         setTimeout(() => {