Blame view

src/views/system/information/index.vue 1.76 KB
xiaomiao committed
1 2
<!--
 * @Author: xiaomiao 1158771342@qq.com
3
 * @Date: 2023-03-09 20:54:28
4 5
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-03-30 11:21:49
6
 * @FilePath: \上报\bdcjg-web\src\views\system\information\index.vue
xiaomiao committed
7 8
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
xiaomiao committed
9 10 11
<template>
  <div class="information from-clues">
    <div class="from-clues-header">
xiaomiao committed
12
      <el-form ref="ruleForm" label-width="100px">
13
        <el-form-item v-if="BASE_API.THEME == 'jg'">
xiaomiao committed
14 15 16
          <Breadcrumb />
        </el-form-item>
        <el-row class="mb-5">
xiaomiao committed
17
          <el-col class="btnColRight">
xiaomiao committed
18
            <btn nativeType="cx" @click="information">
19
              基本信息
20
            </btn>
xiaomiao committed
21
            <btn nativeType="cx" @click="password">
22
              修改密码
23
            </btn>
xiaomiao committed
24 25 26 27
          </el-col>
        </el-row>
      </el-form>
    </div>
28
    <div class="from-clues-content">
xiaomiao committed
29
      <div class="contentbox">
xiaomiao committed
30 31
        <base-set v-if="isshow" :userInfo="userData" />
        <password-edit v-if="!isshow" :userInfo="userData" />
xiaomiao committed
32 33 34 35 36
      </div>
    </div>
  </div>
</template>
<script>
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
import "@/utils/flexible.js";
import BaseSet from "./base-set.vue";
import PasswordEdit from "./password-edit.vue";
export default {
  components: {
    BaseSet,
    PasswordEdit,
  },
  data () {
    return {
      isshow: true,
    };
  },
  computed: {
    userData () {
      return this.$store.state.user.userInfo;
xiaomiao committed
53
    },
54 55 56 57 58 59 60
  },
  watch: {},
  created () { },
  mounted () { },
  methods: {
    information () {
      this.isshow = true;
xiaomiao committed
61
    },
62 63
    password () {
      this.isshow = false;
xiaomiao committed
64
    },
65 66
  },
};
xiaomiao committed
67 68 69
</script>

<style scoped lang="scss">
任超 committed
70
@import "~@/styles/mixin.scss";
xiaomiao committed
71
</style>