You can not 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
1.3 KiB
77 lines
1.3 KiB
11 months ago
|
<!DOCTYPE html>
|
||
|
|
||
|
<!--suppress JSAnnotator -->
|
||
|
<html lang="zh-CN">
|
||
|
|
||
|
<head>
|
||
|
|
||
|
{include file="public/head"}
|
||
|
|
||
|
<title>{$title}</title>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<div id="form-add" class="mp-form" v-cloak>
|
||
|
|
||
|
|
||
|
|
||
|
<form-builder></form-builder>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<style>
|
||
|
#eb-field-icon input{width: 80%}
|
||
|
</style>
|
||
|
<script>
|
||
|
|
||
|
var _vm ;
|
||
|
var rules = {$rules};
|
||
|
function openicon() {
|
||
|
layer.open({
|
||
|
type: 2,
|
||
|
content: '/admin/system.system_menus/icon.html',
|
||
|
area: ['600px', '600px'],
|
||
|
maxmin: true
|
||
|
});
|
||
|
// $eb.createModalFrame(this.innerText,"/admin/system.system_menus/icon.html");
|
||
|
}
|
||
|
_mpApi = parent._mpApi;
|
||
|
|
||
|
|
||
|
|
||
|
mpFrame.start(function(Vue){
|
||
|
|
||
|
require(['axios','system/util/mpFormBuilder'],function(axios,mpFormBuilder){
|
||
|
|
||
|
Vue.use(mpFormBuilder,_mpApi,rules,{
|
||
|
|
||
|
action:'{$save}'
|
||
|
|
||
|
});
|
||
|
|
||
|
new Vue({
|
||
|
|
||
|
el:"#form-add",
|
||
|
|
||
|
mounted:function(){
|
||
|
window._$setIcon = (icon)=>{
|
||
|
this.$formBuilder.set('icon',icon);
|
||
|
};
|
||
|
$('#eb-field-icon').find('input').after('<button type="button" class="ivu-btn" onclick="openicon()")>选择图标</button>');
|
||
|
|
||
|
}
|
||
|
|
||
|
})
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
|