Parcourir la source

项目说明详情

dev01 il y a 2 ans
Parent
commit
0ddb44e718

+ 1 - 1
js/component/common/projectDetailsReadOnly/index.jsx

@@ -155,7 +155,7 @@ class ProjectDetailsReadOnly extends Component {
                             <FormItem
                                 labelCol={{ span: 4 }}
                                 wrapperCol={{ span: 16 }}
-                                label="服务说明"
+                                label="项目说明"
                             >
                                 <span>{taskComment}</span>
                             </FormItem>

+ 2 - 1
js/component/manageCenter/order/orderNew/changeComponent/orderDetail.js

@@ -848,7 +848,8 @@ class OrderDetail extends Component {
             <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
           </Form>
         </div>
-        {this.state.visible && <ProjectDetailsReadOnly
+        {this.state.visible && 
+        <ProjectDetailsReadOnly
           infor={this.state.dataInfor}
           visible={this.state.visible}
           onCancel={this.nextCancel}

+ 21 - 0
js/component/manageCenter/order/orderNew/changeComponent/proAndCuiList.jsx

@@ -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>
     );
   }