wuhongyuq 5 năm trước cách đây
mục cha
commit
c93de33ca5

+ 1 - 3
src/layout/character/characterList.vue

@@ -26,10 +26,8 @@
             @size-change="handleSizeChange"
             @current-change="handleCurrentChange"
             :current-page="currentPage"
-            :page-sizes="[10, 20, 30, 40]"
-            :page-size="10"
             background
-            layout="total, sizes, prev, pager, next, jumper"
+            layout="total,  prev, pager, next, jumper"
             :total="total"
           >
           </el-pagination>

+ 3 - 3
src/layout/common/searchInfo.vue

@@ -13,13 +13,13 @@
           <span>输入条件:</span>
           <el-input v-model="search.input" placeholder="请输入" class="input"></el-input>
         </el-col>
-        <el-col :span="7">
+        <!-- <el-col :span="7">
           <span>时间选择:</span>
           <el-date-picker v-model="search.date" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
-        </el-col>
+        </el-col> -->
         <el-col :span="8">
           <el-button class="btnSearch">查询</el-button>
-          <el-button class="btnSearch qing">清空</el-button>
+          <!-- <el-button class="btnSearch qing">清空</el-button> -->
         </el-col>
       </el-col>
     </el-row>

+ 7 - 5
src/layout/companyidentify/detailInfo.vue

@@ -3,17 +3,19 @@
     <el-row>
       <el-col :span="24" class="form">
         <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="140px" class="demo-ruleForm">
+          <span v-if="ruleForm.status === '1' || ruleForm.status === '1'">
+            <el-form-item label="认证状态:">
+              <span>{{ ruleForm.status === '0' ? '认证中' : ruleForm.status === '1' ? '认证通过' : '认证失败' }}</span>
+            </el-form-item>
+          </span>
+
           <el-form-item label="营业执照图片:">
             <el-image :src="ruleForm.business_license"></el-image>
           </el-form-item>
           <el-form-item label="企业名称:">
             <span>{{ ruleForm.company_name }}</span>
           </el-form-item>
-          <span v-if="ruleForm.status === '1' || ruleForm.status === '1'">
-            <el-form-item label="认证状态:">
-              <span>{{ ruleForm.status === '0' ? '认证中' : ruleForm.status === '1' ? '认证通过' : '认证失败' }}</span>
-            </el-form-item>
-          </span>
+
           <el-form-item label="成立日期:">
             <span>{{ ruleForm.establish_date }}</span>
           </el-form-item>

+ 3 - 9
src/layout/companyidentify/newsInfo.vue

@@ -39,10 +39,8 @@
                   @size-change="handleSizeChange"
                   @current-change="handleCurrentChange"
                   :current-page="currentPage"
-                  :page-sizes="[10, 20, 30, 40]"
-                  :page-size="10"
                   background
-                  layout="total, sizes, prev, pager, next, jumper"
+                  layout="total, prev, pager, next, jumper"
                   :total="total"
                 >
                 </el-pagination>
@@ -82,10 +80,8 @@
                   @size-change="handleSizeChange"
                   @current-change="handleCurrentChange"
                   :current-page="currentPage"
-                  :page-sizes="[10, 20, 30, 40]"
-                  :page-size="10"
                   background
-                  layout="total, sizes, prev, pager, next, jumper"
+                  layout="total,  prev, pager, next, jumper"
                   :total="totals"
                 >
                 </el-pagination>
@@ -126,10 +122,8 @@
                   @size-change="handleSizeChange"
                   @current-change="handleCurrentChange"
                   :current-page="currentPage"
-                  :page-sizes="[10, 20, 30, 40]"
-                  :page-size="10"
                   background
-                  layout="total, sizes, prev, pager, next, jumper"
+                  layout="total,  prev, pager, next, jumper"
                   :total="totalss"
                 >
                 </el-pagination>

+ 5 - 3
src/layout/companyup/detailInfo.vue

@@ -3,14 +3,16 @@
     <el-row>
       <el-col :span="24">
         <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
-          <el-form-item label="企业名称:">
-            <span>{{ ruleForm.company_name }}</span>
-          </el-form-item>
           <span v-if="ruleForm.status === '1' || ruleForm.status === '2'">
             <el-form-item label="审核状态:">
               <span>{{ ruleForm.status === '0' ? '审核中' : ruleForm.status === '1' ? '审核通过' : '审核拒绝' }}</span>
             </el-form-item>
           </span>
+
+          <el-form-item label="企业名称:">
+            <span>{{ ruleForm.company_name }}</span>
+          </el-form-item>
+
           <el-form-item label="企业简介:">
             <span>{{ ruleForm.introduction }}</span>
           </el-form-item>

