diff --git a/src/assets/imgs/tool_yingyong.png b/src/assets/imgs/tool_yingyong.png new file mode 100644 index 0000000000000000000000000000000000000000..422bd2d82fa0347fbc8bda64065a878d5d914e65 Binary files /dev/null and b/src/assets/imgs/tool_yingyong.png differ diff --git a/src/components/app-card.vue b/src/components/app-card.vue index c1b1ce2092f059e0716cf60e99a64dd2f3433340..b3b899c225023978102dd7231cde849e8aeb8689 100644 --- a/src/components/app-card.vue +++ b/src/components/app-card.vue @@ -1,6 +1,6 @@ - + @@ -10,18 +10,18 @@ - + 一键部署 - + @@ -32,13 +32,17 @@ export default { type: Object, default: {}, }, + cardType: { + type: [String, Number], + default: 0, + }, }, methods: { deploymentAction() { - console.log("一键部署 --- " + this.data.id); + this.$emit("deployment-action", this.data); }, - deleteApp() { - console.log("删除应用 --- " + this.data.id); + deleteAction() { + this.$emit("delete-action", this.data); }, }, }; diff --git a/src/components/app-list.vue b/src/components/app-list.vue index 15344f2dfde519f0c5072d3f43e5d55b0bcffdb5..5aa020de8a775b72a7d7d41eae919573dbd42d80 100644 --- a/src/components/app-list.vue +++ b/src/components/app-list.vue @@ -4,6 +4,9 @@ v-for="(item, index) in data" :key="'app_card_' + index" :data="item" + :card-type="cardType" + @deployment-action="deploymentAction" + @delete-action="deleteAction" > @@ -20,6 +23,18 @@ export default { type: Array, default: [], }, + cardType: { + type: [String, Number], + default: 0, + }, + }, + methods: { + deploymentAction(item) { + this.$emit("deployment-action", item); + }, + deleteAction(item) { + this.$emit("delete-action", item); + }, }, }; diff --git a/src/components/side-nav-bar.vue b/src/components/side-nav-bar.vue index c4af1a35c4bec8286dbb9f64ecc1253739d8d9e8..bb839a5d560dfdd984f1111ba2d4c5a7b010faca 100644 --- a/src/components/side-nav-bar.vue +++ b/src/components/side-nav-bar.vue @@ -1,11 +1,7 @@ - + @@ -31,6 +27,10 @@ export default { type: String, default: () => "我的服务", }, + titleIcon: { + type: String, + default: () => require("../assets/imgs/tool_fuwu.png"), + }, titlePath: { type: String, default: () => "", diff --git a/src/components/table-um.vue b/src/components/table-um.vue index cd56f7b7326a48d2f6d6fc3a9a67b08cbbc5161c..b20155a10365b19d05aa3b9131fd7e6d83de4c27 100644 --- a/src/components/table-um.vue +++ b/src/components/table-um.vue @@ -30,18 +30,17 @@ prefix-icon="el-icon-search" v-if="searchShow" v-model="search" - placeholder="请输入账号、中文名" - style="max-width:220px;" - size="mini" + :placeholder="inputPlaceholder" + style="width:180px;" @input="searchVal" class="ces_toolbar_inp" > - + + + + 上架 + + + 下架 + + + 下架 + + + @@ -669,9 +694,6 @@ em { .ces_toolbar .ces_toolbar_btn { margin-right: 10px; } -.ces_toolbar .ces_toolbar_inp { - margin-right: 10px; -} .ces-pagination { margin-top: 20px; padding-bottom: 20px; diff --git a/src/pages/fwglList.vue b/src/pages/fwglList.vue index 4c21276f51da606ccf44b6c083ec90aaae374cca..5b29afdf5d6abf5e1097bdd4a29b5a04631a7bcc 100644 --- a/src/pages/fwglList.vue +++ b/src/pages/fwglList.vue @@ -392,10 +392,9 @@ export default { }, ]; } - + // Error else { - this.headers = []; throw Error("The page doesn't exist"); } }, diff --git a/src/pages/yygl.vue b/src/pages/yygl.vue index 3e94daac94e1ea29a749fc4c680d9011dcd2890e..d11411402e6e7a8e7ef322396c770bed60f27e1e 100644 --- a/src/pages/yygl.vue +++ b/src/pages/yygl.vue @@ -2,6 +2,8 @@ diff --git a/src/pages/yyglList.vue b/src/pages/yyglList.vue index c65a9ee6254c7a128d352511dc32e0d55eb2c690..c5fbfeb36c8173eb13fb81626f949cd826c3deec 100644 --- a/src/pages/yyglList.vue +++ b/src/pages/yyglList.vue @@ -6,21 +6,31 @@ {{ pathName }} - + - - {{ showFliterList ? "收起" : "筛选" }} - - + + + {{ showFliterList ? "收起" : "筛选" }} + + + + - + + + + + + diff --git a/static/data.json b/static/data.json index a8f30d57902271f6673e2d6b6ba1704f886e08ed..19410caa3ab4706b40be70a14a1a2220ae0c6bfb 100644 --- a/static/data.json +++ b/static/data.json @@ -27,7 +27,7 @@ "name": "王小虎", "address": "0", "id": "ssss22", - "state": 0 + "state": 2 } ], "tableData1": [