|
@@ -9,11 +9,13 @@
|
|
|
<span> {{ item.active ? '已' : '' }}{{ item.title }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <iframe-dialog @getEmployInfo="getEmployEvent" @setDialogStatus="setDialogStatus" :showDialog="setShowDialog"></iframe-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import '@/assets/style/iconfont.css'
|
|
|
+import iframeDialog from '@/components/crm-info/IframeDialog.vue'
|
|
|
import { ajaxIgnoreOperate, ajaxEmployOperate, ajaxEmployInfo } from '@/api/modules/'
|
|
|
export default {
|
|
|
name: 'crm-action',
|
|
@@ -28,6 +30,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ iframeDialog
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
list: [
|
|
@@ -35,7 +40,8 @@ export default {
|
|
|
{ title: '忽略', 'icon-0': 'a-Property1hulve', 'icon-1': 'a-Property1yihulve', class: 'ignore', active: 0 },
|
|
|
{ title: '创建客户', 'icon-0': 'chuangjiankehu', 'icon-1': 'chuangjiankehu', class: 'custom', active: 0, msg: 0 }
|
|
|
],
|
|
|
- employInfo: {}
|
|
|
+ employInfo: {},
|
|
|
+ setShowDialog: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -51,6 +57,9 @@ export default {
|
|
|
this.getEmployEvent()
|
|
|
},
|
|
|
methods: {
|
|
|
+ setDialogStatus (data) {
|
|
|
+ this.setShowDialog = data
|
|
|
+ },
|
|
|
// 收录情况
|
|
|
async getEmployEvent () {
|
|
|
const { data, error_code: code } = await ajaxEmployInfo(this.params)
|
|
@@ -70,6 +79,9 @@ export default {
|
|
|
case 'ignore':
|
|
|
this.setIgnoreEvent(data)
|
|
|
break
|
|
|
+ case 'custom':
|
|
|
+ this.setShowDialog = true
|
|
|
+ break
|
|
|
default:
|
|
|
break
|
|
|
}
|