element-ui - $prompt非空验证

//点击删除按钮

delStoreFun(data) {

let than = this;

this.$prompt('删除门店请填写备注', '提示', {

confirmButtonText: '确定',

cancelButtonText: '取消',

inputValidator: (value) => { //非空验证

if (!value) {

return '输入不能为空'

}

},

}).then(({ value }) => {

delShop({ id: data.systemStore.id,reason:value}).then((res) => {

than.$message({

message: "操作成功",

type: 'success'

});

than.list();

})

})

},

相关推荐
sysu_lluozh6 小时前
【驱动AI提示词】提示词设计模式
ai·prompt
xiucai_cs10 小时前
AI Prompt
后端·prompt
桃子叔叔17 小时前
论文翻译:CONSISTENCY-GUIDED PROMPT LEARNING FOR VISION-LANGUAGE MODELS
机器学习·语言模型·prompt
桃子叔叔18 小时前
论文解析:CONSISTENCY-GUIDED PROMPT LEARNING FOR VISION-LANGUAGE MODELS
人工智能·语言模型·prompt
黄埔数据分析18 小时前
chatgpt prompt for fpga
fpga开发·prompt
黄埔数据分析18 小时前
不同prompt 对比 async fifo
fpga开发·prompt
万里鹏程转瞬至1 天前
wan2.1-2.2 官方提示词改写(prompt extend)模块
prompt·aigc·视频生成
不叫猫先生1 天前
AI Prompt 直达生产级爬虫,Bright Data AI Scraper Studio 让数据抓取更高效
人工智能·爬虫·prompt
pengzhuofan2 天前
Java开发中的AI Prompt管理指南
java·开发语言·prompt
兜兜转转了多少年2 天前
《Prompt Engineering白皮书》笔记04 System / Context / Role 三种提示工程
人工智能·笔记·prompt