Przeglądaj źródła

修缮0号线页面逻辑

sunxbiao 1 rok temu
rodzic
commit
a2641366a4
1 zmienionych plików z 12 dodań i 8 usunięć
  1. 12 8
      src/views/zeroLine/list/index.vue

+ 12 - 8
src/views/zeroLine/list/index.vue

@@ -4,7 +4,7 @@
4 4
       <el-form inline size="small" label-width="100px">
5 5
         <el-row>
6 6
           <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
7
-            <el-form-item label="0号线团队称:">
7
+            <el-form-item label="0号线团队称:">
8 8
               <el-input v-model="searchFrom.team_name" placeholder="请输入" clearable class="selWidth"/>
9 9
             </el-form-item>
10 10
           </el-col>
@@ -46,7 +46,7 @@
46 46
           style="width: 100%" v-loading="listLoading">
47 47
         <el-table-column
48 48
             prop="date"
49
-            label="0号线团队称"
49
+            label="0号线团队称"
50 50
             min-width="140">
51 51
           <template slot-scope="scope">
52 52
             <span>{{ scope.row.team_name }}</span>
@@ -117,16 +117,19 @@
117 117
           :title="str"
118 118
           width="50%"
119 119
           :visible.sync="dialogVisible"
120
-          left>
120
+          left
121
+          :close-on-click-modal="false"
122
+          :before-close="dialogVisibleFalae"
123
+      >
121 124
         <el-form ref="form" :model="infoForm" label-width="180px">
122
-          <el-form-item label="0号线顶点人" v-if="str==='添加信息'">
125
+          <el-form-item label="0号线团队长" v-if="str==='添加信息'">
123 126
             <el-select
124 127
                 maxlength="25"
125 128
                 minlength="1"
126 129
                 v-model="selectItem"
127 130
                 filterable
128 131
                 remote
129
-                placeholder="请选择0号线顶点人"
132
+                placeholder="请输入0号线团队长昵称和账号"
130 133
                 :remote-method="remoteMethod"
131 134
                 @change="changeSel"
132 135
                 :loading="loading"
@@ -140,8 +143,8 @@
140 143
               </el-option>
141 144
             </el-select>
142 145
           </el-form-item>
143
-          <el-form-item label="0号线称">
144
-            <el-input v-model="infoForm.team_name" placeholder="请输入0号线名称(默认为顶点人昵称)" clearable
146
+          <el-form-item label="0号线称">
147
+            <el-input v-model="infoForm.team_name" placeholder="请输入0号线昵称(默认为团队长昵称)" clearable
145 148
                       class="selWidth"></el-input>
146 149
           </el-form-item>
147 150
           <el-form-item label="0号线状态">
@@ -225,7 +228,7 @@ export default {
225 228
     // 弹框
226 229
     onEdit(scope, edit = true) {
227 230
       if (edit) {
228
-        this.infoForm = scope;
231
+        this.infoForm = JSON.parse(JSON.stringify(scope));
229 232
         this.str = "修改信息";
230 233
       } else {
231 234
         this.str = "添加信息";
@@ -291,6 +294,7 @@ export default {
291 294
         status: 1,
292 295
       }
293 296
       this.searchList = [];
297
+      this.selectItem = "";
294 298
       this.dialogVisible = false
295 299
     }
296 300
   }