<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>FH Admin</title>
    <!-- HTML5 Shim and Respond.js IE10 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 10]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
    <!-- Meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="author" content="FH Admin QQ313596790" />

    <link rel="icon" href="../../../assets/images/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../../../assets/fonts/fontawesome/css/fontawesome-all.min.css">
    <link rel="stylesheet" href="../../../assets/plugins/animation/css/animate.min.css">
    <link rel="stylesheet" href="../../../assets/css/style.css">
    
   	<style type="text/css">
	#dialog-add,#dialog-message,#dialog-comment{width:100%; height:100%; position:fixed; top:0px; z-index:10000; display:none;}
	.commitopacity{position:absolute; width:100%; height:600px; background:#7f7f7f; filter:alpha(opacity=50); -moz-opacity:0.4; -khtml-opacity: 0.4; opacity: 0.4; top:0px; z-index:99999;}
	.commitbox{width:95%; padding-left:42px; padding-top:69px; position:absolute; top:0px; z-index:99999;}
	.commitbox_inner{width:96%; height:240px;  margin:6px auto; background:#efefef; border-radius:5px;}
	.commitbox_top{width:100%; height:269px; margin-bottom:10px; padding-top:10px; background:#FFF; border-radius:5px; box-shadow:1px 1px 3px #e8e8e8;}
	.commitbox_top textarea{width:95%; height:165px; display:block; margin:0px auto; border:0px;}
	.commitbox_cen{width:95%; height:40px; padding-top:10px;}
	.commitbox_cen div.left{float:left;background-size:15px; background-position:0px 3px; padding-left:18px; color:#f77500; font-size:16px; line-height:27px;}
	.commitbox_cen div.left img{width:30px;}
	.commitbox_cen div.right{float:right; margin-top:7px;}
	.commitbox_cen div.right span{cursor:pointer;}
	.commitbox_cen div.right span.save{border:solid 1px #C0C0C0; background:#C0C0C0; border-radius:3px; color:#FFF; padding:5px 10px;}
	.commitbox_cen div.right span.quxiao{border:solid 1px #C0C0C0; background:#C0C0C0; border-radius:3px; color:#FFF; padding:4px 9px;}
	.huoqu{border:solid 1px #C0C0C0; background:#C0C0C0; border-radius:3px; color:#FFF; padding:3px 8px;} 
	.qingkong{border:solid 1px #C0C0C0; background:#C0C0C0; border-radius:3px; color:#FFF; padding:3px 8px;}
	</style>
	
	<!-- vue -->
	<script src="../../../assets/js-vue/vue.js"></script>
    <!--全局配置-->
    <script src="../../../assets/js-v/config.js"></script>
	
</head>

<body style="background-color: white">

 	<!-- [加载状态 ] start -->
    <div class="loader-bg">
        <div class="loader-track">
            <div class="loader-fill"></div>
        </div>
    </div>
    <!-- [ 加载状态  ] End -->
	    
	    <!-- 添加属性  -->
		<input type="hidden" name="hcdname" id="hcdname" value="" />
		<input type="hidden" name="msgIndex" id="msgIndex" value="" />
		<input type="hidden" name="dtype" id="dtype" value="String" />
		<input type="hidden" name="isQian" id="isQian" value="是" />
		<div id="dialog-add">
			<div class="commitopacity"></div>
		  	<div class="commitbox">
			  	<div class="commitbox_inner">
			        <div class="commitbox_top">
			        	<br/>
			        	<table style="margin-top: -6px">
			        		<tr>
			        			<td style="padding-left: 16px;text-align: right;"><font color="black">属性名：</font></td>
			        			<td>
			        				<input style="width:300px;" name="dname" id="dname" type="text" value="" placeholder="首字母必须为字母或下划线" title="属性名" />
			        			</td>
			        			<td style="padding-left: 16px;text-align: right;"><font color="black">属性类型：</font></td>
			        			<td style="padding-top: 5px;">
			        				<label style="float:left;padding-left: 20px;cursor:pointer;"><input name="form-field-radiot" id="form-field-radio1" onclick="vm.setType('String');" type="radio" value="icon-edit"><span class="lbl"><font color="black">String</font></span></label>
									<label style="float:left;padding-left: 20px;cursor:pointer;"><input name="form-field-radiot" id="form-field-radio3" onclick="vm.setType('Date');" type="radio" value="icon-edit"><span class="lbl"><font color="black">Date</font></span></label>
									<label style="float:left;padding-left: 20px;cursor:pointer;"><input name="form-field-radiot" id="form-field-radio2" onclick="vm.setType('Integer');" type="radio" value="icon-edit"><span class="lbl"><font color="black">Integer</font></span></label>
									<label style="float:left;padding-left: 20px;cursor:pointer;"><input name="form-field-radiot" id="form-field-radio33" onclick="vm.setType('Double');" type="radio" value="icon-edit"><span class="lbl"><font color="black">Double</font></span></label>
								</td>
			        		</tr>
			        		<tr>
			        			<td style="padding-left: 16px;text-align: right;"><font color="black">其备注：</font></td>
			        			<td>
			        				<input style="width:300px;" name="dbz" id="dbz" type="text" value="" placeholder="例如 name的备注为 '姓名'" title="备注"/>
			        			</td>
			        			<td style="padding-left: 16px;text-align: right;"><font color="black">前台录入：</font></td>
			        			<td>
			        				<div style="float: left;padding-top: 3px;">
			        				<label style="float:left;padding-left: 20px;cursor:pointer;"><input name="form-field-radioq" id="form-field-radio4" onclick="vm.isQian('是');" type="radio" value="icon-edit" checked="checked"><span class="lbl"><font color="black">是</font></span></label>
									<label style="float:left;padding-left: 20px;cursor:pointer;"><input name="form-field-radioq" id="form-field-radio5" onclick="vm.isQian('否');" type="radio" value="icon-edit"><span class="lbl"><font color="black">否</font></span></label>
									</div>
									<div class="nav-search" style="float: right;padding-right: 5px;">
										<font color="black">长度：</font><input class="nav-search-input" style="width:66px;" name="flength" id="flength" onkeyup="vm.inspect();" type="number" value="" placeholder="长度" title="长度" />
											<font color="black">.</font> <input class="nav-search-input" style="width:50px;" name="decimal" id="decimal" type="number" value="" placeholder="小数" title="类型为Double时有效" />
									</div>
								</td>
			        		</tr>
			        		<tr height="33px;">
			        			<td style="padding-left: 16px;text-align: right;"><font color="black">引字典：</font></td>
			        			<td><input style="width:300px;" name="dictionariesid" id="dictionariesid" type="text" value="" disabled="disabled" placeholder="(非必录)" title="默认值"/></td>
			        			<td style="padding-left: 2px;text-align: left;">
			        				<a class="huoqu" onclick="vm.selectDid();"  title="获取" style="cursor:pointer;"><i style="margin-top:-3px;margin-left: 0px;"  class="feather icon-search"></i></a>
			        				<a class="qingkong" onclick="vm.deldid();"  title="清空" style="cursor:pointer;">清</a>
			        			</td>
			        			<td style="float: left;padding-top: 3px;"><font color="#FF8000">[ 选择父级 , 子一级作为下拉菜单 ]</font></td>
			        		</tr>
			        		<tr>
			        			<td style="padding-left: 16px;text-align: right;"><font color="black">默认值：</font></td>
			        			<td><div class="nav-search"><input class="nav-search-input" style="width:300px;" name="ddefault" id="ddefault" type="text" value="" disabled="disabled" placeholder="后台附加值时生效" title="默认值"/></div></td>
			        			<td style="padding-left: 16px;text-align: right;"></td>
			        			<td>
			        			<div class="commitbox_cen">
					                <div class="left" id="cityname"></div>
					                <div class="right" style="padding-right: 28px;"><span class="save" onClick="vm.saveD()">保存</span>&nbsp;&nbsp;<span class="quxiao" onClick="vm.cancel_pl()">取消</span></div>
					            </div>
			        			</td>
			        		</tr>
			        		<tr>
			        			<td style="padding-left: 16px;" colspan="100">
			        				<font color="red" style="font-weight: bold;">
			        					注意：<br/>
			        					  1. 请不要添加  XX_ID 的主键，系统自动生成一个32位无序不重复字符序列作为主键<br/>
			        					  2. 主键为  类名_ID 格式，所有字段的字母均用大写
			        				</font>
								</td>
			        		</tr>
			        	</table>
			        </div>
			  	</div>
		  	</div>
		</div>
	    
	    <!-- [ 主内容区 ] start -->
        <div class="pcoded-wrapper" id="app">
            <div class="pcoded-content">
                <div class="pcoded-inner-content">
                    <div class="main-body">
                        <div class="page-wrapper">
                            <!-- [ Main Content ] start -->
                            <div style="width:100%;margin-top: 10px;"> 
	    
							    <input type="hidden" name="zindex" id="zindex" value="0">
								<input type="hidden" name="FIELDLIST" id="FIELDLIST" value="">
								<input type="hidden" name="faobject" id="faobject" value="">
							    <div id="showform">
							    <table style="margin-top: -15px;">
									<tr>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
		                                    	<div class="input-group-prepend">
		                                        <span class="input-group-text" style="width: 79px;"><span style="width: 100%;">模块说明</span></span>
		                                    	</div>
		                                   	 <input type="text" class="form-control" name="TITLE" id="TITLE" v-model="TITLE" maxlength="32" placeholder="这里输入模块说明" title="模块说明" style="width: 609px;">
		                                 	</div>
						            	</td>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
		                                    	<div class="input-group-prepend">
		                                        <span class="input-group-text" style="width: 79px;"><span style="width: 100%;">模块类型</span></span>
		                                    	</div>
			                                   	<select v-model="FHTYPE" id="FHTYPE" data-placeholder="请选择类型" onchange="selectType(this.value)"  style="height: 32px;width: 89px;border: 1px solid #CED4DA;padding-left:5px;" >
													<option value="single">单表</option>
													<option value="tree">树形</option>
													<option value="fathertable">主表</option>
													<option value="sontable">明细表</option>
												</select>
		                                 	</div>
						            	</td>
						         	</tr>
						         </table>
						         <table style="margin-top: -10px;">
									<tr>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
		                                    	<div class="input-group-prepend">
		                                        <span class="input-group-text" style="width: 79px;"><span style="width: 100%;">上级包名</span></span>
		                                    	</div>
		                                   	 <input class="form-control" type="text" name="packageName" id="packageName" v-model="PACKAGENAME" placeholder="包名  (不要输入特殊字符,请用纯字母)"  maxlength="30"  title="上级包名" style="width: 306px;" >
		                                 	</div>
						            	</td>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
		                                    	<div class="input-group-prepend">
		                                        <span class="input-group-text"><span style="width: 100%;">例如:org.fh.controller.<font color="red" style="font-weight: bold;">system</font>&nbsp;&nbsp;只输入红色部分</span></span>
		                                    	</div>
		                                 	</div>
						            	</td>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
			                                   <select v-model="faobjectid" id="faobjectid" data-placeholder="请选择" disabled="disabled" style="height: 31px;width:150px;background-color: #F5F5F5;border: 1px solid #CED4DA;padding-left:5px;" onchange="selectFa(this.value)">
													<option value=''>选择主表</option>
													<template v-for="data in varList">
													<option v-bind:value="data.CREATECODE_ID">{{data.OBJECTNAME}}</option>
													</template>
												</select>
		                                 	</div>
						            	</td>
						         	</tr>
						         </table>
						         <table style="margin-top: -10px;">
									<tr>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
		                                    	<div class="input-group-prepend">
		                                        <span class="input-group-text" style="width: 79px;"><span style="width: 100%;">处理类名</span></span>
		                                    	</div>
		                                   	 	<input class="form-control" type="text" name="objectName" id="objectName" v-model="OBJECTNAME" placeholder="这里输入处理类名称"  maxlength="50"  title="处理类名" style="width: 295px;">
		                                 	</div>
						            	</td>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
		                                    	<div class="input-group-prepend">
		                                        <span class="input-group-text"><span style="width: 100%;">(类名首字母必须为大写字母或下划线)</span></span>
		                                    	</div>
		                                 	</div>
						            	</td>
						            	<td>
						            		<div class="input-group input-group-sm mb-3">
						            			<div class="input-group-prepend">
		                                        <span class="input-group-text" style="width: 79px;"><span style="width: 100%;">表前缀</span></span>
		                                    	</div>
			                                    <input class="form-control" type="text" name="tabletop" id="tabletop" v-model="tabletop" placeholder="这里输入表前缀" maxlength="50"  title="表前缀" style="width: 151px;">
		                                 	</div>
						            	</td>
						         	</tr>
						         </table>
						         	<div v-show="loading">
										<!-- [加载状态 ] start -->
								    	<div class="d-flex justify-content-center" style="margin-top:-10px;">
                                            <div class="spinner-grow text-secondary" role="status">
                                                <span class="sr-only">Loading...</span>
                                            </div>
                                        </div>
								    	<!-- [ 加载状态  ] End -->
									</div>
					         	 <table id="table_report" style="margin-top: -5px;" class="table table-bordered mb-0">
										<thead>
											<tr>
												<th style="width:50px;">NO</th>
												<th>属性名</th>
												<th>类型</th>
												<th>长度</th>
												<th style="width:79px;">小数点</th>
												<th>备注</th>
												<th style="width:100px;">前台录入</th>
												<th>默认值</th>
												<th style="width:56px;text-align: center;">操作</th>
											</tr>
										</thead>
										<tbody id="fields"></tbody>
								</table>
					            <div class="input-group" style="margin-top:10px;background-color: white" >
					            	<span style="width: 100%;text-align: center;">
					            		<a class="btn btn-light btn-sm" id="to-save" v-on:click="dialog_open"><i class="feather icon-plus-circle"></i>新增</a>
					            		<a class="btn btn-light btn-sm" id="productc" v-on:click="save"><i class="feather icon-printer"></i>生成</a>
					            		<a class="btn btn-light btn-sm" onclick="top.Dialog.close();"><i class="feather icon-corner-right-up"></i>取消</a>
					            	</span>
					            </div>
					           </div>
							   <!-- [加载状态 ] start -->
							    <div id="jiazai" style="display:none;margin-top:50px;text-align: center;width: 869px;">
							    	<div><br/><br/><br/><h4>提交成功,等待下载<font color="red"><strong id="second_show">10秒</strong></font>后关闭</h4></div>
							    	<div class="d-flex justify-content-center">
							         <div class="spinner-border" style="width: 3rem; height: 3rem;" role="status">
							                <span class="sr-only">Loading...</span>
							            </div>
							        </div>
							    </div>
							   <!-- [ 加载状态  ] End -->
	    
                            </div>
                           <!-- [ Main Content ] end -->
                       </div>
                   </div>
               </div>
           </div>
       </div>
   	  <!-- [ 主内容区 ] end -->
        
<script type="text/javascript" src="../../../assets/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../../../assets/js/pre-loader.js"></script>
<script type="text/javascript" src="../../../assets/plugins/sweetalert/js/sweetalert.min.js"></script>
<!-- 表单验证提示 -->
<script type="text/javascript" src="../../../assets/js/jquery.tips.js"></script>

<!-- 本页面js -->
<script type="text/javascript" src="../../../assets/js-v/tools/productCode.js"></script>

</body>
</html>