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-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-group>
|
||||
|
||||
<a-select
|
||||
v-else-if="tagType==='select'"
|
||||
:getPopupContainer = "getPopupContainer"
|
||||
:getPopupContainer="getPopupContainer"
|
||||
:placeholder="placeholder"
|
||||
:disabled="disabled"
|
||||
:value="getValueSting"
|
||||
@@ -65,6 +69,15 @@ export default {
|
||||
this.dictOptions = this.options
|
||||
}
|
||||
}
|
||||
},
|
||||
options: {
|
||||
handler () {
|
||||
if (!this.dictCode) {
|
||||
this.dictOptions = this.options
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
||||
@@ -124,7 +124,7 @@ export default {
|
||||
columns: [
|
||||
// 来源
|
||||
{
|
||||
dataIndex: 'source',
|
||||
dataIndex: 'source_dictText',
|
||||
title: this.$t('standardSelect.source'),
|
||||
width: 150
|
||||
},
|
||||
@@ -176,7 +176,8 @@ export default {
|
||||
getSourceOptions () {
|
||||
ajaxGetDictItems('standard_source').then(res => {
|
||||
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