970319330@qq.com 4 дней назад
Родитель
Сommit
e0008aaa34
1 измененных файлов с 60 добавлено и 7 удалено
  1. 60 7
      src/bgj/staffpointsaccount/index.vue

+ 60 - 7
src/bgj/staffpointsaccount/index.vue

@@ -1,13 +1,66 @@
 <template>
-    <div>
-        人员积分管理
-    </div>
+  <div>
+    <basicLayout
+      ref="list"
+      tableName="listTable"
+      idName="spa_hrid"
+      :apiId="{ query: 2026052510110806 }"
+    >
+      <template v-slot:titleRight>
+        <exportFile
+          v-if="tool.checkAuth($route.name, 'export')"
+          class="inline-16"
+          :param="exportParam"
+          :columns="columns"
+          fileName="人员积分账户"
+          @onSuccess="onSuccess"
+        ></exportFile>
+      </template>
+      <template v-slot:tbList="scope">
+        <div v-if="scope.data.column.columnname === 'status'">
+          <el-tag :type="scope.data.column.data.status === 'ACTIVE' ? 'success' : 'danger'">
+            {{ scope.data.column.data.status === 'ACTIVE' ? $t('启用') : $t('停用') }}
+          </el-tag>
+        </div>
+        <div v-else>
+          {{
+            scope.data.column.data[[scope.data.column.columnname]]
+              ? $t(scope.data.column.data[[scope.data.column.columnname]])
+              : "--"
+          }}
+        </div>
+      </template>
+    </basicLayout>
+  </div>
 </template>
 
 <script>
-export default {
+import exportFile from "@/components/export_file/index.vue";
 
-}
+export default {
+  components: {
+    exportFile,
+  },
+  data() {
+    return {
+      columns: [],
+    };
+  },
+  computed: {
+    exportParam() {
+      return {
+        id: 2026052510111006,
+        content: {
+          where: this.$refs.list ? this.$refs.list.param.content.where : {},
+        },
+      };
+    },
+  },
+  methods: {
+    onSuccess() {
+      this.columns = this.$refs.list.columns;
+      this.$refs.list.listData();
+    },
+  },
+};
 </script>
-
-<style></style>