three-trees-ui 1.0.15 → 1.0.16
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/three-trees-ui.common.js +53 -34
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +53 -34
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/Global/src/GlobalQuery.vue +4 -0
- package/packages/Input/src/main.vue +3 -0
- package/src/directive/formulas.js +8 -0
- package/src/mixins/permission.js +4 -0
package/package.json
CHANGED
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
if (!this.formInst) {
|
|
28
28
|
this.formInst = utils.getOnlineFormInstance(this.$parent)
|
|
29
29
|
}
|
|
30
|
+
// 如果是只读时不触发关联查询
|
|
31
|
+
if (this.formInst.isView === true) {
|
|
32
|
+
return
|
|
33
|
+
}
|
|
30
34
|
if (this.queryJson.length > 0) {
|
|
31
35
|
let _this = this
|
|
32
36
|
this.queryJson.forEach((item) => {
|
|
@@ -15,6 +15,10 @@ const conformanceJudge = (value, vnode) => {
|
|
|
15
15
|
|
|
16
16
|
const formula = {
|
|
17
17
|
bind(el, binding, vnode) {
|
|
18
|
+
// 如果是只读的就不执行js脚本计算
|
|
19
|
+
if (el && el.__vue__ && el.formIsView === true) {
|
|
20
|
+
return
|
|
21
|
+
}
|
|
18
22
|
if (!conformanceJudge(binding.value.value, vnode)) {
|
|
19
23
|
return
|
|
20
24
|
}
|
|
@@ -46,6 +50,10 @@ const formula = {
|
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
52
|
update(el, binding, vnode) {
|
|
53
|
+
// 如果是只读的就不执行js脚本计算
|
|
54
|
+
if (el && el.__vue__ && el.formIsView === true) {
|
|
55
|
+
return
|
|
56
|
+
}
|
|
49
57
|
if (!conformanceJudge(binding.value.value, vnode)) {
|
|
50
58
|
return
|
|
51
59
|
}
|
package/src/mixins/permission.js
CHANGED