centaline-data-driven 1.5.97 → 1.5.98
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 +7 -0
- package/src/Form.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +1 -2
- package/src/centaline/loader/src/ctl/FormList.js +17 -0
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +20 -5
- 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="'/third-dept-tran/second-hand-transaction/electronic-contract'" :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
|
+
"originalTraId":"1752262617589448705"
|
|
16
16
|
},
|
|
17
17
|
topHeight:10,
|
|
18
18
|
}
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
</span>
|
|
36
36
|
<!--可点击的列-->
|
|
37
37
|
<span v-else-if="v.router" :class="'cell'" style="display: flex;">
|
|
38
|
-
<span>{{scope.row.isSet}}</span>
|
|
39
38
|
<ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
|
|
40
39
|
</ct-tablecurrency>
|
|
41
40
|
</span>
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
</el-table-column>
|
|
45
44
|
|
|
46
45
|
<!--操作列-->
|
|
47
|
-
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || model.buttons.length > 0" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
46
|
+
<el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
|
|
48
47
|
<template slot-scope="scope">
|
|
49
48
|
<span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
|
|
50
49
|
{{scope.row.isSet?'保存':"修改"}}
|
|
@@ -131,6 +131,23 @@ const FormList = function (source, master) {
|
|
|
131
131
|
return rtn._buttons;
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
|
+
_buttonsShow: null,
|
|
135
|
+
get buttonsShow() {
|
|
136
|
+
if (rtn._buttonsShow !== null) {
|
|
137
|
+
return rtn._buttonsShow;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
rtn._buttonsShow = [];
|
|
141
|
+
if (rtn.buttons) {
|
|
142
|
+
rtn.buttons.forEach((v) => {
|
|
143
|
+
if(v.show){
|
|
144
|
+
rtn._buttonsShow.push(button);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return rtn._buttonsShow;
|
|
149
|
+
}
|
|
150
|
+
},
|
|
134
151
|
_rows:null,
|
|
135
152
|
get rows() {
|
|
136
153
|
if (this._rows) {
|
package/src/main.js
CHANGED
|
@@ -20,10 +20,10 @@ Vue.use(centaline, {
|
|
|
20
20
|
// baseUrl: "http://10.88.22.13:6060/onecard-api/",
|
|
21
21
|
// baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
|
|
22
22
|
// baseUrl: "http://10.25.10.63:22026/service-api/v1/form/router",
|
|
23
|
-
// baseUrl: "http://10.25.10.
|
|
23
|
+
// baseUrl: "http://10.25.10.69:8080/",
|
|
24
24
|
// baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
|
|
25
|
-
|
|
26
|
-
baseUrl: "http://10.88.22.42:9999/service-api/",
|
|
25
|
+
baseUrl: "http://10.88.22.69:8080/api/",
|
|
26
|
+
// baseUrl: "http://10.88.22.42:9999/service-api/",
|
|
27
27
|
// baseUrl: "http://10.1.245.111:38028/",
|
|
28
28
|
// baseUrl: "http://tjcptest.centaline.com.cn/",
|
|
29
29
|
// baseUrl: "http://tjcpuat.centaline.com.cn:9090/",
|
|
@@ -55,7 +55,7 @@ Vue.use(centaline, {
|
|
|
55
55
|
// 获取请求头
|
|
56
56
|
getRequestHeaders: function () {
|
|
57
57
|
return {
|
|
58
|
-
oldToken: '
|
|
58
|
+
oldToken: 'ef4d1857-73a3-4ff7-960b-1c27f1ae3f95',
|
|
59
59
|
token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe-yNZPsMrM7M3TsAo2HIKBLgpURSDTGu6tRO3tf8YvXvH8zyzaayjRSW0odQmpLD9Swh7pjgZhEbCwZKUqvH-DHfOmdI2UXWqiVE1AgBHFJIFFI1DUtptiYwuTLyVSObXDsUUJh5mF9CyuiL7Et-bzL13-cO67zM4u4Z1GLEDwj0KQDjKwHyL5kl0nVDZO5PwAAAP__.lLGz-ut5lOSrU5OeZVNG6UwRNZx3ds6ezV19Y0wF3Kw',
|
|
60
60
|
authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe-yNZPsMrM7M3TsAo2HIKBLgpURSDTGu6tRO3tf8YvXvH8zyzaayjRSW0odQmpLD9Swh7pjgZhEbCwZKUqvH-DHfOmdI2UXWqiVE1AgBHFJIFFI1DUtptiYwuTLyVSObXDsUUJh5mF9CyuiL7Et-bzL13-cO67zM4u4Z1GLEDwj0KQDjKwHyL5kl0nVDZO5PwAAAP__.lLGz-ut5lOSrU5OeZVNG6UwRNZx3ds6ezV19Y0wF3Kw"}',
|
|
61
61
|
|
|
@@ -29757,7 +29757,6 @@ module.exports = g;
|
|
|
29757
29757
|
//
|
|
29758
29758
|
//
|
|
29759
29759
|
//
|
|
29760
|
-
//
|
|
29761
29760
|
|
|
29762
29761
|
//Form内表格
|
|
29763
29762
|
var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更新
|
|
@@ -56577,6 +56576,22 @@ var FormList = function FormList(source, master) {
|
|
|
56577
56576
|
return rtn._buttons;
|
|
56578
56577
|
}
|
|
56579
56578
|
},
|
|
56579
|
+
_buttonsShow: null,
|
|
56580
|
+
get buttonsShow() {
|
|
56581
|
+
if (rtn._buttonsShow !== null) {
|
|
56582
|
+
return rtn._buttonsShow;
|
|
56583
|
+
} else {
|
|
56584
|
+
rtn._buttonsShow = [];
|
|
56585
|
+
if (rtn.buttons) {
|
|
56586
|
+
rtn.buttons.forEach(function (v) {
|
|
56587
|
+
if (v.show) {
|
|
56588
|
+
rtn._buttonsShow.push(button);
|
|
56589
|
+
}
|
|
56590
|
+
});
|
|
56591
|
+
}
|
|
56592
|
+
return rtn._buttonsShow;
|
|
56593
|
+
}
|
|
56594
|
+
},
|
|
56580
56595
|
_rows: null,
|
|
56581
56596
|
get rows() {
|
|
56582
56597
|
var _this = this;
|
|
@@ -73318,7 +73333,7 @@ exports.push([module.i, ".el-collapse{border-top:none}.ct-collapse-item-title .e
|
|
|
73318
73333
|
"use strict";
|
|
73319
73334
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__ = __webpack_require__(185);
|
|
73320
73335
|
/* unused harmony namespace reexport */
|
|
73321
|
-
/* harmony import */ var
|
|
73336
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_47f25bea_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__ = __webpack_require__(608);
|
|
73322
73337
|
function injectStyle (ssrContext) {
|
|
73323
73338
|
__webpack_require__(606)
|
|
73324
73339
|
}
|
|
@@ -73338,7 +73353,7 @@ var __vue_scopeId__ = null
|
|
|
73338
73353
|
var __vue_module_identifier__ = null
|
|
73339
73354
|
var Component = normalizeComponent(
|
|
73340
73355
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
73341
|
-
|
|
73356
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_47f25bea_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
73342
73357
|
__vue_template_functional__,
|
|
73343
73358
|
__vue_styles__,
|
|
73344
73359
|
__vue_scopeId__,
|
|
@@ -73359,7 +73374,7 @@ var content = __webpack_require__(607);
|
|
|
73359
73374
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
73360
73375
|
if(content.locals) module.exports = content.locals;
|
|
73361
73376
|
// add the styles to the DOM
|
|
73362
|
-
var update = __webpack_require__(3)("
|
|
73377
|
+
var update = __webpack_require__(3)("33d760c4", content, true, {});
|
|
73363
73378
|
|
|
73364
73379
|
/***/ }),
|
|
73365
73380
|
/* 607 */
|
|
@@ -73380,7 +73395,7 @@ exports.push([module.i, ".el-table-add-row{margin-top:10px;width:100%;height:34p
|
|
|
73380
73395
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
73381
73396
|
|
|
73382
73397
|
"use strict";
|
|
73383
|
-
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('
|
|
73398
|
+
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('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 && _vm.model.buttonsShow.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()])}
|
|
73384
73399
|
var staticRenderFns = []
|
|
73385
73400
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
73386
73401
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|