Browse Source

添加user

lyn7568 6 years ago
parent
commit
fcd8f5b814

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

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

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

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

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

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

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

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