|
@@ -29,6 +29,7 @@ class Detail extends Component {
|
|
|
attachmentUrl: [],
|
|
|
data: {},
|
|
|
historicalIsOpened: false,
|
|
|
+ isOpened: false,
|
|
|
}
|
|
|
this.getReleasetDails = this.getReleasetDails.bind(this);
|
|
|
}
|
|
@@ -38,7 +39,11 @@ class Detail extends Component {
|
|
|
}
|
|
|
|
|
|
componentDidShow() {
|
|
|
- this.getReleasetDails();
|
|
|
+ this.setState({
|
|
|
+ isOpened: false
|
|
|
+ }, () => {
|
|
|
+ this.getReleasetDails();
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
// 项目详情
|
|
@@ -57,6 +62,7 @@ class Detail extends Component {
|
|
|
this.setState({
|
|
|
data: v.data,
|
|
|
attachmentUrl: list,
|
|
|
+ isOpened: true,
|
|
|
})
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
@@ -134,15 +140,6 @@ class Detail extends Component {
|
|
|
{data.projectName}
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View className="userName" style={{ margin: "20px 0" }}>
|
|
|
- <View className="uNtext">
|
|
|
- 当前审核状态:
|
|
|
- <Text style={{ color: ["#000000", "#dbc037", "#6eb173", "red"][data.processStatus] }}>
|
|
|
- {["", "待审核", "审核通过", "审核驳回"][data.processStatus]}
|
|
|
- </Text>
|
|
|
- <Text className="logbt" onClick={() => { this.setState({ historicalIsOpened: true }) }}>查看审核日志</Text>
|
|
|
- </View>
|
|
|
- </View>
|
|
|
<View className="userName">
|
|
|
<View className="uNtext">
|
|
|
打卡时间:{data.createTime}
|
|
@@ -153,7 +150,7 @@ class Detail extends Component {
|
|
|
打卡人员:{data.name}
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View className="userName" style={{ marginTop: 10 }}>
|
|
|
+ <View className="userName">
|
|
|
<View className="uNtext">
|
|
|
研发时间:{data.recordTime}
|
|
|
</View>
|
|
@@ -176,13 +173,24 @@ class Detail extends Component {
|
|
|
<View className="userName">
|
|
|
<View className="uNtext">
|
|
|
附件:
|
|
|
- {attachmentUrl && attachmentUrl.length > 0 &&
|
|
|
+ {this.state.isOpened &&
|
|
|
<ImagePicker
|
|
|
files={attachmentUrl || []}
|
|
|
showAddBtn={false}
|
|
|
/>}
|
|
|
</View>
|
|
|
</View>
|
|
|
+
|
|
|
+ <View className="userName" style={{ marginTop: 20 }}>
|
|
|
+ <View className="uNtext">
|
|
|
+ 当前审核状态:
|
|
|
+ <Text style={{ color: ["#000000", "#dbc037", "#6eb173", "red"][data.processStatus] }}>
|
|
|
+ {["", "待审核", "审核通过", "审核驳回"][data.processStatus]}
|
|
|
+ </Text>
|
|
|
+ <Text className="logbt" onClick={() => { this.setState({ historicalIsOpened: true }) }}>查看审核日志</Text>
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+
|
|
|
{
|
|
|
data.processStatus == 3 &&
|
|
|
<View className="option">
|
|
@@ -222,7 +230,7 @@ class Detail extends Component {
|
|
|
</View>
|
|
|
<View className="userName">
|
|
|
<View className="uNtext">
|
|
|
- 累积工时:{data.duration}
|
|
|
+ 打卡工时:{data.duration}
|
|
|
</View>
|
|
|
</View>
|
|
|
<View className="userName">
|