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

perf: 优化应用列表显示

parent cded661f
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="{ record }"> <template slot="appType" slot-scope="{ record }">
{{ record.appType === 1 ? "应用程序" : "URL" }} {{ appType[record.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="{ record }"> <template slot="shelves" slot-scope="{ record }">
...@@ -145,6 +145,13 @@ import { ...@@ -145,6 +145,13 @@ import {
} from "@/services/market"; } from "@/services/market";
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -206,6 +213,7 @@ export default { ...@@ -206,6 +213,7 @@ export default {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
columns, columns,
appType,
siteId: local.getLocal("siteId"), siteId: local.getLocal("siteId"),
tableData: [], // 表格数据 tableData: [], // 表格数据
loading: false, loading: false,
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="{ record }"> <template slot="appType" slot-scope="{ record }">
{{ record.appType === 1 ? "应用程序" : "URL" }} {{ appType[record.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="{ record }"> <template slot="shelves" slot-scope="{ record }">
...@@ -145,6 +145,13 @@ import { ...@@ -145,6 +145,13 @@ import {
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
import YTable from "@/components/YTable.vue"; import YTable from "@/components/YTable.vue";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", 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