提交 fdd99e19 authored 作者: 陆's avatar

随机马甲号

上级 bebcc5b6
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<i-button type="primary" @click="modal = true"><i class="fa fa-chevron-up"></i>导入 <i-button type="primary" @click="modal = true"><i class="fa fa-chevron-up"></i>导入
<Modal <Modal
v-model="modal" v-model="modal"
title="商品导入" title="导入马甲号"
@on-ok="ok" @on-ok="ok"
@on-cancel="cancel"> @on-cancel="cancel">
<template> <template>
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
</template> </template>
</Modal> </Modal>
</i-button> </i-button>
<i-button type="info" @click="exportExcel"><i class="fa fa-chevron-down"></i>&nbsp;导出 <i-button type="info" @click="exportExcel"><i class="fa fa-chevron-down"></i>&nbsp;导出
</i-button> </i-button>
</div> </div>
......
...@@ -203,6 +203,8 @@ let vm = new Vue({ ...@@ -203,6 +203,8 @@ let vm = new Vue({
vm.showList = false; vm.showList = false;
vm.title = "新增"; vm.title = "新增";
vm.tbCfItemComment = {}; vm.tbCfItemComment = {};
vm.getfaker();
}, },
update: function (event) { update: function (event) {
vm.uploadList = []; vm.uploadList = [];
...@@ -283,6 +285,18 @@ let vm = new Vue({ ...@@ -283,6 +285,18 @@ let vm = new Vue({
} }
}); });
}, },
getfaker:function (){
Ajax.request({
url: "../tbcfitemcomment/selectRandomUser/",
type: "get",
successCallback: function (r) {
if (r.code == 0){
vm.tbCfItemComment.userId = r.userId
}
}
});
},
reload: function (event) { reload: function (event) {
vm.showList = true; vm.showList = true;
let page = $("#jqGrid").jqGrid('getGridParam', 'page'); let page = $("#jqGrid").jqGrid('getGridParam', 'page');
......
...@@ -148,6 +148,21 @@ let vm = new Vue({ ...@@ -148,6 +148,21 @@ let vm = new Vue({
vm.reload(); vm.reload();
}, },
cancel() { cancel() {
},
// 导出马甲号表格
exportExcel: function () {
Ajax.request({
url: "../tbcfuserinfo/exportData/",
async: false,
type: "POST",
contentType: "application/json",
successCallback: function (resultData) {
alert('操作成功!导出位置:D:\\Afrishop', function (index) {
vm.reload();
});
}
});
}, },
// 限制上传图片的宽高 // 限制上传图片的宽高
checkImageWH: function (file, width, height) { checkImageWH: function (file, width, height) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论