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
|
@@ -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: "
|
|
145
|
-
height: "
|
|
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
|
-
|
|
155
|
-
|
|
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 =
|
|
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:"
|
|
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() {
|