centaline-data-driven-v3 0.0.95 → 0.0.96

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.96",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -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 () {
@@ -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) => {
package/src/main.js CHANGED
@@ -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_f0a59fe5-6641-4e7d-bd99-66e6da8e85e2",MachineCode:"ae184643-f8e2-453c-a752-ba82612b592f",SSO_Token:"SSOToken_f0a59fe5-6641-4e7d-bd99-66e6da8e85e2",Platform:"WEB"}',
72
72
  };
73
73
  },
74
74
  getToken() {