update 标准预警
This commit is contained in:
@@ -3,13 +3,17 @@
|
|||||||
<a-radio v-for="(item, key) in dictOptions" :key="key" :value="item.value">{{ item.text }}</a-radio>
|
<a-radio v-for="(item, key) in dictOptions" :key="key" :value="item.value">{{ item.text }}</a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
|
|
||||||
<a-radio-group v-else-if="tagType==='radioButton'" buttonStyle="solid" @change="handleInput" :value="getValueSting" :disabled="disabled">
|
<a-radio-group v-else-if="tagType==='radioButton'"
|
||||||
|
buttonStyle="solid"
|
||||||
|
@change="handleInput"
|
||||||
|
:value="getValueSting"
|
||||||
|
:disabled="disabled">
|
||||||
<a-radio-button v-for="(item, key) in dictOptions" :key="key" :value="item.value">{{ item.text }}</a-radio-button>
|
<a-radio-button v-for="(item, key) in dictOptions" :key="key" :value="item.value">{{ item.text }}</a-radio-button>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
|
|
||||||
<a-select
|
<a-select
|
||||||
v-else-if="tagType==='select'"
|
v-else-if="tagType==='select'"
|
||||||
:getPopupContainer = "getPopupContainer"
|
:getPopupContainer="getPopupContainer"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:value="getValueSting"
|
:value="getValueSting"
|
||||||
@@ -65,6 +69,15 @@ export default {
|
|||||||
this.dictOptions = this.options
|
this.dictOptions = this.options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
handler () {
|
||||||
|
if (!this.dictCode) {
|
||||||
|
this.dictOptions = this.options
|
||||||
|
}
|
||||||
|
},
|
||||||
|
immediate: true,
|
||||||
|
deep: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
// 来源
|
// 来源
|
||||||
{
|
{
|
||||||
dataIndex: 'source',
|
dataIndex: 'source_dictText',
|
||||||
title: this.$t('standardSelect.source'),
|
title: this.$t('standardSelect.source'),
|
||||||
width: 150
|
width: 150
|
||||||
},
|
},
|
||||||
@@ -176,7 +176,8 @@ export default {
|
|||||||
getSourceOptions () {
|
getSourceOptions () {
|
||||||
ajaxGetDictItems('standard_source').then(res => {
|
ajaxGetDictItems('standard_source').then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.sourceOptions = res.result || []
|
this.sourceOptions = (res.result || []).filter(tt => tt.value !== StandardSource.ENTERPRISE.value)
|
||||||
|
console.log(this.sourceOptions)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user