ソースを参照

:leaves:style: 去除一些多余项目

Ritchie 1 年間 前
コミット
d62475bd70

+ 1 - 23
src/assets/language/zh.json

@@ -998,7 +998,6 @@
     "relationAdmin": "关联上级",
     "apkMan": "apk管理",
     "merchantMan": "商户管理",
-    "accountOperation": "账户操作",
     "modifyRole": "修改角色",
     "whole": "全部",
     "roleAddedSuccessfully": "添加角色成功",
@@ -1207,18 +1206,6 @@
       "successful": "审核成功"
     }
   },
-  "uniPay": {
-    "selfRecharging": "自充值",
-    "machine": "机器",
-    "pleaseSelectAMachine": "请选择机器",
-    "pattern": "花型",
-    "pleaseSelectAPattern": "请选择花型",
-    "paymentMethod": "支付方式",
-    "weChat": "微信",
-    "alipay": "支付宝",
-    "placeOrder": "提交订单",
-    "orderNumber": "订单号"
-  },
   "changePassword": {
     "changePassword": "修改密码",
     "passwordLabel": "登录密码",
@@ -1467,16 +1454,7 @@
     "D396": "No.1006",
     "D491": "No.1007"
   },
-  "accountOperation": {
-    "title": "账户操作",
-    "accountAuthority": "账户权限",
-    "distributionSettings": "分销设置",
-    "settlementAccount": "结算账号",
-    "withdrawalAccountNo": "提现账号",
-    "standbyWithdrawalAccountNo": "备用提现账号",
-    "merchantManagement": "商户管理",
-    "labelMan": "分组管理"
-  },
+  
   "wechat": {
     "headerName": "绑定微信"
   },

+ 2 - 8
src/router/index.js

@@ -140,7 +140,7 @@ const router = createRouter({
       component: () => import("@/views/accountPer/index"),
       meta: { index: 1 },
     },
-    // 任务消息
+    // 任务消息/系统管理
     {
       path: "/taskMessage",
       name: "taskMessage",
@@ -202,13 +202,7 @@ const router = createRouter({
       component: () => import("@/views/taskMessage/Transaction.vue"),
       meta: { index: 1 },
     },
-    // 账户操作
-    {
-      path: "/accountOperation",
-      name: "accountOperation",
-      component: () => import("@/views/accountOperation/index"),
-      meta: { index: 1 },
-    },
+    
   ],
 });
 // 路由守卫处理

+ 0 - 64
src/service/huifuMch/index.js

@@ -1,64 +0,0 @@
-import axios from '@/utils/axios';
-import { stringToUrl } from '@/common/js/utils';
-
-
-// 新商户入驻申请
-export function newSaveHuifuMch(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/addApplication`, params);
-}
-
-// 汇付用户开户或业务开通
-export function openAccount(params) {
-    return axios.get(`/SZWL-SERVER/tHuifuMch/openAccount?${stringToUrl(params)}`);
-}
-
-// 商户入驻申请
-export function saveHuifuMch(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/addMerchant`, params);
-}
-
-// 获取审核信息
-export function getHuifuMchCheck(params) {
-    return axios.get(`/SZWL-SERVER/tHuifuMch/getHuifuMchCheck?${stringToUrl(params)}`);
-}
-
-// 上传材料图片
-export function uploadPic(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/uploadPic`, params);
-}
-
-// 新上传材料图片
-export function newUploadPic(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/newUploadPic`, params);
-}
-
-// 提交审核
-export function submitHuifuCheck(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/submitCheck`, params);
-}
-
-// 提交修改审核
-export function updateMerchant(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/updateMerchant`, params);
-}
-
-// 发送验证码
-export function sendSms(params) {
-    return axios.get(`/SZWL-SERVER/tHuifuMch/sendSms?${stringToUrl(params)}`);
-}
-
-// 获取商户号
-export function getHuifuId(params) {
-    return axios.get(`/SZWL-SERVER/tHuifuMch/getHuifuId?${stringToUrl(params)}`);
-}
-
-// 直接审核商户修改
-export function auditMerchantUpdate(params) {
-    return axios.post(`/SZWL-SERVER/tHuifuMch/auditMerchantUpdate`, params);
-}
-
-// 汇付账号修改审批
-export function auditUpdateMerchant(params) {
-    return axios.get(`/SZWL-SERVER/tHuifuMch/auditUpdateMerchant?${stringToUrl(params)}`);
-}
-

