mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update image.html
This commit is contained in:
parent
87cc8d7117
commit
7390dbb149
@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="image-dialog-body">
|
<div class="image-dialog-body">
|
||||||
<div class="image-dialog-item" v-for="x in items">
|
<div class="image-dialog-item" v-for="x in items" v-if="show">
|
||||||
<div class="uploadimage" :style="x.style" @click="setValue(x.xurl)"></div>
|
<div class="uploadimage" :style="x.style" @click="setValue(x.xurl)"></div>
|
||||||
<p class="image-dialog-item-name layui-elip" v-text="x.name"></p>
|
<p class="image-dialog-item-name layui-elip" v-text="x.name"></p>
|
||||||
</div>
|
</div>
|
||||||
@ -82,19 +82,21 @@
|
|||||||
el: '#ImageDialog',
|
el: '#ImageDialog',
|
||||||
data: {
|
data: {
|
||||||
page: 1,
|
page: 1,
|
||||||
keys: '',
|
|
||||||
limit: 15,
|
limit: 15,
|
||||||
items: [],
|
show: false,
|
||||||
$btn: null,
|
$btn: null,
|
||||||
|
keys: '',
|
||||||
|
items: [],
|
||||||
},
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
this.$btn = $('#{$get.id}');
|
this.$btn = $('#{$get.id|default=""}');
|
||||||
this.loadPage();
|
this.loadPage();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 创建分页工具条
|
// 创建分页工具条
|
||||||
addPage: function (count) {
|
addPage: function (count) {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
this.show = true;
|
||||||
layui.laypage.render({
|
layui.laypage.render({
|
||||||
curr: this.page, count: count, limit: that.limit,
|
curr: this.page, count: count, limit: that.limit,
|
||||||
layout: ['count', 'prev', 'page', 'next', 'refresh'],
|
layout: ['count', 'prev', 'page', 'next', 'refresh'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user