|
@@ -3,7 +3,7 @@
|
|
|
<el-card style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 35vw; height: 50vh">
|
|
|
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%)">
|
|
|
<el-tabs v-model="activeName">
|
|
|
- <el-tab-pane label="重置时间" name="first">
|
|
|
+ <el-tab-pane label="重置时间" name="first" v-if="!userInfo.subsidiaryId">
|
|
|
<div style="font-size: 24px; font-weight: 700; color: #e51717; text-align: center">最后一次同步时间: {{ synchroTime }}</div>
|
|
|
<br />
|
|
|
<el-form ref="ruleForm" :model="form" :rules="formRules" label-width="100px">
|
|
@@ -66,6 +66,7 @@
|
|
|
<script>
|
|
|
import * as API from '@/api/shengde/group/synchronization/order'
|
|
|
import moment from 'moment'
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
|
|
|
export default {
|
|
|
name: 'orderSynchronization',
|
|
@@ -95,15 +96,21 @@ export default {
|
|
|
return time.getTime() < Date.now() - 8.64e7 - 8.64e7 - 8.64e7
|
|
|
},
|
|
|
},
|
|
|
- activeName: 'first',
|
|
|
+ activeName: '',
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.time = moment().format('HH:mm:ss')
|
|
|
},
|
|
|
mounted() {
|
|
|
+ if (this.userInfo.subsidiaryId) {
|
|
|
+ this.activeName = 'second'
|
|
|
+ } else {
|
|
|
+ this.activeName = 'first'
|
|
|
+ }
|
|
|
this.getTime()
|
|
|
},
|
|
|
+ computed: mapGetters(['userInfo']),
|
|
|
methods: {
|
|
|
getTime() {
|
|
|
API.synchroTimeDetails().then((res) => {
|