全局增加搜索为空的条件限制。
Showing
14 changed files
with
53 additions
and
11 deletions
| ... | @@ -69,6 +69,12 @@ var self = new Vue({ | ... | @@ -69,6 +69,12 @@ var self = new Vue({ |
| 69 | click(val){ | 69 | click(val){ |
| 70 | this.isActive = val | 70 | this.isActive = val |
| 71 | }, | 71 | }, |
| 72 | //搜索事件 | ||
| 73 | SearchInfo(){ | ||
| 74 | if(!this.search){ | ||
| 75 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 76 | } | ||
| 77 | }, | ||
| 72 | openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') { | 78 | openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') { |
| 73 | // debugger | 79 | // debugger |
| 74 | var unique = this.uuid(); | 80 | var unique = this.uuid(); | ... | ... |
| ... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
| 113 | <div style="float: right" class="div-search"> | 113 | <div style="float: right" class="div-search"> |
| 114 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> | 114 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> |
| 115 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> | 115 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> |
| 116 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search"> | 116 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 117 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 117 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 118 | </div> | 118 | </div> |
| 119 | </div> | 119 | </div> | ... | ... |
| ... | @@ -50,8 +50,13 @@ var self = new Vue({ | ... | @@ -50,8 +50,13 @@ var self = new Vue({ |
| 50 | console.log(res) | 50 | console.log(res) |
| 51 | }); | 51 | }); |
| 52 | 52 | ||
| 53 | } | 53 | }, |
| 54 | , | 54 | //搜索事件 |
| 55 | SearchInfo(){ | ||
| 56 | if(!this.search){ | ||
| 57 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 58 | } | ||
| 59 | }, | ||
| 55 | handleSizeChange() { | 60 | handleSizeChange() { |
| 56 | 61 | ||
| 57 | }, | 62 | }, | ... | ... |
| ... | @@ -115,7 +115,7 @@ | ... | @@ -115,7 +115,7 @@ |
| 115 | <div style="float: right" class="div-search" > | 115 | <div style="float: right" class="div-search" > |
| 116 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> | 116 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> |
| 117 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> | 117 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> |
| 118 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search"> | 118 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 119 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 119 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 120 | </div> | 120 | </div> |
| 121 | </div> | 121 | </div> | ... | ... |
| ... | @@ -69,6 +69,12 @@ var self = new Vue({ | ... | @@ -69,6 +69,12 @@ var self = new Vue({ |
| 69 | click(val){ | 69 | click(val){ |
| 70 | this.isActive = val | 70 | this.isActive = val |
| 71 | }, | 71 | }, |
| 72 | //搜索事件 | ||
| 73 | SearchInfo(){ | ||
| 74 | if(!this.search){ | ||
| 75 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 76 | } | ||
| 77 | }, | ||
| 72 | openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') { | 78 | openHandleJumpUrl (flowId, itemTypeId, _stats = 'create') { |
| 73 | // debugger | 79 | // debugger |
| 74 | var unique = this.uuid(); | 80 | var unique = this.uuid(); | ... | ... |
| ... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
| 113 | <div style="float: right" class="div-search"> | 113 | <div style="float: right" class="div-search"> |
| 114 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> | 114 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> |
| 115 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> | 115 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> |
| 116 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search"> | 116 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 117 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 117 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 118 | </div> | 118 | </div> |
| 119 | </div> | 119 | </div> | ... | ... |
| ... | @@ -103,9 +103,16 @@ var self = new Vue({ | ... | @@ -103,9 +103,16 @@ var self = new Vue({ |
| 103 | }, | 103 | }, |
| 104 | handleSizeChange(){ | 104 | handleSizeChange(){ |
| 105 | 105 | ||
| 106 | }, clickData(row, column, event) { | 106 | }, |
| 107 | clickData(row, column, event) { | ||
| 107 | this.jumpdetailPage(row); | 108 | this.jumpdetailPage(row); |
| 108 | }, | 109 | }, |
| 110 | //搜索事件 | ||
| 111 | SearchInfo(){ | ||
| 112 | if(!this.search){ | ||
| 113 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 114 | } | ||
| 115 | }, | ||
| 109 | jumpdetailPage(data) { | 116 | jumpdetailPage(data) { |
| 110 | var taskid = data.TASKID; | 117 | var taskid = data.TASKID; |
| 111 | var detailType = data.detailType; | 118 | var detailType = data.detailType; | ... | ... |
| ... | @@ -119,7 +119,7 @@ | ... | @@ -119,7 +119,7 @@ |
| 119 | <div style="float: right" class="div-search"> | 119 | <div style="float: right" class="div-search"> |
| 120 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> | 120 | <!-- <el-input style="width:300px;margin-right: 20px" placeholder="请输入搜索的内容"></el-input>--> |
| 121 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> | 121 | <!-- <el-button type ="primary" size="mini" icon="el-icon-search">查询</el-button>--> |
| 122 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search"> | 122 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 123 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 123 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 124 | </div> | 124 | </div> |
| 125 | </div> | 125 | </div> | ... | ... |
| ... | @@ -41,6 +41,12 @@ var self = new Vue({ | ... | @@ -41,6 +41,12 @@ var self = new Vue({ |
| 41 | 41 | ||
| 42 | }, | 42 | }, |
| 43 | handleCurrentChange(){}, | 43 | handleCurrentChange(){}, |
| 44 | //搜索事件 | ||
| 45 | SearchInfo(){ | ||
| 46 | if(!this.search){ | ||
| 47 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 48 | } | ||
| 49 | }, | ||
| 44 | getData() { | 50 | getData() { |
| 45 | axios.post(CONF_NEWGHSC_SERVERURL + '/dblb/list/workings',null, { | 51 | axios.post(CONF_NEWGHSC_SERVERURL + '/dblb/list/workings',null, { |
| 46 | params: { | 52 | params: { | ... | ... |
| ... | @@ -110,12 +110,12 @@ | ... | @@ -110,12 +110,12 @@ |
| 110 | <el-row :gutter="20"> | 110 | <el-row :gutter="20"> |
| 111 | <el-col :span="4"> | 111 | <el-col :span="4"> |
| 112 | <!-- <button class="btns">查询</button>--> | 112 | <!-- <button class="btns">查询</button>--> |
| 113 | <button class="btns" @click="openHandleJumpUrl('t1001_8a8610d86117e3b401611848a8690000')">添加</button> | 113 | <button class="btns" @click="openHandleJumpUrl('t1001_8a8610d86117e3b401611848a8690000')" >添加</button> |
| 114 | <button class="btns" @click="handlclick">删除</button> | 114 | <button class="btns" @click="handlclick">删除</button> |
| 115 | </el-col> | 115 | </el-col> |
| 116 | <el-col :span="6"> | 116 | <el-col :span="6"> |
| 117 | <div class="div-search"> | 117 | <div class="div-search"> |
| 118 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search"> | 118 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 119 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 119 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 120 | </div> | 120 | </div> |
| 121 | </el-col> | 121 | </el-col> | ... | ... |
| ... | @@ -147,6 +147,12 @@ var self = new Vue({ | ... | @@ -147,6 +147,12 @@ var self = new Vue({ |
| 147 | return false | 147 | return false |
| 148 | } | 148 | } |
| 149 | }, | 149 | }, |
| 150 | //搜索事件 | ||
| 151 | SearchInfo(){ | ||
| 152 | if(!this.search){ | ||
| 153 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 154 | } | ||
| 155 | }, | ||
| 150 | handleSelectionChange(val){ | 156 | handleSelectionChange(val){ |
| 151 | this.multipleSelection = val | 157 | this.multipleSelection = val |
| 152 | }, | 158 | }, | ... | ... |
| ... | @@ -115,7 +115,7 @@ | ... | @@ -115,7 +115,7 @@ |
| 115 | </el-col> | 115 | </el-col> |
| 116 | <el-col :span="6"> | 116 | <el-col :span="6"> |
| 117 | <div class="div-search"> | 117 | <div class="div-search"> |
| 118 | <input id="searchInput" type="text" placeholder="搜索已办项目" style="width: 82%;" v-model="search"> | 118 | <input id="searchInput" type="text" placeholder="搜索已办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 119 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 119 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 120 | </div> | 120 | </div> |
| 121 | </el-col> | 121 | </el-col> | ... | ... |
| ... | @@ -72,6 +72,12 @@ var self = new Vue({ | ... | @@ -72,6 +72,12 @@ var self = new Vue({ |
| 72 | handleSelectionChange(val){ | 72 | handleSelectionChange(val){ |
| 73 | this.multipleSelection = val | 73 | this.multipleSelection = val |
| 74 | }, | 74 | }, |
| 75 | //搜索事件 | ||
| 76 | SearchInfo(){ | ||
| 77 | if(!this.search){ | ||
| 78 | this.$message.warning('请先输入关键字后轻敲Enter键搜索') | ||
| 79 | } | ||
| 80 | }, | ||
| 75 | jumpdetailPage(data) { | 81 | jumpdetailPage(data) { |
| 76 | var taskid = data.TASKID; | 82 | var taskid = data.TASKID; |
| 77 | var detailType = data.detailType; | 83 | var detailType = data.detailType; | ... | ... |
| ... | @@ -116,7 +116,7 @@ | ... | @@ -116,7 +116,7 @@ |
| 116 | </el-col> | 116 | </el-col> |
| 117 | <el-col :span="6"> | 117 | <el-col :span="6"> |
| 118 | <div class="div-search"> | 118 | <div class="div-search"> |
| 119 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search"> | 119 | <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search" @keyup.enter="SearchInfo"> |
| 120 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> | 120 | <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;"> |
| 121 | </div> | 121 | </div> |
| 122 | </el-col> | 122 | </el-col> | ... | ... |
-
Please register or sign in to post a comment