提交 8332f750 编写于 作者: chengxiang.li's avatar chengxiang.li

data-view page add tip toast

上级 93e57737
...@@ -143,19 +143,6 @@ ...@@ -143,19 +143,6 @@
</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="备注"
...@@ -194,7 +181,6 @@ export default { ...@@ -194,7 +181,6 @@ export default {
} }
}; };
return { return {
noSelectTipsVisible: false, // 是否显示 没有勾选table的提示
isSearchSend: false, // 是否有效查询过 isSearchSend: false, // 是否有效查询过
showSendBtn: false, // 是否显示 分发按钮 showSendBtn: false, // 是否显示 分发按钮
remarkHistory: [], // 历史备注列表 remarkHistory: [], // 历史备注列表
...@@ -342,9 +328,10 @@ export default { ...@@ -342,9 +328,10 @@ export default {
}, },
handleSend() { handleSend() {
if( vm.multipleSelection && vm.multipleSelection.length == 0 ){ if( vm.multipleSelection && vm.multipleSelection.length == 0 ){
vm.noSelectTipsVisible = true; vm.$message.error('请先勾选表格!');
return; return;
} }
vm.dataUserDiss = [];
vm.sendDialogVisible = true; vm.sendDialogVisible = true;
vm.getUserList(); vm.getUserList();
}, },
...@@ -456,6 +443,11 @@ export default { ...@@ -456,6 +443,11 @@ export default {
}, },
handleConfirmSend() { handleConfirmSend() {
console.log("确定分发>>>>"); console.log("确定分发>>>>");
if( vm.dataUserDiss && vm.dataUserDiss.length == 0 ){
vm.$message.error('请先勾选人员!');
return;
}
let selectListIds = []; let selectListIds = [];
vm.multipleSelection.map(function(value, index, arr){ vm.multipleSelection.map(function(value, index, arr){
selectListIds.push(value.contentId) selectListIds.push(value.contentId)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册