Browse Source

科技申报删除修改

wubb 8 years ago
parent
commit
d480c38a81

+ 5 - 2
js/component/manageCenter/servicesManage/technology/applyManage.jsx

@@ -241,8 +241,8 @@ const ApplyManage = React.createClass({
         let deletedIds = [];
         for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
             let rowItem = this.state.selectedRows[idx];
-            if (rowItem.id) {
-                deletedIds.push(rowItem.id)
+            if (rowItem.pid) {
+                deletedIds.push(rowItem.pid)
             }
         }
         this.setState({
@@ -327,6 +327,9 @@ const ApplyManage = React.createClass({
                     </Select>
                     <Button type="primary" onClick={this.search}>搜索</Button>
                     <Button onClick={this.reset}>重置</Button>
+                    <Button style={{ background: "#3fcf9e", border: "none", color: "#fff" }}
+                            disabled={!hasSelected}
+                            onClick={this.delectRow}>删除<Icon type="minus" /></Button>
                 </div>
                 
                 <div className="patent-table">

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "afanti",
-  "version": "1.0.10",
+  "version": "1.0.11",
   "description": "",
   "main": "index.js",
   "scripts": {