You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.9 KiB
Plaintext

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>隐藏字段</title>
<script src="../../../Scripts/QueryString.js"></script>
<script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../../../Scripts/config.js" type="text/javascript"></script>
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" />
</head>
<body>
<center>
<table id="tabApp" style="width:60%; text-align:center" class="table tableizer-table table-striped table-bordered table-hover table-condensed">
<caption>隐藏字段</caption>
<tr>
<th>#</th>
<th>字段</th>
<th>字段名</th>
<th>操作</th>
</tr>
<tr v-for="(value,index) in listData.data" v-if="value.UIVisible==0">
<td>{{index+1}}</td>
<td>{{ value.KeyOfEn }}</td>
<td><a href="#" v-on:click="OpenEn(value.MyPK,value.MyDataType)">{{value.Name}}</a> </td>
<!-- 操作 -->
<!--<td v-if="value.UIVisible==0">隐藏字段</td>-->
<!--<td v-if="value.UIVisible==1"> - </td>-->
<!-- 操作 -->
<td v-if="value.EditType==0"><a href="#" v-on:click="Delete(value.MyPK)">删除</a> </td>
<td v-if="value.EditType==1"> - </td>
<td v-if="value.EditType==2"> - </td>
</tr>
</table>
</center>
<script src="../../../Scripts/vue.js"></script>
<script language="javascript" type="text/javascript">
var appTidan = new Vue({
el: '#tabApp',
data: {
sum: 0,
listData: []
},
created() {
var frmID = GetQueryString("FK_MapData");
var ens = new Entities("BP.Sys.MapAttrs");
ens.Retrieve("FK_MapData", frmID);
this.listData = ens.GetEns();
},
methods: {
OpenEn: function (myPK, ftype) {
var enName = "";
if (ftype == "1")
enName = "BP.Sys.FrmUI.MapAttrString";
else
enName = "BP.Sys.FrmUI.MapAttrNum";
var url = "../../../Comm/En.htm?EnName=" + enName+"&MyPK=" + myPK;
WinOpen(url);
},
Delete: function (myPK) {
if (window.confirm('您确定要删除吗?') == false)
return;
var en = new Entity("BP.Sys.MapAttr", myPK);
en.Delete();
Reload();
}
}
})
</script>
</body>
</html>