| | |
| | | <div class="work-place-container"> |
| | | <div class="work-place"> |
| | | <a-row :gutter="18" class="work-place-top"> |
| | | <a-col :span="item.span" v-for="(item, key) in totals" :key="'key' + key"> |
| | | <a-col |
| | | :span="item.span" |
| | | v-for="(item, key) in totals" |
| | | :key="'key' + key" |
| | | > |
| | | <total-card |
| | | :info="item" |
| | | :type="item.type" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <div style="margin-top: 8px"> |
| | | <my-draw :is-show="'my' == cardName" :y="y" @resize="resize"></my-draw> |
| | | <my-draw |
| | | :is-show="'my' == cardName" |
| | | :y="y" |
| | | @resize="resize" |
| | | ></my-draw> |
| | | <not-approved |
| | | :is-show="'approving' == cardName" |
| | | :y="y" |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="log-wrapper"> |
| | | <div class="log-contain" :style="logStyle"> |
| | | <div :class="['log-btn', {active: logVisible}]" @click="toggleLog"> |
| | | {{ logVisible ? "折叠动态" : "展开动态" }} |
| | | </div> |
| | | <div class="log-wrapper" v-show="logVisible"> |
| | | <today-log></today-log> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | mixins: [WSMixin], |
| | | data() { |
| | | return { |
| | | logVisible: false, |
| | | loading: false, |
| | | update: -1, |
| | | y: 400, |
| | |
| | | update(n) { |
| | | if (-1 != n && !this._inactive) { |
| | | const bar = document.querySelectorAll(".header-bar")[0].clientHeight; |
| | | const workPlaceTop = |
| | | document.querySelectorAll(".work-place-top")[0].clientHeight; |
| | | const workPlaceTop = document.querySelectorAll(".work-place-top")[0] |
| | | .clientHeight; |
| | | this.y = this.minHeight - bar - workPlaceTop - 56; |
| | | } |
| | | }, |
| | |
| | | activeFN() { |
| | | this.resize(); |
| | | }, |
| | | toggleLog() { |
| | | console.log(1122); |
| | | this.logVisible = !this.logVisible; |
| | | let cardName = this.cardName; |
| | | this.cardName = ""; |
| | | this.$nextTick(() => { |
| | | this.cardName = cardName; |
| | | }); |
| | | }, |
| | | }, |
| | | computed: { |
| | | ...mapGetters("account", ["roles", "roleList", "departmentList"]), |
| | | ...mapGetters("setting", ["affixed", "minHeight"]), |
| | | logStyle() { |
| | | return { |
| | | width: this.logVisible ? "450px" : 0, |
| | | }; |
| | | }, |
| | | }, |
| | | mounted() { |
| | | let role = getItemByKey(this.roles[0].id, this.roleList); |
| | |
| | | right: 0; |
| | | bottom: 0; |
| | | } |
| | | .log-contain { |
| | | /* width: 450px; */ |
| | | position: relative; |
| | | transition: all 0.3s; |
| | | } |
| | | .log-btn { |
| | | /* z-index: 1; */ |
| | | position: absolute; |
| | | top: 0; |
| | | left: 24px; |
| | | width: 100px; |
| | | height: 40px; |
| | | line-height: 40px; |
| | | color: #ffffff; |
| | | padding-left: 20px; |
| | | border-radius: 20px 0 0 20px; |
| | | cursor: pointer; |
| | | background: #090; |
| | | transition: all 0.3s; |
| | | transform: translate(-20px, 0); |
| | | } |
| | | .log-btn.active { |
| | | transform: translate(-40px, 0); |
| | | } |
| | | .log-btn:hover { |
| | | transform: translate(-100%, 0); |
| | | } |
| | | .log-wrapper { |
| | | width: 450px; |
| | | height: 100%; |