+ 0 - 27
src/service/scrap/address.js

@@ -1,27 +0,0 @@
-import axios from '../../utils/axios'
-
-export function addAddress(params) {
-  return axios.post('/address', params);
-}
-
-export function EditAddress(params) {
-  return axios.put('/address', params);
-}
-
-export function DeleteAddress(id) {
-  return axios.delete(`/address/${id}`);
-}
-
-export function getDefaultAddress() {
-  return axios.get('/address/default');
-}
-
-export function getAddressList() {
-  return axios.get('/address', { pageNumber: 1, pageSize: 1000 })
-}
-
-export function getAddressDetail(id) {
-  return axios.get(`/address/${id}`)
-}
-
-

+ 0 - 22
src/service/scrap/cart.js

@@ -1,22 +0,0 @@
-import axios from '../../utils/axios'
-
-export function addCart(params) {
-  return axios.post('/shop-cart', params);
-}
-
-export function modifyCart(params) {
-  return axios.put('/shop-cart', params);
-}
-
-export function getCart(params) {
-  return axios.get('/shop-cart', { params });
-}
-
-export function deleteCartItem(id) {
-  return axios.delete(`/shop-cart/${id}`);
-}
-
-export function getByCartItemIds(params) {
-  return axios.get('/shop-cart/settle', { params });
-}
-

+ 0 - 14
src/service/scrap/good.js

@@ -1,14 +0,0 @@
-import axios from '../../utils/axios'
-
-export function getDetail(id) {
-  return axios.get(`/goods/detail/${id}`);
-}
-
-export function getCategory() {
-  return axios.get('/categories');
-}
-
-export function search(params) {
-  return axios.get('/search', { params });
-}
-

+ 0 - 29
src/service/scrap/order.js

@@ -1,29 +0,0 @@
-import axios from '../../utils/axios'
-
-export function createOrder(params) {
-  return axios.post('/saveOrder', params);
-}
-
-export function getOrderList(params) {
-  return axios.get('/order', { params });
-}
-
-export function getOrderDetail(id) {
-  return axios.get(`/order/${id}`);
-}
-
-export function cancelOrder(id) {
-  return axios.put(`/order/${id}/cancel`);
-}
-
-export function confirmOrder(id) {
-  return axios.put(`/order/${id}/finish`)
-}
-
-export function payOrder(params) {
-  return axios.get('/paySuccess', { params })
-}
-
-
-
-

+ 0 - 10
src/store/actions.js

@@ -1,10 +0,0 @@
-import { getCart } from '../service/scrap/cart'
-
-export default {
-  async updateCart(ctx) {
-    const { data } = await getCart()
-    ctx.commit('addCart', {
-      count: data.length || 0
-    })
-  }
-}

+ 0 - 2
src/store/index.js

@@ -1,11 +1,9 @@
 import { createStore } from 'vuex'
 import state from './state'
-import actions from './actions'
 import mutations from './mutations'
 
 export default createStore({
   state,
   mutations,
-  actions,
   modules: {}
 })

+ 0 - 99
src/styles/accountOperation/index.less