+ 3 - 9
src/layout/companyup/newsInfo.vue

@@ -42,10 +42,8 @@
                   @size-change="handleSizeChange"
                   @current-change="handleCurrentChange"
                   :current-page="currentPage"
-                  :page-sizes="[10, 20, 30, 40]"
-                  :page-size="10"
                   background
-                  layout="total, sizes, prev, pager, next, jumper"
+                  layout="total,  prev, pager, next, jumper"
                   :total="total"
                 >
                 </el-pagination>
@@ -84,10 +82,8 @@
                   @size-change="handleSizeChange"
                   @current-change="handleCurrentChange"
                   :current-page="currentPage"
-                  :page-sizes="[10, 20, 30, 40]"
-                  :page-size="10"
                   background
-                  layout="total, sizes, prev, pager, next, jumper"
+                  layout="total, prev, pager, next, jumper"
                   :total="totals"
                 >
                 </el-pagination>
@@ -128,10 +124,8 @@
                   @size-change="handleSizeChange"
                   @current-change="handleCurrentChange"
                   :current-page="currentPage"
-                  :page-sizes="[10, 20, 30, 40]"
-                  :page-size="10"
                   background
-                  layout="total, sizes, prev, pager, next, jumper"
+                  layout="total,  prev, pager, next, jumper"
                   :total="totalss"
                 >
                 </el-pagination> </el-col

+ 1 - 3
src/layout/companyuser/companyuserList.vue

@@ -27,10 +27,8 @@
               @size-change="handleSizeChange"
               @current-change="handleCurrentChange"
               :current-page="currentPage"
-              :page-sizes="[10, 20, 30, 40]"
-              :page-size="10"
               background
-              layout="total, sizes, prev, pager, next, jumper"
+              layout="total, prev, pager, next, jumper"
               :total="total"
             >
             </el-pagination>

+ 1 - 3
src/layout/institution/newsInfo.vue

@@ -40,10 +40,8 @@
               @size-change="handleSizeChange"
               @current-change="handleCurrentChange"
               :current-page="currentPage"
-              :page-sizes="[10, 20, 30, 40]"
-              :page-size="10"
               background
-              layout="total, sizes, prev, pager, next, jumper"
+              layout="total, prev, pager, next, jumper"
               :total="total"
             >
             </el-pagination>

+ 52 - 3
src/layout/layout-part/heads.vue

@@ -2,12 +2,32 @@
   <div id="heads">
     <el-row>
       <el-col :span="24">
-        <el-col :span="18" class="title">
+        <el-col :span="15" class="title">
           吉林省小微企业金融管理后台
         </el-col>
+        <el-col :span="3" class="admin"> </el-col>
+        <el-dialog title="修改密码" :visible.sync="dialogFormVisible">
+          <el-form :model="form" :rules="rules">
+            <el-form-item label="旧密码" :label-width="formLabelWidth" prop="oldpasswd">
+              <el-input type="password" v-model="form.oldpasswd" autocomplete="off" placeholder="请输入旧密码"></el-input>
+            </el-form-item>
+            <el-form-item label="新密码" :label-width="formLabelWidth" prop="newpasswd">
+              <el-input type="password" v-model="form.newpasswd" autocomplete="off" placeholder="请输入新密码"></el-input>
+            </el-form-item>
+            <div class="ccc">
+              <el-form-item>
+                <el-button @click="dialogFormVisible = false">取 消</el-button>
+                <el-button type="primary" @click="onsave(form)">确 定</el-button>
+              </el-form-item>
+            </div>
+          </el-form>
+        </el-dialog>
         <el-col :span="6" class="admin">
+          <el-tooltip class="item" effect="dark" content="修改密码" placement="bottom">
+            <el-button type="text" @click="dialogFormVisible = true"><i class="el-icon-share"></i></el-button>
+          </el-tooltip>
           <i class="el-icon-user icon"></i>
-          <span class="name">管理员:{{ user.name }}</span>
+          <span class="name"> 管理员:{{ user.name }}</span>
           <span class="shu">|</span>
           <el-link :underline="false" class="out" @click="toLogout()">退出</el-link>
         </el-col>
@@ -18,11 +38,21 @@
 
 <script>
 import { mapState, mapMutations, createNamespacedHelpers } from 'vuex';
