n20-common-lib 1.3.41 → 1.3.42
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
CHANGED
|
@@ -19,45 +19,58 @@
|
|
|
19
19
|
<slot name="selection-column"
|
|
20
20
|
><el-table-column type="selection" width="50" align="center" />
|
|
21
21
|
</slot>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<slot
|
|
59
|
-
|
|
60
|
-
|
|
22
|
+
<template v-if="dataPorp.slotHeader">
|
|
23
|
+
<el-table-column
|
|
24
|
+
v-for="item in dataPorp.slotHeader"
|
|
25
|
+
:key="item"
|
|
26
|
+
:label="item.label"
|
|
27
|
+
:prop="item.prop"
|
|
28
|
+
:align="item.align || 'center'"
|
|
29
|
+
:width="item.width || 'auto'"
|
|
30
|
+
:show-overflow-tooltip="item['show-overflow-tooltip']"
|
|
31
|
+
/>
|
|
32
|
+
</template>
|
|
33
|
+
<template v-else>
|
|
34
|
+
<el-table-column label="附件类型" :prop="keys.type">
|
|
35
|
+
<template slot="header" slot-scope="scope">
|
|
36
|
+
<slot name="type-header" :column="scope.column">附件类型</slot>
|
|
37
|
+
</template>
|
|
38
|
+
<template slot-scope="{ row }">
|
|
39
|
+
<slot name="type" :row="row">{{
|
|
40
|
+
row[keys.type] | typeFiter(typeOptions)
|
|
41
|
+
}}</slot>
|
|
42
|
+
</template>
|
|
43
|
+
</el-table-column>
|
|
44
|
+
<el-table-column label="附件名称" :prop="keys.name">
|
|
45
|
+
<template slot="header" slot-scope="scope">
|
|
46
|
+
<slot name="name-header" :column="scope.column">附件名称</slot>
|
|
47
|
+
</template>
|
|
48
|
+
<template slot-scope="{ row }">
|
|
49
|
+
<slot name="name" :row="row">{{ row[keys.name] }}</slot>
|
|
50
|
+
</template>
|
|
51
|
+
</el-table-column>
|
|
52
|
+
<el-table-column
|
|
53
|
+
label="上传时间"
|
|
54
|
+
:prop="keys.time"
|
|
55
|
+
width="170"
|
|
56
|
+
align="left"
|
|
57
|
+
>
|
|
58
|
+
<template slot="header" slot-scope="scope">
|
|
59
|
+
<slot name="time-header" :column="scope.column">上传时间</slot>
|
|
60
|
+
</template>
|
|
61
|
+
<template slot-scope="{ row }">
|
|
62
|
+
<slot name="time" :row="row">{{ row[keys.time] }}</slot>
|
|
63
|
+
</template>
|
|
64
|
+
</el-table-column>
|
|
65
|
+
<el-table-column label="上传人" :prop="keys.user">
|
|
66
|
+
<template slot="header" slot-scope="scope">
|
|
67
|
+
<slot name="user-header" :column="scope.column">上传人</slot>
|
|
68
|
+
</template>
|
|
69
|
+
<template slot-scope="{ row }">
|
|
70
|
+
<slot name="user" :row="row">{{ row[keys.user] }}</slot>
|
|
71
|
+
</template>
|
|
72
|
+
</el-table-column>
|
|
73
|
+
</template>
|
|
61
74
|
<el-table-column label="操作" align="center" width="80" fixed="right">
|
|
62
75
|
<template slot="header" slot-scope="scope">
|
|
63
76
|
<slot name="handle-header" :column="scope.column">操作</slot>
|
|
@@ -72,7 +85,7 @@
|
|
|
72
85
|
<el-button
|
|
73
86
|
type="text"
|
|
74
87
|
icon="el-icon-download"
|
|
75
|
-
:disabled="!row[keys.url]"
|
|
88
|
+
:disabled="!row[keys.url] || row.url"
|
|
76
89
|
@click="downFile(row)"
|
|
77
90
|
/>
|
|
78
91
|
</slot>
|