feat: 资源类型、所属系统、选择用户 组件优化(错误字段修改)
Showing
4 changed files
with
16 additions
and
16 deletions
@@ -27,7 +27,7 @@ export default { | @@ -27,7 +27,7 @@ export default { | ||
27 | }, | 27 | }, |
28 | // 字段key,用于取出数据中的名字 | 28 | // 字段key,用于取出数据中的名字 |
29 | fieldName: { | 29 | fieldName: { |
30 | - default: 'title' | 30 | + default: 'busTypeName' |
31 | }, | 31 | }, |
32 | emptyText: { | 32 | emptyText: { |
33 | default: '无匹配项' | 33 | default: '无匹配项' |
@@ -114,6 +114,9 @@ export default { | @@ -114,6 +114,9 @@ export default { | ||
114 | }, | 114 | }, |
115 | watch: {}, | 115 | watch: {}, |
116 | mounted() { | 116 | mounted() { |
117 | + | ||
118 | + }, | ||
119 | + created() { | ||
117 | let that = this; | 120 | let that = this; |
118 | //加载资源列表 | 121 | //加载资源列表 |
119 | const { proxy } = Vue.getCurrentInstance() | 122 | const { proxy } = Vue.getCurrentInstance() |
@@ -123,9 +126,6 @@ export default { | @@ -123,9 +126,6 @@ export default { | ||
123 | that.list = res.data; | 126 | that.list = res.data; |
124 | } | 127 | } |
125 | }) | 128 | }) |
126 | - }, | ||
127 | - created() { | ||
128 | - | ||
129 | 129 | ||
130 | } | 130 | } |
131 | } | 131 | } |
@@ -27,7 +27,7 @@ export default { | @@ -27,7 +27,7 @@ export default { | ||
27 | }, | 27 | }, |
28 | // 字段key,用于取出数据中的名字 | 28 | // 字段key,用于取出数据中的名字 |
29 | fieldName: { | 29 | fieldName: { |
30 | - default: 'title' | 30 | + default: 'kpiName' |
31 | }, | 31 | }, |
32 | emptyText: { | 32 | emptyText: { |
33 | default: '无匹配项' | 33 | default: '无匹配项' |
@@ -114,6 +114,9 @@ export default { | @@ -114,6 +114,9 @@ export default { | ||
114 | }, | 114 | }, |
115 | watch: {}, | 115 | watch: {}, |
116 | mounted() { | 116 | mounted() { |
117 | + | ||
118 | + }, | ||
119 | + created() { | ||
117 | let that = this; | 120 | let that = this; |
118 | //加载资源列表 | 121 | //加载资源列表 |
119 | const { proxy } = Vue.getCurrentInstance() | 122 | const { proxy } = Vue.getCurrentInstance() |
@@ -123,9 +126,6 @@ export default { | @@ -123,9 +126,6 @@ export default { | ||
123 | that.list = res.data; | 126 | that.list = res.data; |
124 | } | 127 | } |
125 | }) | 128 | }) |
126 | - }, | ||
127 | - created() { | ||
128 | - | ||
129 | 129 | ||
130 | } | 130 | } |
131 | } | 131 | } |
@@ -114,6 +114,9 @@ export default { | @@ -114,6 +114,9 @@ export default { | ||
114 | }, | 114 | }, |
115 | watch: {}, | 115 | watch: {}, |
116 | mounted() { | 116 | mounted() { |
117 | + | ||
118 | + }, | ||
119 | + created() { | ||
117 | let that = this; | 120 | let that = this; |
118 | //加载资源列表 | 121 | //加载资源列表 |
119 | const { proxy } = Vue.getCurrentInstance() | 122 | const { proxy } = Vue.getCurrentInstance() |
@@ -123,9 +126,6 @@ export default { | @@ -123,9 +126,6 @@ export default { | ||
123 | that.list = res.data; | 126 | that.list = res.data; |
124 | } | 127 | } |
125 | }) | 128 | }) |
126 | - }, | ||
127 | - created() { | ||
128 | - | ||
129 | 129 | ||
130 | } | 130 | } |
131 | } | 131 | } |
@@ -27,7 +27,7 @@ export default { | @@ -27,7 +27,7 @@ export default { | ||
27 | }, | 27 | }, |
28 | // 字段key,用于取出数据中的名字 | 28 | // 字段key,用于取出数据中的名字 |
29 | fieldName: { | 29 | fieldName: { |
30 | - default: 'title' | 30 | + default: 'nickname' |
31 | }, | 31 | }, |
32 | emptyText: { | 32 | emptyText: { |
33 | default: '无匹配项' | 33 | default: '无匹配项' |
@@ -100,7 +100,7 @@ export default { | @@ -100,7 +100,7 @@ export default { | ||
100 | } else { | 100 | } else { |
101 | that.modelValue.forEach(function (v, i) { | 101 | that.modelValue.forEach(function (v, i) { |
102 | selectArr.forEach(function (v1) { | 102 | selectArr.forEach(function (v1) { |
103 | - if (v.busId == v1.busId) { | 103 | + if (v.id === v1.id) { |
104 | that.modelValue.splice(i, 1); | 104 | that.modelValue.splice(i, 1); |
105 | } | 105 | } |
106 | }) | 106 | }) |
@@ -114,6 +114,9 @@ export default { | @@ -114,6 +114,9 @@ export default { | ||
114 | }, | 114 | }, |
115 | watch: {}, | 115 | watch: {}, |
116 | mounted() { | 116 | mounted() { |
117 | + | ||
118 | + }, | ||
119 | + created() { | ||
117 | let that = this; | 120 | let that = this; |
118 | //加载资源列表 | 121 | //加载资源列表 |
119 | const {proxy} = Vue.getCurrentInstance() | 122 | const {proxy} = Vue.getCurrentInstance() |
@@ -123,9 +126,6 @@ export default { | @@ -123,9 +126,6 @@ export default { | ||
123 | that.list = res; | 126 | that.list = res; |
124 | } | 127 | } |
125 | }) | 128 | }) |
126 | - }, | ||
127 | - created() { | ||
128 | - | ||
129 | 129 | ||
130 | } | 130 | } |
131 | } | 131 | } |
-
Please register or login to post a comment