centaline-data-driven 1.1.17 → 1.1.22
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/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
- package/README.md +7 -7
- package/build/webpack.dev.conf.js +1 -1
- package/config/dev.env.js +2 -2
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +9 -11
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +3 -7
- package/obj/project.assets.json +9 -16
- package/package.json +1 -1
- package/src/Form.vue +2 -2
- package/src/SearchList.vue +2 -2
- package/src/centaline/api/index.js +16 -8
- package/src/centaline/comfirm/src/comfirm.vue +15 -6
- package/src/centaline/common/index.js +41 -26
- package/src/centaline/css/common.css +16 -2
- package/src/centaline/dialogList/src/dialog.vue +2 -2
- package/src/centaline/dialogList/src/dialogList.vue +3 -1
- package/src/centaline/dialogList/src/dialogNew.vue +16 -16
- package/src/centaline/dynamicBtn/src/dynamicBtn.vue +16 -16
- package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +3 -5
- package/src/centaline/dynamicDtd/src/dynamicDtd.vue +4 -4
- package/src/centaline/dynamicFile/src/dynamicFile.vue +14 -14
- package/src/centaline/dynamicForm/src/dynamicForm.vue +3 -3
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +13 -13
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +1 -1
- package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +6 -6
- package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +14 -14
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +4 -4
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +2 -2
- package/src/centaline/dynamicT/src/dynamicT.vue +4 -4
- package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +0 -1
- package/src/centaline/imgPreview/index.js +6 -6
- package/src/centaline/imgPreview/src/imgPreview.vue +3 -3
- package/src/centaline/index.js +14 -14
- package/src/centaline/loader/index.js +5 -5
- package/src/centaline/loader/src/ctl/Button.js +3 -3
- package/src/centaline/loader/src/ctl/Checkbox.js +46 -46
- package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +11 -11
- package/src/centaline/loader/src/ctl/D.js +2 -2
- package/src/centaline/loader/src/ctl/Dtd.js +18 -18
- package/src/centaline/loader/src/ctl/DtdOld.js +8 -8
- package/src/centaline/loader/src/ctl/File.js +1 -1
- package/src/centaline/loader/src/ctl/Form.js +11 -7
- package/src/centaline/loader/src/ctl/FormList.js +1 -1
- package/src/centaline/loader/src/ctl/HyperLink.js +1 -1
- package/src/centaline/loader/src/ctl/InputNumber.js +2 -1
- package/src/centaline/loader/src/ctl/Iti.js +1 -1
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/SearchScreen.js +5 -5
- package/src/centaline/loader/src/ctl/SearchTable.js +6 -2
- package/src/centaline/loader/src/ctl/T.js +1 -1
- package/src/centaline/loader/src/ctl/TimeSelect.js +12 -9
- package/src/centaline/loader/src/ctl/lib/Enum.js +9 -1
- package/src/centaline/loader/src/ctl/lib/LibFunction.js +17 -10
- package/src/centaline/loader/src/ctl.js +2 -1
- package/src/centaline/mixins/dynamicElement.js +34 -34
- package/src/centaline/progress/src/progress.vue +37 -37
- package/src/centaline/templateControls/src/dynamicTableCurrency.vue +1 -1
- package/src/centaline/templates/src/ContractSearch.js +4 -4
- package/src/main.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache.v2 +0 -0
- package/.vs/Centaline.Front_End.DataDriven/config/applicationhost.config +0 -1015
- package/obj/Debug/netcoreapp2.1/.NETCoreApp,Version=v2.1.AssemblyAttributes.cs +0 -4
|
@@ -188,6 +188,7 @@ const common = {
|
|
|
188
188
|
* @desc 打开弹窗
|
|
189
189
|
*/
|
|
190
190
|
openDialog(vmodel) {
|
|
191
|
+
|
|
191
192
|
//this.dialogList.List.push(vmodel);
|
|
192
193
|
this.dialogList.addDialog(vmodel);
|
|
193
194
|
},
|
|
@@ -198,8 +199,9 @@ const common = {
|
|
|
198
199
|
* @desc 关闭指定弹窗
|
|
199
200
|
*/
|
|
200
201
|
closeDialog(vmodel) {
|
|
202
|
+
|
|
201
203
|
if (vmodel) {
|
|
202
|
-
if (vmodel.$options.name === 'ctDialog' || vmodel.$options.name === 'ct-dialog') {
|
|
204
|
+
if (vmodel.name === 'ct-comfirm' || vmodel.$options.name === 'ctDialog' || vmodel.$options.name === 'ct-dialog') {
|
|
203
205
|
//vmodel.dialogTableVisible = false;
|
|
204
206
|
this.dialogList.deleteDialog(vmodel);
|
|
205
207
|
return;
|
|
@@ -213,33 +215,46 @@ const common = {
|
|
|
213
215
|
}
|
|
214
216
|
},
|
|
215
217
|
|
|
218
|
+
/**
|
|
219
|
+
* @method
|
|
220
|
+
* @param {Object} message 提示信息
|
|
221
|
+
* @param {Object} title 提示框标题
|
|
222
|
+
* @param {Object} options 参数 如confirmButtonText,cancelButtonText
|
|
223
|
+
* @desc 确认框
|
|
224
|
+
*/
|
|
216
225
|
confirm(message, title, options) {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
226
|
+
let self = this;
|
|
227
|
+
|
|
228
|
+
return new Promise((resolve,reject) => {
|
|
229
|
+
var dialogOption = {
|
|
230
|
+
title: title,
|
|
231
|
+
name:'ct-comfirm',
|
|
232
|
+
vmodel:{},
|
|
233
|
+
content: [{
|
|
234
|
+
component: 'ct-comfirm',
|
|
235
|
+
attrs: {
|
|
236
|
+
options:options,
|
|
237
|
+
text:message,
|
|
238
|
+
width: '400px',
|
|
239
|
+
height: '95px'
|
|
240
|
+
},
|
|
241
|
+
on: {
|
|
242
|
+
access(){
|
|
243
|
+
self.closeDialog(dialogOption);
|
|
244
|
+
resolve();
|
|
245
|
+
},
|
|
246
|
+
cancel()
|
|
247
|
+
{
|
|
248
|
+
self.closeDialog(dialogOption);
|
|
249
|
+
reject()
|
|
250
|
+
},
|
|
251
|
+
|
|
238
252
|
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
253
|
+
}]
|
|
254
|
+
};
|
|
255
|
+
this.openDialog(dialogOption);
|
|
256
|
+
})
|
|
257
|
+
|
|
243
258
|
},
|
|
244
259
|
|
|
245
260
|
/**
|
|
@@ -683,7 +683,13 @@ html {
|
|
|
683
683
|
background-color: #d6d6d6;
|
|
684
684
|
border-color: #d6d6d6;
|
|
685
685
|
}
|
|
686
|
-
|
|
686
|
+
.ct-tableToolbar .is-disabled {
|
|
687
|
+
background: #b1b3bc !important;
|
|
688
|
+
}
|
|
689
|
+
.ct-tableToolbar .is-disabled:hover {
|
|
690
|
+
color: #333 !important;
|
|
691
|
+
background: #b1b3bc !important;
|
|
692
|
+
}
|
|
687
693
|
.ct-dialog_app {
|
|
688
694
|
position: relative
|
|
689
695
|
}
|
|
@@ -698,4 +704,12 @@ html {
|
|
|
698
704
|
{cursor: pointer;}
|
|
699
705
|
.ct-position-relative{
|
|
700
706
|
position: relative;
|
|
701
|
-
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.ct-right-0{
|
|
710
|
+
right: 0px !important;
|
|
711
|
+
}
|
|
712
|
+
.ct-right-10{
|
|
713
|
+
right: 10px !important;
|
|
714
|
+
}
|
|
715
|
+
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
class: ['ct-dialog_header'],
|
|
98
98
|
style: {
|
|
99
99
|
'position': 'relative',
|
|
100
|
-
'padding': '10px 20px 10px 20px',
|
|
100
|
+
'padding': '10px 20px 10px 20px',
|
|
101
101
|
'height': '44px'
|
|
102
102
|
},
|
|
103
103
|
}, [
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
item.on.loaded = (model) => {
|
|
133
133
|
mySelf.vmodel.title = (model && model.title) ? model.title : mySelf.vmodel.title
|
|
134
134
|
}
|
|
135
|
-
}
|
|
135
|
+
}
|
|
136
136
|
|
|
137
137
|
//加载失败关闭弹框
|
|
138
138
|
if (typeof item.on.failLoad === "undefined") {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
methods: {
|
|
37
37
|
addDialog(vmodel) {
|
|
38
|
+
|
|
38
39
|
vmodel.id = (new Date()).getTime();
|
|
39
40
|
this.List.push(vmodel);
|
|
40
41
|
|
|
@@ -46,10 +47,11 @@
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
deleteDialog(model) {
|
|
50
|
+
|
|
49
51
|
model.dialogTableVisible = false;
|
|
50
52
|
//改成删除
|
|
51
53
|
let index = this.List.findIndex(v => {
|
|
52
|
-
|
|
54
|
+
return v.id === model.id || v.id === model.vmodel.id;
|
|
53
55
|
});
|
|
54
56
|
this.List.splice(index, 1);
|
|
55
57
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="ct-dialog">
|
|
3
|
-
<el-dialog :top="topHeigth"
|
|
3
|
+
<el-dialog :top="topHeigth"
|
|
4
4
|
:title="vmodel.title" :close-on-click-modal="false"
|
|
5
5
|
:visible.sync="dialogVisible"
|
|
6
6
|
:width="vmodel.content[0].attrs.width"
|
|
7
|
-
:before-close="handleClose">
|
|
7
|
+
:before-close="handleClose">
|
|
8
8
|
<div :style="v.style" v-for="(v,index) in vmodel.content" :key="index">
|
|
9
9
|
<component v-bind="v.attrs" :is="v.component" v-on="v.on"></component>
|
|
10
10
|
</div>
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
mounted() {
|
|
28
28
|
for (var index in this.vmodel.content) {
|
|
29
|
-
const v = this.vmodel.content[index];
|
|
30
|
-
if (v.component === 'ct-searchlist' && parseInt(v.attrs.height) < 300) {
|
|
31
|
-
v.attrs.height = '450px';
|
|
32
|
-
}
|
|
29
|
+
const v = this.vmodel.content[index];
|
|
30
|
+
if (v.component === 'ct-searchlist' && parseInt(v.attrs.height) < 300) {
|
|
31
|
+
v.attrs.height = '450px';
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
this.$set(v, 'style', {
|
|
35
35
|
width: '100%',
|
|
@@ -49,23 +49,23 @@
|
|
|
49
49
|
computed: {
|
|
50
50
|
topHeigth: function () {
|
|
51
51
|
let height;
|
|
52
|
-
let vh = 0;
|
|
52
|
+
let vh = 0;
|
|
53
53
|
this.vmodel.content[0].attrs.height = '50px';
|
|
54
54
|
if (this.vmodel.content[0].attrs.height) {
|
|
55
55
|
height = parseInt(this.vmodel.content[0].attrs.height) + 20;
|
|
56
56
|
}
|
|
57
57
|
if (document.documentElement.clientHeight > height) {
|
|
58
|
-
height = document.documentElement.clientHeight - height;
|
|
58
|
+
height = document.documentElement.clientHeight - height;
|
|
59
59
|
height = parseInt(height/2);
|
|
60
|
-
vh = height * 100 / document.documentElement.clientHeight;
|
|
60
|
+
vh = height * 100 / document.documentElement.clientHeight;
|
|
61
61
|
vh = parseInt(vh);
|
|
62
|
-
}
|
|
63
|
-
if (vh < 3) {
|
|
64
|
-
vh = 3;
|
|
65
|
-
}
|
|
66
|
-
if (vh > 13) {
|
|
67
|
-
vh = 13;
|
|
68
|
-
}
|
|
62
|
+
}
|
|
63
|
+
if (vh < 3) {
|
|
64
|
+
vh = 3;
|
|
65
|
+
}
|
|
66
|
+
if (vh > 13) {
|
|
67
|
+
vh = 13;
|
|
68
|
+
}
|
|
69
69
|
return vh + 'vh';
|
|
70
70
|
},
|
|
71
71
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-button v-if="!model.isImport"
|
|
3
|
-
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
4
|
-
v-bind="model.attrs" @click="$emit('click',model)"
|
|
2
|
+
<el-button v-if="!model.isImport"
|
|
3
|
+
:type="model.isHyperLink ? 'text' : 'primary'"
|
|
4
|
+
v-bind="model.attrs" @click="$emit('click',model)"
|
|
5
5
|
:disabled="model.disabled">{{model.label}}</el-button>
|
|
6
6
|
<el-upload v-else
|
|
7
7
|
:action="model.action"
|
|
@@ -36,26 +36,26 @@
|
|
|
36
36
|
this.model = this.vmodel;
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
computed: {
|
|
40
|
-
uploadData() {
|
|
41
|
-
//因传输方式是FormData,故需要对Value是object的进行转化
|
|
42
|
-
let data = {};
|
|
43
|
-
for (var key in this.fileData) {
|
|
44
|
-
if (typeof this.fileData[key] === "object") {
|
|
45
|
-
data[key] = JSON.stringify(this.fileData[key]);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
data[key] = this.fileData[key];
|
|
39
|
+
computed: {
|
|
40
|
+
uploadData() {
|
|
41
|
+
//因传输方式是FormData,故需要对Value是object的进行转化
|
|
42
|
+
let data = {};
|
|
43
|
+
for (var key in this.fileData) {
|
|
44
|
+
if (typeof this.fileData[key] === "object") {
|
|
45
|
+
data[key] = JSON.stringify(this.fileData[key]);
|
|
49
46
|
}
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
else {
|
|
48
|
+
data[key] = this.fileData[key];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return data;
|
|
52
52
|
},
|
|
53
53
|
headers() {
|
|
54
54
|
return this.$common.getDataDrivenOpts().handler.getRequestHeaders();
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
methods: {
|
|
58
|
-
handleAvatarSuccess(res) {
|
|
58
|
+
handleAvatarSuccess(res) {
|
|
59
59
|
let self = this;
|
|
60
60
|
this.$api.postThenHandler({ data: res}).then(function () {
|
|
61
61
|
self.$emit('importComplete', res);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="ct-checkbox-mian cover-list-item" :class="[model.showLabel?'showLabel':'',model.value !== ''?'hasValue':'']">
|
|
9
9
|
<span>
|
|
10
10
|
<el-checkbox-group v-model="model.checkedItemArr" @change="changeHandler1">
|
|
11
|
-
<el-checkbox v-for="item in model.options" :label="item[model.optionAttrs.value]" :key="item[model.optionAttrs.value]">{{item[model.optionAttrs.label]}}</el-checkbox>
|
|
11
|
+
<el-checkbox :disabled="model.lock" v-for="item in model.options" :label="item[model.optionAttrs.value]" :key="item[model.optionAttrs.value]">{{item[model.optionAttrs.label]}}</el-checkbox>
|
|
12
12
|
</el-checkbox-group>
|
|
13
13
|
</span>
|
|
14
14
|
|
|
@@ -46,12 +46,10 @@
|
|
|
46
46
|
self.$emit('loaded');
|
|
47
47
|
}
|
|
48
48
|
else if (typeof self.source !== 'undefined') {
|
|
49
|
-
|
|
50
|
-
self.load(data);
|
|
51
|
-
});
|
|
49
|
+
this.model = self.loaderObj.Checkbox(self.source);
|
|
52
50
|
}
|
|
53
51
|
else if (typeof self.api !== 'undefined') {
|
|
54
|
-
self.loaderObj.
|
|
52
|
+
self.loaderObj.Checkbox(self.api, (data) => {
|
|
55
53
|
self.load(data);
|
|
56
54
|
});
|
|
57
55
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
{{validMessage}}
|
|
32
32
|
</span>
|
|
33
33
|
</transition>
|
|
34
|
-
<ct-quick-input v-if="model.paramName && !model.lock" :pn="model.paramName" :action="api"
|
|
34
|
+
<ct-quick-input v-if="model.paramName && !model.lock" :pn="model.paramName" :action="api" ></ct-quick-input>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
</template>
|
|
@@ -49,7 +49,9 @@
|
|
|
49
49
|
pickerOptions: this.getPickerOptions()
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
|
+
|
|
52
53
|
mounted() {
|
|
54
|
+
|
|
53
55
|
var self = this;
|
|
54
56
|
this.$nextTick(function () {
|
|
55
57
|
if (self.vmodel) {
|
|
@@ -57,9 +59,7 @@
|
|
|
57
59
|
self.$emit('loaded');
|
|
58
60
|
}
|
|
59
61
|
else if (typeof self.source !== 'undefined') {
|
|
60
|
-
self.loaderObj.Dtd(self.source
|
|
61
|
-
self.load(data);
|
|
62
|
-
});
|
|
62
|
+
this.model = self.loaderObj.Dtd(self.source);
|
|
63
63
|
}
|
|
64
64
|
else if (typeof self.api !== 'undefined') {
|
|
65
65
|
self.loaderObj.Dtd(self.api, (data) => {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
<div slot="tip" class="el-upload__tip errorMessage" v-show="!valid">{{validMessage}}</div>
|
|
19
19
|
<div slot="file" slot-scope="{file}" :title="file.fileName">
|
|
20
20
|
<div class="cover-list-item">
|
|
21
|
-
<el-image fit="fill" :src="file.url"
|
|
22
|
-
style="width: 150px; height: 150px"
|
|
23
|
-
:preview-src-list="getPreviewSrcList(file)"
|
|
24
|
-
:z-index="previewZIndex"
|
|
21
|
+
<el-image fit="fill" :src="file.url"
|
|
22
|
+
style="width: 150px; height: 150px"
|
|
23
|
+
:preview-src-list="getPreviewSrcList(file)"
|
|
24
|
+
:z-index="previewZIndex"
|
|
25
25
|
@click="handlePictureCardPreview(file)">
|
|
26
26
|
</el-image>
|
|
27
27
|
<span class="cover-list-item-span-delete" v-if="!model.lock && file.rightDel">
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
{{file.mediaLabelName}}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
43
43
|
</span>
|
|
44
44
|
<el-dropdown-menu slot="dropdown" class="el-upload-list__item-preview">
|
|
45
|
-
<el-dropdown-item v-for="(option, index) in model.optionModel.options" :key="index" :command="{option:option,file:file}">
|
|
46
|
-
{{option[model.optionModel.optionAttrs.label]}}
|
|
45
|
+
<el-dropdown-item v-for="(option, index) in model.optionModel.options" :key="index" :command="{option:option,file:file}">
|
|
46
|
+
{{option[model.optionModel.optionAttrs.label]}}
|
|
47
47
|
</el-dropdown-item>
|
|
48
48
|
</el-dropdown-menu>
|
|
49
49
|
</el-dropdown>
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
//删除
|
|
98
98
|
handleRemove(file) {
|
|
99
|
-
this.$confirm("确定删除该附件?", "提示", {
|
|
99
|
+
this.$common.confirm("确定删除该附件?", "提示", {
|
|
100
100
|
confirmButtonText: "确定",
|
|
101
101
|
cancelButtonText: "取消",
|
|
102
102
|
//type: 'warning'
|
|
@@ -109,26 +109,26 @@
|
|
|
109
109
|
if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
|
|
110
110
|
//this.$openPreview([file.mediaUrl]);
|
|
111
111
|
}
|
|
112
|
-
else {
|
|
112
|
+
else {
|
|
113
113
|
if (file.rightDownload) {
|
|
114
|
-
window.open(file.mediaUrl, "_blank");
|
|
114
|
+
window.open(file.mediaUrl, "_blank");
|
|
115
115
|
}
|
|
116
116
|
return [];
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
getPreviewSrcList(file) {
|
|
120
|
-
if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
|
|
120
|
+
if (this.$common.isAssetTypeAnImage(this.getSuffix(file))) {
|
|
121
121
|
let arr = this.model.fileList.filter(at => this.$common.isAssetTypeAnImage(this.getSuffix(at))).map(attach => {
|
|
122
122
|
return attach.mediaUrl;
|
|
123
|
-
})
|
|
124
|
-
|
|
125
|
-
//让看起来有序
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
//让看起来有序
|
|
126
126
|
let nowIndex = arr.findIndex(photo => photo === file.mediaUrl)
|
|
127
127
|
if (nowIndex > -1) {
|
|
128
128
|
let start = arr.slice(0, nowIndex)
|
|
129
129
|
let end = arr.slice(nowIndex)
|
|
130
130
|
arr = [...end, ...start]
|
|
131
|
-
}
|
|
131
|
+
}
|
|
132
132
|
return arr;
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
field.doAction(self.model.getFormObj(), (data) => {
|
|
240
240
|
if (data.rtnCode === 200) {
|
|
241
241
|
if (self.model.flagAlertClose) {
|
|
242
|
-
self.$confirm('操作成功,是否关闭本页面?', '提示', {
|
|
242
|
+
self.$common.confirm('操作成功,是否关闭本页面?', '提示', {
|
|
243
243
|
confirmButtonText: '确定',
|
|
244
244
|
cancelButtonText: '取消',
|
|
245
245
|
type: 'warning'
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
if (field.alert) {
|
|
360
|
-
self.$confirm(field.alertMsg, field.alertCaption, {
|
|
360
|
+
self.$common.confirm(field.alertMsg, field.alertCaption, {
|
|
361
361
|
confirmButtonText: field.alertOKButtonText,
|
|
362
362
|
cancelButtonText: field.alertCancelButtonText,
|
|
363
363
|
//type: 'warning'
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
this.$common.excute.call(this.model.scripts, field.change);
|
|
379
379
|
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
|
|
382
382
|
self.model.isChanged = true;
|
|
383
383
|
self.model.hiddenHandle(field);
|
|
384
384
|
self.model.requiredHandle(field);
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
data: function () {
|
|
60
60
|
return {
|
|
61
61
|
}
|
|
62
|
-
},
|
|
63
|
-
methods: {
|
|
64
|
-
getClass() {
|
|
65
|
-
if (this.vmodel.is === "ct-inputNumber") {
|
|
66
|
-
return 'ct-table-inputnumber';
|
|
67
|
-
}
|
|
68
|
-
}
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
getClass() {
|
|
65
|
+
if (this.vmodel.is === "ct-inputNumber") {
|
|
66
|
+
return 'ct-table-inputnumber';
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
69
|
},
|
|
70
70
|
template: '<div :class="getClass()">{{vmodel.labelValue}}{{vmodel.unitName}}</div>'
|
|
71
71
|
}
|
|
@@ -172,14 +172,14 @@
|
|
|
172
172
|
},
|
|
173
173
|
//删除
|
|
174
174
|
deleteRow(index, sourceIndex) {
|
|
175
|
-
var self = this;
|
|
175
|
+
var self = this;
|
|
176
176
|
//判断是否已经保存所有操作
|
|
177
177
|
for (let i of self.model.tableData) {
|
|
178
178
|
if (i.isSet && self.model.currentRow.index !== index) {
|
|
179
179
|
self.$message.warning("请先保存当前编辑项");
|
|
180
180
|
return false;
|
|
181
181
|
}
|
|
182
|
-
}
|
|
182
|
+
}
|
|
183
183
|
|
|
184
184
|
this.model.deleteRow(sourceIndex, () => {
|
|
185
185
|
self.model.tableData.splice(index, 1);
|
|
@@ -300,9 +300,9 @@
|
|
|
300
300
|
return Number(prev);
|
|
301
301
|
}
|
|
302
302
|
}, 0);
|
|
303
|
-
//sums[index] += ' 元';
|
|
304
|
-
if (data[0][column.property].decimals && data[0][column.property].decimals > 0) {
|
|
305
|
-
sums[index] = sums[index].toFixed(data[0][column.property].decimals);
|
|
303
|
+
//sums[index] += ' 元';
|
|
304
|
+
if (data[0][column.property].decimals && data[0][column.property].decimals > 0) {
|
|
305
|
+
sums[index] = sums[index].toFixed(data[0][column.property].decimals);
|
|
306
306
|
}
|
|
307
307
|
} else {
|
|
308
308
|
sums[index] = 'N/A';
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
float: right;
|
|
343
343
|
}
|
|
344
344
|
.ct-table-inputnumber {
|
|
345
|
-
text-align:right;
|
|
345
|
+
text-align:right;
|
|
346
346
|
}
|
|
347
347
|
.ct-form-list .el-table__footer-wrapper .el-table__footer .has-gutter div {
|
|
348
348
|
text-align: right;
|
|
@@ -155,12 +155,12 @@
|
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
confirmClickHandler() {
|
|
158
|
-
if (this.singleSelectio) {
|
|
158
|
+
if (this.singleSelectio) {
|
|
159
159
|
if (this.currentRow) {
|
|
160
|
-
this.$emit('submit', this.currentRow);
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
this.$message.error("请先选择数据");
|
|
160
|
+
this.$emit('submit', this.currentRow);
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
this.$message.error("请先选择数据");
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
searchComplate(searchModel) {
|
|
186
186
|
var self = this;
|
|
187
187
|
this.loading = true;
|
|
188
|
-
this.$nextTick(function () {
|
|
188
|
+
this.$nextTick(function () {
|
|
189
189
|
if (typeof self.api !== 'undefined' && typeof searchModel !== 'undefined') {
|
|
190
190
|
var postData;
|
|
191
191
|
postData = searchModel.searchData;
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
props: {
|
|
21
21
|
vmodel: Object,
|
|
22
22
|
searchConditionApi: String,
|
|
23
|
-
searchDataApi: String,
|
|
23
|
+
searchDataApi: String,
|
|
24
24
|
pageHeight: String,
|
|
25
25
|
apiParam: {
|
|
26
26
|
type: Object,
|
|
27
27
|
default: () => { }
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
created() {
|
|
30
|
+
created() {
|
|
31
31
|
this.model = this.vmodel;
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
searchListStyle: function() {
|
|
35
|
-
if (this.pageHeight) {
|
|
36
|
-
return { 'height': this.pageHeight };
|
|
37
|
-
}
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
32
|
+
},
|
|
33
|
+
computed: {
|
|
34
|
+
searchListStyle: function() {
|
|
35
|
+
if (this.pageHeight) {
|
|
36
|
+
return { 'height': this.pageHeight };
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
40
|
},
|
|
41
41
|
data() {
|
|
42
42
|
return {
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
},
|
|
71
71
|
refreshParentHandler() {
|
|
72
72
|
this.$emit('refreshParent');
|
|
73
|
-
},
|
|
74
|
-
resize() {
|
|
75
|
-
this.$refs.table.setTableHeight();
|
|
73
|
+
},
|
|
74
|
+
resize() {
|
|
75
|
+
this.$refs.table.setTableHeight();
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
</script>
|
|
79
|
+
</script>
|
|
@@ -123,13 +123,13 @@
|
|
|
123
123
|
v.parent = parent;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
|
-
},
|
|
126
|
+
},
|
|
127
127
|
//无任何筛选条件时,不显示该div
|
|
128
|
-
setScreenShow() {
|
|
128
|
+
setScreenShow() {
|
|
129
129
|
let showField = this.model.screen.find((v) => {
|
|
130
130
|
return v.show !== false;
|
|
131
131
|
});
|
|
132
|
-
if (!showField) {
|
|
132
|
+
if (!showField) {
|
|
133
133
|
showField = this.model.btnScreen.find((v) => {
|
|
134
134
|
return v.show !== false;
|
|
135
135
|
});
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
box-shadow: none;
|
|
164
164
|
-webkit-box-shadow: none;
|
|
165
165
|
border-radius: 0px;
|
|
166
|
-
background-color: #fafafa;
|
|
166
|
+
background-color: #fafafa;
|
|
167
167
|
z-index:1990;
|
|
168
168
|
}
|
|
169
169
|
.SeachScreenPop .el-popper .el-time-panel {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<thead ref="tableHead">
|
|
23
23
|
<tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr">
|
|
24
24
|
<th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td">
|
|
25
|
-
<input type="checkbox" @click="selectAll($event)" />
|
|
25
|
+
<input type="checkbox" @click="selectAll($event)" v-model="model.selectAll" />
|
|
26
26
|
</th>
|
|
27
27
|
<th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns"
|
|
28
28
|
v-if="column.show" class="ct-td ct-searchtable-th"
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
if (field.alert) {
|
|
749
|
-
self.$confirm(field.alertMsg, field.alertCaption, {
|
|
749
|
+
self.$common.confirm(field.alertMsg, field.alertCaption, {
|
|
750
750
|
confirmButtonText: field.alertOKButtonText,
|
|
751
751
|
cancelButtonText: field.alertCancelButtonText,
|
|
752
752
|
//type: 'warning'
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
class="ct-flex-div-input" :class="[model.showLabel?'showLabel':'',!valid?'inputError':'']" :disabled="model.lock" :rows="model.rows"
|
|
11
11
|
:readonly="model.readonly" :show-password="model.isPassword" autocomplete="on" :maxlength="model.max" :show-word-limit="model.showWordLimit">
|
|
12
12
|
<span slot="suffix" v-if="model.unitName" class="ct-unitname">{{model.unitName}}</span>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<span class="el-input__suffix el-input--mini" v-if="showClear">
|
|
13
|
+
|
|
14
|
+
<span slot="suffix" class="el-input__suffix el-input--mini" v-if="showClear" :class="model.unitName?'ct-right-10':'ct-right-0'">
|
|
16
15
|
<span class="el-input__suffix-inner ct-close">
|
|
17
16
|
<i class="el-select__caret el-input__icon el-icon-circle-close is-show-close" @click="clearClickHandle($event)"></i>
|
|
18
17
|
</span>
|
|
19
18
|
</span>
|
|
20
|
-
|
|
19
|
+
</el-input>
|
|
20
|
+
|
|
21
21
|
<span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
|
|
22
22
|
<transition name="el-fade-in" class="ct-flex-div-span">
|
|
23
23
|
<span v-show="!valid" class="errorMessage ">
|