From 7c20fd15b7fbc2bd5756b39d5ab655cc849ffcc3 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 16 七月 2025 22:39:23 +0800
Subject: [PATCH] 添加时间筛选

---
 src/views/systemSetting/baseSetting/role/createUser/index.vue |   51 ++++++++++++++++++++++++---------------------------
 1 files changed, 24 insertions(+), 27 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/role/createUser/index.vue b/src/views/systemSetting/baseSetting/role/createUser/index.vue
index 5208019..9d8434e 100644
--- a/src/views/systemSetting/baseSetting/role/createUser/index.vue
+++ b/src/views/systemSetting/baseSetting/role/createUser/index.vue
@@ -10,12 +10,11 @@
                     </el-form-item>
                     <!-- 瑙掕壊绫诲瀷 -->
                     <el-form-item class="optionItems" label="瑙掕壊绫诲瀷:" prop="status">
-                        <el-input v-model="role.type" placeholder="璇烽�夋嫨瑙掕壊绫诲瀷"></el-input>
-                        <!-- <el-select v-model="role.type" placeholder="璇烽�夋嫨瑙掕壊绫诲瀷">
-                            <el-option v-for="item in typeList" :key="item.name" :label="item.name" :value="item.value"
-                                :disabled="item.disabled">
+                        <!-- <el-input v-model="role.type" placeholder="璇烽�夋嫨瑙掕壊绫诲瀷"></el-input> -->
+                        <el-select v-model="role.type" placeholder="璇烽�夋嫨瑙掕壊绫诲瀷">
+                            <el-option v-for="item in typeList" :key="item.id" :label="item.name" :value="item.id">
                             </el-option>
-                        </el-select> -->
+                        </el-select>
                     </el-form-item>
                     <!-- 瑙掕壊鎻忚堪 -->
                     <el-form-item class="optionItem" label="瑙掕壊鎻忚堪:" prop="description">
@@ -35,6 +34,7 @@
     </div>
 </template>
 <script>
+import { getTypeList } from '@/utils/helper'
 export default {
     data() {
         const validateNickname = (rule, value, callback) => {
@@ -83,20 +83,13 @@
                     { required: false, trigger: "blur", validator: validateTruename },
                 ],
             },
+            typeList:[],
         }
     },
     created() {
         const that = this;
         // 鑾峰彇瑙掕壊鍒楄〃
-        // this.$axios.get('')
-        // 鑾峰彇鐢ㄦ埛绫诲瀷鍒楄〃
-        // this.$axios.get('sccg/admin/list',{userType:0}).then(res=>{
-        //     console.log(res);
-        // })
-        // 鑾峰彇鍏ㄩ儴閮ㄩ棬鍒楄〃
-        // this.$axios.get('sccg/depart/page').then(res => {
-        //     that.typeList = res.data.records;
-        // })
+        this.getRoleTypeList(); 
     },
     methods: {
         handleUser() {
@@ -119,6 +112,10 @@
         },
         handleStop(){
             this.refresh();
+        },
+        // 鑾峰彇瑙掕壊绫诲瀷
+        async getRoleTypeList(){
+            this.typeList = await getTypeList(1,'09');
         }
     },
     props: ['refresh']
@@ -127,12 +124,12 @@
 <style lang="scss" scoped>
 .createUser {
     border-radius: 1px;
-    background-color: #09152f;
+    // background-color: #09152f;
 
     main {
         text-align: left;
         padding: 0 55px;
-        background-color: #09152f;
+        // background-color: #09152f;
         padding-bottom: 50px;
 
         .mainContent {
@@ -140,19 +137,19 @@
             justify-content: center;
             padding-top: 50px;
 
-            &::v-deep .el-form-item__label {
-                color: #4b9bb7;
-            }
+            // &::v-deep .el-form-item__label {
+            //     color: #4b9bb7;
+            // }
 
-            &::v-deep .el-input__inner {
-                background-color: #09152f;
-                border: 1px solid #17324c;
-            }
+            // &::v-deep .el-input__inner {
+            //     background-color: #09152f;
+            //     border: 1px solid #17324c;
+            // }
 
-            &::v-deep .el-textarea__inner {
-                background-color: #09152f;
-                border: 1px solid #17324c;
-            }
+            // &::v-deep .el-textarea__inner {
+            //     background-color: #09152f;
+            //     border: 1px solid #17324c;
+            // }
 
             .el-form-item__content {
                 width: 400px;

--
Gitblit v1.8.0