Commit e05a71e8 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化应用列表显示

parent 640150cf
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="text"> <template slot="appType" slot-scope="text">
{{ text.appType === 1 ? "应用程序" : "URL" }} {{ appType[text.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="text"> <template slot="shelves" slot-scope="text">
...@@ -150,6 +150,13 @@ import { ...@@ -150,6 +150,13 @@ import {
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
import { pageSizeOptions } from "@/config/pageConfig.js"; import { pageSizeOptions } from "@/config/pageConfig.js";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -211,6 +218,7 @@ export default { ...@@ -211,6 +218,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,
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</template> </template>
<!-- 类型 --> <!-- 类型 -->
<template slot="appType" slot-scope="text"> <template slot="appType" slot-scope="text">
{{ text.appType === 1 ? "应用程序" : "URL" }} {{ appType[text.appType] }}
</template> </template>
<!-- 上下架 --> <!-- 上下架 -->
<template slot="shelves" slot-scope="text"> <template slot="shelves" slot-scope="text">
...@@ -150,6 +150,13 @@ import { ...@@ -150,6 +150,13 @@ import {
import local from "@/utils/local"; import local from "@/utils/local";
import { mapMutations, mapGetters } from "vuex"; import { mapMutations, mapGetters } from "vuex";
import { pageSizeOptions } from "@/config/pageConfig.js"; import { pageSizeOptions } from "@/config/pageConfig.js";
let appType = {
1: "应用程序",
2: "URL",
3: "微信小程序",
4: "天府通办",
5: "Router",
};
const columns = [ const columns = [
{ {
title: "序号", title: "序号",
...@@ -211,6 +218,7 @@ export default { ...@@ -211,6 +218,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,
......
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