centaline-data-driven 1.4.81 → 1.4.82

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": "centaline-data-driven",
3
- "version": "1.4.81",
3
+ "version": "1.4.82",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -93,22 +93,44 @@
93
93
  column.fixed === 'right' ? 'right-fixation' : null,
94
94
  ]" v-bind="column.attrs">
95
95
  <!--操作列-->
96
- <div v-if="column.id === 'operation'" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'">
97
- <ct-tablecurrency v-for="(router, rowRouterIndex) in getRowRouterShow(row)" :key="rowRouterIndex"
98
- :ref="'router' + router.id + rowindex" v-if="!router.rightField || row[router.rightField] == 1"
99
- :isOperationalColumn="true" :rowindex="rowindex" :router="router" :colValue="router.label"
100
- :rowData="row" @click="rolRouterClickHandler">
101
- </ct-tablecurrency>
96
+ <div v-if="column.id === 'operation'" class="div_allinline" :class="column.autoRowHeight ? 'lineFeedCell' : 'cell'" style="float: left;">
97
+ <template v-for="(router, rowRouterIndex) in getRowRouterShow(row)" >
98
+ <template v-if="router.isCallTel">
99
+ <component v-if="!router.rightField || !row[router.rightField] || row[router.rightField] == 1"
100
+ :key="rowRouterIndex" :ref="'router'+router.id+rowindex" :rowData="row" :rowindex="rowindex"
101
+ :is="router.is" :vmodel="router" :api="model.optionApi"
102
+ @click="rolRouterClickHandler">
103
+ </component>
104
+ </template>
105
+ <template v-else>
106
+ <ct-tablecurrency v-if="!router.rightField || row[router.rightField] == 1"
107
+ :key="rowRouterIndex" :ref="'router' + router.id + rowindex" :rowData="row" :rowindex="rowindex"
108
+ :isOperationalColumn="true" :router="router" :colValue="router.label"
109
+ @click="rolRouterClickHandler">
110
+ </ct-tablecurrency>
111
+ </template>
112
+ </template>
102
113
  <el-popover v-if="getRowRouterDisplay(row).length > 0" :ref="'popover' + rowindex"
103
114
  :append-to-table="option.appendId ? option.appendId : ''" class="Stats-popover"
104
115
  popper-class="el-popover1" :placement="option.placement ? option.placement : 'left'"
105
116
  :trigger="option.trigger ? option.trigger : ''">
106
- <div class="tab-list" style="border-bottom: none">
107
- <ct-tablecurrency v-for="(router, rowRouterIndex) in getRowRouterDisplay(row)"
108
- :key="rowRouterIndex" v-if="!router.rightField || row[router.rightField] == 1"
109
- :isOperationalColumn="true" :isShowImg="false" :rowindex="rowindex" :router="router"
110
- :colValue="router.label" :rowData="row" @click="rolRouterClickHandler">
111
- </ct-tablecurrency>
117
+ <div class="tab-list" style="border-bottom: none">
118
+ <template v-for="(router, rowRouterIndex) in getRowRouterDisplay(row)" >
119
+ <template v-if="router.isCallTel">
120
+ <component v-if="!router.rightField || !row[router.rightField] || row[router.rightField] == 1"
121
+ :key="rowRouterIndex" :ref="'router'+router.id+rowindex" :rowData="row" :rowindex="rowindex"
122
+ :is="router.is" :vmodel="router" :api="model.optionApi"
123
+ @click="rolRouterClickHandler">
124
+ </component>
125
+ </template>
126
+ <template v-else>
127
+ <ct-tablecurrency v-if="!router.rightField || row[router.rightField] == 1"
128
+ :key="rowRouterIndex" :ref="'router' + router.id + rowindex" :rowData="row" :rowindex="rowindex"
129
+ :isOperationalColumn="true" :router="router" :colValue="router.label" :isShowImg="false"
130
+ @click="rolRouterClickHandler">
131
+ </ct-tablecurrency>
132
+ </template>
133
+ </template>
112
134
  </div>
113
135
  <span :slot="getRowRouterDisplay(row).length > 0 ? 'reference' : ''" class="icon-more"></span>
114
136
  </el-popover>
@@ -842,6 +864,7 @@ export default {
842
864
  this.routerClickHandler(field, submitData, action);
843
865
  },
844
866
  rolRouterClickHandler(field, rowData, rowindex, visible) {
867
+ field.rowindex=rowindex;
845
868
  if (this.$refs["popover" + rowindex]) {
846
869
  this.$refs["popover" + rowindex][0].doClose();
847
870
  }
@@ -862,6 +885,10 @@ export default {
862
885
  submitData["searchFields"] = self.model.getSearchData();
863
886
  }
864
887
 
888
+ if(field.isCallTel){
889
+ submitData.flagHaveAlert=visible||false;
890
+ }
891
+
865
892
  let action = field.action;
866
893
  if (field.actionField) {
867
894
  action = rowData[field.actionField];
@@ -347,12 +347,13 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
347
347
  get actionRouter() {
348
348
  if (rtn._actionRouter !== null) {
349
349
  return rtn._actionRouter;
350
- } else {
350
+ }
351
+ else {
351
352
  rtn._actionRouter = [];
352
353
  if (source.content.actionRouters) {
353
354
  source.content.actionRouters.forEach((v) => {
354
355
  var router = Router(v);
355
- //router.is = "ct-btn";
356
+ router.is = "ct-btn";
356
357
  //router.attrs = { size: "mini" }
357
358
  rtn._actionRouter.push(router);
358
359
  });