Commit 1be67d09 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化应用列表显示

parent cded661f
......@@ -70,7 +70,7 @@
</template>
<!-- 类型 -->
<template slot="appType" slot-scope="{ record }">
{{ record.appType === 1 ? "应用程序" : "URL" }}
{{ appType[record.appType] }}
</template>
<!-- 上下架 -->
<template slot="shelves" slot-scope="{ record }">
......@@ -145,6 +145,13 @@ import {
} from "@/services/market";
import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [
{
title: "序号",
......@@ -206,6 +213,7 @@ export default {
return {
api: process.env.VUE_APP_API_BASE_URL + "/",
columns,
appType,
siteId: local.getLocal("siteId"),
tableData: [], // 表格数据
loading: false,
......
......@@ -70,7 +70,7 @@
</template>
<!-- 类型 -->
<template slot="appType" slot-scope="{ record }">
{{ record.appType === 1 ? "应用程序" : "URL" }}
{{ appType[record.appType] }}
</template>
<!-- 上下架 -->
<template slot="shelves" slot-scope="{ record }">
......@@ -145,6 +145,13 @@ import {
import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex";
import YTable from "@/components/YTable.vue";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [
{
title: "序号",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment