Browse Source

客户池管理 机构 typeahead

XMTT 7 years ago
parent
commit
9dfcf030a7
3 changed files with 5 additions and 3 deletions
  1. 1 0
      html/index.html
  2. 2 2
      html/model/sys/customer/index.html
  3. 2 1
      js/model/sys/customer/index.js

+ 1 - 0
html/index.html

@ -167,6 +167,7 @@
167 167
	<script type="text/javascript" src="../js/dyn-select.js"></script>
168 168
	<script type="text/javascript" src="../js/validate.js" ></script>
169 169
	<script type="text/javascript" src="../js/echarts.common.min.js"></script>
170
	<script type="text/javascript" src="../js/typeahead.js"></script>
170 171

171 172
	<script>
172 173
		$(function() {

+ 2 - 2
html/model/sys/customer/index.html

@ -14,9 +14,9 @@
14 14
			</div>
15 15
		</div>
16 16
		<div class="row">
17
			<div class="col-2 item-caption ">机构</div>
17
			<div class="col-2 item-caption org">机构</div>
18 18
			<div class="col-4">
19
				<div class="form-item text" defVal="" name="orgname"></div>
19
				<div class="form-item typeahead" uri="../ajax/sys/viewcustomer/orgName?s=15&q=" name="orgname"></div>
20 20
			</div>
21 21
			<div class="col-2 item-caption ">邮件邀请</div>
22 22
			<div class="col-4">

+ 2 - 1
js/model/sys/customer/index.js

@ -4,7 +4,8 @@ spa_define(function(){
4 4
		return{
5 5
			main: function() {				
6 6
				var root = spa.findInMain(".sys_customer_index");
7
				var pdg = pdgf.build(root);
7
                root.find((".org"), {orgname: {keyPressInterval: 1}});
8
                var pdg = pdgf.build(root);
8 9
				pdg.code.shell("showDay", function(env) {
9 10
					if(env.cd && env.cd[this.k]) {
10 11
						var day = env.cd[this.k];