cloud-web-corejs 1.0.54-dev.168 → 1.0.54-dev.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,20 @@
3
3
  <el-form-item label-width="0">
4
4
  <el-divider class="custom-divider-margin-top">显示设置</el-divider>
5
5
  </el-form-item>
6
+ <el-form-item :label="i18nt('显示超链接')">
7
+ <el-switch v-model="optionModel.showLinkTextEnabled" @change="changeShowLinkTextEnabled"></el-switch>
8
+ </el-form-item>
9
+ <el-form-item :label="i18nt('超链接配置')">
10
+ <a href="javascript:void(0);" class="a-link link-oneLind" @click="openLinkConfig">
11
+ <span></span>
12
+ <i class="el-icon-edit"></i>
13
+ </a>
14
+ </el-form-item>
6
15
  <el-form-item :label="i18nt('仅显示明文文本')">
7
- <el-switch v-model="optionModel.showTextEnabled" @change="optionModel.showEncryptTextEnabled=false"></el-switch>
16
+ <el-switch v-model="optionModel.showTextEnabled" @change="optionModel.showEncryptTextEnabled=false;optionModel.showLinkTextEnabled=false;"></el-switch>
8
17
  </el-form-item>
9
18
  <el-form-item :label="i18nt('仅显示密文文本')">
10
- <el-switch v-model="optionModel.showEncryptTextEnabled" @change="optionModel.showTextEnabled=false"></el-switch>
19
+ <el-switch v-model="optionModel.showEncryptTextEnabled" @change="optionModel.showTextEnabled=false;optionModel.showLinkTextEnabled=false;"></el-switch>
11
20
  </el-form-item>
12
21
  <el-form-item :label="i18nt('启用特定用户显示规则设置')">
13
22
  <el-switch v-model="optionModel.userTextRuleEnabled"></el-switch>
@@ -111,6 +120,7 @@
111
120
  <el-option :value="1" label="明文文本显示"></el-option>
112
121
  <el-option :value="2" label="密文文本显示"></el-option>
113
122
  <el-option :value="0" label="组件显示"></el-option>
123
+ <el-option :value="3" label="超链接显示"></el-option>
114
124
  </el-select>
115
125
  </template>
116
126
  </el-table-column>
@@ -157,6 +167,7 @@ export default {
157
167
  selectedWidget: Object,
158
168
  optionModel: Object,
159
169
  },
170
+ inject: ["openWidgetPropertyDialog"],
160
171
  data() {
161
172
  return {
162
173
  dialogVisible: false,
@@ -203,6 +214,44 @@ export default {
203
214
  this.dialogVisible = !1;
204
215
  this.optionModel.userTextRuleConfig = this.tableData;
205
216
  },
217
+ changeShowLinkTextEnabled(val){
218
+ this.optionModel.widgetTextLinkConfig = null;''
219
+ this.optionModel.showEncryptTextEnabled=false;
220
+ this.optionModel.showTextEnabled=false;
221
+ if(val){
222
+ this.initLinkWidget();
223
+ }
224
+ },
225
+ initLinkWidget(){
226
+ let widget = null
227
+ let keyName = this.optionModel.keyName;
228
+ let label = this.optionModel.label;
229
+ if(!this.optionModel.widgetTextLinkConfig){
230
+ widget = this.designer.copyNewFieldWidget(this.designer.getFieldWidgetByType("a-link"));
231
+ this.$set(this.optionModel,'widgetTextLinkConfig',widget)
232
+ }else{
233
+ widget = this.optionModel.widgetTextLinkConfig
234
+ }
235
+ widget.options.label = label;
236
+ widget.options.keyName = keyName;
237
+ widget.options.labelHidden = true
238
+ widget.options.isFormLabel = true
239
+
240
+ return widget;
241
+ },
242
+ openLinkConfig(){
243
+ let widget = this.initLinkWidget();
244
+ this.openWidgetPropertyDialog({
245
+ // row: row,
246
+ columnSelectedWidget: widget,
247
+ // index: index,
248
+ // columnEditFields: columnEditFields,
249
+ callback: (columnOption) => {
250
+ widget.options = columnOption
251
+ // this.confirmFormatConfigDialog(columnOption, row);
252
+ },
253
+ });
254
+ }
206
255
  }
207
256
  }
208
257
  </script>
@@ -780,6 +780,7 @@ export const defaultWfConfig = {
780
780
  }
781
781
 
782
782
  export const defaultTextFlagConfig = {
783
+ widgetTextFlag: null,
783
784
  textFlag: 1,
784
785
  showTextEnabled: false,
785
786
  showEncryptTextEnabled: false,
@@ -789,7 +790,8 @@ export const defaultTextFlagConfig = {
789
790
  textRule2: false,
790
791
  textRule2Number: null,
791
792
  textRule3: false,
792
- textRule3Number: null
793
+ textRule3Number: null,
794
+ widgetTextLinkConfig:null
793
795
  }
794
796
 
795
797
  export const basicFields = [