This commit is contained in:
kuaifan 2022-12-07 23:18:30 +08:00
parent 36bfaf3b94
commit 68ec8fb905
39 changed files with 40 additions and 40 deletions

View File

@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.21.42",
"version": "0.21.58",
"description": "DooTask is task management system.",
"scripts": {
"start": "./cmd dev",

2
public/css/app.css vendored

File diff suppressed because one or more lines are too long

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
public/js/build/410.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
public/js/build/60.js vendored Normal file
View File

@ -0,0 +1 @@
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[60],{44369:(t,a,e)=>{e.d(a,{Z:()=>n});var s=e(1519),o=e.n(s)()((function(t){return t[1]}));o.push([t.id,".input-box[data-v-05084f56]{align-items:center;display:flex}.input-box .input-box-push[data-v-05084f56]{opacity:.5;padding:0 12px 0 8px}.input-box .input-box-key[data-v-05084f56]{width:80px}",""]);const n=o},27060:(t,a,e)=>{e.r(a),e.d(a,{default:()=>c});const s={data:function(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted:function(){this.initData()},computed:{screenshotDisabled:function(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData:function(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage["__keyboard:data__"]||{})),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown:function(t){var a=t.key;8!==t.keyCode&&(a=a&&1===a.length?a.trim().toUpperCase():"")&&(this.formData.screenshot_key=a)},submitForm:function(){var t=this;this.$refs.formData.validate((function(a){a&&(window.localStorage["__keyboard:data__"]=$A.jsonStringify(t.formData),$A.bindScreenshotKey(t.formData),$A.messageSuccess("保存成功"))}))},resetForm:function(){this.formData=$A.cloneJSON(this.formData_bak)}}};var o=e(93379),n=e.n(o),i=e(44369),r={insert:"head",singleton:!1};n()(i.Z,r);i.Z.locals;const c=(0,e(51900).Z)(s,(function(){var t=this,a=t._self._c;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"".concat(t.$L("截图快捷键")," (Beta)"),prop:"screenshot"}},[a("div",{staticClass:"input-box"},[a("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),t._v(" "),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(" "),a("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),t._v(" "),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(" "),a("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t._v(" "),t.screenshotDisabled?a("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("至少选择一个功能键!")))]):t._e()])],1),t._v(" "),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("保存")))]),t._v(" "),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("重置")))])],1)],1)}),[],!1,null,"05084f56",null).exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[66],{99265:(t,e,n)=>{n.d(e,{Z:()=>r});var a=n(1519),o=n.n(a)()((function(t){return t[1]}));o.push([t.id,".drawio-content[data-v-380040ea],.drawio-content .drawio-iframe[data-v-380040ea]{height:100%;left:0;position:absolute;top:0;width:100%}.drawio-content .drawio-iframe[data-v-380040ea]{background:0 0;border:0;float:none;margin:-1px 0 0;max-width:none;outline:0;padding:0}.drawio-content .drawio-loading[data-v-380040ea]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}",""]);const r=o},41066:(t,e,n)=>{n.r(e),n.d(e,{default:()=>p});var a=n(20629),o=n(62065),r=n(33875);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c={name:"Drawio",components:{IFrame:o.Z},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data:function(){return{loadIng:!0,url:null,bakData:""}},created:function(){var t="en";switch(r.AX){case"CN":case"TC":t="zh"}var e=this.readOnly?1:0,n=this.readOnly?0:1,a=this.themeIsDark?"dark":"kennedy",o=this.title?encodeURIComponent(this.title):"",i="?title=".concat(o,"&chrome=").concat(n,"&lightbox=").concat(e,"&ui=").concat(a,"&lang=").concat(t,"&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json");this.$Electron?this.url=$A.originUrl("drawio/webapp/index.html".concat(i)):this.url=$A.apiUrl("../drawio/webapp/".concat(i))},mounted:function(){window.addEventListener("message",this.handleMessage)},beforeDestroy:function(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler:function(t){this.bakData!=$A.jsonStringify(t)&&(this.bakData=$A.jsonStringify(t),this.updateContent())},deep:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.rn)(["themeIsDark"])),methods:{formatZoom:function(t){return t+"%"},updateContent:function(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage:function(t){switch(t.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":void 0===this.value.xml&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":var e={xml:t.xml};this.bakData=$A.jsonStringify(e),this.$emit("input",e);break;case"save":this.$emit("saveData")}}}};var l=n(93379),d=n.n(l),u=n(99265),f={insert:"head",singleton:!1};d()(u.Z,f);u.Z.locals;const p=(0,n(51900).Z)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"drawio-content"},[e("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:t.url},on:{"on-message":t.onMessage}}),t._v(" "),t.loadIng?e("div",{staticClass:"drawio-loading"},[e("Loading")],1):t._e()],1)}),[],!1,null,"380040ea",null).exports}}]);
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[66],{99265:(t,e,n)=>{n.d(e,{Z:()=>r});var a=n(1519),o=n.n(a)()((function(t){return t[1]}));o.push([t.id,".drawio-content[data-v-380040ea],.drawio-content .drawio-iframe[data-v-380040ea]{height:100%;left:0;position:absolute;top:0;width:100%}.drawio-content .drawio-iframe[data-v-380040ea]{background:0 0;border:0;float:none;margin:-1px 0 0;max-width:none;outline:0;padding:0}.drawio-content .drawio-loading[data-v-380040ea]{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}",""]);const r=o},41066:(t,e,n)=>{n.r(e),n.d(e,{default:()=>m});var a=n(20629),o=n(62065),r=n(33875);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!==i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const l={name:"Drawio",components:{IFrame:o.Z},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data:function(){return{loadIng:!0,url:null,bakData:""}},created:function(){var t="en";switch(r.AX){case"CN":case"TC":t="zh"}var e=this.readOnly?1:0,n=this.readOnly?0:1,a=this.themeIsDark?"dark":"kennedy",o=this.title?encodeURIComponent(this.title):"",i="?title=".concat(o,"&chrome=").concat(n,"&lightbox=").concat(e,"&ui=").concat(a,"&lang=").concat(t,"&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json");this.$Electron?this.url=$A.originUrl("drawio/webapp/index.html".concat(i)):this.url=$A.apiUrl("../drawio/webapp/".concat(i))},mounted:function(){window.addEventListener("message",this.handleMessage)},beforeDestroy:function(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler:function(t){this.bakData!=$A.jsonStringify(t)&&(this.bakData=$A.jsonStringify(t),this.updateContent())},deep:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.rn)(["themeIsDark"])),methods:{formatZoom:function(t){return t+"%"},updateContent:function(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage:function(t){switch(t.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":void 0===this.value.xml&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":var e={xml:t.xml};this.bakData=$A.jsonStringify(e),this.$emit("input",e);break;case"save":this.$emit("saveData")}}}};var u=n(93379),d=n.n(u),f=n(99265),p={insert:"head",singleton:!1};d()(f.Z,p);f.Z.locals;const m=(0,n(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"drawio-content"},[e("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:t.url},on:{"on-message":t.onMessage}}),t._v(" "),t.loadIng?e("div",{staticClass:"drawio-loading"},[e("Loading")],1):t._e()],1)}),[],!1,null,"380040ea",null).exports}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[686],{78642:(t,a,e)=>{e.d(a,{Z:()=>n});var s=e(1519),o=e.n(s)()((function(t){return t[1]}));o.push([t.id,".input-box[data-v-3a1b355e]{align-items:center;display:flex}.input-box .input-box-push[data-v-3a1b355e]{opacity:.5;padding:0 12px 0 8px}.input-box .input-box-key[data-v-3a1b355e]{width:80px}",""]);const n=o},81686:(t,a,e)=>{e.r(a),e.d(a,{default:()=>c});const s={data:function(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted:function(){this.initData()},computed:{screenshotDisabled:function(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData:function(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage["__keyboard:data__"]||{})),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown:function(t){var a=t.key;8!==t.keyCode&&(a=a&&1===a.length?a.toUpperCase():"")&&(this.formData.screenshot_key=a)},submitForm:function(){var t=this;this.$refs.formData.validate((function(a){a&&(window.localStorage["__keyboard:data__"]=$A.jsonStringify(t.formData),$A.bindScreenshotKey(t.formData),$A.messageSuccess("保存成功"))}))},resetForm:function(){this.formData=$A.cloneJSON(this.formData_bak)}}};var o=e(93379),n=e.n(o),i=e(78642),r={insert:"head",singleton:!1};n()(i.Z,r);i.Z.locals;const c=(0,e(51900).Z)(s,(function(){var t=this,a=t._self._c;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"".concat(t.$L("截图快捷键")," (Beta)"),prop:"screenshot"}},[a("div",{staticClass:"input-box"},[a("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),t._v(" "),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(" "),a("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),t._v(" "),a("div",{staticClass:"input-box-push"},[t._v("+")]),t._v(" "),a("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t._v(" "),t.screenshotDisabled?a("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("至少选择一个功能键!")))]):t._e()])],1),t._v(" "),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("保存")))]),t._v(" "),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("重置")))])],1)],1)}),[],!1,null,"3a1b355e",null).exports}}]);

File diff suppressed because one or more lines are too long

2
public/js/build/752.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[804],{65804:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const o={data:function(){var t=this;return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("请输入旧密码!"),trigger:"change"},{type:"string",min:6,message:this.$L("密码长度至少6位"),trigger:"change"}],newpass:[{validator:function(e,r,s){""===r?s(new Error(t.$L("请输入新密码!"))):(""!==t.formDatum.checkpass&&t.$refs.formDatum.validateField("checkpass"),s())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("密码长度至少6位"),trigger:"change"}],checkpass:[{validator:function(e,r,s){""===r?s(new Error(t.$L("请重新输入新密码!"))):r!==t.formDatum.newpass?s(new Error(t.$L("两次密码输入不一致!"))):s()},required:!0,trigger:"change"}]}}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,r(20629).rn)(["userInfo"])),methods:{submitForm:function(){var t=this;this.$refs.formDatum.validate((function(e){e&&(t.loadIng++,t.$store.dispatch("call",{url:"users/editpass",data:t.formDatum}).then((function(e){var r=e.data;$A.messageSuccess("修改成功"),t.$store.dispatch("saveUserInfo",r),t.$refs.formDatum.resetFields()})).catch((function(t){var e=t.msg;$A.modalError(e)})).finally((function(e){t.loadIng--})))}))},resetForm:function(){this.$refs.formDatum.resetFields()}}};const n=(0,r(51900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[t.userInfo.changepass?e("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("请先修改登录密码!")))]):t._e(),t._v(" "),e("FormItem",{attrs:{label:t.$L("旧密码"),prop:"oldpass"}},[e("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),t._v(" "),e("FormItem",{attrs:{label:t.$L("新密码"),prop:"newpass"}},[e("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),t._v(" "),e("FormItem",{attrs:{label:t.$L("确认新密码"),prop:"checkpass"}},[e("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),t._v(" "),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("提交")))]),t._v(" "),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("重置")))])],1)],1)}),[],!1,null,null,null).exports}}]);
"use strict";(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[804],{65804:(t,e,r)=>{r.r(e),r.d(e,{default:()=>i});function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function a(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const n={data:function(){var t=this;return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("请输入旧密码!"),trigger:"change"},{type:"string",min:6,message:this.$L("密码长度至少6位"),trigger:"change"}],newpass:[{validator:function(e,r,s){""===r?s(new Error(t.$L("请输入新密码!"))):(""!==t.formDatum.checkpass&&t.$refs.formDatum.validateField("checkpass"),s())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("密码长度至少6位"),trigger:"change"}],checkpass:[{validator:function(e,r,s){""===r?s(new Error(t.$L("请重新输入新密码!"))):r!==t.formDatum.newpass?s(new Error(t.$L("两次密码输入不一致!"))):s()},required:!0,trigger:"change"}]}}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},(0,r(20629).rn)(["userInfo"])),methods:{submitForm:function(){var t=this;this.$refs.formDatum.validate((function(e){e&&(t.loadIng++,t.$store.dispatch("call",{url:"users/editpass",data:t.formDatum}).then((function(e){var r=e.data;$A.messageSuccess("修改成功"),t.$store.dispatch("saveUserInfo",r),t.$refs.formDatum.resetFields()})).catch((function(t){var e=t.msg;$A.modalError(e)})).finally((function(e){t.loadIng--})))}))},resetForm:function(){this.$refs.formDatum.resetFields()}}};const i=(0,r(51900).Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[t.userInfo.changepass?e("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("请先修改登录密码!")))]):t._e(),t._v(" "),e("FormItem",{attrs:{label:t.$L("旧密码"),prop:"oldpass"}},[e("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(e){t.$set(t.formDatum,"oldpass",e)},expression:"formDatum.oldpass"}})],1),t._v(" "),e("FormItem",{attrs:{label:t.$L("新密码"),prop:"newpass"}},[e("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(e){t.$set(t.formDatum,"newpass",e)},expression:"formDatum.newpass"}})],1),t._v(" "),e("FormItem",{attrs:{label:t.$L("确认新密码"),prop:"checkpass"}},[e("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(e){t.$set(t.formDatum,"checkpass",e)},expression:"formDatum.checkpass"}})],1)],1),t._v(" "),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("提交")))]),t._v(" "),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("重置")))])],1)],1)}),[],!1,null,null,null).exports}}]);