@@ -1,99 +0,0 @@
-.taskMessagePage {
-  width: 100%;
-
-  .taskMessageBox {
-    width: 100%;
-    height: calc(100% - 60px);
-    overflow: auto;
-
-    .taskListRow {
-      width: 100%;
-      height: 53px;
-      flex-wrap: wrap;
-
-      .taskIcon {
-        width: 13%;
-        height: 100%;
-        position: relative;
-
-        &.deviceIcon::after {
-          content: '';
-          position: absolute;
-          background: #fff url('../../assets/accountOperation/accountAuthority.png') top center no-repeat;
-          background-size: 100%;
-          width: 0.53rem;
-          height: 0.7rem;
-          right: 0.18rem;
-          top: 0.4rem;
-        }
-
-        &.retailIcon::after {
-          content: '';
-          position: absolute;
-          background: #fff url('../../assets/accountOperation/retailIcon.png') top center no-repeat;
-          background-size: 100%;
-          width: 0.6rem;
-          height: 0.6rem;
-          right: 0.15rem;
-          top: 0.4rem;
-        }
-
-        &.withIcon::after {
-          content: '';
-          position: absolute;
-          background: #fff url('../../assets/accountOperation/withIcon.png') top center no-repeat;
-          background-size: 100%;
-          width: 0.6rem;
-          height: 0.6rem;
-          right: 0.15rem;
-          top: 0.4rem;
-        }
-
-        &.merIcon::after {
-          content: '';
-          position: absolute;
-          background: #fff url('../../assets/accountOperation/merchantManage.png') top center no-repeat;
-          background-size: 100%;
-          width: 0.66rem;
-          height: 0.6rem;
-          right: 0.15rem;
-          top: 0.4rem;
-        }
-
-        &.labelIcon::after {
-          content: '';
-          position: absolute;
-          background: #fff url('../../assets/accountOperation/labelMan.png') top center no-repeat;
-          background-size: 100%;
-          width: 0.53rem;
-          height: 0.6rem;
-          right: 0.2rem;
-          top: 0.4rem;
-        }
-
-      }
-
-      .taskRight {
-        width: 87%;
-        height: 100%;
-        position: relative;
-        border-bottom: 1px solid #e7eaf7;
-
-        &::after {
-          content: '';
-          position: absolute;
-          width: 6px;
-          height: 12px;
-          background: url('../../assets/accountOperation/right.png') top center no-repeat;
-          background-size: 100%;
-          right: 0.55rem;
-          top: 0.5rem;
-        }
-
-        .taskTitle {
-          line-height: 53px;
-        }
-      }
-    }
-  }
-}

+ 0 - 54
src/styles/uniPay/index.less

@@ -1,54 +0,0 @@
-.pageUniPay {
-    background-color: rgba(255, 255, 255, 1);
-    position: relative;
-    width: 375px;
-    height: calc(100% - 44px);
-    overflow: auto;
-    overflow: hidden;
-
-    // 修复弹窗右上角关闭图标的叠影问题
-    .van-cascader__close-icon {
-        font-size: 0px;
-    }
-
-    .van-cell {
-        margin-top: 13px;
-    }
-
-    .van-cell:after {
-        display: none;
-    }
-
-    .van-field__label {
-        width: 91px;
-    }
-
-    .volumeChangeButton {
-        background-color: #FF3456;
-        width: 220px;
-        height: 34px;
-        margin: 49px 0 0 78px;
-
-        .van-button__text {
-            font-size: 15px;
-        }
-    }
-
-    .van-radio__icon--checked .van-icon {
-        background-color: #FF3456;
-        border-color: #FF3456;
-    }
-
-    .box1 {
-        width: 375px;
-        height: 237px;
-    }
-
-    .van-cascader__option--selected {
-        color: #FF3456;
-    }
-
-    .van-tabs__line {
-        background-color: #FF3456 !important;
-    }
-}

+ 0 - 79
src/views/accountOperation/index.vue

