标签:无数据 style where 高度 javascrip 调用 value drop 样式
import { PageVue, UI, Dict, DropDict } from "sj.sys.ui";
components: {
‘drop-dict‘: DropDict
},
<drop-dict
:options="dictOptions"
style="width:150px;"
@select="OnSelect"
></drop-dict>
get dictOptions(): any {
return {
id: "A10058", //字典ID,必传,下面参数都为不必传
name: "在院病人字典", //字典名字(不传弹出字典标题上显示‘系统字典‘)
label: "住院号", //输入框左边的label
// defaultFirst: true, //默认选中第一个(默认false)
height: 200, //下拉框高度,默认200
textField: ‘VisitId‘, //选中后设置到输入框上的字段(如果不传就是字典配置里的spec_mark=2的那个字段
returnField: [‘VisitId‘, ‘Name‘, ‘EnterTime‘, ‘WardName‘, ‘WardId‘, ‘CurrentDept‘, ‘CurrentDeptName‘, ‘AccountType‘, ‘BedText‘], //选中后设返回调用地方的字段(如果不传就是字典配置里的spec_mark=1的那个字段
placeHolder: "", //占位符
where: "", //where条件,这里带上where条件,所有的字典数据都会被这个where条件过滤
notNull: true, //不允许为空(默认false)
popDict: true, //启用弹出字典(默认启用)
valueType: "0", //0按人员记忆弹出字典方式,1按工作站(默认0)
separator: "", //需要可以选多个值的时候用,每个值用什么符号隔开
noDataTemplate: "", //无数据时的模板
customExpression: "",//自定义表达式,例子在下方
customStyle: "", //满足自定义表达式的数据应用的样式,例子在下方
// customExpression: ‘data.UserName == "张磊"‘, //满足这个customExpression的数据将应用下面 customStyle的样式
// customStyle: ‘background-color:rgb(255,0,0);‘,//背景置为红色
}
}
标签:无数据 style where 高度 javascrip 调用 value drop 样式
原文地址:https://www.cnblogs.com/LFxanla/p/11640863.html