footer.vue
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
<footer class="footer">
Copyright © {{year}}-{{year+1}}
<!-- <a href="http://www.miitbeian.gov.cn" target="_blank" style="color:#373737;">京ICP备2024044205号-1</a> {{company}} -->
<a href="http://www.miitbeian.gov.cn" target="_blank" style="color:#373737;">{{ recordNumber }}</a> {{company}}
</footer>
</template>
<script>
var store = require('../../vuex/store');
var MT = require('../../vuex/mutation-types');
module.exports = {
computed: {
recordNumber: function() {
return this.$store.state.recordNumber;
},
company: function() {
return this.$store.state.company;
}
},
methods: {
getData: function() {
var self=this;
Ajax.post('/hospitalTrmedplan/getStaffManagerCateCodes')
.then((response) => {
var data = response.data.data;
data.forEach((ele ,i)=> {
data[i].value=ele.catenumber;
data[i].label=ele.catename;
})
self.$store.dispatch(MT.BILL_TYPE, data);
}).catch(() => {
console.log('请求错误')
});
}
},
data: function() {
return {
year: new Date().getFullYear()
};
},
route:{
activate:function(){
this.getData();
}
},
ready: function() {
this.getData();
}
};
</script>