提交 7a9b9854 编写于 作者: ibizdev's avatar ibizdev

tony001 部署微服务应用 [TrainSys,Mob]

上级 15b37626
...@@ -13,11 +13,23 @@ window.Environment = { ...@@ -13,11 +13,23 @@ window.Environment = {
// mockDcSystemId: '941127f9d839f87308f1c4db3b0a2de4', // mockDcSystemId: '941127f9d839f87308f1c4db3b0a2de4',
// appId: 'trainsys__mob', // appId: 'trainsys__mob',
// mockDcSystemId: '84847aa970ba3db7bbe00754aed3888d', // mockDcSystemId: '84847aa970ba3db7bbe00754aed3888d',
appId: 'sztrainsys__mob',
mockDcSystemId: 'ac2720c74d5456b40e24aeaf6ffffbd2',
// appId: 'ibizdemoold__sample', // appId: 'ibizdemoold__sample',
// mockDcSystemId: 'ibizdemoold', // mockDcSystemId: 'ibizdemoold',
appId: 'ls__lsmob', // appId: 'ls__lsmob',
mockDcSystemId: 'LS', // mockDcSystemId: 'LS',
// appId: 'pms__sclpmsmob',
// mockDcSystemId: 'pms',
appId: 'demosys__mobvue3',
mockDcSystemId: 'demosys',
// 创新孵化
// appId: 'cxfhmgmt__cxfhappmob',
// mockDcSystemId: 'cxfhmgmt',
// 应用标题 // 应用标题
AppTitle: '应用首页', AppTitle: '应用首页',
hub: false, hub: false,
enableMqtt: true,
mqttUrl: '/portal/mqtt/mqtt',
// isLocalModel: true,
}; };
...@@ -9,4 +9,4 @@ ...@@ -9,4 +9,4 @@
/*! /*!
* systemjs-plugins 0.0.1 (https://gitee.com/Yuzuriha_Inori/systemjs-plugins.git) * systemjs-plugins 0.0.1 (https://gitee.com/Yuzuriha_Inori/systemjs-plugins.git)
*/ */
(function(g){typeof define=="function"&&define.amd?define(g):g()})(function(){"use strict";function g(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function d(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function P(a,e){for(var r="",i=0,t=-1,l=0,n,s=0;s<=a.length;++s){if(s<a.length)n=a.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(t===s-1||l===1))if(t!==s-1&&l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var o=r.lastIndexOf("/");if(o!==r.length-1){o===-1?(r="",i=0):(r=r.slice(0,o),i=r.length-1-r.lastIndexOf("/")),t=s,l=0;continue}}else if(r.length===2||r.length===1){r="",i=0,t=s,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+a.slice(t+1,s):r=a.slice(t+1,s),i=s-t-1;t=s,l=0}else n===46&&l!==-1?++l:l=-1}return r}function S(a,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+a+i:i}var v={resolve:function(){for(var e="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(i===void 0&&(i=process.cwd()),l=i),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=P(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=P(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];d(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":v.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=v.resolve(e),r=v.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var t=e.length,l=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var s=r.length,o=s-n,u=l<o?l:o,c=-1,f=0;f<=u;++f){if(f===u){if(o>u){if(r.charCodeAt(n+f)===47)return r.slice(n+f+1);if(f===0)return r.slice(n+f)}else l>u&&(e.charCodeAt(i+f)===47?c=f:f===0&&(c=0));break}var _=e.charCodeAt(i+f),k=r.charCodeAt(n+f);if(_!==k)break;_===47&&(c=f)}var h="";for(f=i+c+1;f<=t;++f)(f===t||e.charCodeAt(f)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+r.slice(n+c):(n+=c,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,t=-1,l=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!l){t=n;break}}else l=!1;return t===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var i=0,t=-1,l=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,o=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===47){if(!l){i=n+1;break}}else o===-1&&(l=!1,o=n+1),s>=0&&(u===r.charCodeAt(s)?--s===-1&&(t=n):(s=-1,t=o))}return i===t?t=o:t===-1&&(t=e.length),e.slice(i,t)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!l){i=n+1;break}}else t===-1&&(l=!1,t=n+1);return t===-1?"":e.slice(i,t)}},extname:function(e){d(e);for(var r=-1,i=0,t=-1,l=!0,n=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(o===47){if(!l){i=s+1;break}continue}t===-1&&(l=!1,t=s+1),o===46?r===-1?r=s:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return S("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(var n=-1,s=0,o=-1,u=!0,c=e.length-1,f=0;c>=l;--c){if(i=e.charCodeAt(c),i===47){if(!u){s=c+1;break}continue}o===-1&&(u=!1,o=c+1),i===46?n===-1?n=c:f!==1&&(f=1):n!==-1&&(f=-1)}return n===-1||o===-1||f===0||f===1&&n===o-1&&n===s+1?o!==-1&&(s===0&&t?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(s,o)):(s===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,o)):(r.name=e.slice(s,n),r.base=e.slice(s,o)),r.ext=e.slice(n,o)),s>0?r.dir=e.slice(0,s-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};v.posix=v;var L=v,C=g(L),p=Object.defineProperty,E=(a,e,r)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,A=(a,e,r)=>(E(a,typeof e!="symbol"?e+"":e,r),r),D=(a,e,r)=>new Promise((i,t)=>{var l=o=>{try{s(r.next(o))}catch(u){t(u)}},n=o=>{try{s(r.throw(o))}catch(u){t(u)}},s=o=>o.done?i(o.value):Promise.resolve(o.value).then(l,n);s((r=r.apply(a,e)).next())});class w{constructor(e){A(this,"baseDir"),A(this,"styleElementMap",new Map),A(this,"url"),this.url=new URL(e);const r=C.dirname(this.url.pathname);this.baseDir=r}dir(e){return C.resolve(this.baseDir,e)}loadStyle(e){return D(this,null,function*(){const r=e.map(i=>{const t=this.dir(i);return this.styleElementMap.has(t)?!1:(this.styleElementMap.set(t,null),new Promise((l,n)=>{const s=document.createElement("link");s.setAttribute("type","text/css"),s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.onload=l,s.onerror=n,document.head.appendChild(s)}))});yield Promise.all(r)})}}var M=Object.defineProperty,R=(a,e,r)=>e in a?M(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,y=(a,e,r)=>(R(a,typeof e!="symbol"?e+"":e,r),r),b=(a,e,r)=>new Promise((i,t)=>{var l=o=>{try{s(r.next(o))}catch(u){t(u)}},n=o=>{try{s(r.throw(o))}catch(u){t(u)}},s=o=>o.done?i(o.value):Promise.resolve(o.value).then(l,n);s((r=r.apply(a,e)).next())});class m{static addImportStyleMap(e,r){const i=new w(e);this.map.set(i,r)}static init(){const e=this,r=System.constructor.prototype.resolve;System.constructor.prototype.resolve=function(i,t){return Promise.resolve(r.call(this,i,t)).then(l=>b(this,null,function*(){return l&&(yield e.loadStyle(i)),l}))}}static loadStyle(e){return b(this,null,function*(){this.isLoaded===!1&&(this.isLoaded=!0,this.configLoadPromise=this.resolveConfig()),this.configLoadPromise&&(yield this.configLoadPromise);const r=[];this.map.forEach((i,t)=>{const l=i[e];l&&(Array.isArray(l)?r.push(t.loadStyle(l)):r.push(t.loadStyle([l])))}),yield Promise.all(r)})}static resolveConfig(){return b(this,null,function*(){const e=document.querySelectorAll("script"),i=Array.from(e).map(t=>b(this,null,function*(){if(t.type==="systemjs-importmap"){const l=yield window.fetch(t.src);if(l.ok){const n=yield l.json();if(n.styles){const s=new w(t.src);this.map.set(s,n.styles)}}}}));yield Promise.all(i),this.configLoadPromise&&(this.configLoadPromise=null)})}}y(m,"map",new Map),y(m,"styleElementMap",new Map),y(m,"configLoadPromise",null),y(m,"isLoaded",!1),m.init()}); (function(g){typeof define=="function"&&define.amd?define(g):g()})(function(){"use strict";function g(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function d(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function P(o,e){for(var r="",i=0,t=-1,l=0,n,s=0;s<=o.length;++s){if(s<o.length)n=o.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(t===s-1||l===1))if(t!==s-1&&l===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var a=r.lastIndexOf("/");if(a!==r.length-1){a===-1?(r="",i=0):(r=r.slice(0,a),i=r.length-1-r.lastIndexOf("/")),t=s,l=0;continue}}else if(r.length===2||r.length===1){r="",i=0,t=s,l=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(t+1,s):r=o.slice(t+1,s),i=s-t-1;t=s,l=0}else n===46&&l!==-1?++l:l=-1}return r}function _(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var v={resolve:function(){for(var e="",r=!1,i,t=arguments.length-1;t>=-1&&!r;t--){var l;t>=0?l=arguments[t]:(i===void 0&&(i=process.cwd()),l=i),d(l),l.length!==0&&(e=l+"/"+e,r=l.charCodeAt(0)===47)}return e=P(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(d(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=P(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return d(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];d(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":v.normalize(e)},relative:function(e,r){if(d(e),d(r),e===r||(e=v.resolve(e),r=v.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var t=e.length,l=t-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var s=r.length,a=s-n,c=l<a?l:a,u=-1,f=0;f<=c;++f){if(f===c){if(a>c){if(r.charCodeAt(n+f)===47)return r.slice(n+f+1);if(f===0)return r.slice(n+f)}else l>c&&(e.charCodeAt(i+f)===47?u=f:f===0&&(u=0));break}var S=e.charCodeAt(i+f),z=r.charCodeAt(n+f);if(S!==z)break;S===47&&(u=f)}var h="";for(f=i+u+1;f<=t;++f)(f===t||e.charCodeAt(f)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(d(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,t=-1,l=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!l){t=n;break}}else l=!1;return t===-1?i?"/":".":i&&t===1?"//":e.slice(0,t)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');d(e);var i=0,t=-1,l=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,a=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!l){i=n+1;break}}else a===-1&&(l=!1,a=n+1),s>=0&&(c===r.charCodeAt(s)?--s===-1&&(t=n):(s=-1,t=a))}return i===t?t=a:t===-1&&(t=e.length),e.slice(i,t)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!l){i=n+1;break}}else t===-1&&(l=!1,t=n+1);return t===-1?"":e.slice(i,t)}},extname:function(e){d(e);for(var r=-1,i=0,t=-1,l=!0,n=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a===47){if(!l){i=s+1;break}continue}t===-1&&(l=!1,t=s+1),a===46?r===-1?r=s:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||t===-1||n===0||n===1&&r===t-1&&r===i+1?"":e.slice(r,t)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return _("/",e)},parse:function(e){d(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),t=i===47,l;t?(r.root="/",l=1):l=0;for(var n=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;u>=l;--u){if(i=e.charCodeAt(u),i===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),i===46?n===-1?n=u:f!==1&&(f=1):n!==-1&&(f=-1)}return n===-1||a===-1||f===0||f===1&&n===a-1&&n===s+1?a!==-1&&(s===0&&t?r.base=r.name=e.slice(1,a):r.base=r.name=e.slice(s,a)):(s===0&&t?(r.name=e.slice(1,n),r.base=e.slice(1,a)):(r.name=e.slice(s,n),r.base=e.slice(s,a)),r.ext=e.slice(n,a)),s>0?r.dir=e.slice(0,s-1):t&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};v.posix=v;var L=v,y=g(L),E=Object.defineProperty,M=(o,e,r)=>e in o?E(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,b=(o,e,r)=>(M(o,typeof e!="symbol"?e+"":e,r),r),D=(o,e,r)=>new Promise((i,t)=>{var l=a=>{try{s(r.next(a))}catch(c){t(c)}},n=a=>{try{s(r.throw(a))}catch(c){t(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,n);s((r=r.apply(o,e)).next())});class w{constructor(e){b(this,"baseDir"),b(this,"styleElementMap",new Map),b(this,"url"),b(this,"regex",/^https?:\/\//),this.url=this.regex.test(e)?new URL(e):new URL(e,y.join(location.origin,location.pathname));const r=y.dirname(this.url.pathname);this.baseDir=r}dir(e){return this.regex.test(e)?e:y.resolve(this.baseDir,e)}loadStyle(e){return D(this,null,function*(){const r=e.map(i=>{const t=this.dir(i);return this.styleElementMap.has(t)?!1:(this.styleElementMap.set(t,null),new Promise((l,n)=>{const s=document.createElement("link");s.setAttribute("type","text/css"),s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.onload=l,s.onerror=n,document.head.appendChild(s)}))});yield Promise.all(r)})}}var R=Object.defineProperty,k=(o,e,r)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,A=(o,e,r)=>(k(o,typeof e!="symbol"?e+"":e,r),r),C=(o,e,r)=>new Promise((i,t)=>{var l=a=>{try{s(r.next(a))}catch(c){t(c)}},n=a=>{try{s(r.throw(a))}catch(c){t(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,n);s((r=r.apply(o,e)).next())});const m=class p{static addImportStyleMap(e,r){const i=new w(e);this.map.set(i,r)}static init(){const e=this,r=System.constructor.prototype.resolve;System.constructor.prototype.resolve=function(t,l){return Promise.resolve(r.call(this,t,l)).then(n=>C(this,null,function*(){return n&&(yield e.loadStyle(t)),n}))};const i=System.constructor.prototype.addImportMap;System.constructor.prototype.addImportMap=function(t){i.call(this,t),t.styles&&p.addImportStyleMap(y.join(location.origin,location.pathname),t.styles)}}static loadStyle(e){return C(this,null,function*(){this.isLoaded===!1&&(this.isLoaded=!0,this.configLoadPromise=this.resolveConfig()),this.configLoadPromise&&(yield this.configLoadPromise);const r=[];this.map.forEach((i,t)=>{const l=i[e];l&&(Array.isArray(l)?r.push(t.loadStyle(l)):r.push(t.loadStyle([l])))}),yield Promise.all(r)})}static resolveConfig(){return C(this,null,function*(){const e=document.querySelectorAll("script"),i=Array.from(e).map(t=>C(this,null,function*(){if(t.type==="systemjs-importmap"){const l=yield window.fetch(t.src);if(l.ok){const n=yield l.json();if(n.styles){const s=new w(t.src);this.map.set(s,n.styles)}}}}));yield Promise.all(i),this.configLoadPromise&&(this.configLoadPromise=null)})}};A(m,"map",new Map),A(m,"styleElementMap",new Map),A(m,"configLoadPromise",null),A(m,"isLoaded",!1),m.init()});
@mixin login-view-form-item-style {
@include flex(row, flex-start, center);
ion-icon {
margin-right: 5%;
}
.van-field {
position: relative;
padding: 0;
overflow: visible;
.van-field__error-message {
position: absolute;
top: 20px;
}
}
input {
color: #fff;
background: #373447;
border: none;
&:-webkit-autofill {
box-shadow: 0 0 0 1000px #373447 inset;
-webkit-text-fill-color: #fff;
}
}
.van-field__control::placeholder {
color: #fff;
background: #373447;
}
height: 40%;
font-size: 14px;
border-bottom: 1px solid #565366;
}
@include b(login-view) {
width: 100vw;
height: 100vh;
color: #fff;
background: #373447;
@include b(login-view-logo) {
height: 40%;
@include flex(column, center, center);
@include b(login-view-logo-img) {
margin-top: 15%;
}
@include b(login-view-title) {
margin-top: 5%;
font-size: 16px;
}
}
@include b(login-view-form) {
height: 20%;
padding: 0 10%;
@include b(login-view-user) {
@include login-view-form-item-style;
}
@include b(login-view-password) {
@include login-view-form-item-style;
}
}
@include b(login-view-btns) {
height: 40%;
padding: 0 10%;
@include b(login-view-login-btn) {
width: 100%;
margin: 0;
font-size: 15px;
color: #fff;
background: #312e3f;
border: none;
border-radius: 0;
&:hover {
background: #4a4658;
}
}
}
}
import { CoreConst } from '@ibiz-template/core';
import { useNamespace } from '@ibiz-template/vue3-util';
import { computed, defineComponent, reactive, Ref, ref } from 'vue';
import { useRoute } from 'vue-router';
import './login-view.scss';
import { getCookie } from 'qx-util';
export const LoginView = defineComponent({
setup() {
const loading = ref(false);
const formRef = ref<IData | null>(null);
const route = useRoute();
const ru = (route.query.ru as string) || '/';
const loginData = reactive({
username: '',
password: '',
});
const login = async () => {
try {
if (!loginData.username) {
ibiz.notification.error({
desc: '请填写用户名',
});
return;
}
if (!loginData.password) {
ibiz.notification.error({
desc: '请填写密码',
});
return;
}
loading.value = true;
const bol = await ibiz.auth.login(
loginData.username,
loginData.password,
);
if (bol) {
window.location.hash = ru;
window.location.reload();
}
loading.value = false;
} catch (error) {
ibiz.notification.error({
desc: (error as IData)?.response?.data?.message || '登录失败',
});
loading.value = false;
}
};
const title = computed(() => {
return ibiz.env.AppTitle;
});
// 请求头
const headers: Ref<IData> = ref({
Authorization: `Bearer ${getCookie(CoreConst.TOKEN)}`,
});
const uploadFile = (file: IData) => {
console.log(file);
// 创建一个空对象实例
const formData = new FormData();
// 调用append()方法添加数据
formData.append('file', file.file);
return new Promise((resolve, reject) => {
ibiz.net
.axios({
url: '/api/demosys__mobvue3/viewtests/asyncimportdata2?srfimporttag=DataImport',
method: 'POST',
data: formData,
headers: headers.value,
})
.then(res => {
if (res.status === 200) {
console.log(88, res);
resolve(true);
} else {
reject();
}
})
.catch(() => {
reject();
});
});
};
const test = (data: IData) => {
uploadFile(data);
};
return { loginData, login, title, loading, formRef, test };
},
render() {
const ns = useNamespace('login-view');
return (
<div class={ns.b()}>
<div class={ns.b('logo')}>
<img class={ns.b('logo-img')} src='./assets/img/login-logo.png' />
<div class={ns.b('title')}>{this.title}</div>
</div>
<van-form class={ns.b('form')} ref='formRef'>
<div class={ns.b('user')}>
<ion-icon name='person'></ion-icon>
<van-field
placeholder='请输入用户名'
name='用户名'
v-model={this.loginData.username}
rules={[{ required: true, message: '请填写用户名' }]}
></van-field>
</div>
<div class={ns.b('password')}>
<ion-icon name='lock-closed'></ion-icon>
<van-field
placeholder='请输入密码'
name='密码'
type='password'
v-model={this.loginData.password}
rules={[{ required: true, message: '请填写密码' }]}
></van-field>
</div>
</van-form>
<div class={ns.b('btns')}>
<van-button
loading={this.loading}
class={ns.b('login-btn')}
onClick={this.login}
>
登录
</van-button>
<van-uploader after-read={this.test}>测试导入</van-uploader>
</div>
</div>
);
},
});
...@@ -2,13 +2,13 @@ import { Router, createRouter, createWebHashHistory } from 'vue-router'; ...@@ -2,13 +2,13 @@ import { Router, createRouter, createWebHashHistory } from 'vue-router';
import { import {
AppRedirectView, AppRedirectView,
View404, View404,
LoginView,
useViewStack, useViewStack,
} from '@ibiz-template/mob-vue3-components'; } from '@ibiz-template/mob-vue3-components';
import { Modal, ViewMode } from '@ibiz-template/runtime'; import { Modal, ViewMode } from '@ibiz-template/runtime';
import { isNilOrEmpty } from 'qx-util'; import { isNilOrEmpty } from 'qx-util';
import { AuthGuard } from '../guard'; import { AuthGuard } from '../guard';
import { RouterShell, HomeView } from '@/components'; import { RouterShell, HomeView } from '@/components';
import { LoginView } from '@/components/login-view/login-view';
const getPropsCallback = (depth: number) => { const getPropsCallback = (depth: number) => {
if (depth === 1) { if (depth === 1) {
......
...@@ -55,6 +55,36 @@ ...@@ -55,6 +55,36 @@
git clone -b master $para2 trainsys/ git clone -b master $para2 trainsys/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd trainsys/ cd trainsys/
mkdir -p /var/lib/jenkins/appcache/64777BB9-78E2-44DD-AEF6-FF87AC45C1D5
if [ -e app_Mob/.dynamic ]
then
cd app_Mob
else
cd app_Mob/app
fi
sed -i "s#dstimage#$para5#g" swarm.yaml
if [[ $para3 = all ]];then
mv Dockerfile-ALL Dockerfile
set +e
sed -i "s#/api#/sztrainsys__mob#g" src/environments/environment.ts
sed -i "s#outputDir#//outputDir#g" vue.config.js
set -e
yarn
ln -s /var/lib/jenkins/appcache/64777BB9-78E2-44DD-AEF6-FF87AC45C1D5 node_modules/.cache
yarn build
else
if [ -e .dynamic ]
then
mv ../trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Mob model
else
mv ../../trainsys-core/src/main/resources/model/cn/ibizlab/trainsys/PSSYSAPPS/Mob model
fi
sed -i "s#srcimagename#$para4#g" Dockerfile-MODEL
mv Dockerfile-MODEL Dockerfile
fi
docker build -t $para5 .
docker push $para5
docker -H $para1 stack deploy --compose-file=swarm.yaml ebsx --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -1432,16 +1432,16 @@ ...@@ -1432,16 +1432,16 @@
"codeName" : "VMGroup2", "codeName" : "VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ] } ]
}, { }, {
......
...@@ -11189,16 +11189,16 @@ ...@@ -11189,16 +11189,16 @@
"codeName" : "VMGroup2", "codeName" : "VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ] } ]
}, { }, {
...@@ -11233,16 +11233,16 @@ ...@@ -11233,16 +11233,16 @@
"id" : "ViewMsg4" "id" : "ViewMsg4"
} }
}, { }, {
"name" : "消息类型-警告信息", "name" : "消息类型-错误信息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg5" "id" : "ViewMsg6"
} }
}, { }, {
"name" : "消息类型-错误信息", "name" : "消息类型-警告信息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg6" "id" : "ViewMsg5"
} }
} ] } ]
}, { }, {
...@@ -11259,34 +11259,41 @@ ...@@ -11259,34 +11259,41 @@
"codeName" : "VMGroup4", "codeName" : "VMGroup4",
"name" : "视图消息位置测试", "name" : "视图消息位置测试",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "消息位置-视图内容区", "name" : "消息位置-弹出",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg9" "id" : "ViewMsg10"
} }
}, { }, {
"name" : "消息位置-视图方", "name" : "消息位置-视图方",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg7" "id" : "ViewMsg8"
} }
}, { }, {
"name" : "消息位置-弹出", "name" : "消息位置-视图内容区",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg10" "id" : "ViewMsg9"
} }
}, { }, {
"name" : "消息位置-视图方", "name" : "消息位置-视图方",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg8" "id" : "ViewMsg7"
} }
} ] } ]
}, { }, {
"codeName" : "VMGroup8", "codeName" : "VMGroup8",
"name" : "【静态测试】", "name" : "【静态测试】",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "消息类型-错误信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg6"
},
"position" : "POPUP"
}, {
"name" : "关闭模式-无删除-上方-常规", "name" : "关闭模式-无删除-上方-常规",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
...@@ -11300,16 +11307,16 @@ ...@@ -11300,16 +11307,16 @@
}, },
"position" : "POPUP" "position" : "POPUP"
}, { }, {
"name" : "消息位置-视图内容区", "name" : "关闭模式-默认删除-上方-错误",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg9" "id" : "ViewMsg12"
} }
}, { }, {
"name" : "关闭模式-默认删除-上方-错误", "name" : "消息位置-视图内容区",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg12" "id" : "ViewMsg9"
} }
}, { }, {
"name" : "消息位置-视图下方", "name" : "消息位置-视图下方",
...@@ -11330,13 +11337,6 @@ ...@@ -11330,13 +11337,6 @@
"id" : "ViewMsg5" "id" : "ViewMsg5"
}, },
"position" : "POPUP" "position" : "POPUP"
}, {
"name" : "消息类型-错误信息",
"getPSAppViewMsg" : {
"modelref" : true,
"id" : "ViewMsg6"
},
"position" : "POPUP"
} ] } ]
}, { }, {
"codeName" : "VMGroup5", "codeName" : "VMGroup5",
...@@ -11364,16 +11364,16 @@ ...@@ -11364,16 +11364,16 @@
"codeName" : "VMGroup6", "codeName" : "VMGroup6",
"name" : "视图消息动态模式测试", "name" : "视图消息动态模式测试",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "动态模式-静态内容", "name" : "动态模式-实体数据集",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg15" "id" : "ViewMsg14"
} }
}, { }, {
"name" : "动态模式-实体数据集", "name" : "动态模式-静态内容",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg14" "id" : "ViewMsg15"
} }
} ] } ]
} ], } ],
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册