Browse Source

分配权限更改及桥梁信息邮箱非必填

lipengtao 6 years ago
parent
commit
ffaebe2e9a

+ 0 - 3
src/views/baseInfoManage/bridgesInfo/index.vue

@ -263,9 +263,6 @@ export default {
263 263
        ],
264 264
        addrCode: [
265 265
          { required: true, message: '请选择桥梁位置信息', trigger: 'blur' }
266
        ],
267
        email: [
268
          { required: true, message: '请输入联系电邮', trigger: 'blur' }
269 266
        ]
270 267
      },
271 268
      timeout: null,

+ 0 - 4
src/views/peoplesManage/infoManage/editUserPermissions.vue

@ -167,10 +167,6 @@ export default {
167 167
      this.dialogTableVisible = false
168 168
    },
169 169
    submit() {
170
      if (!this.valueBridge.length) {
171
        this.$message.error('请至少选择一个桥梁')
172
        return
173
      }
174 170
      updatePermission({ id: this.id, bridges: this.valueBridge }).then(response => {
175 171
        if (response.success) {
176 172
          this.valueBridge = []

+ 8 - 6
src/views/peoplesManage/infoManage/index.vue

@ -63,8 +63,8 @@
63 63
        
64 64
      </el-table-column>
65 65
    </el-table>
66
    <editUser :dialog="dialogTableVisible" @chilF='chilF' :id='edit'></editUser>
67
    <editUserPermissions :dialog='dialogPerssion' @chilF='chilF' :id='edit'></editUserPermissions>
66
    <editUser :dialog="dialogTableVisible" @chilF='chilF' :id='edit1'></editUser>
67
    <editUserPermissions :dialog='dialogPerssion' @chilF='chilF' :id='edit2'></editUserPermissions>
68 68
    <div class="pagination-container" style="text-align:center;">
69 69
      <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listQuery.page" :page-size="listQuery.limit" layout="prev, pager, next, jumper" :total="total">
70 70
      </el-pagination>
@ -85,7 +85,8 @@ export default {
85 85
  },
86 86
  data() {
87 87
    return {
88
      edit: '',
88
      edit1: '',
89
      edit2: '',
89 90
      tableKey: 0,
90 91
      list: null,
91 92
      total: null,
@ -160,7 +161,8 @@ export default {
160 161
      if (!val) {
161 162
        this.getList()
162 163
      }
163
      this.edit = ''
164
      this.edit1 = ''
165
      this.edit2 = ''
164 166
    },
165 167
    handleCurrentChange(val) {
166 168
      this.listQuery.pageNo = val
@ -187,11 +189,11 @@ export default {
187 189
      this.dialogTableVisible = !this.dialogTableVisible
188 190
    },
189 191
    handleUpdate(row) {
190
      this.edit = row.id
192
      this.edit1 = row.id
191 193
      this.dialogTableVisible = !this.dialogTableVisible
192 194
    },
193 195
    distribution(row) {
194
      this.edit = row.id
196
      this.edit2 = row.id
195 197
      this.dialogPerssion = !this.dialogPerssion
196 198
    }
197 199
  }