Commit a66a4576 authored by zhengke's avatar zhengke

1

parent 4a74ba5f
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
@click="EditTask(props.row)" /> @click="EditTask(props.row)" />
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除" <q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除"
@click="RemoveTask(props.row.Id)" /> @click="RemoveTask(props.row.Id)" />
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="详情"
@click="iShowEdit(props.row)" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -102,6 +104,7 @@ ...@@ -102,6 +104,7 @@
</q-table> </q-table>
</div> </div>
<saleForm v-if="isShowTask" :taskOption="taskOption" @close="closeSaleForm" @success="RefreshPage"></saleForm> <saleForm v-if="isShowTask" :taskOption="taskOption" @close="closeSaleForm" @success="RefreshPage"></saleForm>
<!-- <saleRightForm v-if="isShowRight" :taskOption="taskOption" @close="closeSaleForm"></saleRightForm> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -110,12 +113,14 @@ ...@@ -110,12 +113,14 @@
RemoveCustomerTask RemoveCustomerTask
} from '../../api/sale/peemanagement'; } from '../../api/sale/peemanagement';
import saleForm from '../../components/sale/sale-form'; import saleForm from '../../components/sale/sale-form';
// import saleRightForm from '../../components/sale/saleRight-form'
export default { export default {
meta: { meta: {
title: "营销任务" title: "营销任务"
}, },
components: { components: {
saleForm saleForm,
saleRightForm
}, },
data() { data() {
return { return {
...@@ -194,6 +199,7 @@ ...@@ -194,6 +199,7 @@
pageCount: 0, pageCount: 0,
taskOption: null, taskOption: null,
isShowTask: false, isShowTask: false,
isShowRight: false
} }
}, },
created() {}, created() {},
...@@ -254,6 +260,14 @@ ...@@ -254,6 +260,14 @@
} }
this.isShowTask = true this.isShowTask = true
}, },
iShowEdit(obj){
if (obj) {
this.taskOption = obj;
} else {
this.taskOption = null
}
this.isShowRight = true
},
closeSaleForm() { closeSaleForm() {
this.isShowTask = false this.isShowTask = 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