zuozhengqing
2023-12-22 3336d498af40d1053d9da10bd53b072bb3237031
修改侧边栏显示状态
3个文件已修改
24 ■■■■■ 已修改文件
src/common/untils/request.js 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/layout/components/appsidebar/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/other/payment/collectionPlan/AddCollectionPlan.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/common/untils/request.js
@@ -33,7 +33,7 @@
        prod:`//${window.location.hostname}:9080`,
        test:`//192.168.20.119:9080`,
        // 想跳到本地启动的登录页的话需要把dev改成你本地项目路径
        dev: `//192.168.8.111:8081`
        dev: `//192.168.20.158:8080`
    }
    return loginPathMap[environmentType()]
@@ -70,8 +70,8 @@
      return res
    } else if([2012,2013,2014,2015].includes(res.data.code)){
      if (isDev){
        alert("JWT失效")
        // window.location = getApsPage()+'/'
        alert("JWT失效,即将跳转至登录页..")
        window.location = getApsPage()+'/login'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/login'
@@ -89,8 +89,8 @@
  (error) => {
    if (error.response.status === 401){
      if (isDev){
        alert("JWT失效")
        // window.location = getApsPage()+'/'
        alert("JWT失效,即将跳转至登录页..")
        window.location = getApsPage()+'/login'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/login'
src/components/layout/components/appsidebar/index.vue
@@ -36,6 +36,7 @@
          <el-menu-item index="/backgroundConfig/rolePermssion">角色权限</el-menu-item>
        </el-submenu> -->
      </el-menu>
      <el-empty v-if="this.menus===null||this.menus===undefined||this.menus.length===0" :image-size="130" description="没有侧栏菜单"></el-empty>
    </div>
  </div>
</template>
@@ -93,4 +94,11 @@
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import "./index.scss";
::v-deep .el-empty{
  .el-empty__description{
    p{
      color: #dddd;
    }
  }
}
</style>
src/views/other/payment/collectionPlan/AddCollectionPlan.vue
@@ -198,7 +198,7 @@
      amount: 130,
      sourceType: this.editCommonConfig.sourceType, // 源单类型 1销售明细2服务合同3销售发票
      sourceId: this.editCommonConfig.infomation.id,
      principalId: this.getCookie('username')||0,
      principalId: '',
      planAmount: 0, // 计划金额
      firstDate: this.getCurrentDate(1),
      collectionType: 1,
@@ -238,7 +238,7 @@
        collectionType: this.collectionType,
        moneyType: "人民币",
        amountTotal: this.editCommonConfig.infomation.amountTotal,
        principalId:this.getCookie('username')
        principalId:''
      }
    },
    getCommonData() {
@@ -337,7 +337,7 @@
          id: 0,
          moneyType: "人民币",
          percent: ratio,
          principalId: this.principalId,
          principalId: Number(this.principalId),
          remark: "",
          sourceId: this.sourceId,
          sourceType: this.sourceType,