mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 08:37:28 +08:00
表单设计界面去掉vue
This commit is contained in:
parent
99574e1e91
commit
e46d162ead
@ -11,8 +11,8 @@
|
||||
}
|
||||
|
||||
|
||||
<form class="layui-form layui-form-pane" action="" id="formEdit">
|
||||
<input type="hidden" name="Id" v-model="tmp.Id" />
|
||||
<form class="layui-form layui-form-pane" action="" id="formEdit" lay-filter="formEdit">
|
||||
<input type="hidden" name="Id" />
|
||||
<input type="hidden" name="Fields" id="Fields" value="0">
|
||||
|
||||
<div class="layui-row">
|
||||
@ -26,7 +26,7 @@
|
||||
<div class="layui-form-item" pane>
|
||||
<label class="layui-form-label">表单名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="Name" v-model="tmp.Name" required lay-verify="required"
|
||||
<input type="text" name="Name" required lay-verify="required"
|
||||
placeholder="表单名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
@ -34,7 +34,7 @@
|
||||
<div class="layui-form-item" pane>
|
||||
<label class="layui-form-label">关联数据表名</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="DbName" v-model="tmp.DbName" required
|
||||
<input type="text" name="DbName" required
|
||||
placeholder="关联数据表名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
@ -42,14 +42,14 @@
|
||||
<div class="layui-form-item" pane>
|
||||
<label class="layui-form-label">排序码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="SortCode" v-model="tmp.SortCode" class="layui-input">
|
||||
<input type="text" name="SortCode" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item" pane>
|
||||
<label class="layui-form-label">备注</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="Description" v-model="tmp.Description"
|
||||
<textarea name="Description"
|
||||
placeholder="备注" class="layui-textarea"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@ -92,6 +92,6 @@
|
||||
<script type="text/javascript" charset="utf-8" src="/js/ueditor/formdesign/leipi.formdesign.v4.js?2023"></script>
|
||||
|
||||
<script type="text/javascript" src="/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="/userJs/formEdit.js?v2.0.0"></script>
|
||||
<script type="text/javascript" src="/userJs/formEdit.js?v3"></script>
|
||||
|
||||
|
||||
|
@ -20,6 +20,15 @@
|
||||
tips: 1 //1 上方 3下方
|
||||
});
|
||||
});
|
||||
|
||||
var initVal ={
|
||||
Id: '',
|
||||
Name: '',
|
||||
DbName: '',
|
||||
SortCode: '',
|
||||
Description: ''
|
||||
}
|
||||
|
||||
|
||||
//表单设计器
|
||||
var ue = UE.getEditor('myFormDesign', {
|
||||
@ -264,15 +273,8 @@
|
||||
function (data) {
|
||||
var obj = data.Result;
|
||||
url = "/Forms/Update";
|
||||
new Vue({
|
||||
el: "#formEdit",
|
||||
data(){
|
||||
return{
|
||||
tmp:data.Result
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
form.val("formEdit", data.Result);
|
||||
|
||||
//玄学:加个延迟ueditor才能正常
|
||||
setTimeout(function () {
|
||||
if (obj.FrmType === 0) {
|
||||
@ -283,17 +285,7 @@
|
||||
}, 500);
|
||||
});
|
||||
} else {
|
||||
new Vue({
|
||||
el: "#formEdit",
|
||||
data(){
|
||||
return{
|
||||
tmp:{
|
||||
Id: '',
|
||||
SortCode:1
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
form.val("formEdit", initVal);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user