imeik-bizui 1.6.9 → 1.7.1
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/dist/bizui/src/FieldApplyDeparmentSelect/index.vue +24 -1
- package/dist/bizui/src/FieldCitySelect/index.vue +11 -1
- package/dist/imeik-bizui.common.js +136 -102
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +136 -102
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +4 -4
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="!attrs.isView ? 'w-full' : 'inline'">
|
|
3
|
-
<
|
|
3
|
+
<div v-if="attrs.isView">
|
|
4
|
+
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="myValueName" :no-absolute="true" :new-value="newMyValueName" />
|
|
5
|
+
<span v-else :title="myValueName">{{ myValueName || '-' }}</span>
|
|
6
|
+
</div>
|
|
4
7
|
<el-cascader
|
|
5
8
|
v-else
|
|
6
9
|
:key="keyValue"
|
|
@@ -54,6 +57,12 @@ export default {
|
|
|
54
57
|
}
|
|
55
58
|
},
|
|
56
59
|
computed: {
|
|
60
|
+
showDiff() {
|
|
61
|
+
return this.attrs.showDiff || false
|
|
62
|
+
},
|
|
63
|
+
diffValue() {
|
|
64
|
+
return this.attrs.diffValue || undefined
|
|
65
|
+
},
|
|
57
66
|
dicValue() {
|
|
58
67
|
return this.$bizui.userInfo.departmentCode
|
|
59
68
|
},
|
|
@@ -85,6 +94,20 @@ export default {
|
|
|
85
94
|
return this.myValue ? this.getAllLabel(this.options, this.myValue) : ''
|
|
86
95
|
}
|
|
87
96
|
},
|
|
97
|
+
newMyValueName() {
|
|
98
|
+
if (this.attrs.multiple) {
|
|
99
|
+
return this.diffValue && this.diffValue.length
|
|
100
|
+
? this.diffValue
|
|
101
|
+
.map((item) => {
|
|
102
|
+
return this.getLabel(this.options, item)
|
|
103
|
+
})
|
|
104
|
+
.join(',')
|
|
105
|
+
: ''
|
|
106
|
+
} else {
|
|
107
|
+
// 如果是单选 就获取全部路径的值
|
|
108
|
+
return this.diffValue ? this.getAllLabel(this.options, this.diffValue) : ''
|
|
109
|
+
}
|
|
110
|
+
},
|
|
88
111
|
myValueOrgCode() {
|
|
89
112
|
if (this.attrs.multiple) {
|
|
90
113
|
return this.myValue && this.myValue.length
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="!attrs.isView ? 'w-full' : 'inline'">
|
|
3
3
|
<div v-if="attrs.isView">
|
|
4
|
-
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="myLabel" :no-absolute="true" :new-value="
|
|
4
|
+
<ImDiffText v-if="showDiff" :show-diff="showDiff" :old-value="myLabel" :no-absolute="true" :new-value="myDiffLabel" />
|
|
5
5
|
<span v-else :title="myLabel">{{ myLabel }}</span>
|
|
6
6
|
</div>
|
|
7
7
|
<el-cascader v-else v-model="myValue" :multiple="multiple" :props="props" :options="options" class="w-full" clearable filterable v-bind="$attrs" @change="onUpdate" v-on="listeners"></el-cascader>
|
|
@@ -75,6 +75,9 @@ export default {
|
|
|
75
75
|
myItem() {
|
|
76
76
|
return this.dataMap[this.myValue]
|
|
77
77
|
},
|
|
78
|
+
myDiffItem() {
|
|
79
|
+
return this.dataMap[this.diffValue]
|
|
80
|
+
},
|
|
78
81
|
|
|
79
82
|
/**
|
|
80
83
|
* 当前选中的值的文本
|
|
@@ -86,6 +89,13 @@ export default {
|
|
|
86
89
|
return ''
|
|
87
90
|
}
|
|
88
91
|
},
|
|
92
|
+
myDiffLabel() {
|
|
93
|
+
if (this.myDiffItem) {
|
|
94
|
+
return this.myDiffItem.fullname.replace(/\./g, '/')
|
|
95
|
+
} else {
|
|
96
|
+
return ''
|
|
97
|
+
}
|
|
98
|
+
},
|
|
89
99
|
|
|
90
100
|
/**
|
|
91
101
|
* 层级
|