Sanakey
3 天以前 b5c1614fe473330ceca8b7cff0f1802e19bd5039
src/views/clues/components/drawer/Detail.vue
@@ -1,18 +1,18 @@
<template>
  <div :class="prefixCls">
    <BasicForm @register="registerForm"></BasicForm>
<!--    <BasicForm @register="registerForm"></BasicForm>-->
    <div class="mb-15px">
      <div class="mb-15px ">
        <div :class="`${prefixCls}__label`">系统标签</div>
        <div>暂无数据</div>
        <div>{{'暂无数据'}}</div>
      </div>
      <div class="mb-15px">
        <div :class="`${prefixCls}__label`">首次跟进时间</div>
        <div>暂无数据</div>
        <div>{{cluesData.enterDate||'暂无数据'}}</div>
      </div>
      <div class="">
        <div :class="`${prefixCls}__label`">未联系天数</div>
        <div>10</div>
        <div>{{'暂无数据'}}</div>
      </div>
    </div>
    <Divider />
@@ -34,6 +34,12 @@
  import {treeOptionsListApi} from "@/api/demo/tree";
  import {getAllRoleList} from "@/api/demo/system";
  import {DescItem, Description, useDescription} from "@/components/Description";
  import {useCluesRowStore} from "@/store/modules/cluesRowData";
  import {ref} from "vue";
  let cluesData = ref({});
  const cluesRowStore= useCluesRowStore();
  cluesData.value = cluesRowStore.getRowData;
  const formSchema: FormSchema[] = [
    {
@@ -104,17 +110,17 @@
    },
  ];
  const mockData: Recordable = {
    cluesName: 'test',
    nickName: 'VB',
    age: '123',
    phone: '15695909xxx',
    email: '190848757@qq.com',
    companyname: '公司名称111',
    sex: '男',
    certy: '3504256199xxxxxxxxx',
    tag: 'orange',
  };
  // const mockData: Recordable = {
  //   cluesName: 'test',
  //   nickName: 'VB',
  //   age: '123',
  //   phone: '15695909xxx',
  //   email: '190848757@qq.com',
  //   companyname: '公司名称111',
  //   sex: '男',
  //   certy: '3504256199xxxxxxxxx',
  //   tag: 'orange',
  // };
  const schema: DescItem[] = [
    {
@@ -127,7 +133,7 @@
      label: '公司名称',
    },
    {
      field: 'phone',
      field: 'tel',
      label: '联系电话',
    },
    {
@@ -135,10 +141,10 @@
      label: '邮箱',
    },
    {
      field: 'phone',
      field: 'tel',
      label: '座机',
      render: (curVal, data) => {
        return `${data.nickName}-${curVal}`;
        return `${data.telAreaCode}-${curVal}`;
      },
    },
  ];
@@ -159,7 +165,7 @@
      color: '#909090',
      // fontSize: '12px',
    },
    data: mockData,
    data: cluesData,
    schema: schema,
  });