将数据操作全部改为迁移脚本

This commit is contained in:
zhengxinonly
2021-06-14 02:10:29 +08:00
parent 9e8a5357be
commit d7c7237cd4
37 changed files with 452 additions and 536 deletions
+3 -3
View File
@@ -105,7 +105,7 @@
dtree.renderSelect({
elem: '#selectParent',
url: '/admin/power/selectParent',
url: '{{ url_for('rights.select_parent')}}',
method: 'get',
selectInputName: { nodeId: 'parentId', context: 'powerName' },
skin: 'layui',
@@ -138,7 +138,7 @@
form.on('submit(power-save)', function (data) {
data.field.icon = 'layui-icon ' + data.field.icon
$.ajax({
url: '/admin/power/update',
url: '{{ url_for('rights.update') }}',
data: JSON.stringify(data.field),
dataType: 'json',
contentType: 'application/json',
@@ -191,7 +191,7 @@
}
}
window.init("{{ power.type}}")
window.init("{{ power.type }}")
})
</script>
<script>