Skip to content

Commit a7fb200

Browse files
committed
添加table背景颜色文档
1 parent 9d01de1 commit a7fb200

File tree

6 files changed

+818
-725
lines changed

6 files changed

+818
-725
lines changed

Vol.Vue/src/extension/order/App_Appointment.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,24 @@ let extension = {
2121
text: "可在代码生成器中设置[是否只读]或如果没有编辑或新建权限,弹出框都是只读的",
2222
methods: {//事件扩展
2323
onInit () {
24-
this.single = true;//设置只能单选
2524
//设置表的最大高度
2625
this.tableMaxHeight = 300;
26+
this.columns.forEach(x => {
27+
if (x.field == "PhoneNo") {
28+
x.cellStyle = (row, rowIndex, columnIndex) => {
29+
if (row.PhoneNo == "138888887698") {
30+
return { background: "#2196F3", color: "#ffff" }
31+
}
32+
}
33+
}
34+
if (x.field == "Creator") {
35+
x.cellStyle = (row, rowIndex, columnIndex) => {
36+
if (row.Creator == "超级管理员") {
37+
return { background: "#f3f3f3" }
38+
}
39+
}
40+
}
41+
})
2742
},
2843
// rowChange(row) {//选中行事件
2944
// console.log('选中行:' + JSON.stringify(row));

0 commit comments

Comments
 (0)