centaline-data-driven-v3 0.0.72 → 0.0.74
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/dist/centaline-data-driven-v3.umd.js +81 -81
- package/package.json +1 -1
- package/src/assets/commonWeb.css +17 -0
- package/src/components/app/PhotoSelectList.vue +24 -7
- package/src/components/web/Button.vue +26 -14
- package/src/components/web/Form.vue +33 -9
- package/src/components/web/FormList.vue +35 -22
- package/src/components/web/Location.vue +15 -16
- package/src/components/web/SearchList/SearchTable.vue +5 -36
- package/src/components/web/SearchList/Tablecurrency.vue +5 -2
- package/src/loader/src/Form.js +42 -0
- package/src/loader/src/FormList.js +58 -1
- package/src/loader/src/LibFunction.js +4 -3
- package/src/loader/src/Location.js +2 -2
- package/src/main.js +5 -5
- package/src/utils/mixins.js +27 -736
- package/src/utils/request.js +5 -5
- package/src/views/Form.vue +2 -2
- package/src/views/SearchList.vue +3 -2
|
@@ -120,6 +120,12 @@ function FormListModel(source, master,actionRouters) {
|
|
|
120
120
|
get totalCols() {
|
|
121
121
|
return source.totalCols;
|
|
122
122
|
},
|
|
123
|
+
get tableDisabled() {
|
|
124
|
+
return source.disabled || master.locked || false;
|
|
125
|
+
},
|
|
126
|
+
set tableDisabled(v) {
|
|
127
|
+
source.disabled = v;
|
|
128
|
+
},
|
|
123
129
|
//表单表格 选择数据来源的路由
|
|
124
130
|
get selectRouter() {
|
|
125
131
|
if (source.selectRouter) {
|
|
@@ -128,7 +134,7 @@ function FormListModel(source, master,actionRouters) {
|
|
|
128
134
|
return button;
|
|
129
135
|
}
|
|
130
136
|
return null;
|
|
131
|
-
},
|
|
137
|
+
},
|
|
132
138
|
//表格编辑模式
|
|
133
139
|
get editMode() {
|
|
134
140
|
return source.editMode;
|
|
@@ -168,6 +174,57 @@ function FormListModel(source, master,actionRouters) {
|
|
|
168
174
|
return rtn._buttons;
|
|
169
175
|
}
|
|
170
176
|
},
|
|
177
|
+
_buttonsShow: null,
|
|
178
|
+
get buttonsShow() {
|
|
179
|
+
if (rtn._buttonsShow !== null) {
|
|
180
|
+
return rtn._buttonsShow;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
rtn._buttonsShow = [];
|
|
184
|
+
if (rtn.buttons) {
|
|
185
|
+
rtn.buttons.forEach((v) => {
|
|
186
|
+
if(v.show){
|
|
187
|
+
rtn._buttonsShow.push(v);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
return rtn._buttonsShow;
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
_toolButtons: null,
|
|
195
|
+
get toolButtons() {
|
|
196
|
+
if (rtn._toolButtons !== null) {
|
|
197
|
+
return rtn._toolButtons;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
rtn._toolButtons = [];
|
|
201
|
+
if (source.toolButtons) {
|
|
202
|
+
source.toolButtons.forEach((v) => {
|
|
203
|
+
var button = Router(v);
|
|
204
|
+
button.is = "ct-button";
|
|
205
|
+
rtn._toolButtons.push(button);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
return rtn._toolButtons;
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
_toolButtonsShow: null,
|
|
212
|
+
get toolButtonsShow() {
|
|
213
|
+
if (rtn._toolButtonsShow !== null) {
|
|
214
|
+
return rtn._toolButtonsShow;
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
rtn._toolButtonsShow = [];
|
|
218
|
+
if (rtn.toolButtons) {
|
|
219
|
+
rtn.toolButtons.forEach((v) => {
|
|
220
|
+
if(v.show){
|
|
221
|
+
rtn._toolButtonsShow.push(v);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
return rtn._toolButtonsShow;
|
|
226
|
+
}
|
|
227
|
+
},
|
|
171
228
|
_rows: null,
|
|
172
229
|
get rows() {
|
|
173
230
|
if (this._rows) {
|
|
@@ -216,9 +216,10 @@ const LibFunction = {
|
|
|
216
216
|
item.is = 'ct-customizecolumns'
|
|
217
217
|
break;
|
|
218
218
|
case Enum.ControlType.Location:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
moreActionRouter = LibFunction.getRouter(source.actionRouters, field.moreActionRouterKey);
|
|
220
|
+
item = Location(item,moreActionRouter);
|
|
221
|
+
item.is = 'ct-location';
|
|
222
|
+
break;
|
|
222
223
|
case Enum.ControlType.SearchPage: //搜索列表页面
|
|
223
224
|
item = {};
|
|
224
225
|
item.is = 'ct-searchlist';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import base from '../../loader/index';
|
|
2
2
|
import valid from '../../utils//validate';
|
|
3
|
-
const Location = function (source) {
|
|
3
|
+
const Location = function (source,moreActionRouter) {
|
|
4
4
|
let rtn = {
|
|
5
|
-
moreActionRouter:
|
|
5
|
+
moreActionRouter: moreActionRouter,
|
|
6
6
|
getFormObj() {
|
|
7
7
|
var rtnFormObj = {};
|
|
8
8
|
Object.defineProperty(rtnFormObj, source.fieldName1, {
|
package/src/main.js
CHANGED
|
@@ -21,11 +21,11 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
app.use(centaline, {
|
|
24
|
-
|
|
24
|
+
baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
|
|
25
25
|
//baseUrl: "http://10.88.22.66:6060/xian/",
|
|
26
26
|
//baseUrl: "http://10.1.245.50:38735/max-uplink-api/",
|
|
27
|
-
baseUrl: "http://10.
|
|
28
|
-
|
|
27
|
+
//baseUrl: "http://10.1.245.111:38028/",
|
|
28
|
+
|
|
29
29
|
flagRouterSelf: true,
|
|
30
30
|
flagApp: false,//是否app端
|
|
31
31
|
zindex: 999,
|
|
@@ -64,8 +64,8 @@ app.use(centaline, {
|
|
|
64
64
|
return {
|
|
65
65
|
//authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQBe-ydVay1xvvOl3sJA2HiPIxElSIJBIIcXdAQEfPFK-YZt4Nlm2EChqtDafOYWqpRG6kxLoTxZhUTSRxHLUPH_DHfOmt5SDWt1gHScieHapNiol94q5pXYoNFJAvJ6isGHWmNMYVcBjWtyCr_iW2JZ93-fqPc8f18MwGIqFRCIO1GXmWGYd9npCZJ6N5JjYZ7g8AAAD__w.HgtNKtHWooj8c9Hy_vB8CfKq-qOeHMp0irnW0DfXtHo"}',
|
|
66
66
|
//oldToken: 'd92d4a3b-2274-42e8-96f0-100ffb579b6e',
|
|
67
|
-
authObject: '{token:"
|
|
68
|
-
|
|
67
|
+
//authObject: '{token:"1-a7289bb2-9f1e-4a04-9016-1e555bf39188"}',
|
|
68
|
+
authObject: '{EmpID:"Token_f5be9890-db08-463b-b6c3-0874f422fac9",MachineCode:"e1f39b75-7069-4c4f-b5d5-c590da2d9aa2",SSO_Token:"SSOToken_f5be9890-db08-463b-b6c3-0874f422fac9",Platform:"WEB"}',
|
|
69
69
|
};
|
|
70
70
|
},
|
|
71
71
|
// 请求完成事件,可判断是否登录过期执行响应操作
|