|
@@ -13,11 +13,13 @@ import {
|
|
|
import $ from "jquery/src/ajax";
|
|
|
import { getProjectStatus } from "@/tools.js"
|
|
|
import ResolutionDetail from "@/resolutionDetail";
|
|
|
+import ProjectDetailsReadOnly from "../../../../common/projectDetailsReadOnly/index";
|
|
|
|
|
|
|
|
|
const ProAndCuiList = React.createClass({
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
+ visible: false,
|
|
|
resVisible: false,
|
|
|
columns: [
|
|
|
{
|
|
@@ -309,6 +311,14 @@ const ProAndCuiList = React.createClass({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ //点击打卡项目详情
|
|
|
+ tableRowClickX(record) {
|
|
|
+ this.setState({
|
|
|
+ dataInfor: record,
|
|
|
+ visible: true,
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
render() {
|
|
|
const expandedRowRender = e => {
|
|
|
const data = e.list;
|
|
@@ -473,6 +483,7 @@ const ProAndCuiList = React.createClass({
|
|
|
pagination={false}
|
|
|
expandedRowRender={expandedRowRender}
|
|
|
dataSource={this.state.dataSource}
|
|
|
+ onRowClick={this.tableRowClickX.bind(this)}
|
|
|
bordered
|
|
|
size="small"
|
|
|
/>
|
|
@@ -495,6 +506,16 @@ const ProAndCuiList = React.createClass({
|
|
|
<Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
|
|
|
</Form>
|
|
|
</div>
|
|
|
+ {this.state.visible &&
|
|
|
+ <ProjectDetailsReadOnly
|
|
|
+ infor={this.state.dataInfor}
|
|
|
+ visible={this.state.visible}
|
|
|
+ onCancel={() => {
|
|
|
+ this.setState({
|
|
|
+ visible: false
|
|
|
+ });
|
|
|
+ }}
|
|
|
+ />}
|
|
|
</div>
|
|
|
);
|
|
|
}
|