Commit 32dd7a90 authored by Z's avatar Z

💄 Z: Style: table style in element is change.

parent 969e05e4
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- </el-col> --> <!-- </el-col> -->
<!-- 关键字 --> <!-- 关键字 -->
...@@ -73,8 +74,8 @@ ...@@ -73,8 +74,8 @@
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
@selection-change="listPick" @selection-change="listPick"
:header-cell-style="setListsHeadStyle"
> >
<!-- :header-cell-style="setListsHeadStyle"-->
<el-table-column type="selection" width="60"></el-table-column> <el-table-column type="selection" width="60"></el-table-column>
<el-table-column prop="taskName" label="任务名" align="center" width="200"></el-table-column> <el-table-column prop="taskName" label="任务名" align="center" width="200"></el-table-column>
<el-table-column prop="taskType" label="任务类型" align="center" width="120"></el-table-column> <el-table-column prop="taskType" label="任务类型" align="center" width="120"></el-table-column>
...@@ -105,17 +106,39 @@ ...@@ -105,17 +106,39 @@
:total="400" :total="400"
></el-pagination> ></el-pagination>
</div> </div>
<div class="dialogs">
<el-dialog
title="创建任务"
:visible.sync="cache.status.createDialog"
width="60%"
:before-close="dialogCreateBeforeClose">
<div class="dialogMain">
<span>会当凌绝顶,一览众山小。</span>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogCreateCancel">取 消</el-button>
<el-button size="small" type="primary" @click="dialogCreateSubmit">保 存</el-button>
<el-button size="small" type="primary" @click="dialogCreateSubmitSend">保存并发布</el-button>
</span>
</el-dialog>
</div>
</div> </div>
</template> </template>
<script> <script>
import TaskBar from "../bar/index"; import TaskBar from "../bar/index";
import TaskCom from "../com/index"; import TaskCom from "../com/index";
import TaskCount from "../count/index"; import TaskCount from "../count/index";
export default { export default {
components: {}, components: {},
data() { data() {
return { return {
cache: {
status: {
createDialog: false
}
},
list: { list: {
main: [ main: [
{ {
...@@ -179,32 +202,46 @@ export default { ...@@ -179,32 +202,46 @@ export default {
} }
}; };
}, },
created() {}, created() {
},
methods: { methods: {
listPick() {}, listPick() {
testButtonClick() {}, },
pagesSizeChange() {}, testButtonClick() {
pagesNowPageChange() {}, },
setListsHeadStyle({ row, column, rowIndex, columnIndex }) { pagesSizeChange() {
},
pagesNowPageChange() {
},
setListsHeadStyle({row, column, rowIndex, columnIndex}) {
if (rowIndex === 0) { if (rowIndex === 0) {
return "background-color: #0B0F32; border-right: 1px solid white;color: white;"; return "background-color: #0B0F32; border-right: 1px solid white;color: white;";
} else { } else {
return ""; return "";
} }
},
dialogCreateBeforeClose() {
},
dialogCreateCancel() {
},
dialogCreateSubmit() {
},
dialogCreateSubmitSend() {
},
} }
} };
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.main { .main {
// border: 2px solid orange; // border: 2px solid orange;
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
} }
.searchs {
.searchs {
// border: 2px solid red; // border: 2px solid red;
height: 40px; height: 40px;
width: 100%; width: 100%;
...@@ -213,8 +250,9 @@ export default { ...@@ -213,8 +250,9 @@ export default {
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.buttons {
.buttons {
// border: 2px solid darkcyan; // border: 2px solid darkcyan;
// width: 30%; // width: 30%;
// min-width: 266px; // min-width: 266px;
...@@ -222,24 +260,29 @@ export default { ...@@ -222,24 +260,29 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
} }
.buttonlight {
.buttonlight {
background-color: #e8e9fe; background-color: #e8e9fe;
color: #4e59c7; color: #4e59c7;
border: 1px solid #4e59c7; border: 1px solid #4e59c7;
box-sizing: border-box; box-sizing: border-box;
} }
.buttonlight:hover {
} .buttonlight:hover {
.buttondark { }
.buttondark {
background-color: #4e59c7; background-color: #4e59c7;
color: #ffffff; color: #ffffff;
border: 1px solid #4e59c7; border: 1px solid #4e59c7;
box-sizing: border-box; box-sizing: border-box;
} }
.buttondark:hover {
} .buttondark:hover {
.searchzone { }
.searchzone {
// border: 2px solid orange; // border: 2px solid orange;
height: 40px; height: 40px;
width: auto; width: auto;
...@@ -249,23 +292,27 @@ export default { ...@@ -249,23 +292,27 @@ export default {
// flex-direction: row; // flex-direction: row;
// justify-content: space-between; // justify-content: space-between;
// align-items: center; // align-items: center;
} }
.lists {
// border: 2px solid greenyellow; .lists {
/*border: 2px solid greenyellow;*/
height: auto; height: auto;
// min-height: 400px; // min-height: 400px;
min-height: 70%; min-height: 70%;
width: 100%; width: 100%;
margin-top: 20px; margin-top: 20px;
} }
.list {
.list {
// border: 1px solid red; // border: 1px solid red;
} }
.listButtonRed {
.listButtonRed {
// border: 2px solid green; // border: 2px solid green;
color: red; color: red;
} }
.pages {
.pages {
// border: 2px solid steelblue; // border: 2px solid steelblue;
height: 40px; height: 40px;
width: 100%; width: 100%;
...@@ -273,5 +320,11 @@ export default { ...@@ -273,5 +320,11 @@ export default {
flex-direction: row; flex-direction: row;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
} }
</style>
<style lang="scss" scoped>
.dialogMain {
border: 2px solid red;
height: 100%;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment