浏览代码

去空格

chenrui  3 年之前
父节点
当前提交
a2b25fa741
共有 2 个文件被更改,包括 11 次插入2 次删除
  1. 5 1
      src/views/systemManagement/EditSystem/index.vue
  2. 6 1
      src/views/systemManagement/addSystem/index.vue

+ 5 - 1
src/views/systemManagement/EditSystem/index.vue

@@ -134,7 +134,7 @@
               placeholder="请输入内容"
               clearable
               @clear="clearData"
-              v-model="keyWords"
+              v-model.trim="keyWords"
             ></el-input>
             <el-button @click="queryData()">搜索</el-button>
           </div>
@@ -269,6 +269,7 @@ export default {
   },
   methods: {
     queryData() {
+      this.keyWords = this.keyWords.replace(/\s+/g, "");
       const search = this.keyWords;
       if (search) {
         this.FormData.Unuselist = findarrays(
@@ -431,6 +432,9 @@ export default {
   font-weight: bold;
   color: #303133;
 }
+::v-deep .el-row {
+  width: 100%;
+}
 .Box {
   width: 100%;
   height: 100%;

+ 6 - 1
src/views/systemManagement/addSystem/index.vue

@@ -132,7 +132,7 @@
               placeholder="请输入内容"
               clearable
               @clear="clearData"
-              v-model="keyWords"
+              v-model.trim="keyWords"
             ></el-input>
             <el-button @click="getUserData">搜索</el-button>
           </div>
@@ -394,6 +394,7 @@ export default {
       //   PageSize: this.PageSize,
       //   PageIndex: this.pageNum,
       // });
+      this.keyWords = this.keyWords.replace(/\s+/g, "");
       const search = this.keyWords;
       if (search) {
         this.FormData.Unuselist = findarrays(
@@ -431,6 +432,9 @@ export default {
   padding: 0 64px;
   padding-top: 32px;
 }
+::v-deep .el-row {
+  width: 100%;
+}
 .topBox {
   width: 100%;
   height: 240px;
@@ -438,6 +442,7 @@ export default {
   box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
   border-radius: 16px;
 }
+
 .fristLine {
   display: flex;
   margin-left: 33px;