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

fix:修改应用列表渲染

parent 4c59864b
...@@ -139,11 +139,13 @@ export default { ...@@ -139,11 +139,13 @@ export default {
...mapMutations("site", ["SET_appTemplate"]), ...mapMutations("site", ["SET_appTemplate"]),
// 获取数据模板 // 获取数据模板
async getTempleteList() { async getTempleteList() {
this.loading = true;
let res = await getTempleteList({ let res = await getTempleteList({
page: this.current, page: this.current,
size: this.size, size: this.size,
appId: this.appId, appId: this.appId,
}); });
this.loading = false;
if (res.data.code === 1) { if (res.data.code === 1) {
let { data, total } = res.data.data; let { data, total } = res.data.data;
......
...@@ -106,7 +106,15 @@ import YSwitch from "../../../../components/yswitch/YSwitch.vue"; ...@@ -106,7 +106,15 @@ import YSwitch from "../../../../components/yswitch/YSwitch.vue";
import AddApp from "../modal/AddApp.vue"; import AddApp from "../modal/AddApp.vue";
import CheckSite from "../modal/CheckSite.vue"; import CheckSite from "../modal/CheckSite.vue";
import { getAppList, deleteApp, saveApp } from "@/services/market"; import { getAppList, deleteApp, saveApp } from "@/services/market";
const columns = [
export default {
components: {
YSwitch,
AddApp,
CheckSite,
},
data() {
const columns = [
{ {
title: "序号", title: "序号",
dataIndex: "num", dataIndex: "num",
...@@ -125,7 +133,9 @@ const columns = [ ...@@ -125,7 +133,9 @@ const columns = [
}, },
{ {
title: "当前版本", title: "当前版本",
dataIndex: "version", customRender: (text) => {
return <span>{"v" + text.version}</span>;
},
}, },
{ {
title: "应用主题", title: "应用主题",
...@@ -153,14 +163,7 @@ const columns = [ ...@@ -153,14 +163,7 @@ const columns = [
width: "10%", width: "10%",
scopedSlots: { customRender: "action" }, scopedSlots: { customRender: "action" },
}, },
]; ];
export default {
components: {
YSwitch,
AddApp,
CheckSite,
},
data() {
return { return {
api: process.env.VUE_APP_API_BASE_URL.includes("base") api: process.env.VUE_APP_API_BASE_URL.includes("base")
? process.env.VUE_APP_API_BASE_URL.replace("base", "") ? process.env.VUE_APP_API_BASE_URL.replace("base", "")
......
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