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
52
53
54
55
56
57
58
| <template>
| <div v-loading="loading">
| <el-tabs size="small" v-model="activeName" type="card" @tab-click="handleClick">
| <el-tab-pane label="设置" name="settlement"></el-tab-pane>
| </el-tabs>
|
| <!--结算-->
| <Settlement v-if="activeName == 'settlement'" :settingData="settingData"></Settlement>
|
| </div>
| </template>
| <script>
| import PlusApi from '@/api/plus/release.js';
| import Settlement from './part/Settlement';
| export default {
| components: {
| /*编辑组件*/
| Settlement,
| },
| data() {
| return {
| /*是否正在加载*/
| loading:true,
| /*当前选中*/
| activeName: '',
| /*数据对象*/
| settingData:{}
| };
| },
| created() {
|
| if (this.$route.query.type != null) {
| this.activeName = this.$route.query.type;
| }
|
| this.getData();
|
| },
| methods: {
|
| /*获取数据*/
| getData() {
| let self = this;
| PlusApi.releaseSet({}, true)
| .then(res => {
| self.settingData = res.data;
| self.loading=false;
| self.activeName='settlement';
| })
| .catch(error => {});
| },
|
| handleClick(e) {
| this.activeName = e.name;
| }
| }
| };
| </script>
|
|