n20-common-lib 2.4.39 → 2.4.41
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/src/components/ApprovalButtons/index.vue +17 -10
- package/src/components/FileImport/index.vue +11 -3
- package/src/components/Layout/TabsNav/index.vue +0 -2
- package/src/components/Table/index.vue +1 -1
- package/src/components/TableSetSize/index.vue +5 -5
- package/src/i18n.json +3 -0
package/package.json
CHANGED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
<el-form-item v-if="authList.includes('isAddtask')" :label="'加签' | $lc" :error="addMsg" class="flex-1 m-b-s">
|
|
15
15
|
<label slot="label">
|
|
16
16
|
<span>{{ '加签' | $lc }}</span>
|
|
17
|
-
<el-tooltip placement="top">
|
|
17
|
+
<!-- <el-tooltip placement="top">
|
|
18
18
|
<span class="n20-icon-xinxitishi m-l-ss" style="position: static"></span>
|
|
19
19
|
<div slot="content" style="width: 16em; line-height: 1.6">
|
|
20
20
|
{{ '会签并行:增加一个会签节点,全部审批人同意才可通过审批' | $lc }}<br />
|
|
21
21
|
{{ '普通串行:按照加签人数增加节点,每个节点审批通过才可完成当前加签流程' | $lc }}
|
|
22
22
|
</div>
|
|
23
|
-
</el-tooltip>
|
|
23
|
+
</el-tooltip> -->
|
|
24
24
|
</label>
|
|
25
25
|
<div class="flex-box">
|
|
26
26
|
<el-select
|
|
@@ -30,15 +30,20 @@
|
|
|
30
30
|
clearable
|
|
31
31
|
:placeholder="'请选择加签类型' | $lc"
|
|
32
32
|
style="width: 10em"
|
|
33
|
-
@change="() => addTaskWay === '2' && addTaskType === '2' && (addTaskType = '3')"
|
|
34
33
|
>
|
|
35
34
|
<el-option :label="'向前加签' | $lc" value="2" />
|
|
36
35
|
<el-option :label="'向后加签' | $lc" value="1" />
|
|
37
36
|
</el-select>
|
|
38
|
-
<el-select
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
<el-select
|
|
38
|
+
v-model="addTaskType"
|
|
39
|
+
disabled
|
|
40
|
+
clearable
|
|
41
|
+
:placeholder="'请选择审批方式' | $lc"
|
|
42
|
+
style="width: 10em"
|
|
43
|
+
>
|
|
44
|
+
<el-option :label="'普通节点' | $lc" value="1" />
|
|
45
|
+
<!-- <el-option :label="'会签并行' | $lc" value="2" :disabled="addTaskWay === '2'" /> -->
|
|
46
|
+
<!-- <el-option :label="'普通串行' | $lc" value="3" /> -->
|
|
42
47
|
</el-select>
|
|
43
48
|
<el-input
|
|
44
49
|
class="flex-item"
|
|
@@ -95,8 +100,10 @@
|
|
|
95
100
|
/>
|
|
96
101
|
</el-form-item>
|
|
97
102
|
</el-form>
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
<div v-if="authList.includes('byAddTask') && addTaskList.length > 0" class="text-c">
|
|
104
|
+
<el-button v-if="authList.includes('approval')" type="primary" @click="approvalFn">{{ '加 签' | $lc }}</el-button>
|
|
105
|
+
</div>
|
|
106
|
+
<div v-else class="text-c">
|
|
100
107
|
<el-button v-if="authList.includes('approval')" type="primary" @click="approvalFn">{{ '批 准' | $lc }}</el-button>
|
|
101
108
|
<el-button v-if="showApprovalTo" type="primary" @click="approvalToV = true">{{ '批准至' | $lc }}</el-button>
|
|
102
109
|
<el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ '驳回至' | $lc }}</el-button>
|
|
@@ -250,7 +257,7 @@ export default {
|
|
|
250
257
|
addMsg: undefined,
|
|
251
258
|
setAddtaskV: false,
|
|
252
259
|
addTaskList: [],
|
|
253
|
-
addTaskType:
|
|
260
|
+
addTaskType: '1',
|
|
254
261
|
preAddTask: false,
|
|
255
262
|
addTaskWay: undefined,
|
|
256
263
|
rejectToV: false,
|
|
@@ -55,6 +55,10 @@ export default {
|
|
|
55
55
|
type: Function,
|
|
56
56
|
default: undefined
|
|
57
57
|
},
|
|
58
|
+
customTemplateDownload: {
|
|
59
|
+
type: Function,
|
|
60
|
+
default: undefined
|
|
61
|
+
},
|
|
58
62
|
validateResult: {
|
|
59
63
|
type: Object,
|
|
60
64
|
default: undefined
|
|
@@ -118,9 +122,13 @@ export default {
|
|
|
118
122
|
})
|
|
119
123
|
},
|
|
120
124
|
downFn() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
125
|
+
if (this.customTemplateDownload) {
|
|
126
|
+
this.customTemplateDownload()
|
|
127
|
+
} else {
|
|
128
|
+
axios.get(this.templateUrl, null, { responseType: 'blob', ...this.templateOpt }).then((blob) => {
|
|
129
|
+
downloadBlob(blob, this.fileName)
|
|
130
|
+
})
|
|
131
|
+
}
|
|
124
132
|
}
|
|
125
133
|
}
|
|
126
134
|
}
|
|
@@ -39,21 +39,21 @@ export default {
|
|
|
39
39
|
data() {
|
|
40
40
|
let _this = this
|
|
41
41
|
return {
|
|
42
|
-
sizeC: _this.size
|
|
42
|
+
sizeC: localStorage.getItem('table-size') || _this.size
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
watch: {
|
|
46
46
|
size() {
|
|
47
|
-
this.setSize(this.size, 'pasv')
|
|
47
|
+
this.setSize(localStorage.getItem('table-size') || this.size, 'pasv')
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
created() {
|
|
51
|
-
this.setSize(this.size, 'pasv')
|
|
51
|
+
this.setSize(localStorage.getItem('table-size') || this.size, 'pasv')
|
|
52
52
|
},
|
|
53
53
|
methods: {
|
|
54
54
|
setSize(type, t) {
|
|
55
55
|
this.sizeC = type
|
|
56
|
-
|
|
56
|
+
localStorage.setItem('table-size', type)
|
|
57
57
|
if (type === 'mini') {
|
|
58
58
|
this.$emit('resize', this.mini)
|
|
59
59
|
} else if (type === 'small') {
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
if (t !== 'pasv') {
|
|
64
|
-
this.$emit('update:size', type)
|
|
64
|
+
this.$emit('update:size', localStorage.getItem('table-size') || type)
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|