+const { mapActions: otheruser } = createNamespacedHelpers('otheruser');
 export default {
   name: 'heads',
   props: {},
   components: {},
-  data: () => ({}),
+  data: () => ({
+    rules: {
+      oldpasswd: [{ required: true, message: '请输入旧密码', trigger: 'blur' }],
+      newpasswd: [{ required: true, message: '请输入新密码', trigger: 'blur' }],
+    },
+    dialogTableVisible: false,
+    dialogFormVisible: false,
+    form: {},
+    formLabelWidth: '120px',
+  }),
   created() {},
   watch: {},
   computed: {
@@ -30,6 +60,8 @@ export default {
   },
   methods: {
     ...mapMutations(['deleteUser']),
+    ...otheruser(['query', 'fetch', 'updates', 'create']),
+
     async toLogout() {
       this.deleteUser();
       this.$message({
@@ -41,6 +73,20 @@ export default {
     async toLogin() {
       this.$router.push({ name: 'login' });
     },
+
+    async onsave(form) {
+      this.form.uid = this.user.uid;
+      console.log(form);
+      let res = await this.updates(form);
+      if (res.errcode === 0) {
+        this.$router.push({ path: '/login' });
+        this.$message({
+          message: '修改密码成功',
+          type: 'success',
+        });
+      }
+      // this.dialogFormVisible = false;
+    },
   },
 };
 </script>
@@ -77,4 +123,7 @@ export default {
   font-weight: 400;
   color: rgba(233, 2, 29, 1);
 }
+.ccc {
+  text-align: center;
+}
 </style>

+ 1 - 3
src/layout/otheruser/otheruserList.vue

@@ -39,10 +39,8 @@
               @size-change="handleSizeChange"
               @current-change="handleCurrentChange"
               :current-page="currentPage"
-              :page-sizes="[10, 20, 30, 40]"
-              :page-size="10"
               background
-              layout="total, sizes, prev, pager, next, jumper"
+              layout="total,  prev, pager, next, jumper"
               :total="total"
             >
             </el-pagination>

+ 1 - 3
src/layout/region/regionList.vue

@@ -28,10 +28,8 @@
             @size-change="handleSizeChange"
             @current-change="handleCurrentChange"
             :current-page="currentPage"
-            :page-sizes="[10, 20, 30, 40]"
-            :page-size="10"
             background
-            layout="total, sizes, prev, pager, next, jumper"
+            layout="total,  prev, pager, next, jumper"
             :total="total"
           >
           </el-pagination>

+ 6 - 0
src/store/otheruser.js

@@ -25,6 +25,12 @@ const actions = {
     const res = await this.$axios.$post(`${api.otheruserInfo}/update/${id}`, data);
     return res;
   },
+
+  async updates({ commit }, { ...data }) {
+    const res = await this.$axios.$post(`${api.otheruserInfo}/uppasswd`, data);
+    return res;
+  },
+
   async delete({ commit }, payload) {
     const res = await this.$axios.$delete(`${api.otheruserInfo}/${payload}`);
     return res;

+ 3 - 3
src/views/companyidentify/detail.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24" class="debt">
         <el-col :span="24" class="top">
-          <topInfo :topTitle="topTitle" :display="display"></topInfo>
+          <detailTopInfo :topTitle="topTitle" :display="display"></detailTopInfo>
         </el-col>
         <el-col :span="24" class="main">
           <el-col :span="24" class="back">
@@ -30,7 +30,7 @@
 </template>
 
 <script>
-import topInfo from '@/layout/common/topInfo.vue';
+import detailTopInfo from '@/layout/common/detailTopInfo.vue';
 import detailTop from '@/layout/common/detailTop.vue';
 import detailInfo from '@/layout/companyidentify/detailInfo.vue';
 import { createNamespacedHelpers } from 'vuex';
@@ -41,7 +41,7 @@ export default {
   name: 'detail',
   props: {},
   components: {
-    topInfo, //头部导航
+    detailTopInfo, //头部导航
     detailTop, //头部返回
     detailInfo, //审核
   },

+ 3 - 3
src/views/companyup/detail.vue

@@ -3,7 +3,7 @@
     <el-row>
       <el-col :span="24" class="debt">
         <el-col :span="24" class="top">
-          <topInfo :topTitle="topTitle" :display="display"></topInfo>
+          <detailTopInfo :topTitle="topTitle" :display="display"></detailTopInfo>
         </el-col>
         <el-col :span="24" class="main">
           <el-col :span="24" class="back">
@@ -31,7 +31,7 @@
 </template>
 
 <script>
-import topInfo from '@/layout/common/topInfo.vue';
+import detailTopInfo from '@/layout/common/detailTopInfo.vue';
 import detailTop from '@/layout/common/detailTop.vue';
 import detailInfo from '@/layout/companyup/detailInfo.vue';
 import { createNamespacedHelpers } from 'vuex';
@@ -41,7 +41,7 @@ export default {
   name: 'detail',
   props: {},
   components: {
-    topInfo, //头部导航
+    detailTopInfo, //头部导航
     detailTop, //返回
     detailInfo, //提交
   },