Browse Source

添加user

lyn7568 6 years ago
parent
commit
fcd8f5b814

+ 0 - 1
src/views/accountSettings/modifyAccountInformation.vue

@ -130,7 +130,6 @@
130 130
          if (valid) {
131 131
            that.$http.put(modifyUrl, that.ruleForm2, (response) => {
132 132
              if (response.success) {
133
                that.$refs[formName].resetFields()
134 133
                that.$message({
135 134
                  message: '资料修改成功',
136 135
                  type: 'success'

+ 0 - 1
src/views/accountSettings/modifyPassword.vue

@ -80,7 +80,6 @@
80 80
                  closeOnClickModal: false,
81 81
                  type: 'success'
82 82
                }).then(() => {
83
                  that.$refs[formName].resetFields()
84 83
                  that.$store.dispatch('LogOut').then((response) => {
85 84
                    if (response.success) {
86 85
                      that.$router.push('/login')

+ 1 - 1
src/views/demandCen/preview.vue

@ -323,7 +323,7 @@
323 323
      submitForm(formName) {
324 324
        var that = this
325 325
        if (that.readonlyShow) {
326
          that.$router.replace({ name: 'publishedList' })
326
          that.$router.back(-1)
327 327
          return
328 328
        }
329 329
        this.$refs[formName].validate((valid) => {

+ 2 - 2
src/views/sysSetting/platUser/editUser.vue

@ -19,7 +19,7 @@
19 19
          <el-form-item v-if="!readonlyShow && !item.right" :label="item.tit" :prop="item.prop">
20 20
            <el-input v-model="userForm[item.prop]" :placeholder="`请填写${item.tit}`" :maxlength="item.num||''"></el-input>
21 21
          </el-form-item>
22
          <el-form-item v-if="operateM.type==='right' && item.right" :prop="item.prop" label-width="0">
22
          <el-form-item v-if="item.right" :prop="item.prop" label-width="0">
23 23
            <template>
24 24
              <el-card shadow="never">
25 25
                <div class="card-title" slot="header">
@ -158,7 +158,7 @@
158 158
        return this.operateM.type === 'edit' || false
159 159
      },
160 160
      timeShow() {
161
        return this.operateM.type === 'add' || true
161
        return this.operateM.type !== 'add' || false
162 162
      }
163 163
    },
164 164
    watch: {