高章伟
2022-02-18 8b5f4c6c281cfa548f92de52c8021e37aa81901e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<aura:component controller="AgencyAccountCmp" implements="forceCommunity:availableForAllPageTypes" access="global" >
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <aura:attribute name="login" type="Boolean" default="false"/>
    <aura:attribute name="accounts" type="List"/>
    <aura:attribute name="hosStr" type="String"/>
    <aura:attribute name="conStr" type="String"/>
    <aura:attribute name="filedsmap" type="Map"/>
 
    <aura:renderIf isTrue="{!v.login}">
        <div class="slds-spinner_container height100vh">
            <div class="slds-spinner--brand slds-spinner slds-spinner--medium" role="alert">
                <span class="slds-assistive-text">Loading</span>
                <div class="slds-spinner__dot-a"></div>
                <div class="slds-spinner__dot-b"></div>
            </div>
        </div>
    </aura:renderIf>
    <form class="slds-form--inline">
      <div class="slds-form-element">
        <label class="slds-form-element__label">{!v.filedsmap.Hospital_DC_Name__c}</label>
        <div class="slds-form-element__control">
            <ui:inputText class="slds-input" value="{!v.hosStr}"/>
        </div>
      </div>
      <div class="slds-form-element">
        <label class="slds-form-element__label">{!v.filedsmap.Name}</label>
        <div class="slds-form-element__control">
            <ui:inputText class="slds-input" value="{!v.conStr}"/>
        </div>
      </div>
      <div class="slds-form-element">
        <button type="button" class="slds-button slds-button--brand" onclick="{!c.searchContact}">检索</button>
      </div>
      <div class="slds-form-element">
        <button type="button" class="slds-button slds-button--brand" onclick="{!c.clearContact}">清除</button>
      </div>
    </form>
    <div class="contents_wrapper">
    <table class="slds-table slds-table--bordered slds-table--cell-buffer">
      <thead>
        <tr class="slds-text-title--caps">
          <th scope="col">
            <div class="slds-truncate" title="{!v.filedsmap.Name}">{!v.filedsmap.Name}</div>
          </th>
          <!-- 精琢科技  zxk  SWAG-C8F8TU start -->
          <th scope="col" style = "width:5px;">
            <div class="slds-truncate" title="{!v.filedsmap.Hospital_Name__c}">{!v.filedsmap.Hospital_Name__c}</div>
          </th>
          <th scope="col">
            <div class="slds-truncate" title="{!v.filedsmap.Department_Cateogy_F__c}">{!v.filedsmap.Department_Cateogy_F__c}</div>
          </th>
          <!-- 精琢科技  zxk  SWAG-C8F8TU end -->
          <!-- <th scope="col">
            <div class="slds-truncate" title="{!v.filedsmap.Hospital_DC_Name__c}">{!v.filedsmap.Hospital_DC_Name__c}</div>
          </th> -->
          <th scope="col">
            <div class="slds-truncate" title="{!v.filedsmap.Type__c}">{!v.filedsmap.Type__c}</div>
          </th>
          <th scope="col">
            <div class="slds-truncate" title="{!v.filedsmap.Doctor_Division1__c}">{!v.filedsmap.Doctor_Division1__c}</div>
          </th>
          <th scope="col">
            <div class="slds-truncate" title="{!v.filedsmap.IsOlympusContact__c}">{!v.filedsmap.IsOlympusContact__c}</div>
          </th>
        </tr>
      </thead>
      <tbody>
          <aura:iteration items="{!v.accounts}" var="item" indexVar="index">
        <tr>
          <th scope="row" data-label="Opportunity Name">
            <div class="slds-truncate" title="{!item.Name}"><a href="{!'/partner/s/agency-contact/' + item.Id}">{!item.Name}</a></div>
          </th>
            <!-- 精琢科技  zxk  SWAG-C8F8TU start -->
             <td data-label="Account Name">
              <aura:renderIf isTrue="{!item.IsOlympusContact__c == false}">
                <div class="slds-truncate" title="{!item.Hospital_Name__c}"><a href="{!'/partner/s/agency-hospital-link/' + item.Agency_Hospital__c}">{!item.Hospital_Name__c}</a></div>
            </aura:renderIf>
            <aura:renderIf isTrue="{!item.IsOlympusContact__c}">
                <div class="slds-truncate" title="{!item.Hospital_Name__c}">{!item.Hospital_Name__c}</div>
            </aura:renderIf>
          </td>
          <td data-label="Account Name01">
              <div class="slds-truncate" title="{!item.Department_Cateogy_F__c}">{!item.Department_Cateogy_F__c}</div>
          </td>
           <!-- 精琢科技  zxk  SWAG-C8F8TU end -->
 
         <!--  <td data-label="Account Name">
              <aura:renderIf isTrue="{!item.IsOlympusContact__c == false}">
                <div class="slds-truncate" title="{!item.Hospital_DC_Name__c}"><a href="{!'/partner/s/agency-hospital-link/' + item.Agency_Hospital__c}">{!item.Hospital_DC_Name__c}</a></div>
            </aura:renderIf>
            <aura:renderIf isTrue="{!item.IsOlympusContact__c}">
                <div class="slds-truncate" title="{!item.Hospital_DC_Name__c}">{!item.Hospital_DC_Name__c}</div>
            </aura:renderIf>
          </td> -->
 
          <td data-label="Close Date">
            <div class="slds-truncate" title="{!item.Type__c}">{!item.Type__c}</div>
          </td>
          <td data-label="Stage">
            <div class="slds-truncate" title="{!item.Doctor_Division1__c}">{!item.Doctor_Division1__c}</div>
          </td>
          <td data-label="IsOlympusContact__c">
            <ui:outputCheckbox value="{!item.IsOlympusContact__c}" />
          </td>
        </tr>
        </aura:iteration>
      </tbody>
    </table>
    </div>
        <!-- <aura:renderIf isTrue="{!v.report_count > 0}">
            <aura:set attribute="else">
                <div class="no_data_area">
                    {!v.list_message}
                </div>
            </aura:set>
        </aura:renderIf> -->
</aura:component>