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

feat: 移动端应用列表添加数据克隆

parent de08eadc
...@@ -91,6 +91,9 @@ ...@@ -91,6 +91,9 @@
<!-- 操作 --> <!-- 操作 -->
<template slot="action" slot-scope="text"> <template slot="action" slot-scope="text">
<a-space size="middle"> <a-space size="middle">
<span class="primary pointer" @click="handleCloneAppData(text)"
>克隆数据</span
>
<span class="primary pointer" @click="handleEdit(text)">编辑</span> <span class="primary pointer" @click="handleEdit(text)">编辑</span>
<span class="primary pointer" @click="handleCheck(text.id)" <span class="primary pointer" @click="handleCheck(text.id)"
>查看</span >查看</span
...@@ -127,6 +130,8 @@ ...@@ -127,6 +130,8 @@
:appList="selectedAppList" :appList="selectedAppList"
@edit="cloneSuccess" @edit="cloneSuccess"
></ChangeThem> ></ChangeThem>
<!-- 克隆应用数据 -->
<CloneData ref="CloneData" :show.sync="show"></CloneData>
</div> </div>
</template> </template>
...@@ -135,6 +140,7 @@ import YSwitch from "../../../../components/yswitch/YSwitch.vue"; ...@@ -135,6 +140,7 @@ 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 ChangeThem from "../modal/ChangeThem.vue"; import ChangeThem from "../modal/ChangeThem.vue";
import CloneData from "../modal/CloneData.vue";
import { import {
getAppList, getAppList,
deleteApp, deleteApp,
...@@ -189,7 +195,7 @@ const columns = [ ...@@ -189,7 +195,7 @@ const columns = [
}, },
{ {
title: "操作", title: "操作",
width: "150px", width: "240px",
scopedSlots: { customRender: "action" }, scopedSlots: { customRender: "action" },
}, },
]; ];
...@@ -199,6 +205,7 @@ export default { ...@@ -199,6 +205,7 @@ export default {
AddApp, AddApp,
CheckSite, CheckSite,
ChangeThem, ChangeThem,
CloneData,
}, },
data() { data() {
return { return {
...@@ -218,6 +225,7 @@ export default { ...@@ -218,6 +225,7 @@ export default {
title: "新增应用", title: "新增应用",
siteVisible: false, siteVisible: false,
themVisible: false, themVisible: false,
show: false,
dict: {}, // 字典 dict: {}, // 字典
categoryList: [], // 应用分类列表 categoryList: [], // 应用分类列表
}; };
...@@ -397,6 +405,11 @@ export default { ...@@ -397,6 +405,11 @@ export default {
this.selectedRowKeys = []; this.selectedRowKeys = [];
this.getAppList(); this.getAppList();
}, },
// 克隆数据
handleCloneAppData(row) {
this.$refs.CloneData.onAdd(row);
this.show = true;
},
// 上下架 // 上下架
async changeShelves(row) { async changeShelves(row) {
let res = await saveApp(row); let res = await saveApp(row);
......
...@@ -598,6 +598,7 @@ export default { ...@@ -598,6 +598,7 @@ export default {
padding-bottom: 30px; padding-bottom: 30px;
.content-box { .content-box {
min-height: 500px; min-height: 500px;
margin-bottom: 24px;
display: flex; display: flex;
} }
} }
......
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