-
-
-
+
+
+
-
+
搜索
-
+ }">
-
-
+
+
-
-
+
+
+
-
加载中···
-
+
{{ screen.name }}
@@ -98,122 +39,55 @@
-
+
{{ screen.name }}
+
-
暂无数据
-
+
-
-
-
+
+
+
-
+
搜索
-
+ }">
-
-
+
+
-
-
+
+
+
-
加载中···
-
+
{{ screen.name }}
@@ -221,119 +95,64 @@
-
+
{{ screen.name }}
+
-
暂无数据
-
+
-
-
-
+ }">
+
+
-
-
-
-
+
+
加载中···
-
+
{{ component.title }}
+
暂无数据
-
+
+
+
取消
-
+
确定
@@ -349,7 +168,7 @@ export default {
name: 'ComponentDialog',
mixins: [pageMixins],
props: {},
- data () {
+ data() {
return {
dialogVisible: false,
loading: false,
@@ -366,30 +185,30 @@ export default {
}
},
computed: {
- gridComputed () {
+ gridComputed() {
return this.list.length > 3
},
- remoteComponentsGridComputed () {
+ remoteComponentsGridComputed() {
return this.remoteComponentlist.length > 3
},
- bizFridComputed () {
+ bizFridComputed() {
return this.bizComponentList.length > 3
}
},
watch: {
- activeName () {
+ activeName() {
this.getCatalogList()
}
},
- mounted () {
+ mounted() {
this.remoteComponentlist = [...innerRemoteComponents, ...getRemoteComponents()]
},
methods: {
- chooseComponent (component) {
+ chooseComponent(component) {
this.focus = _.cloneDeep(component)
},
- close () {},
- init () {
+ close() { },
+ init() {
this.dialogVisible = true
this.current = 1
this.searchKey = ''
@@ -399,7 +218,7 @@ export default {
this.getCatalogList()
},
// 点击确定
- confirm () {
+ confirm() {
this.dialogVisible = false
if (this.activeName === 'combination') {
if (Object.keys(this.focus).length) {
@@ -421,7 +240,7 @@ export default {
this.$emit('setRemoteComponent', config)
}
},
- getDataList () {
+ getDataList() {
this.loading = true
this.$dataRoomAxios.get('/bigScreen/design/page', {
parentCode: this.code || null,
@@ -451,227 +270,242 @@ export default {
})
},
// 获取目录的列表
- getCatalogList () {
+ getCatalogList() {
const url = this.activeName === 'combination' ? '/bigScreen/type/list/componentCatalog' : '/bigScreen/type/list/bizComponentCatalog'
get(url)
.then((data) => {
this.options = data
})
- .catch(() => {})
+ .catch(() => { })
}
}
}
diff --git a/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue b/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue
index 47bb9867..0df04de1 100644
--- a/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue
+++ b/data-room-ui/packages/BigScreenDesign/SourceDialog/index.vue
@@ -1,139 +1,62 @@
-
-
-
-
+
+
+
-
+
搜索
-
+ }">
-
-
+
+
-
-
-
-
+
+
加载中···
-
+
{{ screen.originalName }}
+
暂无数据
-
+
-
+
+
取消
-
+
确定
@@ -147,7 +70,7 @@ export default {
name: 'SourceDialog',
mixins: [pageMixins],
props: {},
- data () {
+ data() {
return {
dialogVisible: false,
loading: false,
@@ -159,17 +82,17 @@ export default {
}
},
computed: {
- gridComputed () {
+ gridComputed() {
return this.list.length > 3
}
},
- mounted () {},
+ mounted() { },
methods: {
- chooseImg (img) {
+ chooseImg(img) {
this.focus = _.cloneDeep(img)
},
- close () {},
- init () {
+ close() { },
+ init() {
this.dialogVisible = true
this.current = 1
this.searchKey = ''
@@ -178,13 +101,13 @@ export default {
this.getDataList()
this.getCatalogList()
},
- confirm () {
+ confirm() {
this.dialogVisible = false
if (this.focus !== -1) {
this.$emit('getImg', this.focus)
}
},
- getDataList () {
+ getDataList() {
this.loading = true
this.$dataRoomAxios.get('/bigScreen/file', {
module: this.code,
@@ -202,12 +125,12 @@ export default {
})
},
// 获取目录的列表
- getCatalogList () {
+ getCatalogList() {
this.$dataRoomAxios.get('/bigScreen/type/list/resourceCatalog')
.then((data) => {
this.options = data
})
- .catch(() => {})
+ .catch(() => { })
}
}
}
@@ -215,7 +138,14 @@ export default {