@@ -1,79 +0,0 @@
-<template>
-  <!-- 任务消息列表 -->
-  <div class="taskMessagePage flex-col">
-    <s-header :name="$t('accountOperation.title')" :noback="false"></s-header>
-    <div class="taskMessageBox flex-col">
-      <!-- 账户权限 -->
-      <div class="taskListRow flex-col" @click="pushPageList('/accountPer')">
-        <div class="taskIcon tradingIcon"></div>
-        <div class="taskRight">
-          <div class="taskTitle">{{ $t('accountOperation.accountAuthority') }}</div>
-        </div>
-      </div>
-      <!-- 分销设置 -->
-      <div v-if="user.ifForeign != '1'" class="taskListRow flex-col" @click="pushPageList('/distributionSet')">
-        <div class="taskIcon retailIcon"></div>
-        <div class="taskRight">
-          <div class="taskTitle">{{ $t('accountOperation.distributionSettings') }}</div>
-        </div>
-      </div>
-      <!-- <div class="taskListRow flex-col" @click="pushPageList('/joinpayMch')">
-        <div class="taskIcon withIcon"></div>
-        <div class="taskRight">
-          <div class="taskTitle">{{ $t('accountOperation.withdrawalAccountNo') }}</div>
-        </div>
-      </div> -->
-      <!-- <div class="taskListRow flex-col" @click="pushPageList('/shandeMch')">
-	    <div class="taskIcon withIcon"></div>
-	    <div class="taskRight">
-	      <div class="taskTitle">{{$t('accountOperation.standbyWithdrawalAccountNo')}}</div>
-	    </div>
-	  </div> -->
-    <!-- 商户管理 -->
-      <!-- <div class="taskListRow flex-col" @click="pushPageList('/merchantManage')">
-        <div class="taskIcon merIcon"></div>
-        <div class="taskRight">
-          <div class="taskTitle">{{ $t('accountOperation.merchantManagement') }}</div>
-        </div>
-      </div> -->
-      <!-- 标签管理 -->
-      <!-- <div class="taskListRow flex-col" @click="pushPageList('/labelMan')">
-        <div class="taskIcon labelIcon"></div>
-        <div class="taskRight">
-          <div class="taskTitle">{{ $t('accountOperation.labelMan') }}</div>
-        </div>
-      </div> -->
-
-
-    </div>
-  </div>
-</template>
-
-<script>
-import { onMounted } from 'vue';
-import sHeader from "@/components/SimpleHeader";
-import { useRouter } from "vue-router";
-import { getLoginUser, styleUrl } from "@/common/js/utils";
-
-export default {
-  components: { sHeader },
-  setup() {
-    const router = useRouter();
-    styleUrl('accountOperation');
-    const user = getLoginUser();
-    // 初始化页面获取列表
-    onMounted(async () => { });
-    const pushPageList = (url) => {
-      router.push(url);
-    };
-    return {
-      pushPageList,
-      user,
-    };
-  }
-};
-</script>
-
-<style lang="less" scoped>
-@import "../../common/style/common.less";
-</style>

+ 0 - 172
src/views/role/add.vue

