centaline-data-driven 1.5.77 → 1.5.79
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 +1 -1
- package/release-log.md +22 -0
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +4 -2
- package/src/centaline/dynamicFile/src/dynamicFile.vue +9 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +6 -1
- package/src/centaline/loader/src/ctl/SearchTable.js +21 -1
- package/src/centaline/loader/src/ctl/lib/Enum.js +5 -0
- package/src/main.js +10 -10
- package/wwwroot/static/centaline/centaline-data-driven.js +53 -18
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/release-log.md
CHANGED
package/src/Form.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="form-app" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
3
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
4
|
-
<ct-form :api="'/
|
|
4
|
+
<ct-form :api="'/salemanage/ContractByPoint/readDetail'" :apiParam="apiParam" :topHeight="topHeight"></ct-form>
|
|
5
5
|
<ct-dialog-list></ct-dialog-list>
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
apiParam:{
|
|
15
|
-
"
|
|
15
|
+
"commissionMode":2,"contractId":"231120113744BAFD48D1D476422E8FAD","propertyId":"23111716432930CDE3FCA10A4EAE863F","searchFields":{"fields":[{"fieldName1":"CompanyPath","groupName":"CompanyPath","operation":1,"searchDataType":1,"searchValue1":"009"},{"fieldName1":"EmpID","groupName":"EmpID","operation":1,"searchDataType":1,"searchValue1":"202110201430497BB5FE89123A054CCA"},{"fieldName1":"DeptPath","groupName":"DeptPath","operation":1,"searchDataType":1,"searchValue1":"009.108"},{"fieldName1":"type","groupName":"type","operation":1,"searchDataType":1,"searchValue1":"left"},{"fieldName1":"EstateID","groupName":"EstateID","operation":2,"searchDataType":3,"searchValue1":"20210729104021C49F04B55C50F6AF58"}]},"actionType":3
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
package/src/SearchList.vue
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
<!-- <ct-searchlist :apiParam="para" :searchConditionApi="'/api/finance/tran-commission-allocate/process-layout'" :searchDataApi="'/api/finance/tran-commission-allocate/process-list'"></ct-searchlist> -->
|
|
25
25
|
|
|
26
|
+
<ct-searchlist :apiParam="para" :searchConditionApi="'/api/finance/invoice-apply/layout'" :searchDataApi="'/api/finance/invoice-apply/list'"></ct-searchlist>
|
|
27
|
+
|
|
26
28
|
|
|
27
29
|
<!-- <ct-searchlist :apiParam="para"
|
|
28
30
|
:searchConditionApi="'/api/transaction/adjustRecord/getLayoutOfSearch'"
|
|
@@ -65,11 +67,11 @@
|
|
|
65
67
|
:searchStatsApi="'/PropertyRETList/getListStats'">
|
|
66
68
|
</ct-searchlist> -->
|
|
67
69
|
|
|
68
|
-
<ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'" :appRootUrl="appRootUrl"
|
|
70
|
+
<!-- <ct-searchlist :searchConditionApi="'/PropertyOFIList/getLayoutOfSearch'" :appRootUrl="appRootUrl"
|
|
69
71
|
:searchDataApi="'/PropertyOFIList/getListOfSearchModel'"
|
|
70
72
|
:searchCategoryApi="'/PropertyOFIList/getLayoutOfSearchCategory'"
|
|
71
73
|
:searchStatsApi="'/PropertyOFIList/getListStats'">
|
|
72
|
-
</ct-searchlist>
|
|
74
|
+
</ct-searchlist> -->
|
|
73
75
|
|
|
74
76
|
<!-- <ct-searchlist :appRootUrl="appRootUrl" :searchConditionApi="'/EstateList/getLayoutOfSearch'" :searchDataApi="'/EstateList/getListOfSearchModel'"></ct-searchlist> -->
|
|
75
77
|
|
|
@@ -236,6 +236,7 @@
|
|
|
236
236
|
QRCodeRefTop:'',
|
|
237
237
|
QRCodeRefLeft:'',
|
|
238
238
|
QRCodeRefJiaoTop:16,
|
|
239
|
+
QRFileList:[],
|
|
239
240
|
};
|
|
240
241
|
},
|
|
241
242
|
computed: {
|
|
@@ -411,6 +412,8 @@
|
|
|
411
412
|
//上传完成钩子
|
|
412
413
|
handleAvatarSuccess(res, file, fileList) {
|
|
413
414
|
this.model.handleAvatarSuccess(res, file, fileList);
|
|
415
|
+
this.QRFileList=fileList;
|
|
416
|
+
this.QRCodeLocate();
|
|
414
417
|
},
|
|
415
418
|
handleAvatarError(res, file, fileList) {
|
|
416
419
|
if (res.status === 404) {
|
|
@@ -687,7 +690,12 @@
|
|
|
687
690
|
FileData.uid=self.uploadguid();
|
|
688
691
|
FileData.width=v.width;
|
|
689
692
|
FileData.height=v.height;
|
|
690
|
-
self.model.
|
|
693
|
+
if(self.model.type==51||(self.QRFileList&&self.QRFileList.length==0)){
|
|
694
|
+
self.model.fileList.push(FileData);
|
|
695
|
+
}
|
|
696
|
+
else{
|
|
697
|
+
self.QRFileList.push(FileData);
|
|
698
|
+
}
|
|
691
699
|
self.handleChange();
|
|
692
700
|
self.$nextTick(() => {
|
|
693
701
|
self.QRCodeLocate();
|
|
@@ -604,10 +604,11 @@
|
|
|
604
604
|
else if (field.isBrowseAttachment) {//浏览附件
|
|
605
605
|
var mediaviewpagetype=(field.isFormPageInTab||field.isSearchPageInTab)?2:0;
|
|
606
606
|
var MediaAlbum = [
|
|
607
|
-
{ albumName:
|
|
607
|
+
{ albumName: field.pageTitle || "媒体", medias: [] },
|
|
608
608
|
];
|
|
609
609
|
if (field.action) {
|
|
610
|
-
var callback = function (
|
|
610
|
+
var callback = function (res) {
|
|
611
|
+
let data=res.content
|
|
611
612
|
if(typeof data =='object'&&data.mediaAlbums){
|
|
612
613
|
MediaAlbum = data.mediaAlbums;
|
|
613
614
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
@input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
|
|
32
32
|
</span>
|
|
33
33
|
<span v-else-if="v.is=='ct-sensitiveeye'">
|
|
34
|
-
<component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="
|
|
34
|
+
<component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="itemKey"></component>
|
|
35
35
|
</span>
|
|
36
36
|
<!--可点击的列-->
|
|
37
37
|
<span v-else-if="v.router" :class="'cell'" style="display: flex;">
|
|
@@ -369,7 +369,7 @@ export default {
|
|
|
369
369
|
self.isLayout = true;
|
|
370
370
|
}
|
|
371
371
|
if (this.model.selectedRowBackColor) {
|
|
372
|
-
|
|
372
|
+
self.backgroundColor=this.model.selectedRowBackColor ;
|
|
373
373
|
}
|
|
374
374
|
if (
|
|
375
375
|
(self.model.searchModel.screen &&
|
|
@@ -456,6 +456,7 @@ export default {
|
|
|
456
456
|
next(true);
|
|
457
457
|
|
|
458
458
|
self.setfixedSize();
|
|
459
|
+
self.model.setButtonsDisabledByRowClick();
|
|
459
460
|
});
|
|
460
461
|
},
|
|
461
462
|
thMouseMoveHandle(ev) {
|
|
@@ -605,6 +606,9 @@ export default {
|
|
|
605
606
|
self.getScrollAttr();
|
|
606
607
|
}
|
|
607
608
|
self.setfixedSize();
|
|
609
|
+
if(index===1){
|
|
610
|
+
self.model.setButtonsDisabledByRowClick();
|
|
611
|
+
}
|
|
608
612
|
});
|
|
609
613
|
}
|
|
610
614
|
else {
|
|
@@ -861,6 +865,7 @@ export default {
|
|
|
861
865
|
this.rowMergedColorChange(this.model.selectIndex,index);
|
|
862
866
|
this.model.selectIndex = index;
|
|
863
867
|
this.rowColorChange();
|
|
868
|
+
this.model.setButtonsDisabledByRowClick();
|
|
864
869
|
this.$emit("rowClickHandle");
|
|
865
870
|
ev.cancelBubble = true;
|
|
866
871
|
ev.stopPropagation();
|
|
@@ -977,9 +977,29 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
977
977
|
if (v.isMulti) {
|
|
978
978
|
if (selectData != null && selectData.length > 0) {
|
|
979
979
|
v.disabled = false;
|
|
980
|
-
}
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
v.disabled = true;
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
},
|
|
987
|
+
setButtonsDisabledByRowClick() {
|
|
988
|
+
if(rtn.isMulti) return;
|
|
989
|
+
if(rtn._buttons.length===0) return;
|
|
990
|
+
|
|
991
|
+
var selectData = rtn.getSelectRowData({
|
|
992
|
+
isMulti: 0
|
|
993
|
+
});
|
|
994
|
+
rtn._buttons.forEach((v) => {
|
|
995
|
+
if (!v.isMulti) {
|
|
996
|
+
if(selectData != null && selectData.length > 0 &&
|
|
997
|
+
v.rightField && (selectData[0][v.rightField]===0 || selectData[0][v.rightField]==='0')){
|
|
981
998
|
v.disabled = true;
|
|
982
999
|
}
|
|
1000
|
+
else{
|
|
1001
|
+
v.disabled = false;
|
|
1002
|
+
}
|
|
983
1003
|
}
|
|
984
1004
|
});
|
|
985
1005
|
},
|
package/src/main.js
CHANGED
|
@@ -14,19 +14,19 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
14
14
|
// 关闭生产模式下给出的提示
|
|
15
15
|
Vue.config.productionTip = false;
|
|
16
16
|
Vue.use(centaline, {
|
|
17
|
-
baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
18
|
-
|
|
19
|
-
baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
|
|
17
|
+
// baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
|
|
18
|
+
baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
19
|
+
// baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
|
|
20
20
|
// baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
|
|
21
21
|
// baseUrl: "http://10.25.10.63:22026/service-api/v1/form/router",
|
|
22
22
|
// baseUrl: "http://10.25.10.67:8080/",
|
|
23
|
-
|
|
23
|
+
baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
|
|
24
24
|
// baseUrl: "http://10.88.22.69:8080/api/",
|
|
25
25
|
// baseUrl: "http://10.88.22.40:8080/api/",
|
|
26
|
-
// baseUrl: "http://10.
|
|
26
|
+
// baseUrl: "http://10.1.245.111:38028/",
|
|
27
27
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
28
28
|
// baseUrl: "http://tjcpuat.centaline.com.cn:9090/",
|
|
29
|
-
flagRouterSelf: true,
|
|
29
|
+
// flagRouterSelf: true,
|
|
30
30
|
zindex: 999,
|
|
31
31
|
showRequestSuccessMessage: true,
|
|
32
32
|
showRequestErrorMessage: true,
|
|
@@ -54,16 +54,16 @@ Vue.use(centaline, {
|
|
|
54
54
|
// 获取请求头
|
|
55
55
|
getRequestHeaders: function () {
|
|
56
56
|
return {
|
|
57
|
-
oldToken: '
|
|
57
|
+
oldToken: '497b8d90-82f4-4b73-b594-2e4db5bdad90',
|
|
58
58
|
// token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
|
|
59
|
-
authObject: '{token:"
|
|
59
|
+
// authObject: '{token:"1080-1726764353270714368"}',
|
|
60
60
|
|
|
61
61
|
// originalRequestURL: 'http://10.88.22.67:8080',
|
|
62
62
|
// EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
|
|
63
63
|
// estateId: '201806071109550C867184E8BCA56EC3',
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.
|
|
65
|
+
authObject: '{"currentEstate":{"estateId":"20210729104021C49F04B55C50F6AF58","estateName":"0%E6%B1%A4%E8%87%A3%E4%B8%80%E5%93%810%E5%A4%A9%E6%B4%A5"},"platform":1,"osVersion":"","clientVersion":"","machineCode":"a47c1cb528904d361a71a2612e9fe8f7","token":"","random":"LMOpUe","time":1700555306773,"sign":"b5fed3c92e2ad6ef33fdf4951eab2ae7"}',
|
|
66
|
+
AuthorizationCode:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjZmOGE3YmY5LWJmNTktNDQ5Mi1iYjViLTAwYzg5NzA4YjhkMSJ9.SdsZk29roc03uNTjl8UkURX0uJHog7FH2YdX9xdecUULznkQ0NrMKkuLhTTXXA4XAp47zcmbGUPphoCcCr_AOw',
|
|
67
67
|
};
|
|
68
68
|
},
|
|
69
69
|
// 请求完成事件,可判断是否登录过期执行响应操作
|
|
@@ -8147,7 +8147,12 @@ var Enum = {
|
|
|
8147
8147
|
/// <summary>
|
|
8148
8148
|
/// 图片控件
|
|
8149
8149
|
/// </summary>
|
|
8150
|
-
Image: 55
|
|
8150
|
+
Image: 55,
|
|
8151
|
+
|
|
8152
|
+
/// <summary>
|
|
8153
|
+
/// 位置获取控件
|
|
8154
|
+
/// </summary>
|
|
8155
|
+
Location: 56
|
|
8151
8156
|
|
|
8152
8157
|
},
|
|
8153
8158
|
|
|
@@ -11209,7 +11214,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABX
|
|
|
11209
11214
|
"use strict";
|
|
11210
11215
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicForm_vue__ = __webpack_require__(326);
|
|
11211
11216
|
/* unused harmony namespace reexport */
|
|
11212
|
-
/* harmony import */ var
|
|
11217
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2b15a10b_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__ = __webpack_require__(640);
|
|
11213
11218
|
function injectStyle (ssrContext) {
|
|
11214
11219
|
__webpack_require__(634)
|
|
11215
11220
|
}
|
|
@@ -11229,7 +11234,7 @@ var __vue_scopeId__ = null
|
|
|
11229
11234
|
var __vue_module_identifier__ = null
|
|
11230
11235
|
var Component = normalizeComponent(
|
|
11231
11236
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicForm_vue__["a" /* default */],
|
|
11232
|
-
|
|
11237
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2b15a10b_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__["a" /* default */],
|
|
11233
11238
|
__vue_template_functional__,
|
|
11234
11239
|
__vue_styles__,
|
|
11235
11240
|
__vue_scopeId__,
|
|
@@ -38292,7 +38297,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
38292
38297
|
"use strict";
|
|
38293
38298
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchTable_vue__ = __webpack_require__(302);
|
|
38294
38299
|
/* unused harmony namespace reexport */
|
|
38295
|
-
/* harmony import */ var
|
|
38300
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a328993_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__ = __webpack_require__(606);
|
|
38296
38301
|
function injectStyle (ssrContext) {
|
|
38297
38302
|
__webpack_require__(568)
|
|
38298
38303
|
}
|
|
@@ -38312,7 +38317,7 @@ var __vue_scopeId__ = null
|
|
|
38312
38317
|
var __vue_module_identifier__ = null
|
|
38313
38318
|
var Component = normalizeComponent(
|
|
38314
38319
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchTable_vue__["a" /* default */],
|
|
38315
|
-
|
|
38320
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a328993_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__["a" /* default */],
|
|
38316
38321
|
__vue_template_functional__,
|
|
38317
38322
|
__vue_styles__,
|
|
38318
38323
|
__vue_scopeId__,
|
|
@@ -38790,6 +38795,7 @@ var Component = normalizeComponent(
|
|
|
38790
38795
|
next(true);
|
|
38791
38796
|
|
|
38792
38797
|
self.setfixedSize();
|
|
38798
|
+
self.model.setButtonsDisabledByRowClick();
|
|
38793
38799
|
});
|
|
38794
38800
|
},
|
|
38795
38801
|
thMouseMoveHandle: function thMouseMoveHandle(ev) {
|
|
@@ -38917,6 +38923,9 @@ var Component = normalizeComponent(
|
|
|
38917
38923
|
self.getScrollAttr();
|
|
38918
38924
|
}
|
|
38919
38925
|
self.setfixedSize();
|
|
38926
|
+
if (index === 1) {
|
|
38927
|
+
self.model.setButtonsDisabledByRowClick();
|
|
38928
|
+
}
|
|
38920
38929
|
});
|
|
38921
38930
|
} else {
|
|
38922
38931
|
self.tableLoading = false;
|
|
@@ -39151,6 +39160,7 @@ var Component = normalizeComponent(
|
|
|
39151
39160
|
this.rowMergedColorChange(this.model.selectIndex, index);
|
|
39152
39161
|
this.model.selectIndex = index;
|
|
39153
39162
|
this.rowColorChange();
|
|
39163
|
+
this.model.setButtonsDisabledByRowClick();
|
|
39154
39164
|
this.$emit("rowClickHandle");
|
|
39155
39165
|
ev.cancelBubble = true;
|
|
39156
39166
|
ev.stopPropagation();
|
|
@@ -45271,9 +45281,10 @@ module.exports = g;
|
|
|
45271
45281
|
} else if (field.isBrowseAttachment) {
|
|
45272
45282
|
//浏览附件
|
|
45273
45283
|
var mediaviewpagetype = field.isFormPageInTab || field.isSearchPageInTab ? 2 : 0;
|
|
45274
|
-
var MediaAlbum = [{ albumName:
|
|
45284
|
+
var MediaAlbum = [{ albumName: field.pageTitle || "媒体", medias: [] }];
|
|
45275
45285
|
if (field.action) {
|
|
45276
|
-
var callback = function callback(
|
|
45286
|
+
var callback = function callback(res) {
|
|
45287
|
+
var data = res.content;
|
|
45277
45288
|
if ((typeof data === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_typeof___default()(data)) == 'object' && data.mediaAlbums) {
|
|
45278
45289
|
MediaAlbum = data.mediaAlbums;
|
|
45279
45290
|
} else {
|
|
@@ -52368,7 +52379,8 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
52368
52379
|
FlagbtnScan: false,
|
|
52369
52380
|
QRCodeRefTop: '',
|
|
52370
52381
|
QRCodeRefLeft: '',
|
|
52371
|
-
QRCodeRefJiaoTop: 16
|
|
52382
|
+
QRCodeRefJiaoTop: 16,
|
|
52383
|
+
QRFileList: []
|
|
52372
52384
|
};
|
|
52373
52385
|
},
|
|
52374
52386
|
|
|
@@ -52550,6 +52562,8 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
52550
52562
|
//上传完成钩子
|
|
52551
52563
|
handleAvatarSuccess: function handleAvatarSuccess(res, file, fileList) {
|
|
52552
52564
|
this.model.handleAvatarSuccess(res, file, fileList);
|
|
52565
|
+
this.QRFileList = fileList;
|
|
52566
|
+
this.QRCodeLocate();
|
|
52553
52567
|
},
|
|
52554
52568
|
handleAvatarError: function handleAvatarError(res, file, fileList) {
|
|
52555
52569
|
if (res.status === 404) {
|
|
@@ -52844,7 +52858,11 @@ if (typeof window !== "undefined" && "Vue" in window) {
|
|
|
52844
52858
|
FileData.uid = self.uploadguid();
|
|
52845
52859
|
FileData.width = v.width;
|
|
52846
52860
|
FileData.height = v.height;
|
|
52847
|
-
self.model.
|
|
52861
|
+
if (self.model.type == 51 || self.QRFileList && self.QRFileList.length == 0) {
|
|
52862
|
+
self.model.fileList.push(FileData);
|
|
52863
|
+
} else {
|
|
52864
|
+
self.QRFileList.push(FileData);
|
|
52865
|
+
}
|
|
52848
52866
|
self.handleChange();
|
|
52849
52867
|
self.$nextTick(function () {
|
|
52850
52868
|
self.QRCodeLocate();
|
|
@@ -57814,6 +57832,23 @@ var SearchTable = function SearchTable(data, callBack, searchModel, flagSearch,
|
|
|
57814
57832
|
}
|
|
57815
57833
|
});
|
|
57816
57834
|
},
|
|
57835
|
+
setButtonsDisabledByRowClick: function setButtonsDisabledByRowClick() {
|
|
57836
|
+
if (rtn.isMulti) return;
|
|
57837
|
+
if (rtn._buttons.length === 0) return;
|
|
57838
|
+
|
|
57839
|
+
var selectData = rtn.getSelectRowData({
|
|
57840
|
+
isMulti: 0
|
|
57841
|
+
});
|
|
57842
|
+
rtn._buttons.forEach(function (v) {
|
|
57843
|
+
if (!v.isMulti) {
|
|
57844
|
+
if (selectData != null && selectData.length > 0 && v.rightField && (selectData[0][v.rightField] === 0 || selectData[0][v.rightField] === '0')) {
|
|
57845
|
+
v.disabled = true;
|
|
57846
|
+
} else {
|
|
57847
|
+
v.disabled = false;
|
|
57848
|
+
}
|
|
57849
|
+
}
|
|
57850
|
+
});
|
|
57851
|
+
},
|
|
57817
57852
|
|
|
57818
57853
|
_scripts: null,
|
|
57819
57854
|
get scripts() {
|
|
@@ -72221,7 +72256,7 @@ var content = __webpack_require__(569);
|
|
|
72221
72256
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
72222
72257
|
if(content.locals) module.exports = content.locals;
|
|
72223
72258
|
// add the styles to the DOM
|
|
72224
|
-
var update = __webpack_require__(3)("
|
|
72259
|
+
var update = __webpack_require__(3)("17781834", content, true, {});
|
|
72225
72260
|
|
|
72226
72261
|
/***/ }),
|
|
72227
72262
|
/* 569 */
|
|
@@ -73475,7 +73510,7 @@ var content = __webpack_require__(635);
|
|
|
73475
73510
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
73476
73511
|
if(content.locals) module.exports = content.locals;
|
|
73477
73512
|
// add the styles to the DOM
|
|
73478
|
-
var update = __webpack_require__(3)("
|
|
73513
|
+
var update = __webpack_require__(3)("e9b36eb8", content, true, {});
|
|
73479
73514
|
|
|
73480
73515
|
/***/ }),
|
|
73481
73516
|
/* 635 */
|
|
@@ -73498,7 +73533,7 @@ exports.push([module.i, ".el-collapse{border-top:none}.ct-collapse-item-title .e
|
|
|
73498
73533
|
"use strict";
|
|
73499
73534
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__ = __webpack_require__(327);
|
|
73500
73535
|
/* unused harmony namespace reexport */
|
|
73501
|
-
/* harmony import */ var
|
|
73536
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_5613368b_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__ = __webpack_require__(639);
|
|
73502
73537
|
function injectStyle (ssrContext) {
|
|
73503
73538
|
__webpack_require__(637)
|
|
73504
73539
|
}
|
|
@@ -73518,7 +73553,7 @@ var __vue_scopeId__ = null
|
|
|
73518
73553
|
var __vue_module_identifier__ = null
|
|
73519
73554
|
var Component = normalizeComponent(
|
|
73520
73555
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
73521
|
-
|
|
73556
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_5613368b_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
73522
73557
|
__vue_template_functional__,
|
|
73523
73558
|
__vue_styles__,
|
|
73524
73559
|
__vue_scopeId__,
|
|
@@ -73539,7 +73574,7 @@ var content = __webpack_require__(638);
|
|
|
73539
73574
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
73540
73575
|
if(content.locals) module.exports = content.locals;
|
|
73541
73576
|
// add the styles to the DOM
|
|
73542
|
-
var update = __webpack_require__(3)("
|
|
73577
|
+
var update = __webpack_require__(3)("7146639c", content, true, {});
|
|
73543
73578
|
|
|
73544
73579
|
/***/ }),
|
|
73545
73580
|
/* 638 */
|
|
@@ -73560,7 +73595,7 @@ exports.push([module.i, ".el-table-add-row{margin-top:10px;width:100%;height:34p
|
|
|
73560
73595
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73561
73596
|
|
|
73562
73597
|
"use strict";
|
|
73563
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"focus",rawName:"v-focus",value:(_vm.foucus),expression:"foucus"}],staticClass:"ct-form-list",class:{'tableDisabled':_vm.model.tableDisabled}},[(_vm.model.title)?_c('div',{staticClass:"list-title"},[_c('h5',[_vm._v(_vm._s(_vm.model.title))])]):(_vm.model.create || (_vm.model.selectRouter && _vm.model.selectRouter.id))?_c('div',{staticClass:"list-title"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-button"},[(_vm.model.selectRouter!==null)?_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}}):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")]):_vm._e()],1),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{staticClass:"max-table--border",staticStyle:{"width":"100%"},attrs:{"size":"mini","data":_vm.model.tableData,"border":"","highlight-current-row":"","show-summary":_vm.model.showSummary,"summary-method":_vm.getSummaries}},[_vm._l((_vm.model.rows[0].field),function(v,i){return (v.show !== false && v.type!==13)?_c('el-table-column',{key:i,attrs:{"prop":v.id,"label":v.label,"width":v.width,"fixed":_vm.model.frozenColumns.includes(v.id),"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [_c('div',{class:[{'ct-table-required':v.required&&_vm.model.rows[0].edit&& _vm.model.rows[0].delete&&!_vm.model.tableDisabled},_vm.getHeadClass(v)]},[_vm._v("\n "+_vm._s(v.label)+"\n ")])]}},{key:"default",fn:function(scope){return [(scope.row.isSet)?_c('span',[_c(_vm.model.currentRow.data[v.id].locked || _vm.model.currentRow.data[v.id].is!==v.is?_vm.model.currentRow.data[v.id].is:v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":_vm.model.currentRow.data[v.id],"api":_vm.model.OptApi},on:{"change":function($event){_vm.changeHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)},"input":function($event){_vm.inputHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)}}})],1):(v.is=='ct-sensitiveeye')?_c('span',[_c(v.is,{key:_vm.
|
|
73598
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"focus",rawName:"v-focus",value:(_vm.foucus),expression:"foucus"}],staticClass:"ct-form-list",class:{'tableDisabled':_vm.model.tableDisabled}},[(_vm.model.title)?_c('div',{staticClass:"list-title"},[_c('h5',[_vm._v(_vm._s(_vm.model.title))])]):(_vm.model.create || (_vm.model.selectRouter && _vm.model.selectRouter.id))?_c('div',{staticClass:"list-title"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-button"},[(_vm.model.selectRouter!==null)?_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}}):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")]):_vm._e()],1),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{staticClass:"max-table--border",staticStyle:{"width":"100%"},attrs:{"size":"mini","data":_vm.model.tableData,"border":"","highlight-current-row":"","show-summary":_vm.model.showSummary,"summary-method":_vm.getSummaries}},[_vm._l((_vm.model.rows[0].field),function(v,i){return (v.show !== false && v.type!==13)?_c('el-table-column',{key:i,attrs:{"prop":v.id,"label":v.label,"width":v.width,"fixed":_vm.model.frozenColumns.includes(v.id),"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [_c('div',{class:[{'ct-table-required':v.required&&_vm.model.rows[0].edit&& _vm.model.rows[0].delete&&!_vm.model.tableDisabled},_vm.getHeadClass(v)]},[_vm._v("\n "+_vm._s(v.label)+"\n ")])]}},{key:"default",fn:function(scope){return [(scope.row.isSet)?_c('span',[_c(_vm.model.currentRow.data[v.id].locked || _vm.model.currentRow.data[v.id].is!==v.is?_vm.model.currentRow.data[v.id].is:v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":_vm.model.currentRow.data[v.id],"api":_vm.model.OptApi},on:{"change":function($event){_vm.changeHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)},"input":function($event){_vm.inputHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)}}})],1):(v.is=='ct-sensitiveeye')?_c('span',[_c(v.is,{key:_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":scope.row[v.id],"vrowmodel":scope.row,"api":_vm.model.OptApi}})],1):(v.router)?_c('span',{class:'cell',staticStyle:{"display":"flex"}},[_c('span',[_vm._v(_vm._s(scope.row.isSet))]),_vm._v(" "),_c('ct-tablecurrency',{attrs:{"router":v.router,"colValue":scope.row[v.id].code1,"rowData":scope.row},on:{"click":_vm.rolRouterClickHandler}})],1):_c('ct-span',{key:scope.row[v.id].rowKey+_vm.itemKey,ref:"FieldsLabel",refInFor:true,attrs:{"vmodel":scope.row[v.id],"rowNum":scope.row.$sourceIndex,"rowData":scope.row}})]}}])}):_vm._e()}),_vm._v(" "),(_vm.model.rows[0].edit || _vm.model.rows[0].delete || _vm.model.buttons.length > 0)?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]}}])}):_vm._e()],2)],1)],1)],1),_vm._v(" "),(_vm.model.description)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.model.description)}}):_vm._e()])}
|
|
73564
73599
|
var staticRenderFns = []
|
|
73565
73600
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
73566
73601
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
@@ -77970,7 +78005,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
77970
78005
|
"use strict";
|
|
77971
78006
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFile_vue__ = __webpack_require__(336);
|
|
77972
78007
|
/* unused harmony namespace reexport */
|
|
77973
|
-
/* harmony import */ var
|
|
78008
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_37733e73_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__ = __webpack_require__(688);
|
|
77974
78009
|
function injectStyle (ssrContext) {
|
|
77975
78010
|
__webpack_require__(681)
|
|
77976
78011
|
}
|
|
@@ -77990,7 +78025,7 @@ var __vue_scopeId__ = null
|
|
|
77990
78025
|
var __vue_module_identifier__ = null
|
|
77991
78026
|
var Component = normalizeComponent(
|
|
77992
78027
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFile_vue__["a" /* default */],
|
|
77993
|
-
|
|
78028
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_37733e73_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFile_vue__["a" /* default */],
|
|
77994
78029
|
__vue_template_functional__,
|
|
77995
78030
|
__vue_styles__,
|
|
77996
78031
|
__vue_scopeId__,
|
|
@@ -78011,7 +78046,7 @@ var content = __webpack_require__(682);
|
|
|
78011
78046
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
78012
78047
|
if(content.locals) module.exports = content.locals;
|
|
78013
78048
|
// add the styles to the DOM
|
|
78014
|
-
var update = __webpack_require__(3)("
|
|
78049
|
+
var update = __webpack_require__(3)("7fa0f178", content, true, {});
|
|
78015
78050
|
|
|
78016
78051
|
/***/ }),
|
|
78017
78052
|
/* 682 */
|