File diff suppressed because one or more lines are too long

2
public/js/build/883.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
d9a5870efc6087f2
d230bb6ec0788bc6

View File

@ -787,27 +787,25 @@
"/js/build/382.js.LICENSE.txt": "/js/build/382.js.LICENSE.txt",
"/js/build/395.js": "/js/build/395.js",
"/js/build/399.js": "/js/build/399.js",
"/js/build/410.js": "/js/build/410.js",
"/js/build/425.js": "/js/build/425.js",
"/js/build/425.js.LICENSE.txt": "/js/build/425.js.LICENSE.txt",
"/js/build/494.js": "/js/build/494.js",
"/js/build/499.js": "/js/build/499.js",
"/js/build/506.js": "/js/build/506.js",
"/js/build/506.js.LICENSE.txt": "/js/build/506.js.LICENSE.txt",
"/js/build/575.js": "/js/build/575.js",
"/js/build/635.js": "/js/build/635.js",
"/js/build/635.js.LICENSE.txt": "/js/build/635.js.LICENSE.txt",
"/js/build/60.js": "/js/build/60.js",
"/js/build/651.js": "/js/build/651.js",
"/js/build/653.js": "/js/build/653.js",
"/js/build/66.js": "/js/build/66.js",
"/js/build/673.js": "/js/build/673.js",
"/js/build/673.js.LICENSE.txt": "/js/build/673.js.LICENSE.txt",
"/js/build/680.js": "/js/build/680.js",
"/js/build/686.js": "/js/build/686.js",
"/js/build/724.js": "/js/build/724.js",
"/js/build/725.js": "/js/build/725.js",
"/js/build/73.js": "/js/build/73.js",
"/js/build/739.js": "/js/build/739.js",
"/js/build/739.js.LICENSE.txt": "/js/build/739.js.LICENSE.txt",
"/js/build/752.js": "/js/build/752.js",
"/js/build/752.js.LICENSE.txt": "/js/build/752.js.LICENSE.txt",
"/js/build/781.js": "/js/build/781.js",
"/js/build/804.js": "/js/build/804.js",
"/js/build/826.js": "/js/build/826.js",
@ -815,6 +813,8 @@
"/js/build/834.js": "/js/build/834.js",
"/js/build/856.js": "/js/build/856.js",
"/js/build/856.js.LICENSE.txt": "/js/build/856.js.LICENSE.txt",
"/js/build/883.js": "/js/build/883.js",
"/js/build/883.js.LICENSE.txt": "/js/build/883.js.LICENSE.txt",
"/js/build/889.js": "/js/build/889.js",
"/js/build/889.js.LICENSE.txt": "/js/build/889.js.LICENSE.txt",
"/js/build/904.js": "/js/build/904.js",