提交 33cf1282 编写于 作者: chengxiang.li's avatar chengxiang.li

update default page and add table no-select tips

上级 ea4221e9
...@@ -18,7 +18,7 @@ export default new Router({ ...@@ -18,7 +18,7 @@ export default new Router({
children: [ children: [
{ {
path: '/', path: '/',
redirect: '/data-in', redirect: '/data-view',
},{ // 数据导入 },{ // 数据导入
path: '/data-in', path: '/data-in',
......
...@@ -143,6 +143,19 @@ ...@@ -143,6 +143,19 @@
</span> </span>
</el-dialog> </el-dialog>
<!-- 没有勾选table的提示 -->
<el-dialog
title="提示"
:visible.sync="noSelectTipsVisible"
width="30%"
center>
<span>请先勾选表格!</span>
<span slot="footer" class="dialog-footer">
<el-button @click="noSelectTipsVisible = false">取 消</el-button>
<el-button type="primary" @click="noSelectTipsVisible = false">确 定</el-button>
</span>
</el-dialog>
<!-- 备注 弹窗 --> <!-- 备注 弹窗 -->
<el-dialog <el-dialog
title="备注" title="备注"
...@@ -181,6 +194,7 @@ export default { ...@@ -181,6 +194,7 @@ export default {
} }
}; };
return { return {
noSelectTipsVisible: false, // 是否显示 没有勾选table的提示
isSearchSend: false, // 是否有效查询过 isSearchSend: false, // 是否有效查询过
showSendBtn: false, // 是否显示 分发按钮 showSendBtn: false, // 是否显示 分发按钮
remarkHistory: [], // 历史备注列表 remarkHistory: [], // 历史备注列表
...@@ -323,7 +337,10 @@ export default { ...@@ -323,7 +337,10 @@ export default {
vm.addConditioDialogVisible = true; vm.addConditioDialogVisible = true;
}, },
handleSend() { handleSend() {
console.log(">>> 分发"); if( vm.multipleSelection && vm.multipleSelection.length == 0 ){
vm.noSelectTipsVisible = true;
return;
}
vm.sendDialogVisible = true; vm.sendDialogVisible = true;
vm.getUserList(); vm.getUserList();
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册