|
@@ -8,7 +8,7 @@
|
|
|
</div>
|
|
|
<div class="OutSide_center">
|
|
|
<div class="block">
|
|
|
- <span class="demonstration">查询以往{{ titleText }}</span>
|
|
|
+ <span class="demonstration">查询{{ titleLeftText }}{{ titleText }}</span>
|
|
|
<el-date-picker v-model="planDate" type="date" value-format="yyyy-MM-dd" :clearable="false" @change="getTableData(hasChooseDept)"
|
|
|
placeholder="选择日期" size="small" :picker-options="planType == 1 ? toMPickerOptions : todayPickerOptions">
|
|
|
</el-date-picker>
|
|
@@ -19,8 +19,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="OutSide_right">
|
|
|
- <el-link type="primary" :underline="false" @click="(deptSetDialog = true), getPlanDeptSet()">{{ "部门设置"
|
|
|
- }}</el-link>
|
|
|
+ <!-- <el-link type="primary" :underline="false" @click="(deptSetDialog = true), getPlanDeptSet()">{{ "部门设置"
|
|
|
+ }}</el-link> -->
|
|
|
<el-link type="primary" :underline="false" @click="addPlan()">{{
|
|
|
`新增${titleText}`
|
|
|
}}</el-link>
|
|
@@ -34,12 +34,18 @@
|
|
|
</div>
|
|
|
<div class="layout-container-center">
|
|
|
<!-- tab 切换 -->
|
|
|
- <div class="today-tab">
|
|
|
- <div v-for="(item, index) in hasSetDeptList" :key="index" :class="`${todayTabIndex === index ? 'on' : ''}`"
|
|
|
- @click="tabChange(item, index)">
|
|
|
- {{ item.departmentName }}
|
|
|
+ <div class="today-tab-btn">
|
|
|
+ <div class="today-tab">
|
|
|
+ <div v-for="(item, index) in hasSetDeptList" :key="index" :class="`${todayTabIndex === index ? 'on' : ''}`"
|
|
|
+ @click="tabChange(item, index)">
|
|
|
+ {{ item.departmentName }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 15px;" v-if="planType == 0">
|
|
|
+ <el-button type="primary" size="mini" @click="(deptSetDialog = true), getPlanDeptSet()">部门设置</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
|
|
|
<!-- 各部分数据列表 -->
|
|
|
<el-table :data="tableData" style="width: 100%;" height="0" v-loading="tableDataLoading"
|
|
@@ -72,7 +78,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="endDate" label="完工时间" width="180">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="编辑">
|
|
|
+ <el-table-column label="操作" :fixed="'right'">
|
|
|
<template slot-scope="scope">
|
|
|
<div @click="editPlan(scope.row)" class="colorText">编辑</div>
|
|
|
</template>
|
|
@@ -227,6 +233,9 @@ export default {
|
|
|
todayDate: {
|
|
|
type: String,
|
|
|
},
|
|
|
+ titleLeftText: {
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -853,6 +862,12 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style scoped lang='scss'>
|
|
|
+.today-tab-btn {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 10px;
|
|
|
+}
|
|
|
.colorText {
|
|
|
color: #02a7f0;
|
|
|
cursor: pointer;
|
|
@@ -946,11 +961,14 @@ export default {
|
|
|
.today-tab {
|
|
|
display: flex;
|
|
|
overflow-x: auto;
|
|
|
- margin-bottom: 10px;
|
|
|
+ align-items: center;
|
|
|
+ max-width: 90%;
|
|
|
+ overflow-x: auto;
|
|
|
|
|
|
div {
|
|
|
font-size: 16px;
|
|
|
margin-left: 15px;
|
|
|
+ min-width: fit-content;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|