提交 b87766ad authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

feat: 设置必须绑定数据集字段

上级 5ec60144
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<el-card <el-card
v-show="showSeason" v-show="showSeason"
class="box-card" class="box-card"
style="width:322px;padding: 0 3px 20px;margin-top:10px;position:fixed;z-index:9999" style="width:322px !important;padding: 0 3px 20px;margin-top:10px;position:fixed;z-index:9999"
> >
<div slot="header" class="clearfix" style="text-align:center;padding:0"> <div slot="header" class="clearfix" style="text-align:center;padding:0">
<button <button
......
...@@ -9,7 +9,7 @@ const leftPanel = { ...@@ -9,7 +9,7 @@ const leftPanel = {
const dialogPanel = { const dialogPanel = {
options: { options: {
attrs: { attrs: {
placeholder: '请选择年份' placeholder: '请选择季度'
}, },
value: '' value: ''
}, },
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<div style="text-align: end !important;margin: 0 15px !important;"> <div style="text-align: end !important;margin: 0 15px !important;">
<span slot="footer"> <span slot="footer">
<el-button @click="cancelFilter">取 消</el-button> <el-button @click="cancelFilter">取 消</el-button>
<el-button type="primary" @click="sureFilter">确 定</el-button> <el-button :disabled="!currentFilterCom.options.attrs.fieldId" type="primary" @click="sureFilter">确 定</el-button>
</span> </span>
</div> </div>
</el-dialog> </el-dialog>
...@@ -342,6 +342,7 @@ export default { ...@@ -342,6 +342,7 @@ export default {
}, },
reFreshComponent(component) { reFreshComponent(component) {
this.currentFilterCom = component this.currentFilterCom = component
this.$forceUpdate()
}, },
eidtDialog() { eidtDialog() {
const serviceName = this.curComponent.serviceName const serviceName = this.curComponent.serviceName
......
...@@ -249,6 +249,9 @@ export default { ...@@ -249,6 +249,9 @@ export default {
this.componentInfo.options.attrs.dragItems = values this.componentInfo.options.attrs.dragItems = values
this.$emit('re-fresh-component', this.componentInfo) this.$emit('re-fresh-component', this.componentInfo)
} }
} else if (this.componentInfo && this.componentInfo.options.attrs.fieldId) {
this.componentInfo.options.attrs.fieldId = null
this.$emit('re-fresh-component', this.componentInfo)
} }
} }
}, },
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
'时间过滤组件': [ '时间过滤组件': [
'timeYearWidget', 'timeYearWidget',
'timeMonthWidget', 'timeMonthWidget',
'timeQuarterWidget', // 'timeQuarterWidget',
'timeDateWidget', 'timeDateWidget',
'timeDateRangeWidget' 'timeDateRangeWidget'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论