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

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

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