cloud-web-corejs 1.0.54-dev.268 → 1.0.54-dev.269

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.268",
4
+ "version": "1.0.54-dev.269",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -72,7 +72,7 @@
72
72
  <div>
73
73
  <b :class="{on:tabIndex=='1'}" @click="tabIndex='1'">{{ $t2('任务情况', 'components.wf.taskInfo') }}</b>
74
74
  <b :class="{on:tabIndex=='2'}" @click="tabIndex='2'" v-if="toTalk">{{ $t2('流程沟通', 'components.wf.wfTalk') }}</b>
75
- <b :class="{on:tabIndex=='4'}" @click="tabIndex='4'">{{ $t1('发起人附言') }}</b>
75
+ <b :class="{on:tabIndex=='4'}" @click="tabIndex='4'" v-if="showWfMemo">{{ $t1('发起人附言') }}</b>
76
76
  <b :class="{on:tabIndex=='3'}" @click="tabIndex='3'" v-if="showAllWfOpinon">{{ $t2('全部任务情况', 'components.wf.allTaskInfo') }}</b>
77
77
  </div>
78
78
  </div>
@@ -177,29 +177,31 @@
177
177
  </template>
178
178
  </vxe-grid>
179
179
  </div>
180
- <div class="task-situation" v-show="tabIndex=='4'">
181
- <vxe-grid
182
- ref="table-wfMemo"
183
- :auto-resize="true"
184
- v-bind="wfMemoOption"
185
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
186
- @custom="$vxeTableUtil.customHandle"
187
- >
188
- <template #form>
189
- <div style="margin-bottom: 8px;" class="clearfix">
190
- <div class="fl">
191
- <el-button type="primary" class="button-sty" @click="openWfMemoDialog()"
192
- icon="el-icon-plus" v-if="wfInfo.toAddMemo">{{ $t2('新增') }}
193
- </el-button>
194
- </div>
195
- <div class="fr">
196
- <!-- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="wfMemoSearchEvent">搜索
197
- </vxe-button> -->
180
+ <template v-if="showWfMemo">
181
+ <div class="task-situation" v-show="tabIndex=='4'">
182
+ <vxe-grid
183
+ ref="table-wfMemo"
184
+ :auto-resize="true"
185
+ v-bind="wfMemoOption"
186
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
187
+ @custom="$vxeTableUtil.customHandle"
188
+ >
189
+ <template #form>
190
+ <div style="margin-bottom: 8px;" class="clearfix">
191
+ <div class="fl">
192
+ <el-button type="primary" class="button-sty" @click="openWfMemoDialog()"
193
+ icon="el-icon-plus" v-if="wfInfo.toAddMemo">{{ $t2('新增') }}
194
+ </el-button>
195
+ </div>
196
+ <div class="fr">
197
+ <!-- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="wfMemoSearchEvent">搜索
198
+ </vxe-button> -->
199
+ </div>
198
200
  </div>
199
- </div>
200
- </template>
201
- </vxe-grid>
202
- </div>
201
+ </template>
202
+ </vxe-grid>
203
+ </div>
204
+ </template>
203
205
  <div class="task-situation" v-show="showAllWfOpinon && tabIndex=='3'"
204
206
  style="max-height: 500px; overflow: hidden auto;">
205
207
  <div class="item" v-for="wftaskLineData in allWfTaskOpinions" :key="'allWfTaskOpinions'+wftaskLineData.id">
@@ -365,6 +365,7 @@ wfContentMixin = {
365
365
  revokeForm: {opinion: null},
366
366
  showWfInfoTab: false,
367
367
 
368
+ showWfMemo:false,
368
369
  wfMemoOption: {},
369
370
  wfMemoForm: {
370
371
  receiverName: null,
@@ -421,7 +422,8 @@ wfContentMixin = {
421
422
  this.initWfUserParam();
422
423
  this.initTabIndex();
423
424
  this.initShowTaskInfo();
424
- this.initWfMemo();
425
+ this.getIsShowWfMemo();
426
+ // this.initWfMemo();
425
427
  }
426
428
  });
427
429
  },
@@ -1320,6 +1322,23 @@ wfContentMixin = {
1320
1322
  },
1321
1323
  });
1322
1324
  },
1325
+ getIsShowWfMemo(){
1326
+ let that = getTarget(this);
1327
+ that.$http({
1328
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
1329
+ method: `post`,
1330
+ data: {attributeKey: "param10"},
1331
+ isLoading: true,
1332
+ success: (res) => {
1333
+ this.showWfMemo = res?.objx === true;
1334
+ if(this.showWfMemo){
1335
+ this.$nextTick(()=>{
1336
+ this.initWfMemo();
1337
+ })
1338
+ }
1339
+ },
1340
+ });
1341
+ },
1323
1342
 
1324
1343
  initWfMemo() {
1325
1344
  let h = this.$createElement;