@@ -1,172 +0,0 @@
-<template>
-  <!-- 角色权限 - 添加角色 -->
-  <div class="accountPerPage flex-col">
-    <s-header :name="pageTitle" :noback="false"></s-header>
-    <div class="accountPerBox flex-col">
-      <van-form @submit="onSubmit">
-        <van-field v-model="roleName" name="roleName" :label="$t('role.roleNameLabel')"
-          :placeholder="$t('role.roleNamePlaceholder')"
-          :rules="[{ required: true, message: $t('role.roleNamePlaceholder') }]" />
-        <van-checkbox-group v-model="roleMenuCode" style="
-            display: flex;
-            flex-wrap: wrap;
-            align-items: center;
-            justify-content: flex-start;
-          ">
-          <van-checkbox v-for="(item, index) in menuCodeList" :key="index" :name="item.value"
-            style="width: 50%; padding: 1em">{{ item.label }}</van-checkbox>
-        </van-checkbox-group>
-        <!-- 操作 -->
-        <van-row justify="space-around" style="padding: 1em">
-          <van-button span="5" round type="primary" style="height: 2em; padding: 0 2em" native-type="submit">
-            {{ pageTitle }}
-          </van-button>
-        </van-row>
-      </van-form>
-    </div>
-    <!-- <van-popup v-model:show="roleShow" round position="bottom">
-      <van-cascader
-          v-model="roleList"
-          :title="$t('role.pleaseSelectARole')"
-          :options="roleOptions"
-          @close="roleShow = false"
-          @finish="onRoleFinish"
-      />
-    </van-popup>
-    <van-popup v-model:show="equipmentIdShow" round position="bottom">
-      <van-cascader
-          v-model="equipmentIds"
-          :title="$t('role.pleaseSelectAPattern')"
-          :options="equipmentIdsOptions"
-          @close="equipmentIdShow = false"
-          @finish="onEquipmentIdFinish"
-      />
-    </van-popup> -->
-  </div>
-</template>
-
-<script>
-import { onMounted, reactive, toRefs, ref } from "vue";
-import sHeader from "@/components/SimpleHeader";
-import { showFailToast, showSuccessToast } from "vant";
-// import { getSysRoleList, getEquipmentList } from "../../service/accountPar/index";
-import { addSysRole, updateSysRole } from "../../service/role/index";
-import { getLoginUser, styleUrl } from "@/common/js/utils";
-import { useRouter } from "vue-router";
-import { useI18n } from "vue-i18n";
-
-export default {
-  components: { sHeader },
-  setup() {
-    // 引入语言
-    const { t } = useI18n();
-    const router = useRouter();
-    const user = getLoginUser();
-    const pageTitle = ref("");
-    const roleName = ref("");
-    // 设置的权限
-    const menuCodeList = ref([]);
-    const roleMenuCode = ref([]);
-    // const roleShow = ref(false);
-    const roleText = ref("");
-    // const roleOptions = ref([]);
-    // const onRoleFinish = ({ selectedOptions }) => {
-    //   roleShow.value = false;
-    //   roleText.value = selectedOptions[0].text;
-    // };
-    // const equipmentIdShow = ref(false);
-    const equipmentIdText = ref("");
-    const equipmentIdsOptions = ref([]);
-    // const onEquipmentIdFinish = ({ selectedOptions }) => {
-    //   equipmentIdShow.value = false;
-    //   equipmentIdText.value = selectedOptions[0].text;
-    // };
-    let addParams = reactive({
-      username: "",
-      password: "",
-      name: "",
-      phone: "",
-      isEnabled: true,
-      // roleList: "",
-      equipmentIds: "",
-    });
-    let roleItem = null;
-    onMounted(async () => {
-      // 加载样式
-      styleUrl('role');
-      roleItem = localStorage.getItem("roleItem");
-      if (roleItem) {
-        roleItem = JSON.parse(roleItem);
-        roleName.value = roleItem.roleName;
-        roleMenuCode.value = roleItem.menuCodesJson;
-        pageTitle.value = t("role.modifyRole");
-      } else {
-        pageTitle.value = t("role.addRole");
-      }
-
-    });
-    
-
-    const onSubmit = async () => {
-      if (roleItem) {
-        updateSysRoleFun();
-      } else {
-        addSysRoleFun();
-      }
-    };
-    const addSysRoleFun = async () => {
-      const params = {
-        adminId: user.id,
-        roleName: roleName.value,
-        menuCodeList: roleMenuCode.value,
-      };
-      const { data } = await addSysRole(params);
-      if (data.code === "00000") {
-        showSuccessToast(t("role.roleAddedSuccessfully"));
-        // router.push("/role");
-        router.go(-1);
-      } else {
-        showFailToast(`${t("role.failedToAddRole")} ${data.message}`);
-      }
-      console.log("onSubmit", data);
-    };
-    const updateSysRoleFun = async () => {
-      const params = {
-        adminId: user.id,
-        roleId: roleItem.roleId,
-        roleName: roleName.value,
-        menuCodeList: roleMenuCode.value,
-      };
-      const { data } = await updateSysRole(params);
-      if (data.code === "00000") {
-        showSuccessToast(t("role.successfullyModifiedRole"));
-        // router.go(-1);
-        router.replace("/role");
-      } else {
-        showFailToast(`${t("role.failedToModifyRole")} ${data.message}`);
-      }
-      console.log("onSubmit", data);
-    };
-    return {
-      pageTitle,
-      roleName,
-      menuCodeList,
-      roleMenuCode,
-      // roleShow,
-      roleText,
-      // roleOptions,
-      // onRoleFinish,
-      // equipmentIdShow,
-      equipmentIdText,
-      equipmentIdsOptions,
-      // onEquipmentIdFinish,
-      ...toRefs(addParams),
-      onSubmit,
-    };
-  },
-};
-</script>
-
-<style lang="less" scoped>
-@import "../../common/style/common.less";
-</style>

