Commit 9fe9063c0127f8170f40e4656a59aac0f17ecb35

Authored by zhangzzzz
1 parent 4b1a58d9

用户模式支持修改所有值;

src/components/Common/CommonElementEvent.js
@@ -499,9 +499,9 @@ export default (ChildComponent) => { @@ -499,9 +499,9 @@ export default (ChildComponent) => {
499 addState1[`${userParamName[index]}Config`] = userParamConfig; 499 addState1[`${userParamName[index]}Config`] = userParamConfig;
500 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) { 500 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) {
501 userParamConfig.gdsconfigformslave.forEach((item) => { 501 userParamConfig.gdsconfigformslave.forEach((item) => {
502 - if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */  
503 - item.iTag = 1;  
504 - } 502 + // if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */
  503 + // item.iTag = 1;
  504 + // }
505 if (item.sName === 'sParam') { 505 if (item.sName === 'sParam') {
506 item.bVisible = false; 506 item.bVisible = false;
507 } 507 }
@@ -520,9 +520,9 @@ export default (ChildComponent) => { @@ -520,9 +520,9 @@ export default (ChildComponent) => {
520 userParamConfig = JSON.parse(JSON.stringify(customizeParamConfig)); 520 userParamConfig = JSON.parse(JSON.stringify(customizeParamConfig));
521 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) { 521 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) {
522 userParamConfig.gdsconfigformslave.forEach((item) => { 522 userParamConfig.gdsconfigformslave.forEach((item) => {
523 - if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */  
524 - item.iTag = 1;  
525 - } 523 + // if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */
  524 + // item.iTag = 1;
  525 + // }
526 if (item.sName === 'sParam') { 526 if (item.sName === 'sParam') {
527 item.bVisible = false; 527 item.bVisible = false;
528 } 528 }
@@ -3637,9 +3637,9 @@ export default (ChildComponent) => { @@ -3637,9 +3637,9 @@ export default (ChildComponent) => {
3637 const userParamConfig = JSON.parse(JSON.stringify(customizeParamConfig)); 3637 const userParamConfig = JSON.parse(JSON.stringify(customizeParamConfig));
3638 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) { 3638 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) {
3639 userParamConfig.gdsconfigformslave.forEach((item) => { 3639 userParamConfig.gdsconfigformslave.forEach((item) => {
3640 - if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */  
3641 - item.iTag = 1;  
3642 - } 3640 + // if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */
  3641 + // item.iTag = 1;
  3642 + // }
3643 if (item.sName === 'sParam') { 3643 if (item.sName === 'sParam') {
3644 item.bVisible = false; 3644 item.bVisible = false;
3645 } 3645 }
@@ -3933,9 +3933,9 @@ export default (ChildComponent) => { @@ -3933,9 +3933,9 @@ export default (ChildComponent) => {
3933 addState[`userParam${paramIndex}Config`] = userParamConfig; 3933 addState[`userParam${paramIndex}Config`] = userParamConfig;
3934 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) { 3934 if (commonUtils.isNotEmptyArr(userParamConfig.gdsconfigformslave)) {
3935 userParamConfig.gdsconfigformslave.forEach((item) => { 3935 userParamConfig.gdsconfigformslave.forEach((item) => {
3936 - if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */  
3937 - item.iTag = 1;  
3938 - } 3936 + // if (item.sName.indexOf('sValue') === -1) { /* 除了参数值 其他均不可修改 */
  3937 + // item.iTag = 1;
  3938 + // }
3939 if (item.sName === 'sParam') { 3939 if (item.sName === 'sParam') {
3940 item.bVisible = false; 3940 item.bVisible = false;
3941 } 3941 }