@toolspack/ttd-common 0.2.2 → 0.2.5
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/lib/ttd-common.common.js +110 -120
- package/lib/ttd-common.umd.js +110 -120
- package/lib/ttd-common.umd.min.js +4 -4
- package/package.json +3 -3
- package/src/packages/cfca/CfcaPdf.vue +1 -1
- package/src/packages/label-list/LabelOperate.vue +23 -59
- package/src/packages/make-label/LabelMake.vue +3 -3
- package/src/packages/make-label/directive.js +2 -2
- package/src/views/MakeLabel.vue +0 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolspack/ttd-common",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "src/packages/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vue-cli-service serve",
|
|
8
8
|
"build": "vue-cli-service build",
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
"eslint-plugin-vue": "^6.2.2",
|
|
38
38
|
"vue-template-compiler": "^2.6.11"
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -463,7 +463,7 @@ export default {
|
|
|
463
463
|
signFileKeyImage(item, image) {
|
|
464
464
|
// 将印章内的图片合成到pdf中,此处使用PDFCtrl在 引用该组件的view内
|
|
465
465
|
const certSN = this.PDFCtrl.GetSignCertInfo('SerialNumber')
|
|
466
|
-
console.log(`-signFileKeyImage--certSN-${ certSN}
|
|
466
|
+
console.log(`-signFileKeyImage--certSN-${ certSN}`, item)
|
|
467
467
|
|
|
468
468
|
try {
|
|
469
469
|
let lacotionX = ''; let lacotionY = '';
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
<!--打标签 右侧-->
|
|
2
2
|
<template lang="html">
|
|
3
3
|
<div class="label-done-area">
|
|
4
|
-
<div class="label-group">
|
|
4
|
+
<div class="label-group" v-if="operateConfig.length">
|
|
5
5
|
<el-menu
|
|
6
|
-
class="
|
|
6
|
+
class="label-operate-menu title-con"
|
|
7
|
+
text-color="#4B5973"
|
|
7
8
|
menu-trigger="click"
|
|
8
9
|
>
|
|
9
|
-
|
|
10
|
-
<el-submenu :index="''+index" :key="index">
|
|
10
|
+
<el-submenu :index="''+index" v-for="(item, index) in operateConfig" :key="index" >
|
|
11
11
|
<template slot="title">
|
|
12
12
|
<span>{{item.typeName}}</span>
|
|
13
13
|
</template>
|
|
14
|
-
<el-menu-item
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type="text"
|
|
18
|
-
@click="emitSignItem(item2)"
|
|
19
|
-
:class="{'colorChnage':ind=== index+'-'+index2, 'label-item-btn': true}"
|
|
20
|
-
>{{item2.name}}
|
|
21
|
-
</el-button>
|
|
22
|
-
</el-menu-item>
|
|
23
|
-
</el-menu-item-group>
|
|
14
|
+
<el-menu-item v-for="(item2,index2) in item.typeSeal" :key="index2" :index="index+'-'+index2" @click="changeColor(index,index2)">
|
|
15
|
+
<span @click="emitSignItem(item2)" :class="{'colorChnage':ind=== index+'-'+index2, 'label-item-btn': true}" slot="title">{{item2.name}}</span>
|
|
16
|
+
</el-menu-item>
|
|
24
17
|
</el-submenu>
|
|
25
|
-
</template>
|
|
26
18
|
</el-menu>
|
|
27
19
|
</div>
|
|
28
20
|
<!-- 文本标签的插槽 -->
|
|
@@ -60,17 +52,15 @@ export default {
|
|
|
60
52
|
</script>
|
|
61
53
|
<style lang="less">
|
|
62
54
|
.label-done-area {
|
|
63
|
-
.label-
|
|
64
|
-
|
|
55
|
+
.label-operate-menu{
|
|
56
|
+
.el-submenu__title {
|
|
65
57
|
font-size: 18px;
|
|
66
|
-
|
|
58
|
+
color: #222 !important;
|
|
67
59
|
border-bottom: 1px solid #dcdde3;
|
|
68
60
|
}
|
|
69
|
-
.el-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.el-menu-item {
|
|
73
|
-
padding: 0 !important;
|
|
61
|
+
.el-menu-item{
|
|
62
|
+
height: 40px;
|
|
63
|
+
line-height: 40px;
|
|
74
64
|
}
|
|
75
65
|
.el-menu.el-menu--inline {
|
|
76
66
|
border-bottom: 1px solid #dcdde3;
|
|
@@ -85,52 +75,26 @@ export default {
|
|
|
85
75
|
transform: translateY(-50%);
|
|
86
76
|
}
|
|
87
77
|
.el-submenu.is-opened .el-submenu__title {
|
|
88
|
-
background: #fff !important;
|
|
89
78
|
border-bottom: 1px solid #dcdde3;
|
|
90
79
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
.el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
|
|
103
|
-
-webkit-transform: rotateX(180deg);
|
|
104
|
-
transform: rotateX(180deg);
|
|
105
|
-
}
|
|
106
|
-
.label-item-btn {
|
|
107
|
-
line-height: 50px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
83
|
+
|
|
84
|
+
<style lang="less" scoped>
|
|
85
|
+
.label-group {
|
|
86
|
+
margin-bottom: 20px;
|
|
87
|
+
border: 1px solid #ccc;
|
|
88
|
+
.label-item-btn {
|
|
89
|
+
line-height: 40px;
|
|
108
90
|
width: 280px;
|
|
109
91
|
background: none;
|
|
110
|
-
color: #222222;
|
|
111
92
|
border: none;
|
|
112
93
|
cursor: pointer;
|
|
113
94
|
padding: 0;
|
|
114
95
|
text-align: left;
|
|
115
96
|
font-size: 16px;
|
|
116
97
|
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
</style>
|
|
120
|
-
|
|
121
|
-
<style scoped>
|
|
122
|
-
.label-group {
|
|
123
|
-
margin-bottom: 20px;
|
|
124
|
-
border: 1px solid #ccc;
|
|
125
|
-
}
|
|
126
|
-
.title-con {
|
|
127
|
-
text-indent: 20px;
|
|
128
|
-
color: #333;
|
|
129
|
-
font-size: 20px;
|
|
130
|
-
line-height: 50px;
|
|
131
|
-
border-bottom: 1px solid #ccc;
|
|
132
|
-
margin-bottom: -1px;
|
|
133
|
-
margin-right: -1px;
|
|
134
98
|
}
|
|
135
99
|
.label-done-area {
|
|
136
100
|
width: 320px;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:key="index"
|
|
23
23
|
>
|
|
24
24
|
<i class="labelCon" :style="getStyleCon(item)">
|
|
25
|
-
<span class="span-text">{{item.
|
|
25
|
+
<span class="span-text">{{item.showName}}</span>
|
|
26
26
|
</i>
|
|
27
27
|
<i v-if="isclose" class="close" @click="deleteTag(item, index)">+</i>
|
|
28
28
|
<div v-if="item.labelType===1 && issize" v-size="handlerResize" class="resize-tag"></div>
|
|
@@ -171,7 +171,7 @@ export default {
|
|
|
171
171
|
} else {
|
|
172
172
|
// 返回字符串的 index
|
|
173
173
|
const index = me.mousedownEl.getAttribute('index')
|
|
174
|
-
console.log(`move${index}`, me.mousedownEl.offsetTop)
|
|
174
|
+
// console.log(`move${index}`, me.mousedownEl.offsetTop)
|
|
175
175
|
if (index) {
|
|
176
176
|
// 需要转换成Number
|
|
177
177
|
const targetLabel = me.labelData[Number(index)]
|
|
@@ -300,7 +300,7 @@ export default {
|
|
|
300
300
|
// 指定最外层容器的mousemove执行的方法
|
|
301
301
|
this.mousedownEl = el
|
|
302
302
|
this.mousedonwType = 'move'
|
|
303
|
-
console.log('move mousemoveFn', e.target.className)
|
|
303
|
+
// console.log('move mousemoveFn', e.target.className)
|
|
304
304
|
if (e.target.className === 'close' || e.target.className === 'resize-tag') {
|
|
305
305
|
return
|
|
306
306
|
}
|
|
@@ -3,7 +3,7 @@ const directive = {
|
|
|
3
3
|
inserted(el, binding, vnode) {
|
|
4
4
|
el.onmousedown = function (e) {
|
|
5
5
|
binding.value(e, el)
|
|
6
|
-
console.log('执行onmousedown', el.className)
|
|
6
|
+
// console.log('执行onmousedown', el.className)
|
|
7
7
|
e.stopPropagation();
|
|
8
8
|
}
|
|
9
9
|
},
|
|
@@ -13,7 +13,7 @@ const directive = {
|
|
|
13
13
|
// 修改标签大小
|
|
14
14
|
el.onmousedown = function (e) {
|
|
15
15
|
binding.value(e, el)
|
|
16
|
-
console.log('onmousedown', el.className)
|
|
16
|
+
// console.log('onmousedown', el.className)
|
|
17
17
|
e.stopPropagation();
|
|
18
18
|
}
|
|
19
19
|
},
|
package/src/views/MakeLabel.vue
CHANGED
|
@@ -53,11 +53,9 @@
|
|
|
53
53
|
<div class="label-done">
|
|
54
54
|
<ttd-label-operate
|
|
55
55
|
:showSelectLabel="false"
|
|
56
|
-
isConsign
|
|
57
56
|
:operateConfig="operateConfig"
|
|
58
57
|
:labelData="labelData"
|
|
59
58
|
@getSignItem="getSignItem"
|
|
60
|
-
@setLabelView="labelView=$event"
|
|
61
59
|
>
|
|
62
60
|
<search-label @emit-label="getSignItem" />
|
|
63
61
|
</ttd-label-operate>
|