+ 0 - 153
src/views/role/index.vue

@@ -1,153 +0,0 @@
-<template>
-  <!-- 角色权限设置 -->
-  <div class="accountPerPage flex-col">
-    <s-header :name="$t('role.rolePermissionSettings')" :noback="false"></s-header>
-    <!-- <s-header :name="$t('role.rolePermissionSettings')" :noback="false" targetPath="/accountPer"></s-header> -->
-    <!-- <van-nav-bar :title="$t('role.rolePermissionSettings')" left-text="" left-arrow @click-left="onClickLeft" /> -->
-
-    <div class="accountPerBox flex-col">
-      <div class="searchRow flex-row justify-between">
-        <div class="flex-col">
-          <div class="flex-row justify-between bd3">
-            <div class="flex-col outer4"></div>
-            <span class="flex-col txt2">{{ $t('role.total') }}<span class="discountNumber">{{ accountPerList.length
-            }}</span>{{ $t('role.inTotal') }}</span>
-          </div>
-        </div>
-        <div class="flex-col">
-          <div class="operBox">
-            <div class="addBox" @click="pushAdd()">
-              <img class="iconImg" src="../../assets/accountPer/addicon.png" />
-              <span>{{ $t('role.addTo') }}</span>
-            </div>
-          </div>
-        </div>
-      </div>
-      <div class="listBox">
-        <div v-for="(item, index) in accountPerList" :key="index" class="listItem">
-          <div class="itemBox">
-            <div class="roleBox">
-              <div class="itemRow">{{ item.roleName }}</div>
-              <div class="itemRow" style="color: #8787a6;">
-                <span v-for="(role, rindex) in item.menuCodesJson" :key="rindex" class="roleItem">{{ showRole(role)
-                }}</span>
-              </div>
-            </div>
-            <div class="operBox">
-              <div class="operSet" @click="roleEdit(item)">
-                <img class="iconImg" src="../../assets/edit.png" />
-                <span class="operText">{{ $t('role.edit') }}</span>
-              </div>
-              <div class="operDelter" @click="roleDelete(item)">
-                <img class="iconImg" src="../../assets/delete.png" />
-                <span class="operText">{{ $t('role.delete') }}</span>
-              </div>
-            </div>
-          </div>
-          <!-- <div class="tipBox" v-if="item.isUse === '0'">已生效</div>
-          <div class="tipBox isUseTip" v-if="item.isUse === '1'">已暂停</div> -->
-        </div>
-      </div>
-    </div>
-    <van-dialog v-model:show="operCheckShow" :title="$t('role.operationConfirmation')" :showConfirmButton="false"
-      :showCancelButton="false">
-      <div class="operCheckBox">
-        <div class="block5 flex-col"></div>
-        <span class="word10">{{ $t('role.pleaseConfirmAgainWhetherToOperate') }}</span>
-        <div class="block6 flex-row justify-between">
-          <div class="mod7 flex-col" @click="operCheckClear()">
-            <span class="info5">{{ $t('role.illThinkAboutItAgain') }}</span>
-          </div>
-          <div class="mod8 flex-col" @click="operCheck()">
-            <span class="info6">{{ $t('role.confirm') }}</span>
-          </div>
-        </div>
-      </div>
-    </van-dialog>
-  </div>
-</template>
-
-<script>
-import { onMounted, reactive, toRefs, ref } from 'vue';
-import sHeader from "@/components/SimpleHeader";
-import { getSysRoleAdminList, deleteSysRole } from '../../service/role/index';
-import { showFailToast } from "vant";
-import { getLoginUser, styleUrl } from "@/common/js/utils";
-import { useRouter } from "vue-router";
-
-export default {
-  name: "role",
-  components: { sHeader },
-  setup() {
-    // 引入语言
-    const user = getLoginUser();
-    const router = useRouter();
-    const searchRef = ref(null);
-    const accountPerList = ref([]); // 列表集合
-    const operCheckShow = ref(false);
-    
-    let searchParams = reactive({ adminId: user.id });
-    // 初始化页面获取列表
-    onMounted(async () => {
-      // 加载样式
-      styleUrl('role');
-      searchGetList();
-    });
-    // 搜索点击
-    const searchClick = () => { searchRef.value.showSearch(); };
-    // 跳转添加账号
-    const pushAdd = () => { localStorage.removeItem('roleItem'); router.push('/roleSet'); }
-    // 查询列表
-    const searchGetList = () => { accountPerList.value = []; getList(); }
-    // 搜索弹窗触发搜索
-    const search = (data) => {
-      searchParams = Object.assign(searchParams, data);
-      searchGetList();
-    };
-    // 获取设备列表数据
-    const getList = async () => {
-      const { data } = await getSysRoleAdminList(searchParams);
-      if (data.code === "00000") {
-        accountPerList.value = accountPerList.value.concat(data.data.map(item => {
-          return {
-            ...item,
-            menuCodesJson: JSON.parse(item.menuCodesJson)
-          }
-        }));
-        console.log(accountPerList.value);
-      } else { showFailToast(data.message); }
-    };
-    
-    let deleteRoleId = '';
-    const roleDelete = (item) => { console.log('roleDelete', item.roleId); deleteRoleId = item.roleId; operCheckShow.value = true; }
-    const operCheckClear = () => { operCheckShow.value = false; }
-    const operCheck = async () => {
-      const { data } = await deleteSysRole({ adminId: user.id, roleId: deleteRoleId });
-      if (data.code === '00000') {
-        operCheckShow.value = false;
-        searchGetList();
-      } else { showFailToast(data.message); }
-    }
-    const roleEdit = async (item) => { localStorage.setItem('roleItem', JSON.stringify(item)); router.push('/roleSet'); };
-
-
-    return {
-      searchRef,
-      searchClick,
-      pushAdd,
-      search,
-      accountPerList,
-      roleDelete,
-      operCheckShow,
-      operCheckClear,
-      operCheck,
-      roleEdit,
-      ...toRefs(searchParams),
-    };
-  },
-};
-</script>
-
-<style lang="less" scoped>
-@import "../../common/style/common.less";
-</style>

+ 1 - 4
src/views/user/UserIndex.vue

@@ -372,9 +372,7 @@ export default {
 
     });
 
-    const operUnipay = () => {
-      router.push({ path: "uniPay" });
-    };
+
     const onperExitSys = () => {
       kDialogRef.value.openDialog();
     };
@@ -443,7 +441,6 @@ export default {
 
     return {
       user,
-      operUnipay,
       onperExitSys,
       relationAdminName,
       pushPageList,