ソースを参照

修缮0号线页面逻辑

sunxbiao 1 年間 前
コミット
a2641366a4
共有1 個のファイルを変更した12 個の追加8 個の削除を含む
  1. 12 8
      src/views/zeroLine/list/index.vue

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

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