|
@@ -16,51 +16,51 @@ import { styles } from '../CSS/global.js'
|
16
|
16
|
export class ObjectManager extends Component {
|
17
|
17
|
render() {
|
18
|
18
|
return(
|
19
|
|
- <View style={styles.item}>
|
20
|
|
- <Text style={styles.description}>管理文件</Text>
|
21
|
|
- <View style={styles.detailitem}>
|
22
|
|
- <View style={styles.button}>
|
23
|
|
- <Button style={styles.button}
|
24
|
|
- onPress={this.clickHandle.bind(this,"asyncHeadObject")}
|
25
|
|
- title="asyncHeadObject"
|
26
|
|
- color="#841584"
|
27
|
|
- />
|
28
|
|
- </View>
|
|
19
|
+ <View style={styles.item}>
|
|
20
|
+ <Text style={styles.description}>管理文件</Text>
|
|
21
|
+ <View style={styles.detailitem}>
|
|
22
|
+ <View style={styles.button}>
|
|
23
|
+ <Button style={styles.button}
|
|
24
|
+ onPress={this.clickHandle.bind(this,"asyncHeadObject")}
|
|
25
|
+ title="asyncHeadObject"
|
|
26
|
+ color="#841584"
|
|
27
|
+ />
|
|
28
|
+ </View>
|
29
|
29
|
|
30
|
|
- <View style={styles.button}>
|
31
|
|
- <Button style={styles.button}
|
32
|
|
- onPress={this.clickHandle.bind(this,"asyncListObjects")}
|
33
|
|
- title="asyncListObjects"
|
34
|
|
- color="#841584"
|
35
|
|
- />
|
36
|
|
- </View>
|
|
30
|
+ <View style={styles.button}>
|
|
31
|
+ <Button style={styles.button}
|
|
32
|
+ onPress={this.clickHandle.bind(this,"asyncListObjects")}
|
|
33
|
+ title="asyncListObjects"
|
|
34
|
+ color="#841584"
|
|
35
|
+ />
|
|
36
|
+ </View>
|
37
|
37
|
|
38
|
|
- <View style={styles.button}>
|
39
|
|
- <Button style={styles.button}
|
40
|
|
- onPress={this.clickHandle.bind(this,"asyncCopyObject")}
|
41
|
|
- title="asyncCopyObject"
|
42
|
|
- color="#841584"
|
43
|
|
- />
|
44
|
|
- </View>
|
|
38
|
+ <View style={styles.button}>
|
|
39
|
+ <Button style={styles.button}
|
|
40
|
+ onPress={this.clickHandle.bind(this,"asyncCopyObject")}
|
|
41
|
+ title="asyncCopyObject"
|
|
42
|
+ color="#841584"
|
|
43
|
+ />
|
|
44
|
+ </View>
|
45
|
45
|
|
46
|
|
- <View style={styles.button}>
|
47
|
|
- <Button style={styles.button}
|
48
|
|
- onPress={this.clickHandle.bind(this,"doesObjectExist")}
|
49
|
|
- title="doesObjectExist"
|
50
|
|
- color="#841584"
|
51
|
|
- />
|
52
|
|
- </View>
|
|
46
|
+ <View style={styles.button}>
|
|
47
|
+ <Button style={styles.button}
|
|
48
|
+ onPress={this.clickHandle.bind(this,"doesObjectExist")}
|
|
49
|
+ title="doesObjectExist"
|
|
50
|
+ color="#841584"
|
|
51
|
+ />
|
|
52
|
+ </View>
|
53
|
53
|
|
54
|
|
- <View style={styles.button}>
|
55
|
|
- <Button style={styles.button}
|
56
|
|
- onPress={this.clickHandle.bind(this,"asyncDeleteObject")}
|
57
|
|
- title="asyncDeleteObject"
|
58
|
|
- color="#841584"
|
59
|
|
- />
|
|
54
|
+ <View style={styles.button}>
|
|
55
|
+ <Button style={styles.button}
|
|
56
|
+ onPress={this.clickHandle.bind(this,"asyncDeleteObject")}
|
|
57
|
+ title="asyncDeleteObject"
|
|
58
|
+ color="#841584"
|
|
59
|
+ />
|
|
60
|
+ </View>
|
60
|
61
|
</View>
|
61
|
62
|
</View>
|
62
|
|
- </View>
|
63
|
|
- )
|
|
63
|
+ )
|
64
|
64
|
}
|
65
|
65
|
clickHandle(e) {
|
66
|
66
|
switch(e) {
|
|
@@ -74,7 +74,9 @@ export class ObjectManager extends Component {
|
74
|
74
|
|
75
|
75
|
case "asyncListObjects" : {
|
76
|
76
|
console.log("asyncListObjects")
|
77
|
|
- AliyunOSS.asyncListObjects('luozhang002').then((e) => {
|
|
77
|
+ AliyunOSS.asyncListObjects('luozhang002',{
|
|
78
|
+ prefix:'xxxx'
|
|
79
|
+ }).then((e) => {
|
78
|
80
|
console.log(e)
|
79
|
81
|
}).catch((e)=>{
|
80
|
82
|
console.log(e)
|
|
@@ -108,5 +110,4 @@ export class ObjectManager extends Component {
|
108
|
110
|
default :break;
|
109
|
111
|
}
|
110
|
112
|
}
|
111
|
|
-
|
112
|
113
|
}
|