From 69e2baf5518079bfc16cfadc2fb29842fb3de85d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 14 一月 2020 21:02:48 +0800
Subject: [PATCH] 加入userName
---
WebService/src/main/resources/components/menuPackage/addMenuView/addMenuView.js | 144 ++++++++++++++++++++++++------------------------
1 files changed, 72 insertions(+), 72 deletions(-)
diff --git a/WebService/src/main/resources/components/menuPackage/addMenuView/addMenuView.js b/WebService/src/main/resources/components/menuPackage/addMenuView/addMenuView.js
index fcd035a..a353aa0 100644
--- a/WebService/src/main/resources/components/menuPackage/addMenuView/addMenuView.js
+++ b/WebService/src/main/resources/components/menuPackage/addMenuView/addMenuView.js
@@ -1,111 +1,111 @@
-(function(vc){
+(function (vc) {
vc.extends({
propTypes: {
- callBackListener:vc.propTypes.string, //鐖剁粍浠跺悕绉�
- callBackFunction:vc.propTypes.string //鐖剁粍浠剁洃鍚柟娉�
+ callBackListener: vc.propTypes.string, //鐖剁粍浠跺悕绉�
+ callBackFunction: vc.propTypes.string //鐖剁粍浠剁洃鍚柟娉�
},
- data:{
- addMenuViewInfo:{
- flowComponent:'addMenuView',
- name:'',
-url:'',
-seq:'',
-isShow:'',
-description:'',
-
+ data: {
+ addMenuViewInfo: {
+ flowComponent: 'addMenuView',
+ name: '',
+ url: '',
+ seq: '',
+ isShow: '',
+ description: '',
}
},
- watch:{
- addMenuViewInfo:{
+ watch: {
+ addMenuViewInfo: {
deep: true,
- handler:function(){
+ handler: function () {
vc.component.saveAddMenuInfo();
}
- }
+ }
},
- _initMethod:function(){
+ _initMethod: function () {
- },
- _initEvent:function(){
+ },
+ _initEvent: function () {
- vc.on('addMenuViewInfo', 'onIndex', function(_index){
+ vc.on('addMenuViewInfo', 'onIndex', function (_index) {
vc.component.addMenuViewInfo.index = _index;
});
},
- methods:{
- addMenuValidate(){
+ methods: {
+ addMenuValidate() {
return vc.validate.validate({
- addMenuViewInfo:vc.component.addMenuViewInfo
- },{
- 'addMenuViewInfo.name':[
-{
- limit:"required",
- param:"",
- errInfo:"鑿滃崟鍚嶇О涓嶈兘涓虹┖"
+ addMenuViewInfo: vc.component.addMenuViewInfo
+ }, {
+ 'addMenuViewInfo.name': [
+ {
+ limit: "required",
+ param: "",
+ errInfo: "鑿滃崟鍚嶇О涓嶈兘涓虹┖"
},
- {
- limit:"maxin",
- param:"2,10",
- errInfo:"鑿滃崟鍚嶇О蹇呴』鍦�2鑷�10瀛楃涔嬮棿"
+ {
+ limit: "maxin",
+ param: "2,10",
+ errInfo: "鑿滃崟鍚嶇О蹇呴』鍦�2鑷�10瀛楃涔嬮棿"
},
],
-'addMenuViewInfo.url':[
-{
- limit:"required",
- param:"",
- errInfo:"鑿滃崟鍦板潃涓嶈兘涓虹┖"
+ 'addMenuViewInfo.url': [
+ {
+ limit: "required",
+ param: "",
+ errInfo: "鑿滃崟鍦板潃涓嶈兘涓虹┖"
},
- {
- limit:"maxin",
- param:"2,10",
- errInfo:"鑿滃崟鍚嶇О蹇呴』鍦�2鑷�10瀛楃涔嬮棿"
+ {
+ limit: "maxLength",
+ param: "200",
+ errInfo: "鑿滃崟鍦板潃涓嶈兘瓒呰繃200"
},
],
-'addMenuViewInfo.seq':[
-{
- limit:"required",
- param:"",
- errInfo:"搴忓垪涓嶈兘涓虹┖"
+ 'addMenuViewInfo.seq': [
+ {
+ limit: "required",
+ param: "",
+ errInfo: "搴忓垪涓嶈兘涓虹┖"
},
- {
- limit:"num",
- param:"",
- errInfo:"搴忓垪蹇呴』涓烘暣鏁�"
+ {
+ limit: "num",
+ param: "",
+ errInfo: "搴忓垪蹇呴』涓烘暣鏁�"
},
],
-'addMenuViewInfo.isShow':[
-{
- limit:"required",
- param:"",
- errInfo:"鑿滃崟鏄剧ず涓嶈兘涓虹┖"
+ 'addMenuViewInfo.isShow': [
+ {
+ limit: "required",
+ param: "",
+ errInfo: "鑿滃崟鏄剧ず涓嶈兘涓虹┖"
},
- {
- limit:"maxin",
- param:"1,12",
- errInfo:"鑿滃崟鏄剧ず閿欒"
+ {
+ limit: "maxin",
+ param: "1,12",
+ errInfo: "鑿滃崟鏄剧ず閿欒"
},
],
-'addMenuViewInfo.description':[
- {
- limit:"maxLength",
- param:"200",
- errInfo:"澶囨敞鍐呭涓嶈兘瓒呰繃200"
+ 'addMenuViewInfo.description': [
+ {
+ limit: "maxLength",
+ param: "200",
+ errInfo: "澶囨敞鍐呭涓嶈兘瓒呰繃200"
},
],
});
},
- saveAddMenuInfo:function(){
- if(vc.component.addMenuValidate()){
+ saveAddMenuInfo: function () {
+ if (vc.component.addMenuValidate()) {
- vc.emit('addPrivilegeViewInfo','syncData',{
- name:vc.component.addMenuViewInfo.name,
- description:vc.component.addMenuViewInfo.description
+ vc.emit('addPrivilegeViewInfo', 'syncData', {
+ name: vc.component.addMenuViewInfo.name,
+ description: vc.component.addMenuViewInfo.description,
+ url: vc.component.addMenuViewInfo.url
});
//渚﹀惉鍥炰紶
- vc.emit($props.callBackListener,$props.callBackFunction, vc.component.addMenuViewInfo);
- return ;
+ vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addMenuViewInfo);
+ return;
}
}
}
--
Gitblit v1.8.0