提交 4287bf74 编写于 作者: WodahsOrez's avatar WodahsOrez

临时列表插件

上级 4f3ff430
......@@ -2,15 +2,15 @@
height: 100%;
width: 100%;
.title{
padding: 14px 0 16px;
padding: 0 0 14px;
display: -webkit-box;
display: flex;
height: 52px;
height: 39px;
-webkit-box-align: center;
align-items: center;
width: 100%;
line-height: 22px;
font-size: 16px;
font-size: 18px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
......
......@@ -4,6 +4,7 @@
<el-table border stripe
ref="multipleTable"
:data="items"
style="height:calc(100% - 52px);overflow-y:auto;"
@row-click="rowClick($event)"
@row-dblclick="rowDBLClick($event)"
:show-header="false">
......@@ -84,12 +85,10 @@ export default class AppOrgVocNumList extends Vue {
* @memberof AppOrgVocNumList
*
*/
protected color16(){//十六进制颜色随机
var r = Math.floor(Math.random()*256);
var g = Math.floor(Math.random()*256);
var b = Math.floor(Math.random()*256);
var color = '#'+r.toString(16)+g.toString(16)+b.toString(16);
return color;
protected color16(){
let colorarr=["#a960e3","#6daad5","#56b337","#8662b3","#c51285","#e734ff","#e6d82d","#7e2238","#f97cf4","#dc236e","#5820cc"];
let randomNum = Math.floor(Math.random()*11);
return colorarr[randomNum];
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册