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