#
whycq
2023-10-19 efd62e7e5729cbd5c052837cf4c264fc7cef4ab6
#
4个文件已修改
3个文件已添加
92 ■■■■ 已修改文件
main.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/api/user/user.js 补丁 | 查看 | 原始文档 | blame | 历史
pages/authority/authority.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/cstmr/csmtr.vue 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/image/emptyList.png 补丁 | 查看 | 原始文档 | blame | 历史
uni.scss 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
main.js
@@ -1,7 +1,9 @@
import App from './App'
import uView from '@/uni_modules/uview-ui'
// #ifndef VUE3
import Vue from 'vue'
Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.baseUrl = 'http://192.168.4.188:9528'
App.mpType = 'app'
pages.json
@@ -41,16 +41,7 @@
            "style": {
                // "navigationStyle": "custom"
                "navigationBarTitleText": "甲方单位",
                "titleNView": {
                    "buttons": [
                        {
                            "text":"添加",
                            "fontSize":"14px",
                            "float":"right",
                            "width": "44px"
                        }
                    ]
                }
                "navigationStyle": "custom"
            }
        },
        {
@@ -152,6 +143,12 @@
            "style": {
                "navigationBarTitleText": "资料详情"
            }
        },
        {
            "path": "pages/authority/authority",
            "style": {
                "navigationBarTitleText": "账号"
            }
        }
        
        
pages/api/user/user.js
pages/authority/authority.vue
New file
@@ -0,0 +1,8 @@
<template>
</template>
<script>
</script>
<style>
</style>
pages/business/cstmr/csmtr.vue
@@ -1,5 +1,15 @@
<template>
    <view>
        <uni-nav-bar left-icon="left" title="甲方单位" @clickLeft="back" @clickRight="scan">
            <block slot="right">
                <view class="city">
                    <view>
                        <text class="uni-nav-bar-text">角色</text>
                    </view>
                    <uni-icons type="arrowdown" color="#333333" size="20" />
                </view>
            </block>
         </uni-nav-bar>
        <!-- 搜索框 -->
        <view class="search-bg">
            <uni-search-bar placeholder="客户代号/名称" bgColor="#f4f4f4"  @confirm="search" />
@@ -21,7 +31,9 @@
                </view>
            </view>
        </view>
        <uni-load-more :status="status" :icon-size="16" :content-text="contentText" />
        <!-- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" /> -->
        <u-empty v-if="true" icon="../../../static/image/emptyList.png"  />
    </view>
</template>
@@ -39,7 +51,6 @@
                    contentrefresh: '加载中',
                    contentnomore: '没有更多'
                },
            }
        },
        // 新建按钮事件
@@ -61,7 +72,48 @@
            this.status = 'more';
            this.getCsmtr()
        },
        mounted() {
            // this.getUserTree()
            // this.columns = [['aa','bb']]
        },
        methods: {
            open() {
                this.show = true
                console.log(this.columns);
            },
            getUserTree() {
                let _this = this
                uni.request({
                    url: 'http://127.0.0.1:9528/dept/user/tree/auth',
                    method: 'POST',
                    header: {'token' : uni.getStorageSync('token'),},
                }).then((res)=>{
                    console.log(res);
                })
                // success(res) {
                //     res = res.data
                //     res.data[0].childern
                //     let sel1 = []
                //     for (let k of res.data[0].children) {
                //         res.data[0].children
                //         sel1.push(k.title)
                //     }
                //     // _this.columns[0] = sel1
                // }
            },
            back() {
                uni.navigateBack({
                })
            },
            scan() {
                uni.navigateTo({
                    url: '/pages/authority/authority'
                })
            },
            getCsmtr1(e) {
                let that = this
                that.csmtrList = []
@@ -158,6 +210,14 @@
</script>
<style>
    .city {
        display: flex;
        align-items: center;
        margin-right: 4px;
    }
    .uni-nav-bar-text {
        font-size: 12px;
    }
    .c-list {
        width: 96%;
        min-height: 100rpx;
static/image/emptyList.png
uni.scss
@@ -12,6 +12,7 @@
 * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
 */
@import '@/uni_modules/uview-ui/theme.scss';
/* 颜色变量 */
/* 行为相关颜色 */