n20-common-lib 2.4.5 → 2.4.7
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/README.md +1 -1
- package/nstc-g6/components/Calendar/index.js +5 -5
- package/nstc-g6/components/Calendar/src/basic/month-table.vue +12 -20
- package/nstc-g6/components/Calendar/src/basic/year-table.vue +18 -22
- package/nstc-g6/components/Calendar/src/main.vue +1 -5
- package/nstc-g6/components/DialogForm/index.js +5 -5
- package/nstc-g6/components/DialogForm/src/demo/index.vue +18 -27
- package/nstc-g6/components/DialogForm/src/main.vue +15 -21
- package/nstc-g6/components/Form/A_DEMO/component/originalForm.vue +35 -50
- package/nstc-g6/components/Form/A_DEMO/config/config_3.js +1115 -1110
- package/nstc-g6/components/Form/A_DEMO/index.vue +7 -29
- package/nstc-g6/components/Form/AutocompleteCustom/index.vue +3 -5
- package/nstc-g6/components/Form/BusinessSpecific/InputMultiple.vue +60 -62
- package/nstc-g6/components/Form/BusinessSpecific/InputWithUnit.vue +12 -35
- package/nstc-g6/components/Form/BusinessSpecific/SelectTreeDialog.vue +77 -77
- package/nstc-g6/components/Form/CascaderCustom/index.vue +4 -4
- package/nstc-g6/components/Form/CheckboxCustom/index.vue +5 -11
- package/nstc-g6/components/Form/Component.vue +56 -78
- package/nstc-g6/components/Form/ComponentSecond.vue +55 -77
- package/nstc-g6/components/Form/InputAndDialog/index.js +5 -5
- package/nstc-g6/components/Form/InputAndDialog/src/main.vue +130 -153
- package/nstc-g6/components/Form/InputCustom/demo/index.vue +4 -12
- package/nstc-g6/components/Form/InputCustom/index.vue +51 -54
- package/nstc-g6/components/Form/IntervalinputCustom/demo/index.vue +1 -3
- package/nstc-g6/components/Form/IntervalinputCustom/index.vue +19 -41
- package/nstc-g6/components/Form/Item.vue +15 -30
- package/nstc-g6/components/Form/ItemSecond.vue +7 -22
- package/nstc-g6/components/Form/List.vue +12 -28
- package/nstc-g6/components/Form/ListSecond.vue +11 -27
- package/nstc-g6/components/Form/RadioCustom/index.vue +5 -23
- package/nstc-g6/components/Form/SelectAccount/index.js +5 -5
- package/nstc-g6/components/Form/SelectAccount/src/demo/index.vue +34 -28
- package/nstc-g6/components/Form/SelectAccount/src/main.vue +112 -83
- package/nstc-g6/components/Form/SelectAndDialog/index.js +5 -5
- package/nstc-g6/components/Form/SelectAndDialog/src/main.vue +126 -149
- package/nstc-g6/components/Form/SelectCashFlow/index.js +5 -5
- package/nstc-g6/components/Form/SelectCashFlow/src/demo/index.vue +18 -19
- package/nstc-g6/components/Form/SelectCashFlow/src/main.vue +52 -41
- package/nstc-g6/components/Form/SelectCustom/demo/index.vue +14 -16
- package/nstc-g6/components/Form/SelectCustom/index.vue +129 -139
- package/nstc-g6/components/Form/SelectSubject/index.js +5 -5
- package/nstc-g6/components/Form/SelectSubject/src/demo/index.vue +42 -48
- package/nstc-g6/components/Form/SelectSubject/src/main.vue +83 -86
- package/nstc-g6/components/Form/SelectindialogCustom/demo/index.vue +34 -35
- package/nstc-g6/components/Form/SelectindialogCustom/index.vue +133 -148
- package/nstc-g6/components/Form/SelectindialogCustom/install.js +3 -3
- package/nstc-g6/components/Form/TableRadioCustom/demo/index.vue +1 -7
- package/nstc-g6/components/Form/TableRadioCustom/index.vue +17 -26
- package/nstc-g6/components/Form/TextCustom/index.vue +2 -2
- package/nstc-g6/components/Form/UploadCustom/demo/index.vue +1 -3
- package/nstc-g6/components/Form/UploadCustom/index.vue +143 -173
- package/nstc-g6/components/Form/configs.js +3 -14
- package/nstc-g6/components/Form/configsSecond.js +3 -16
- package/nstc-g6/components/Form/index.js +1 -1
- package/nstc-g6/components/Form/payeePersonSelect/index.js +5 -5
- package/nstc-g6/components/Form/payeePersonSelect/src/demo/index.vue +50 -44
- package/nstc-g6/components/Form/payeePersonSelect/src/main.vue +73 -82
- package/nstc-g6/components/FormGroup/index.js +5 -5
- package/nstc-g6/components/FormGroup/src/demo/config.js +18 -19
- package/nstc-g6/components/FormGroup/src/demo/index.vue +14 -22
- package/nstc-g6/components/FormGroup/src/main.vue +122 -141
- package/nstc-g6/components/FormGroup/src/validate.js +11 -13
- package/nstc-g6/components/InputTag/InputTag.vue +78 -111
- package/nstc-g6/components/NstcBackToTop/NstcBackToTop.vue +24 -24
- package/nstc-g6/components/NstcBranchLazyLoad/NstcBranchLazyLoad.vue +4 -13
- package/nstc-g6/components/NstcCharts/NstcCharts.vue +9 -18
- package/nstc-g6/components/NstcCharts/define.js +1 -6
- package/nstc-g6/components/NstcConfirm/NstcConfirm.vue +6 -21
- package/nstc-g6/components/NstcConfirm/index.js +21 -19
- package/nstc-g6/components/NstcDialog/NstcDialog.vue +34 -38
- package/nstc-g6/components/NstcDialogForm/NstcDialogForm.vue +17 -21
- package/nstc-g6/components/NstcDialogTable/NstcDialogTable.vue +4 -17
- package/nstc-g6/components/NstcDropdown/NstcDropdown.vue +2 -12
- package/nstc-g6/components/NstcDropdownTree/NstcDropdownTree.vue +3 -13
- package/nstc-g6/components/NstcElectronicFile/NstcElectronicFile.vue +18 -78
- package/nstc-g6/components/NstcExcelCustomImport/NstcExcelCustomImport.vue +121 -147
- package/nstc-g6/components/NstcExcelImport/NstcExcelImport.vue +9 -31
- package/nstc-g6/components/NstcExcelImportN/NstcExcelImportN.vue +10 -33
- package/nstc-g6/components/NstcExpandCollapse/NstcExpandCollapse.vue +12 -16
- package/nstc-g6/components/NstcFileUpload/NstcFileUpload.vue +19 -75
- package/nstc-g6/components/NstcForm/A_DEMO/component/originalForm.vue +35 -50
- package/nstc-g6/components/NstcForm/A_DEMO/config/config_3.js +1115 -1110
- package/nstc-g6/components/NstcForm/A_DEMO/index.vue +340 -354
- package/nstc-g6/components/NstcForm/AutocompleteCustom/index.vue +2 -2
- package/nstc-g6/components/NstcForm/BusinessSpecific/InputWithUnit.vue +11 -34
- package/nstc-g6/components/NstcForm/BusinessSpecific/SelectTreeDialog.vue +77 -77
- package/nstc-g6/components/NstcForm/CheckboxCustom/index.vue +5 -11
- package/nstc-g6/components/NstcForm/Component.vue +17 -62
- package/nstc-g6/components/NstcForm/ComponentSecond.vue +55 -77
- package/nstc-g6/components/NstcForm/InputAndDialog/NstcInputAndDialog.vue +6 -24
- package/nstc-g6/components/NstcForm/InputCustom/index.vue +2 -8
- package/nstc-g6/components/NstcForm/IntervalInputCustom/index.vue +4 -21
- package/nstc-g6/components/NstcForm/Item.vue +3 -15
- package/nstc-g6/components/NstcForm/ItemSecond.vue +7 -22
- package/nstc-g6/components/NstcForm/List.vue +12 -28
- package/nstc-g6/components/NstcForm/ListSecond.vue +11 -27
- package/nstc-g6/components/NstcForm/RadioCustom/index.vue +5 -23
- package/nstc-g6/components/NstcForm/SelectAccount/NstcSelectAccount.vue +4 -24
- package/nstc-g6/components/NstcForm/SelectAndDialog/NstcSelectAndDialog.vue +7 -30
- package/nstc-g6/components/NstcForm/SelectCashFlow/NstcSelectCashFlow.vue +50 -38
- package/nstc-g6/components/NstcForm/SelectCustom/index.vue +6 -16
- package/nstc-g6/components/NstcForm/SelectSubject/NstcSelectSubject.vue +72 -82
- package/nstc-g6/components/NstcForm/SelectindialogCustom/index.vue +6 -20
- package/nstc-g6/components/NstcForm/TableRadioCustom/index.vue +17 -26
- package/nstc-g6/components/NstcForm/TextCustom/index.vue +2 -2
- package/nstc-g6/components/NstcForm/UploadCustom/index.vue +13 -60
- package/nstc-g6/components/NstcForm/configs.js +3 -14
- package/nstc-g6/components/NstcForm/configsSecond.js +3 -16
- package/nstc-g6/components/NstcForm/index.js +1 -1
- package/nstc-g6/components/NstcForm/payeePersonSelect/NstcPayeePerson.vue +57 -73
- package/nstc-g6/components/NstcPagination/NstcPagination.vue +2 -12
- package/nstc-g6/components/NstcScreenFull/NstcScreenFull.vue +2 -3
- package/nstc-g6/components/NstcSelectTree/NstcSelectTree.vue +4 -15
- package/nstc-g6/components/NstcSelectTreeList/NstcSelectTreeList.vue +5 -20
- package/nstc-g6/components/NstcSticky/NstcSticky.vue +10 -4
- package/nstc-g6/components/NstcSvgIcon/NstcSvgIcon.vue +1 -7
- package/nstc-g6/components/NstcTab/NstcTab.vue +8 -20
- package/nstc-g6/components/NstcTabWithBadge/NstcTabWithBadge.vue +7 -7
- package/nstc-g6/components/NstcTable/ElTableColumnCustom/index.vue +88 -126
- package/nstc-g6/components/NstcTable/NstcTable.vue +4 -17
- package/nstc-g6/components/NstcTableSet/NstcTableSet.vue +27 -72
- package/nstc-g6/components/NstcThemePicker/NstcThemePicker.vue +13 -14
- package/nstc-g6/components/NstcUploadCustomExcel/NstcUploadCustomExcel.vue +3 -13
- package/nstc-g6/components/NstcUploadExcel/NstcUploadExcel.vue +21 -22
- package/nstc-g6/components/NstcWorkBench/NstcWorkBench.vue +4 -17
- package/nstc-g6/components/Search/NstcSearch.vue +12 -47
- package/nstc-g6/components/Search/src/demo/index copy.vue +28 -28
- package/nstc-g6/components/Search/src/demo/index.vue +36 -36
- package/nstc-g6/components/Search/src/main copy.vue +169 -204
- package/nstc-g6/components/approvelTwo/main.vue +2 -6
- package/nstc-g6/components/approvelTwo/progress.vue +7 -29
- package/nstc-g6/directives/VCopy/index.js +52 -54
- package/nstc-g6/directives/VNstcNumber/index.js +1 -1
- package/nstc-g6/directives/VNstcNumber/temp.js +357 -362
- package/nstc-g6/utils/mapper_aims.js +774 -775
- package/nstc-g6/utils/parseTime.js +38 -36
- package/nstc-g6/utils/validate/index.js +2 -2
- package/nstc-g6/utils/vendor/Export2Excel.js +110 -111
- package/nstc-g6/utils/vendor/Export2Zip.js +12 -7
- package/nstc-g6/utils/vue-bus.js +1 -1
- package/package.json +1 -1
- package/src/assets/iconFont/demo_index.html +1 -1
- package/src/assets/iconFont/iconfont.js +66 -1
- package/src/assets/iconFont2/demo_index.html +277 -286
- package/src/assets/iconFont2/iconfont.js +66 -1
- package/src/components/Button/button-group.vue +1 -1
- package/src/components/Layout/HeaderWrap/indexN.vue +1 -1
- package/src/components/Layout/indexN.vue +1 -2
- package/src/components/LoginTemporary/indexN.vue +12 -2
- package/src/components/TableOperateColumn/index.vue +1 -1
- package/src/plugins/Print/print-js/README.md +5 -5
- package/src/plugins/Print/print-js/package.json +2 -2
- package/src/plugins/Print/print-js/src/index.d.ts +36 -36
- package/src/plugins/Print/print-js/src/js/browser.js +3 -1
- package/src/plugins/Print/print-js/src/js/functions.js +16 -10
- package/src/plugins/Print/print-js/src/js/html.js +2 -2
- package/src/plugins/Print/print-js/src/js/image.js +1 -1
- package/src/plugins/Print/print-js/src/js/init.js +15 -7
- package/src/plugins/Print/print-js/src/js/json.js +14 -4
- package/src/plugins/Print/print-js/src/js/modal.js +16 -15
- package/src/plugins/Print/print-js/src/js/pdf.js +1 -1
- package/src/plugins/Print/print-js/src/js/print.js +6 -6
- package/src/plugins/Sign/NetSM3/InfosecNetSignCNGAgent.min.js +1825 -1592
- package/src/plugins/Sign/cfca/index.js +525 -520
- package/src/plugins/Sign/sign.js +128 -128
- package/style/index.css +1 -1
- package/style/index.css.map +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
class="Nstc-dialog"
|
|
4
|
+
v-drag
|
|
5
|
+
:visible.sync="dialogVisible"
|
|
6
|
+
v-bind="$attrs"
|
|
7
|
+
:center="center"
|
|
8
|
+
:show-close="showClose"
|
|
9
|
+
:custom-class="customClass"
|
|
10
|
+
:append-to-body="toBody"
|
|
11
|
+
:close-on-click-modal="closeOnClickModal"
|
|
12
|
+
:close-on-press-escape="closeOnPressEscape"
|
|
13
|
+
:before-close="
|
|
14
|
+
() => {
|
|
15
|
+
handleClose()
|
|
16
|
+
}
|
|
17
|
+
"
|
|
18
|
+
v-on="$listeners"
|
|
15
19
|
>
|
|
16
20
|
<template slot="title">
|
|
17
21
|
<span class="el-dialog__title">{{ title }}</span>
|
|
@@ -22,26 +26,17 @@
|
|
|
22
26
|
<slot></slot>
|
|
23
27
|
|
|
24
28
|
<slot name="after"></slot>
|
|
25
|
-
<div
|
|
26
|
-
v-if="showFooter"
|
|
27
|
-
slot="footer"
|
|
28
|
-
class="dialog-footer"
|
|
29
|
-
>
|
|
29
|
+
<div v-if="showFooter" slot="footer" class="dialog-footer">
|
|
30
30
|
<el-button
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
v-if="footerHandlers.confirm"
|
|
32
|
+
type="primary"
|
|
33
|
+
:disabled="footerHandlers.confirm.disabled || confirmDisabledFlag"
|
|
34
|
+
:class="footerHandlers.confirm.className"
|
|
35
|
+
@click="handleConfirm"
|
|
36
36
|
>
|
|
37
37
|
{{ footerHandlers.confirm.text || '确认' }}
|
|
38
38
|
</el-button>
|
|
39
|
-
<el-button
|
|
40
|
-
v-if="footerHandlers.cancel"
|
|
41
|
-
plain
|
|
42
|
-
:class="footerHandlers.cancel.className"
|
|
43
|
-
@click="handleClose"
|
|
44
|
-
>
|
|
39
|
+
<el-button v-if="footerHandlers.cancel" plain :class="footerHandlers.cancel.className" @click="handleClose">
|
|
45
40
|
{{ footerHandlers.cancel.text || '取消' }}
|
|
46
41
|
</el-button>
|
|
47
42
|
</div>
|
|
@@ -69,7 +64,7 @@ export default {
|
|
|
69
64
|
|
|
70
65
|
footerHandlers: {
|
|
71
66
|
type: Object,
|
|
72
|
-
default:
|
|
67
|
+
default: () => {
|
|
73
68
|
return {
|
|
74
69
|
confirm: {
|
|
75
70
|
text: '', //this.$t('common_w_0002')
|
|
@@ -82,8 +77,7 @@ export default {
|
|
|
82
77
|
disabled: false
|
|
83
78
|
}
|
|
84
79
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
80
|
+
}
|
|
87
81
|
},
|
|
88
82
|
toBody: {
|
|
89
83
|
type: Boolean,
|
|
@@ -161,9 +155,9 @@ export default {
|
|
|
161
155
|
this.dialogVisible = false
|
|
162
156
|
}
|
|
163
157
|
|
|
164
|
-
listener && await listener()
|
|
158
|
+
listener && (await listener())
|
|
165
159
|
} else {
|
|
166
|
-
listener && await listener()
|
|
160
|
+
listener && (await listener())
|
|
167
161
|
|
|
168
162
|
if (closeAfterListener) {
|
|
169
163
|
this.dialogVisible = false
|
|
@@ -172,14 +166,16 @@ export default {
|
|
|
172
166
|
} catch (err) {
|
|
173
167
|
console.error(err)
|
|
174
168
|
|
|
175
|
-
err &&
|
|
176
|
-
type
|
|
177
|
-
message
|
|
178
|
-
|
|
169
|
+
err &&
|
|
170
|
+
err.type === 'VALIDATE_ERROR' &&
|
|
171
|
+
this.$message({
|
|
172
|
+
type: 'warning',
|
|
173
|
+
message: err.msg
|
|
174
|
+
})
|
|
179
175
|
} finally {
|
|
180
176
|
this.loading = false
|
|
181
177
|
}
|
|
182
178
|
}
|
|
183
179
|
}
|
|
184
180
|
}
|
|
185
|
-
</script>
|
|
181
|
+
</script>
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<NstcDialog
|
|
3
|
-
v-bind="$attrs"
|
|
4
|
-
@confirm="handleConfirm"
|
|
5
|
-
@cancel="handleCancel">
|
|
2
|
+
<NstcDialog v-model="dialogVisible" v-bind="$attrs" @confirm="handleConfirm" @cancel="handleCancel">
|
|
6
3
|
<slot name="before" />
|
|
7
4
|
<NstcForm
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
ref="dialogForm"
|
|
6
|
+
v-model="formModel"
|
|
7
|
+
:reset.sync="reset"
|
|
8
|
+
:mount-and-query="false"
|
|
9
|
+
:config="formConfig"
|
|
10
|
+
:rules="rules"
|
|
11
|
+
:pureable="pureable"
|
|
12
|
+
:label-position="labelPosition"
|
|
13
|
+
:label-width="labelWidth"
|
|
14
|
+
:show-message="showMessage"
|
|
15
|
+
:validate-on-rule-change="validateOnRuleChange"
|
|
16
|
+
:mode="mode"
|
|
20
17
|
/>
|
|
21
18
|
<slot name="after" />
|
|
22
|
-
|
|
23
19
|
</NstcDialog>
|
|
24
20
|
</template>
|
|
25
21
|
|
|
@@ -27,7 +23,7 @@
|
|
|
27
23
|
import NstcDialog from '../NstcDialog/NstcDialog'
|
|
28
24
|
import NstcForm from '../NstcForm/Component'
|
|
29
25
|
export default {
|
|
30
|
-
name:
|
|
26
|
+
name: 'NstcDialogForm',
|
|
31
27
|
components: {
|
|
32
28
|
NstcDialog,
|
|
33
29
|
NstcForm
|
|
@@ -91,7 +87,7 @@ export default {
|
|
|
91
87
|
|
|
92
88
|
mode: {
|
|
93
89
|
default: 'horizontal',
|
|
94
|
-
validator: function(val) {
|
|
90
|
+
validator: function (val) {
|
|
95
91
|
return ['horizontal', 'vertical'].includes(val)
|
|
96
92
|
}
|
|
97
93
|
}
|
|
@@ -149,7 +145,7 @@ export default {
|
|
|
149
145
|
try {
|
|
150
146
|
const model = JSON.parse(JSON.stringify(this.formModel))
|
|
151
147
|
|
|
152
|
-
this.$listeners.cancel && await this.$listeners.cancel(model) // $listeners.confirm 须返回Promise
|
|
148
|
+
this.$listeners.cancel && (await this.$listeners.cancel(model)) // $listeners.confirm 须返回Promise
|
|
153
149
|
|
|
154
150
|
this.handleReset()
|
|
155
151
|
|
|
@@ -173,4 +169,4 @@ export default {
|
|
|
173
169
|
}
|
|
174
170
|
}
|
|
175
171
|
}
|
|
176
|
-
</script>
|
|
172
|
+
</script>
|
|
@@ -21,11 +21,7 @@
|
|
|
21
21
|
<el-table-column v-if="multiple" type="selection" :width="55" />
|
|
22
22
|
<el-table-column v-if="single" :width="55">
|
|
23
23
|
<template slot-scope="scope">
|
|
24
|
-
<el-radio
|
|
25
|
-
v-model="singleSelect"
|
|
26
|
-
class="row-radio"
|
|
27
|
-
:label="scope.row[rowKey]"
|
|
28
|
-
>
|
|
24
|
+
<el-radio v-model="singleSelect" class="row-radio" :label="scope.row[rowKey]">
|
|
29
25
|
<i></i>
|
|
30
26
|
</el-radio>
|
|
31
27
|
</template>
|
|
@@ -51,15 +47,8 @@
|
|
|
51
47
|
</slot>
|
|
52
48
|
|
|
53
49
|
<div slot="footer" class="btns">
|
|
54
|
-
<el-button type="primary" class="nstc-g6-common-btn-1" @click="onSubmit"
|
|
55
|
-
|
|
56
|
-
>
|
|
57
|
-
<el-button
|
|
58
|
-
class="nstc-g6-common-btn-3"
|
|
59
|
-
style="margin-left: 8px"
|
|
60
|
-
@click="closeDialog"
|
|
61
|
-
>取消</el-button
|
|
62
|
-
>
|
|
50
|
+
<el-button type="primary" class="nstc-g6-common-btn-1" @click="onSubmit">确定</el-button>
|
|
51
|
+
<el-button class="nstc-g6-common-btn-3" style="margin-left: 8px" @click="closeDialog">取消</el-button>
|
|
63
52
|
</div>
|
|
64
53
|
</el-dialog>
|
|
65
54
|
</template>
|
|
@@ -192,9 +181,7 @@ export default {
|
|
|
192
181
|
result = select ? [select] : []
|
|
193
182
|
}
|
|
194
183
|
if (result.length > 0) {
|
|
195
|
-
row = this.tableData.find(
|
|
196
|
-
(item) => item[this.rowKey] === this.singleSelect
|
|
197
|
-
)
|
|
184
|
+
row = this.tableData.find((item) => item[this.rowKey] === this.singleSelect)
|
|
198
185
|
this.$emit('comfirm', result, row)
|
|
199
186
|
this.closeDialog()
|
|
200
187
|
} else {
|
|
@@ -4,18 +4,10 @@
|
|
|
4
4
|
创建时间: 2021-02-04
|
|
5
5
|
-->
|
|
6
6
|
<template>
|
|
7
|
-
<el-dropdown
|
|
8
|
-
v-bind="$attrs"
|
|
9
|
-
v-on="$listeners"
|
|
10
|
-
>
|
|
7
|
+
<el-dropdown v-bind="$attrs" v-on="$listeners">
|
|
11
8
|
<slot />
|
|
12
9
|
<el-dropdown-menu slot="dropdown">
|
|
13
|
-
<el-dropdown-item
|
|
14
|
-
v-for="(item,index) in options"
|
|
15
|
-
:key="index"
|
|
16
|
-
v-bind="item"
|
|
17
|
-
:command="item"
|
|
18
|
-
>
|
|
10
|
+
<el-dropdown-item v-for="(item, index) in options" :key="index" v-bind="item" :command="item">
|
|
19
11
|
{{ item.label }}
|
|
20
12
|
</el-dropdown-item>
|
|
21
13
|
</el-dropdown-menu>
|
|
@@ -48,5 +40,3 @@ export default {
|
|
|
48
40
|
}
|
|
49
41
|
}
|
|
50
42
|
</script>
|
|
51
|
-
|
|
52
|
-
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
8
|
<div class="form-create-dropdown-tree">
|
|
9
|
-
<el-popover
|
|
10
|
-
v-model="showPopoverFlag"
|
|
11
|
-
placement="bottom-start"
|
|
12
|
-
trigger="click"
|
|
13
|
-
>
|
|
9
|
+
<el-popover v-model="showPopoverFlag" placement="bottom-start" trigger="click">
|
|
14
10
|
<el-input
|
|
15
11
|
:ref="inputRefName"
|
|
16
12
|
v-model="filterText"
|
|
@@ -226,9 +222,7 @@ export default {
|
|
|
226
222
|
* 随机生成 formId
|
|
227
223
|
*/
|
|
228
224
|
getRefName() {
|
|
229
|
-
return `ref_${new Date().getTime()}_${Math.random()
|
|
230
|
-
.toString()
|
|
231
|
-
.slice(5, 13)}`
|
|
225
|
+
return `ref_${new Date().getTime()}_${Math.random().toString().slice(5, 13)}`
|
|
232
226
|
},
|
|
233
227
|
|
|
234
228
|
/**
|
|
@@ -335,11 +329,7 @@ export default {
|
|
|
335
329
|
this.$forceUpdate()
|
|
336
330
|
})
|
|
337
331
|
this.$emit('filterText', this.filterText)
|
|
338
|
-
console.log(
|
|
339
|
-
'TreeSelect关闭弹框...',
|
|
340
|
-
this.showPopoverFlag,
|
|
341
|
-
this.filterText
|
|
342
|
-
)
|
|
332
|
+
console.log('TreeSelect关闭弹框...', this.showPopoverFlag, this.filterText)
|
|
343
333
|
}
|
|
344
334
|
},
|
|
345
335
|
|
|
@@ -5,17 +5,9 @@
|
|
|
5
5
|
<div class="uploadfiletip">
|
|
6
6
|
<div>附件信息</div>
|
|
7
7
|
<div>
|
|
8
|
-
<el-button
|
|
9
|
-
v-if="viewMode"
|
|
10
|
-
type="primary"
|
|
11
|
-
size="small"
|
|
12
|
-
@click="createRow"
|
|
13
|
-
>新增</el-button
|
|
14
|
-
>
|
|
8
|
+
<el-button v-if="viewMode" type="primary" size="small" @click="createRow">新增</el-button>
|
|
15
9
|
<el-button size="small" plain @click="batchload">下载</el-button>
|
|
16
|
-
<el-button size="small" type="danger" plain @click="batchdel"
|
|
17
|
-
>删除</el-button
|
|
18
|
-
>
|
|
10
|
+
<el-button size="small" type="danger" plain @click="batchdel">删除</el-button>
|
|
19
11
|
</div>
|
|
20
12
|
</div>
|
|
21
13
|
<el-table
|
|
@@ -36,12 +28,7 @@
|
|
|
36
28
|
size="small"
|
|
37
29
|
clearable
|
|
38
30
|
>
|
|
39
|
-
<el-option
|
|
40
|
-
v-for="item in eamsAttachfiles"
|
|
41
|
-
:key="item.index"
|
|
42
|
-
:label="item.attname"
|
|
43
|
-
:value="item.attno"
|
|
44
|
-
/>
|
|
31
|
+
<el-option v-for="item in eamsAttachfiles" :key="item.index" :label="item.attname" :value="item.attno" />
|
|
45
32
|
</el-select>
|
|
46
33
|
<span v-if="scope.row.updateType === 0">{{ scope.row.attname }}</span>
|
|
47
34
|
</template>
|
|
@@ -62,21 +49,9 @@
|
|
|
62
49
|
<el-table-column label="附件上传">
|
|
63
50
|
<template slot-scope="scope">
|
|
64
51
|
<div v-if="scope.row.updateType != 0" class="cantpick">
|
|
65
|
-
<div
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@click="cantTip"
|
|
69
|
-
></div>
|
|
70
|
-
<div
|
|
71
|
-
v-show="!scope.row.memo"
|
|
72
|
-
class="canttip"
|
|
73
|
-
@click="cantTip1"
|
|
74
|
-
></div>
|
|
75
|
-
<div
|
|
76
|
-
v-show="scope.row.canupload == 0"
|
|
77
|
-
class="canttip"
|
|
78
|
-
@click="cantTip2"
|
|
79
|
-
></div>
|
|
52
|
+
<div v-show="!scope.row.attnoadd" class="canttip" @click="cantTip"></div>
|
|
53
|
+
<div v-show="!scope.row.memo" class="canttip" @click="cantTip1"></div>
|
|
54
|
+
<div v-show="scope.row.canupload == 0" class="canttip" @click="cantTip2"></div>
|
|
80
55
|
<el-upload
|
|
81
56
|
ref="upload"
|
|
82
57
|
class="upload"
|
|
@@ -85,10 +60,7 @@
|
|
|
85
60
|
:on-change="handleChange"
|
|
86
61
|
:show-file-list="false"
|
|
87
62
|
>
|
|
88
|
-
<div
|
|
89
|
-
class="changeindex"
|
|
90
|
-
@click="curRowIndex = scope.$index"
|
|
91
|
-
></div>
|
|
63
|
+
<div class="changeindex" @click="curRowIndex = scope.$index"></div>
|
|
92
64
|
<el-input
|
|
93
65
|
v-if="scope.row.file != null"
|
|
94
66
|
v-model="scope.row.file.name"
|
|
@@ -96,32 +68,18 @@
|
|
|
96
68
|
class="uploadinput"
|
|
97
69
|
placeholder="请选择附件"
|
|
98
70
|
>
|
|
99
|
-
<i
|
|
100
|
-
|
|
101
|
-
slot="suffix"
|
|
102
|
-
class="el-icon-upload2"
|
|
103
|
-
style="color: #242424"
|
|
104
|
-
></i>
|
|
105
|
-
<i
|
|
106
|
-
v-show="scope.row.canupload == 0"
|
|
107
|
-
slot="suffix"
|
|
108
|
-
class="el-icon-upload2"
|
|
109
|
-
style="color: #d8d8d8"
|
|
110
|
-
></i>
|
|
71
|
+
<i v-show="scope.row.canupload == 1" slot="suffix" class="el-icon-upload2" style="color: #242424"></i>
|
|
72
|
+
<i v-show="scope.row.canupload == 0" slot="suffix" class="el-icon-upload2" style="color: #d8d8d8"></i>
|
|
111
73
|
</el-input>
|
|
112
74
|
</el-upload>
|
|
113
75
|
</div>
|
|
114
|
-
<span v-if="scope.row.updateType === 0">{{
|
|
115
|
-
scope.row.recordname
|
|
116
|
-
}}</span>
|
|
76
|
+
<span v-if="scope.row.updateType === 0">{{ scope.row.recordname }}</span>
|
|
117
77
|
</template>
|
|
118
78
|
</el-table-column>
|
|
119
79
|
<el-table-column label="文件大小">
|
|
120
80
|
<template slot-scope="scope">
|
|
121
81
|
<span v-if="scope.row.file != null">{{ scope.row.file.size }}</span>
|
|
122
|
-
<span v-if="scope.row.updateType === 0">{{
|
|
123
|
-
scope.row.fileSize
|
|
124
|
-
}}</span>
|
|
82
|
+
<span v-if="scope.row.updateType === 0">{{ scope.row.fileSize }}</span>
|
|
125
83
|
</template>
|
|
126
84
|
</el-table-column>
|
|
127
85
|
<el-table-column label="上传时间" align="left">
|
|
@@ -158,11 +116,7 @@
|
|
|
158
116
|
</div>
|
|
159
117
|
<div v-show="scope.row.upstatus == 3">
|
|
160
118
|
<i class="el-icon-error" style="color: #fb5555"></i>
|
|
161
|
-
<el-button
|
|
162
|
-
v-show="scope.row.upstatus == 3"
|
|
163
|
-
class="ml10 p0"
|
|
164
|
-
type="text"
|
|
165
|
-
@click="reupload(scope.$index)"
|
|
119
|
+
<el-button v-show="scope.row.upstatus == 3" class="ml10 p0" type="text" @click="reupload(scope.$index)"
|
|
166
120
|
>重新上传</el-button
|
|
167
121
|
>
|
|
168
122
|
</div>
|
|
@@ -273,10 +227,7 @@ export default {
|
|
|
273
227
|
formatDate(date, fmt) {
|
|
274
228
|
date = new Date(date)
|
|
275
229
|
if (/(y+)/.test(fmt)) {
|
|
276
|
-
fmt = fmt.replace(
|
|
277
|
-
RegExp.$1,
|
|
278
|
-
(date.getFullYear() + '').substr(4 - RegExp.$1.length)
|
|
279
|
-
)
|
|
230
|
+
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
280
231
|
}
|
|
281
232
|
let o = {
|
|
282
233
|
'M+': date.getMonth() + 1,
|
|
@@ -288,10 +239,7 @@ export default {
|
|
|
288
239
|
for (let k in o) {
|
|
289
240
|
if (new RegExp(`(${k})`).test(fmt)) {
|
|
290
241
|
let str = o[k] + ''
|
|
291
|
-
fmt = fmt.replace(
|
|
292
|
-
RegExp.$1,
|
|
293
|
-
RegExp.$1.length === 1 ? str : this.padLeftZero(str)
|
|
294
|
-
)
|
|
242
|
+
fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? str : this.padLeftZero(str))
|
|
295
243
|
}
|
|
296
244
|
}
|
|
297
245
|
return fmt
|
|
@@ -308,11 +256,7 @@ export default {
|
|
|
308
256
|
getUploadDate() {
|
|
309
257
|
let date = new Date()
|
|
310
258
|
this.uploadDate =
|
|
311
|
-
date.getFullYear() +
|
|
312
|
-
'-' +
|
|
313
|
-
('00' + (date.getMonth() + 1)).slice(-2) +
|
|
314
|
-
'-' +
|
|
315
|
-
('00' + date.getDate()).slice(-2)
|
|
259
|
+
date.getFullYear() + '-' + ('00' + (date.getMonth() + 1)).slice(-2) + '-' + ('00' + date.getDate()).slice(-2)
|
|
316
260
|
},
|
|
317
261
|
createRow() {
|
|
318
262
|
this.getAlleamsAttachfile()
|
|
@@ -500,9 +444,7 @@ export default {
|
|
|
500
444
|
this.eamsAttachfiles.forEach((item) => {
|
|
501
445
|
if (_file.attnoadd == item.attno) {
|
|
502
446
|
if (item.attSize * 1024 < _file.size) {
|
|
503
|
-
this.$message.error(
|
|
504
|
-
'附件超过设置大小,目前附件限制大小为' + item.attSize + 'M'
|
|
505
|
-
)
|
|
447
|
+
this.$message.error('附件超过设置大小,目前附件限制大小为' + item.attSize + 'M')
|
|
506
448
|
return
|
|
507
449
|
}
|
|
508
450
|
}
|
|
@@ -529,8 +471,7 @@ export default {
|
|
|
529
471
|
OperationDesc: 'yYarJp'
|
|
530
472
|
},
|
|
531
473
|
onUploadProgress(progressEvent) {
|
|
532
|
-
_file.loadprogress =
|
|
533
|
-
Math.round((progressEvent.loaded / progressEvent.total) * 100) + '%'
|
|
474
|
+
_file.loadprogress = Math.round((progressEvent.loaded / progressEvent.total) * 100) + '%'
|
|
534
475
|
},
|
|
535
476
|
cancelToken: new CancelToken(function executor(c) {
|
|
536
477
|
// executor 函数接收一个 cancel 函数作为参数
|
|
@@ -582,8 +523,7 @@ export default {
|
|
|
582
523
|
.then((response) => {
|
|
583
524
|
if (response.data.type === 'application/octet-stream') {
|
|
584
525
|
// 获取http头部的文件名信息,若无需重命名文件,将下面这行删去
|
|
585
|
-
const fileName =
|
|
586
|
-
response.headers['content-disposition'].split('=')[1]
|
|
526
|
+
const fileName = response.headers['content-disposition'].split('=')[1]
|
|
587
527
|
/* 兼容ie内核,360浏览器的兼容模式 */
|
|
588
528
|
if (window.navigator && window.navigator.msSaveOrOpenBlob) {
|
|
589
529
|
const blob = new Blob([response.data], {
|