Files

51 lines
1.6 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{include file="../application/tpl/admin/head.html" /}
<el-breadcrumb separator="/">
<el-breadcrumb-item><i class="el-icon-s-home"></i><a href="/okadmin">系统首页</a></el-breadcrumb-item>
<el-breadcrumb-item>{$pagemodel}</el-breadcrumb-item>
</el-breadcrumb>
<div class="clearfix pdtb10">
<div class="fl">
<el-button type="success" icon="el-icon-plus" size="mini" @click="edit(-1)">添加顶级地区</el-button>
</div>
<div class="fr">
<el-button type="warning" plain size="mini" @click="getlist" icon="el-icon-search">刷新</el-button>
</div>
</div>
<table>
<thead>
<tr><th width="180">顶级地区</th><th>二级地区</th></tr>
</thead>
<tbody>
<tr v-for="(items,index) in lists">
<td>{{items.initials}} {{items.title}}</td>
<td></td>
</tr>
</tbody>
</table>
<div class="listtip" style="display:none;" v-show="isloading || lists.length<1">{{datatxt}}</div>
<el-dialog
:title="edittitle"
:visible.sync="iseditshow"
width="400px"
:show-close="false"
:close-on-press-escape="false"
:close-on-click-modal="false"
>
<div>
<el-form ref="one" :model="one" :rules="oneRulue" label-width="80px">
<el-form-item label="地区名称" prop="title">
<el-input v-model.trim="one.title" placeholder="地区名称"></el-input>
</el-form-item>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="iseditshow = false" size="small">取 消</el-button>
<el-button type="primary" @click="editSub('one')" size="small">确 定</el-button>
</span>
</el-dialog>
{include file="../application/tpl/admin/foot.html" /}
<script src="/model/admin/regions.js"></script>
</body>
</html>