标签管理同步

This commit is contained in:
caoyang
2022-03-04 19:56:10 +08:00
parent cd484d2170
commit de2cf9ed12
4 changed files with 15 additions and 9 deletions
@@ -41,8 +41,8 @@
</a-form-model-item>
</a-col>
<a-col :span="24" v-if="isTagContent">
<a-form-model-item :label="$t('OptionContent')" prop="dictName">
<a-select :placeholder="$t('PleaseSelectOptionContent')" v-model="form.dictName" @change="handleChange">
<a-form-model-item :label="$t('OptionContent')" prop="dictId">
<a-select :placeholder="$t('PleaseSelectOptionContent')" v-model="form.dictId" @change="handleChange">
<a-select-option v-for="(item,index) in contentOption" :key="item.id" :value="item.id">
{{item.dictName}}
</a-select-option>
@@ -116,7 +116,7 @@
<script>
import { httpAction, getAction } from '@/api/manage'
import { httpAction, getAction, postAction } from '@/api/manage'
import pick from 'lodash.pick'
import { validateDuplicateValue } from '@/utils/util'
@@ -183,7 +183,7 @@
fieldShowType: [
{ required: true, message: this.$t('PleaseSelectAttributeType'),trigger: 'change'},
],
dictName: [
dictId: [
{ required: true, message: this.$t('PleaseSelectOptionContent'),trigger: 'change'},
],
dbLength: [
@@ -246,7 +246,7 @@
},
computed: {
changeType(val){
console.log('changtType',val)
// console.log('changtType',val)
},
formDisabled(){
if(this.formBpm===true){
@@ -351,13 +351,14 @@
this.form.dbIsKey='0'
this.form.dbIsNull='1'
this.form.dbPointLength='0'
// let formData = Object.assign(this.editId, this.form);
// console.log("表单提交数据",this.form)
this.form.dbFieldName=this.form.dbFieldTxt
httpAction(httpurl,this.form,method).then((res)=>{
if(res.success){
this.$message.success(this.$t('OperationSuccessful'));
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
`,{}).then(res=>{
})
this.$emit('ok',false);
}else{
this.$message.warning(this.$t('operationFailed'));
}
@@ -211,6 +211,7 @@
//搜索
search(){
this.queryParams.pageNo=1
this.loadData()
},
//重置
@@ -176,7 +176,7 @@
},
//查询
searchQuery(){
this.queryParams.pageNo=1
this.loadData()
},
searchReset(){
@@ -161,6 +161,7 @@
});
},
searchQuery(){
this.queryParam.pageNo=1
if(this.key==1){
this.loadData(1)
}else if(this.key==2){
@@ -279,6 +280,9 @@
this.$message.success(this.$t('OperationSuccessful'))
this.loadData(0)
}
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
`,{}).then(res=>{
})
}else{
this.$message.warning(this.$t('operationFailed'))
}