-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
188 lines (164 loc) · 10.4 KB
/
index.html
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>专家管理系统</title>
<link rel="icon" href="data:;base64,=">
<link rel="stylesheet" type="text/css" href="lib/iview/iview.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/detail.css">
<link rel="stylesheet" type="text/css" href="css/experts.css">
<link rel="stylesheet" type="text/css" href="css/search.css">
<script type="text/javascript" src="lib/vue.js"></script>
<script type="text/javascript" src="lib/iview/iview.min.js"></script>
<script type="text/javascript" src="lib/vue-router.min.js"></script>
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="lib/ObjTree.js"></script>
<script type="text/javascript" src="util/image_uploader.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<!-- 异步组件 -->
<script type="text/javascript" src="components/addUpdateExperts.js"></script>
<script type="text/javascript" src="components/experts.js"></script>
<script type="text/javascript" src="components/search.js"></script>
<!-- 同步组件(路由) -->
<script type="text/javascript" src="components/home.js"></script>
<script type="text/javascript" src="components/detail.js"></script>
</head>
<body>
<div id="app" style="height:100%;">
<router-view></router-view>
</div>
<template id='home'>
<home></home>
</template>
<template id='detail'>
<detail></detail>
</template>
<template id="home-component">
<div style="width: 100%;height: 100%">
<Layout style="height: 100%">
<i-header class="main-header">
<div class="logo"></div>
<div class="main-title">专家管理系统</div>
<i-input class="home-search" @on-keyup="searchHandel" size="small" icon="ios-search" v-model="search_value"
placeholder="请输入关键字"></i-input>
</i-header>
<i-content class="main-container" :class="{'fixed':!search_value}">
<div v-if="!search_value" class="tool-bar">
<Cascader change-on-select size="small" class="experts-select-type" v-model="experts_type_value" :data="company_group_json" trigger="click"></Cascader>
<i-button @click="showAddUpdateExperts(null)" class="main-button add-experts-btn" size="small"
type="primary" icon="ios-add">添加专家</i-button>
</div>
<div v-if="!search_value" class="experts-container">
<div v-if = "!data_list.length" class = "none-experts">暂无专家记录。请添加专家或更换筛选条件。</div>
<experts class ="main-experts" @on-detail="goDetail" ref="experts_components" @on-delete="showDeleteExperts" @on-edit="showAddUpdateExperts"
v-for="item in data_list" :key ="item.data_id" :experts-data="item"></experts>
</div>
<search @on-detail="goDetail" @on-delete="showDeleteExperts" @on-edit="showAddUpdateExperts" v-show="!!search_value"
ref="search_component"></search>
<Modal v-model="delete_experts.model_show" :mask-closable="false" title="删除专家" :loading="true"
@on-ok="deleteExperts">
<p>确认删除专家 {{delete_experts.willbeDelete ? delete_experts.willbeDelete.name : 'null'}} ?</p>
<p>删除后将不可恢复。</p>
</Modal>
<add-update-experts @reflash="reflashData" ref="add_update_experts" />
</i-content>
</Layout>
<div v-if="!search_value" class="page-wapper">
<Page class="page-number" @on-change="onPageChange" :total="total_num" />
</div>
</div>
</template>
<template id="detail-component">
<div style="width:100;height:100%">
<Layout style="height: 100%">
<i-header class="main-header">
<div class="logo"></div>
<div class="main-title">专家管理系统</div>
</i-header>
<i-content class="main-container fixed">
<div class="experts-detail-container">
<div class="left-panel">
<div class="experts-unit">
<div class="experts-photo-wapper">
<img ref="detail_photo" class="experts-photo"></img>
<div class="name">{{basicData.name}}</div>
</div>
</div>
<div class="duty-show">
<div class="icon"></div>
<div class="text show-text">{{basicData.duty}}</div>
</div>
<div v-for="item in basicData.contact" class="contact show-text">
{{getContactType(item.type)}} : {{item.value}}
</div>
<div class="space"></div>
<div class="company show-text">
所属单位:
</div>
<div class="company show-text">{{basicData.company ? basicData.company.prepend.join(" ") :
""}}</div>
<div class="company show-text">{{basicData.company ? basicData.company.detail : ""}}</div>
<div class="major-text">专业领域</div>
<Tag class="tags" v-for="item in basicData.major" :key="item" :name="item">{{item}}</Tag>
</div>
<div class="right-panel">
<Tabs style="height:100%" type="card" value="metting-msg">
<tab-pane style="height:100%" label="参会信息" name="metting-msg">
<div class="metting-show-wapper" :class="{'slider-down':!!selected}">
<div v-if = "!mettingData.length" class = "none-show">没有查找到记录</div>
<div @click="selected = item" v-for="(item,index) in mettingData" :class="{'metting-show-unit':true,'force-background':index%2 == 0,'selected':selected && item.data_id == selected.data_id}">
<div class="metting-msg">参加了 {{item.name}} 会议</div>
<div class="time">{{date_show(item.date)}}</div>
</div>
</div>
<div v-if = "selected" class="metting-detail-wapper">
<div class="top-panel">
<div class="time-show-panel">
<div class="detail-title time">开始时间</div>
<div class="time-show">{{selectedExpertMeetingData ? selectedExpertMeetingData.sing_in_time : 'null'}}</div>
<div class="detail-title time">结束时间</div>
<div class="time-show">{{selectedExpertMeetingData ? selectedExpertMeetingData.sing_down_time :'null'}}</div>
</div>
<div class="voting-show-panel">
<table cellspacing=0 class="voting-table">
<thead>
<tr>
<th>表决名称</th>
<th>表决票数</th>
<th>表决内容</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class = "voting-wapper">
<div class="table-item" v-for = "it in selectedExpertMeetingData.voting">
<div>{{it.name}}</div>
<div>{{it.total}}</div>
<div>{{getVotingShow(it.voting_data)}}</div>
</div>
</div>
</div>
</div>
<div class="buttom-panel">
<div class="detail-title" style="text-align:center;">批注</div>
<div class="content">
<p v-for = "pd in selectedExpertMeetingData.annotate">{{pd}}</p>
</div>
</div>
</div>
</tab-pane>
<tab-pane label="专家信息" disabled name="experts-msg"></tab-pane>
</Tabs>
</div>
</div>
</i-content>
</Layout>
</div>
</template>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>