Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
c2b9dcd277
|
@ -76,3 +76,11 @@ export function fullyReplicated(param) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取所有字典key
|
||||||
|
export function getDictionaryCodeList() {
|
||||||
|
return request({
|
||||||
|
url: `/Dictionary/getAllDictionaryKey`,
|
||||||
|
method: 'post',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -513,12 +513,27 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-show="form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'" :span="12">
|
<el-col v-show="form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'" :span="12">
|
||||||
<el-form-item label="字典表名">
|
<el-form-item label="字典表名">
|
||||||
<el-input v-model="form.DictionaryCode" placeholder="请输入字典表名" />
|
<!-- <el-input v-model="form.DictionaryCode" placeholder="请输入字典表名" /> -->
|
||||||
|
<el-autocomplete
|
||||||
|
clearable
|
||||||
|
class="inline-input"
|
||||||
|
v-model="form.DictionaryCode"
|
||||||
|
:fetch-suggestions="querySearch"
|
||||||
|
placeholder="请输入字典表名"
|
||||||
|
></el-autocomplete>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-show="form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'" :span="12">
|
<el-col v-show="form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'" :span="12">
|
||||||
<el-form-item label="翻译字段">
|
<el-form-item label="翻译字段">
|
||||||
<el-input v-model="form.DictionaryType" placeholder="请输入翻译字段" />
|
<!-- <el-input v-model="form.DictionaryType" placeholder="请输入翻译字段" /> -->
|
||||||
|
<el-select v-model="form.DictionaryType" clearable placeholder="请选择翻译字段">
|
||||||
|
<el-option
|
||||||
|
v-for="item in $d.DictionaryType"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.label">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col v-show="form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Date'" :span="24">
|
<el-col v-show="form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Date'" :span="24">
|
||||||
|
@ -696,7 +711,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { fullyReplicated, changeFrontAuditSort, copyFrontAuditConfigItem, getFrontAuditConfigList, addOrUpdateFrontAuditConfig, deleteFrontAuditConfig, copyOtherToThisItem, getAuditConfigChildList, setDictionaryValue } from '@/api/dictionary/checkConfig'
|
import { fullyReplicated, changeFrontAuditSort, copyFrontAuditConfigItem, getFrontAuditConfigList, addOrUpdateFrontAuditConfig, deleteFrontAuditConfig, copyOtherToThisItem, getAuditConfigChildList, getDictionaryCodeList } from '@/api/dictionary/checkConfig'
|
||||||
import Treeselect from '@riophae/vue-treeselect'
|
import Treeselect from '@riophae/vue-treeselect'
|
||||||
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
||||||
import Sortable from 'sortablejs'
|
import Sortable from 'sortablejs'
|
||||||
|
@ -749,13 +764,41 @@ export default {
|
||||||
},
|
},
|
||||||
ChildGroup: null,
|
ChildGroup: null,
|
||||||
tableShow: false,
|
tableShow: false,
|
||||||
rowDrop2TableIsShow: true
|
rowDrop2TableIsShow: true,
|
||||||
|
DictionaryCodeList:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList();
|
||||||
|
this.getDictionaryCodeList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
querySearch(queryString, cb) {
|
||||||
|
var DictionaryCodeList = this.DictionaryCodeList;
|
||||||
|
var results = queryString ? DictionaryCodeList.filter(this.createFilter(queryString)) : DictionaryCodeList;
|
||||||
|
// 调用 callback 返回建议列表的数据
|
||||||
|
cb(results);
|
||||||
|
},
|
||||||
|
createFilter(queryString) {
|
||||||
|
return (DictionaryCodeList) => {
|
||||||
|
return (DictionaryCodeList.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
// 获取字典表名
|
||||||
|
async getDictionaryCodeList(){
|
||||||
|
try{
|
||||||
|
let res = await getDictionaryCodeList();
|
||||||
|
if(res.IsSuccess){
|
||||||
|
this.DictionaryCodeList = res.Result.map(item=>{
|
||||||
|
return {
|
||||||
|
value:item
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}catch(err){
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
},
|
||||||
addParameter() {
|
addParameter() {
|
||||||
this.form.UrlConfig.ParameterList.push({
|
this.form.UrlConfig.ParameterList.push({
|
||||||
UrlParameterName: null,
|
UrlParameterName: null,
|
||||||
|
|
Loading…
Reference in New Issue