Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit242d095

Browse files
author
spt
committed
vue-typescript-element-ui
1 parent64bd344 commit242d095

File tree

5 files changed

+46
-35
lines changed

5 files changed

+46
-35
lines changed

‎src/components/platform/detail/platform-detail.component.ts‎

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import{Vue,Prop,Component}from'vue-property-decorator'
2+
importaxiosfrom'axios'
3+
24
@Component({
35
name:'platform-detail'
46
})
57
exportdefaultclassPlatformDetailComponentextendsVue{
6-
_detailInfo:any;
7-
@Prop()
8-
setdetailInfo(value:any){
9-
this._detailInfo=value;
10-
this.getDetail();
11-
}
12-
getdetailInfo(){
13-
returnthis._detailInfo;
14-
}
8+
@Prop()
9+
detailInfo:any;
1510
@Prop()
1611
statusProp:any;
1712
companyInfo:any={};
@@ -27,18 +22,22 @@ export default class PlatformDetailComponent extends Vue {
2722
accountDetails:any[]=[];
2823
accountSearch:String="";
2924
multiplFalse:boolean=false;
30-
// 通过对应的集团 or 公司获取公司列表
25+
baseUrl=axios.defaults.baseURL;
26+
headers={'X-Access-Token':axios.defaults.headers.common['X-Access-Token'],
27+
'X-Operation-Token':axios.defaults.headers.common['X-Operation-Token'],};
3128
getDetail(){
3229
}
3330
formatDate(item){
3431
return(item.substr(0,4)+'-'+item.substr(4,2)+'-'+item.substr(6,2));
3532
}
36-
// 复制
3733
copy(){
34+
3835
}
3936
edit(){
37+
4038
}
4139
del(){
40+
4241
}
4342
showAll(index){
4443
this.resSetList[index].hover=true;
@@ -54,7 +53,6 @@ export default class PlatformDetailComponent extends Vue {
5453
addServicePackage(){
5554
this.servicePackageModalShow=true;
5655
}
57-
5856
delTenant(id){
5957

6058
}
@@ -63,6 +61,38 @@ export default class PlatformDetailComponent extends Vue {
6361
}
6462
searchAccount(){
6563

64+
}
65+
uploadSuccess()
66+
{
67+
68+
}
69+
uploadError()
70+
{
71+
72+
}
73+
closeTenantModal()
74+
{
75+
76+
}
77+
querySearchAsync()
78+
{
79+
80+
}
81+
handleSelect()
82+
{
83+
84+
}
85+
closeServicePackageModal()
86+
{
87+
88+
}
89+
querySearchAsync2()
90+
{
91+
92+
}
93+
handleSelect2()
94+
{
95+
6696
}
6797
}
6898

‎src/components/platform/detail/platform-detail.vue‎

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -159,30 +159,10 @@
159159

160160
</el-tabs>
161161
</div>
162-
<!--<div class="main-box company-list">
163-
<div class="main-box-title">
164-
<h3>包含功能集: {{resSetList.length}}个</h3>
165-
</div>
166-
<div class="main-box-content table service-module-list">
167-
<ul class="table-title">
168-
<li>模块</li>
169-
<li>功能集</li>
170-
</ul>
171-
<ul class="table-body" v-for="(item,index) in resSetList">
172-
<li v-text="item.moduleName"></li>
173-
&lt;!&ndash;v-text="item.resourceSetName"&ndash;&gt;
174-
<li class="resourceSetNameBox" @mouseenter="showAll(index)" @mouseout="hideAll(index)">
175-
<div class="content">{{item.resourceSetName}}</div>
176-
<div class="resourceSetName" v-show="item.hover">{{item.resourceSetName}}</div>
177-
</li>
178-
</ul>
179-
<p class="null" v-if="!resSetList.length">暂无数据</p>
180-
</div>
181-
</div>-->
182162
</div>
183163
</transition>
184164
</template>
185-
<script>
165+
<script lang="ts">
186166
importPlatformDetailComponentfrom'@/components/platform/detail/platform-detail.component'
187167
exportdefaultPlatformDetailComponent
188168
</script>

‎src/components/platform/platform.component.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export default class PlatformComponent extends Vue {
117117
}
118118
// 点击左侧
119119
active(item){
120+
console.log(item);
120121
this.activeItem=item;
121122
}
122123
copy(value){

‎src/components/platform/platform.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<li>
3636
<!--<h3 v-text="item.contractName"></h3>-->
3737
<p>
38-
<labelclass="leftLabel"@click="test1">平台名称:</label>
38+
<labelclass="leftLabel" >平台名称:</label>
3939
<span>{{item&&item.platformName}}</span>
4040
</p>
4141
<p>

‎src/router/routers.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
importTodoListfrom'@/components/todo-list/TodoList.vue'
33
importPlatformfrom'@/components/platform/platform.vue'
4-
exportdefault[
54

5+
exportdefault[
66
{
77
path:'/platform',
88
component:Platform,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp