dengjunjie
2024-10-25 663489b2ce63ee84851dfbc2db32814e40ae9a89
项目代码/WCS/WIDESEAWCS_Client/src/views/system/UserInfo.vue
@@ -1,11 +1,27 @@
<template>
  <VolBox :width="500" :height="270" v-model="modifyOptions.model" title="淇敼瀵嗙爜">
  <VolBox
    :width="500"
    :height="270"
    v-model="modifyOptions.model"
    title="淇敼瀵嗙爜"
  >
    <div style="padding:10px;20px;">
      <VolForm ref="pwd" :formRules="modifyOptions.data" :formFields="modifyOptions.fields"></VolForm>
      <VolForm
        ref="pwd"
        :formRules="modifyOptions.data"
        :formFields="modifyOptions.fields"
      ></VolForm>
    </div>
    <template #footer>
      <div style="text-align: center;">
        <el-button type="primary" size="mini" icon="md-checkmark-circle" long @click="savePwd">淇濆瓨</el-button>
      <div style="text-align: center">
        <el-button
          type="primary"
          size="mini"
          icon="md-checkmark-circle"
          long
          @click="savePwd"
          >淇濆瓨</el-button
        >
      </div>
    </template>
  </VolBox>
@@ -21,7 +37,14 @@
            <span>娉ㄥ唽鏃ユ湡锛歿{ userInfo.createDate }}</span>
          </p>
          <p>
            <el-button type="error" @click="modifyPwd" size="small" icon="md-lock" long>淇敼瀵嗙爜</el-button>
            <el-button
              type="error"
              @click="modifyPwd"
              size="small"
              icon="md-lock"
              long
              >淇敼瀵嗙爜</el-button
            >
            <!-- <el-button
              style="padding: 3px 16px"
              @click="modifyImg"
@@ -35,7 +58,13 @@
      </div>
    </div>
    <div class="right">
      <vol-form ref="form" :load-key="true" :width="500" :formRules="editFormOptions" :formFields="editFormFields">
      <vol-form
        ref="form"
        :load-key="true"
        :width="500"
        :formRules="editFormOptions"
        :formFields="editFormFields"
      >
        <div class="footer">
          <!-- <el-button
            style="margin-top: 2px"
@@ -49,7 +78,6 @@
        </div>
      </vol-form>
    </div>
  </div>
</template>
<script>
@@ -99,7 +127,7 @@
    },
  },
  created() {
    this.http.post("/api/Sys_User/getCurrentUserInfo", {}, true).then((x) => {
    this.http.post("/api/User/getCurrentUserInfo", {}, true).then((x) => {
      if (!x.status) {
        return this.$message(x.message);
      }
@@ -177,11 +205,12 @@
        ],
        [
          {
            columnType: "string",
            dataKey: "tree_roles",
            title: "瑙掕壊",
            field: "roleName",
            field: "role_Id",
            disabled: true,
            type: "text",
            data: [],
            type: "select",
          },
        ],
        [