feat: 格式化前端报错代码

This commit is contained in:
fit2cloud-chenyw 2021-06-07 17:08:57 +08:00
parent f297fd7aa2
commit e520101af1
4 changed files with 44 additions and 40 deletions

View File

@ -36,15 +36,18 @@ export default {
},
element: {
require: true,
type: Object
type: Object,
default: null
},
defaultStyle: {
require: true,
type: Object
type: Object,
default: null
},
index: {
require: true,
type: [Number, String]
type: [Number, String],
default: null
}
},
data() {
@ -200,6 +203,7 @@ export default {
pointList.forEach(point => {
const angle = mod360(initialAngle[point] + rotate)
const len = angleToCursor.length
// eslint-disable-next-line no-constant-condition
while (true) {
lastMatchIndex = (lastMatchIndex + 1) % len
const angleLimit = angleToCursor[lastMatchIndex]

View File

@ -40,7 +40,8 @@ export default {
components: { ChartComponent, TableNormal, LabelNormal },
props: {
element: {
type: Object
type: Object,
default: null
},
filter: {
type: Object,
@ -59,38 +60,6 @@ export default {
}
}
},
watch: {
'$store.getters.conditions': function(newVal, oldVal) {
this.filter.filter = newVal
this.getData(this.element.propValue.viewId)
},
filter(val) {
this.getData(this.element.propValue.viewId)
},
// deeppanel store
canvasStyleData: {
handler(newVal, oldVla) {
// this.chart.stylePriority == panel 使
this.mergeStyle()
},
deep: true
},
//
outStyle: {
handler(newVal, oldVla) {
if (this.$refs[this.element.propValue.id]) {
this.$refs[this.element.propValue.id].chartResize()
}
},
deep: true
}
},
created() {
this.refId = uuid.v1
},
computed: mapState([
'canvasStyleData'
]),
data() {
return {
refId: null,
@ -120,8 +89,35 @@ export default {
message: null
}
},
computed: mapState([
'canvasStyleData'
]),
watch: {
filter(val) {
this.getData(this.element.propValue.viewId)
},
// deeppanel store
canvasStyleData: {
handler(newVal, oldVla) {
// this.chart.stylePriority == panel 使
this.mergeStyle()
},
deep: true
},
//
outStyle: {
handler(newVal, oldVla) {
if (this.$refs[this.element.propValue.id]) {
this.$refs[this.element.propValue.id].chartResize()
}
},
deep: true
}
},
created() {
this.filter.filter = this.$store.getters.conditions
this.refId = uuid.v1
// this.filter.filter = this.$store.getters.conditions
this.getData(this.element.propValue.viewId)
},
mounted() {

View File

@ -57,7 +57,8 @@ export default {
},
authCondition: {
type: Object,
required: false
required: false,
default: null
},
dataInfo: {
type: Object,
@ -67,7 +68,10 @@ export default {
type: String,
required: true
},
attachActiveName: String,
attachActiveName: {
type: String,
default: null
},
defaultProps: {
type: Object,
required: false,

View File

@ -92,7 +92,7 @@
import LayoutContent from '@/components/business/LayoutContent'
import ComplexTable from '@/components/business/complex-table'
import { checkPermission, hasDataPermission } from '@/utils/permission'
import { hasDataPermission } from '@/utils/permission'
import { formatCondition } from '@/utils/index'
import { dsGrid, addDs, editDs, delDs, validateDs } from '@/api/system/datasource'