| | |
| | | img: "../Images/print.png", |
| | | path: '/H5/Config.aspx' |
| | | } |
| | | ] |
| | | ], |
| | | actions: [],//列表的值 |
| | | orgName: "",//线体名称 |
| | | orgId: "",//线体编号 |
| | | show: false,//列表展示 |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | |
| | | }); |
| | | }, |
| | | goOrg() { |
| | | changeOrg() { |
| | | this.show = true; |
| | | var that = this; |
| | | this.$dialog.confirm({ |
| | | title: '友情提示', |
| | | message: '确定切换当前组织?', |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消' |
| | | }) |
| | | .then(() => { |
| | | window.location.href = "/UserLogin.aspx"; |
| | | that.actions = []; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Login/changeOrg', { |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | |
| | | if (json.data.tbBillList.length <= 0) { |
| | | that.$toast.fail("没有可用的数据"); |
| | | that.$playSound('error'); |
| | | } else { |
| | | that.itemInfo = json.data.tbBillList; |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { |
| | | name: item.orgName, |
| | | orgId: item.orgId, // 新增 |
| | | orgNo: item.orgNo // 新增 |
| | | }; |
| | | }); |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(() => { |
| | | // on cancel |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | |
| | | onSelect(action) { |
| | | //this.xtNum = action.lineNo; // 绑定line_no到xtNum字段 |
| | | //console.log("选择的线体编号:", this.xtNum); |
| | | //this.xtName = action.name; // 绑定name到xtName字段 |
| | | //this.show = false; |
| | | |
| | | Cookies.set('orgId', action.orgId); |
| | | Cookies.set('orgNo', action.orgNo); |
| | | Cookies.set('orgName', action.name); |
| | | this.show = false; |
| | | }, |
| | | } |
| | | }) |
| | |
| | | <style> |
| | | .van-field__control { |
| | | text-align:right !important; |
| | | color: #0283EF; |
| | | } |
| | | </style> |
| | | </asp:Content> |
| | |
| | | placeholder="" |
| | | @click="goMsg()" |
| | | ></van-field>--%> |
| | | |
| | | <van-field |
| | | label="当前组织" |
| | | :value="Cookies.get('orgName') || '暂无组织信息'" |
| | | readonly |
| | | input-align="center" |
| | | class="org-field bold-center" |
| | | :style="{ |
| | | fontWeight: '700' |
| | | }" |
| | | ></van-field> |
| | | |
| | | <van-field |
| | | readonly |
| | | is-link |
| | | v-model="cardType" |
| | | label="切换组织" |
| | | placeholder="" |
| | | @click="changeOrg" |
| | | ></van-field> |
| | | |
| | | <van-field |
| | | readonly |
| | | is-link |
| | |
| | | placeholder="" |
| | | @click="goOut" |
| | | ></van-field> |
| | | |
| | | |
| | | <van-action-sheet v-model="show" :actions="actions" @select="onSelect" ></van-action-sheet> |
| | | </van-cell-group> |
| | | </asp:Content> |
| | | <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> |
| | |
| | | </asp:Content> |
| | | <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> |
| | | <script src="Js/comWebNav.js"></script> |
| | | <script src="Js/My.js?<%=123452 %>"></script> |
| | | <script src="Js/My.js?<%=123455 %>"></script> |
| | | </asp:Content> |
| | | |
| | |
| | | .bg-info { |
| | | background-color: #fff; |
| | | } |
| | | .org-info { |
| | | height: 0.5rem; |
| | | line-height: 0.5rem; |
| | | padding: 0 0.16rem; |
| | | } |
| | | </style> |
| | | </asp:Content> |
| | | |
| | |
| | | <van-notice-bar |
| | | :scrollable="false" |
| | | :text="'当前组织:' + (Cookies.get('orgName') || '暂无组织信息')" |
| | | style="height: 0.5rem; line-height: 0.5rem; padding: 0 0.16rem" |
| | | class="org-info" |
| | | /></van-notice-bar> |
| | | <div class="content-wrapper"> |
| | | <van-nav-bar |