centaline-data-driven-v3 0.0.95 → 0.0.97

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-v3",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -2,7 +2,7 @@
2
2
  <div class="ct-progress">
3
3
  <div style="padding: 5px;">
4
4
  <div class="circleBox">
5
- <van-circle v-if="progressFlag" v-model:current-rate="percentage" :rate="100" :speed="100" />
5
+ <van-circle v-if="progressFlag" v-model:current-rate="percentage" :rate="percentage" :speed="100" />
6
6
  <div class="circleCenter" v-if="progressFlag">
7
7
  <div style="font-size: 16px;color: #666;"> {{ percentage.toFixed(2) }}%</div>
8
8
  </div>
@@ -30,10 +30,10 @@ const model = ref(null)
30
30
  const selectStats = ref("")
31
31
  const fieldName1 = ref("")
32
32
  const tableStatistics = ref()
33
- function searchStatsComplate() {
33
+ function searchStatsComplate(defaultSearchData) {
34
34
  nextTick(function () {
35
35
  if (typeof props.api !== "undefined") {
36
- SearchStats.loadSearchStatsApi(props.api, load, props.searchModel, null);
36
+ SearchStats.loadSearchStatsApi(props.api, load, props.searchModel, defaultSearchData);
37
37
  }
38
38
  if (typeof props.source !== "undefined") {
39
39
  load(SearchStats.loadSearchStatsModel(props.source));
@@ -48,7 +48,7 @@ function load(data) {
48
48
  data.source.content.forEach((item) => {
49
49
  fieldName1.value = item.fieldName1;
50
50
  });
51
- if (selectStats.value == '') {
51
+ if (selectStats.value == ''&&!(model.value.defaultSearchData&&model.value.defaultSearchData.searchData)) {
52
52
  var i = data.source.content.findIndex((v) => {
53
53
  return v.code1 == props.apiParam[fieldName1.value];
54
54
  });
@@ -233,7 +233,7 @@ function onRefresh() {
233
233
  }
234
234
  function loadStats() {
235
235
  if (props.searchStatsApi) {
236
- refTableStats.value.searchStatsComplate();
236
+ refTableStats.value.searchStatsComplate(model.value.searchStats);
237
237
  }
238
238
  }
239
239
  //更新行数据
@@ -35,7 +35,7 @@ const props = defineProps({
35
35
  })
36
36
  const model = initData(props, CheckBoxList)
37
37
 
38
- function change() {
38
+ function change() {
39
39
  model.value.setcode()
40
40
  changeHandler(model.value, emit);
41
41
  if (model.value.autoSearch) emit('search');
@@ -84,7 +84,8 @@ const dragOptions = {
84
84
  chosenClass: "chosen",
85
85
  forceFallback: true,
86
86
  }
87
-
87
+ const currentWidth = ref(0); // 当前显示的宽度
88
+ const currentHeight= ref(0); // 当前显示的高度
88
89
  const qrtimer=ref(null)
89
90
  onBeforeUnmount(()=>{
90
91
  if (qrtimer.value) {
@@ -128,6 +129,7 @@ function handleOpen() {
128
129
  });
129
130
  return;
130
131
  }
132
+ updateCurrentSize();
131
133
  var params = {
132
134
  paramName: model.value.paramName1,
133
135
  parentValue: model.value.getFormParentFieldPara(),
@@ -141,8 +143,8 @@ function handleOpen() {
141
143
  pane: common.getParentPane(),
142
144
  content: [{
143
145
  component: "ct-photoselectlist",
144
- width: "772px",
145
- height: "550px",
146
+ width: currentWidth.value+"px",
147
+ height: currentHeight.value+"px",
146
148
 
147
149
  attrs: {
148
150
  api: model.value.action, // self.api,//source.xx
@@ -151,8 +153,8 @@ function handleOpen() {
151
153
  mediaViewPageType: (model.value.mediaViewPageType || 0),
152
154
  // width: self.model.router.pageWidth + 'px',
153
155
  // height: self.model.router.pageHeight+'px',
154
- width: "772px",
155
- height: "550px",
156
+ width: currentWidth.value+"px",
157
+ height: currentHeight.value+"px",
156
158
  para: params,
157
159
  onHandlePhoto: (List) => {
158
160
  nextTick(function () {
@@ -184,6 +186,14 @@ function handleOpen() {
184
186
 
185
187
 
186
188
  }
189
+
190
+ function updateCurrentSize() {
191
+ let width = window.innerWidth;
192
+ let height = window.innerHeight;
193
+ // 根据条件更新当前宽度和高度
194
+ currentWidth.value = width < 772 ? width : 772;
195
+ currentHeight.value =height < 550 ? height-45 :550;
196
+ }
187
197
  function onEnd(a, b) {
188
198
 
189
199
  nextTick(function () {
@@ -113,10 +113,10 @@ const tableStatistics = ref()
113
113
  onMounted(() => {
114
114
  showWidth.value = tableStatistics.value && tableStatistics.value.offsetWidth || document.body.clientWidth;
115
115
  })
116
- function searchStatsComplate() {
116
+ function searchStatsComplate(defaultSearchData) {
117
117
  nextTick(function () {
118
118
  if (typeof props.api !== "undefined") {
119
- SearchStats.loadSearchStatsApi(props.api, load, props.searchModel, null);
119
+ SearchStats.loadSearchStatsApi(props.api, load, props.searchModel, defaultSearchData);
120
120
  }
121
121
  if (typeof props.source !== "undefined") {
122
122
  load(SearchStats.loadSearchStatsModel(props.source));
@@ -158,7 +158,7 @@ function load(data) {
158
158
  return -1; // 顺序不变
159
159
  }
160
160
  });
161
- if (selectStats.value == '') {
161
+ if (selectStats.value == ''&&!(model.value.defaultSearchData&&model.value.defaultSearchData.searchData)) {
162
162
  var m = data.source.content.find((v) => {
163
163
  return v.code1 == props.apiParam[fieldName1.value];
164
164
  });
@@ -28,7 +28,7 @@ const CheckBoxList = function (source) {
28
28
  },
29
29
  //修改code1值
30
30
  setcode() {
31
- let currentOptions = source.selectItems1.filter((v) => {
31
+ let currentOptions = this.selectItems1.filter((v) => {
32
32
  return this.value.indexOf(v['code']) >= 0;
33
33
  });
34
34
  currentOptions.forEach((v) => {
@@ -17,7 +17,7 @@ function loadSearchStatsApi(action, callBack, searchModel, defaultSearchData) {
17
17
  }).then(
18
18
  function (response) {
19
19
  if (response.rtnCode === Enum.ReturnCode.Successful) {
20
- var rtn = loadSearchStatsModel(response, defaultSearchData);
20
+ var rtn = loadSearchStatsModel(response,searchModel, defaultSearchData);
21
21
  if (callBack) {
22
22
  callBack(rtn);
23
23
  }
package/src/main.js CHANGED
@@ -30,7 +30,7 @@ app.use(centaline, {
30
30
  //baseUrl: "http://10.1.245.111:38028/",
31
31
 
32
32
  flagRouterSelf: true,
33
- flagApp: false,//是否app端
33
+ flagApp: true,//是否app端
34
34
  zindex: 999,
35
35
  showRequestSuccessMessage: true,
36
36
  showRequestErrorMessage: false,
@@ -68,7 +68,7 @@ app.use(centaline, {
68
68
  //authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
69
69
  //oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
70
70
  //authObject: '{token:"1-bce18a8d-21f0-4022-a6ca-450de105cafc"}',
71
- authObject: '{EmpID:"Token_cf665522-aa5a-478c-b33a-0eac9ea30cee",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_cf665522-aa5a-478c-b33a-0eac9ea30cee",Platform:"WEB"}',
71
+ authObject: '{EmpID:"Token_4abee9c9-2616-4cb5-beda-1f94dc7d8a96",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_4abee9c9-2616-4cb5-beda-1f94dc7d8a96",Platform:"IOS"}',
72
72
  };
73
73
  },
74
74
  getToken() {
@@ -17,6 +17,6 @@
17
17
 
18
18
  <script lang="ts" setup>
19
19
  import { ref, nextTick } from 'vue'
20
- const apiParam = {}
20
+ const apiParam = {PublishStatusID:30}
21
21
 
22
22
  </script>