sasp-flow-render 1.0.20 → 1.0.21

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,6 +1,6 @@
1
1
  {
2
2
  "name": "sasp-flow-render",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "业务应用支撑平台-智慧流程渲染组件",
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build"
@@ -62,7 +62,7 @@
62
62
  </el-button>
63
63
  </el-header>
64
64
  <el-main style="height: 100%;padding: 0;" class="main-box">
65
- <el-table :data="crud.dataStore.records" :ref="crud.tableRef"
65
+ <el-table :data="crud.dataStore.records" :ref="crud.tableRef" @sort-change="flowSortChange"
66
66
  v-if="showModel=='list'" stripe border height="100%" style="width: 100%;">
67
67
  <el-table-column type="selection" width="40" align="center"
68
68
  v-if="isShow('draft')"></el-table-column>
@@ -73,7 +73,8 @@
73
73
  {{userMap[scope.row.startUserId]}}
74
74
  </template>
75
75
  </el-table-column>
76
- <el-table-column :label="tabType=='draft'?'创建时间':'启动时间'" prop="saspStartTime" width="180" align="center"></el-table-column>
76
+ <el-table-column :label="tabType=='draft'?'创建时间':'启动时间'"
77
+ prop="saspStartTime" width="180" align="center"></el-table-column>
77
78
  <el-table-column label="办结时间" prop="finishedTime" width="180" align="center"
78
79
  v-if="isShow('finished')"></el-table-column>
79
80
  <el-table-column label="撤销时间" prop="revokedTime" width="180" align="center"
@@ -252,8 +253,8 @@
252
253
  <el-dialog :title="title" append-to-body
253
254
  :close-on-click-modal="false"
254
255
  :visible.sync="formSettingVisible" width="99%" height="98%" top="1vh">
255
- <vue-form-edit :form-id="formId" :define-key="formDefineKey"
256
- v-if="formSettingVisible" @cancel="formSettingVisible = false;"></vue-form-edit>
256
+ <vue-form-edit :form-id="formId" :define-key="formDefineKey"
257
+ v-if="formSettingVisible" @cancel="formSettingVisible = false;"></vue-form-edit>
257
258
  </el-dialog>
258
259
  </el-container>
259
260
  </template>
@@ -473,6 +474,7 @@
473
474
  formDefineKey: "",
474
475
  title: "",
475
476
  formSettingVisible:false,
477
+ flowSortOrder:""
476
478
  }
477
479
  },
478
480
  created() {
@@ -491,32 +493,32 @@
491
493
  },
492
494
  methods: {
493
495
  initWorkStageTurnOn(){
494
- this.workTurnOn = WORK_GLOBAL.getTurnOn(this.switchOnline,this.listViewId);
496
+ this.workTurnOn = WORK_GLOBAL.getTurnOn(this.switchOnline,this.listViewId);
495
497
  },
496
498
  switchOnline(val){
497
- this.workTurnOn = val;
499
+ this.workTurnOn = val;
498
500
  },
499
501
  /**
500
502
  * 打开相关的智能建表
501
503
  */
502
504
  showFormSetting(){
503
- this.axios.post(this.api.plPageInfo.find,{ flowId: this.flowDefine.id }).then(res => {
504
- let pageInfo = (res.data || [])[0] || {};
505
- this.pageName = pageInfo.pageName || "";
506
- this.flowFormId = pageInfo.formId;
507
- this.formDefineKey = pageInfo.formDefineKey;
508
- this.title = "智能建表配置("+ (this.pageName) +")";
509
- if (this.SASP_FORM_CONFIG_PACK) {
510
- this.formSettingVisible = true;
511
- } else {
512
- let href = window.FORM_RENDER_URL + "/formPath/index.html#/vueFormEditRedirect" +
513
- "?formId=" + this.flowFormId + "&defineKey=" + this.formDefineKey + "&title=" + this.title;
514
- window.open(href,"_blank");
515
- // let href = window.FORM_RENDER_URL + "/formPath/index.html#/vueFormEditRedirect" +
516
- // "?flowId=" + this.flowDefine.id + "&type=flow";
517
- // window.open(href,"_blank");
518
- }
519
- });
505
+ this.axios.post(this.api.plPageInfo.find,{ flowId: this.flowDefine.id }).then(res => {
506
+ let pageInfo = (res.data || [])[0] || {};
507
+ this.pageName = pageInfo.pageName || "";
508
+ this.flowFormId = pageInfo.formId;
509
+ this.formDefineKey = pageInfo.formDefineKey;
510
+ this.title = "智能建表配置("+ (this.pageName) +")";
511
+ if (this.SASP_FORM_CONFIG_PACK) {
512
+ this.formSettingVisible = true;
513
+ } else {
514
+ let href = window.FORM_RENDER_URL + "/formPath/index.html#/vueFormEditRedirect" +
515
+ "?formId=" + this.flowFormId + "&defineKey=" + this.formDefineKey + "&title=" + this.title;
516
+ window.open(href,"_blank");
517
+ // let href = window.FORM_RENDER_URL + "/formPath/index.html#/vueFormEditRedirect" +
518
+ // "?flowId=" + this.flowDefine.id + "&type=flow";
519
+ // window.open(href,"_blank");
520
+ }
521
+ });
520
522
  },
521
523
  /**
522
524
  * 根据类型加载不需要清楚的
@@ -718,6 +720,9 @@
718
720
  if (timeArr.length > 0 && timeArr[1]) {
719
721
  this.crud.searchForm.startTimeEnd = timeArr[1] + " 23:59:59";
720
722
  }
723
+ if (this.flowSortOrder) {
724
+ this.crud.searchForm.flowSortOrder = this.flowSortOrder;
725
+ }
721
726
  this.$emit("initTabNum");
722
727
  if (type == "noMessage") {
723
728
  this.crud.search();
@@ -856,6 +861,19 @@
856
861
  })
857
862
  return arr.join(",");
858
863
  },
864
+ //点击列排序是的函数
865
+ flowSortChange({column, prop, order}){
866
+ if(column.order){
867
+ if(column.order == "ascending"){ // asc
868
+ this.flowSortOrder = column.property + " ASC";
869
+ }else{
870
+ this.flowSortOrder = column.property + " DESC";
871
+ }
872
+ }else{
873
+ this.flowSortOrder = "";
874
+ }
875
+ this.doSearch();
876
+ },
859
877
  }
860
878
  }
861
879
  </script>