[uodate]
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<!-- <j-form-container :disabled="formDisabled">-->
|
<!-- <j-form-container :disabled="formDisabled">-->
|
||||||
<div class="form-tag">
|
<div class="form-tag">
|
||||||
<a-form>
|
<a-form>
|
||||||
<a-form-model
|
<a-form-model
|
||||||
class="tag-content"
|
class="tag-content"
|
||||||
@@ -14,10 +14,10 @@
|
|||||||
<a-row>
|
<a-row>
|
||||||
<p class="tag-info">{{$t('essentialInformation')}}</p>
|
<p class="tag-info">{{$t('essentialInformation')}}</p>
|
||||||
<a-divider dashed />
|
<a-divider dashed />
|
||||||
<!-- 所属模块-->
|
<!-- 所属模块-->
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item :label="$t('Module')" prop="isModel">
|
<a-form-model-item :label="$t('Module')" prop="isModel">
|
||||||
<!-- <j-dict-select-tag type="list" v-model="form.isModel" dictCode="module" :placeholder="$t('PleaseSelectModule')" />-->
|
<!-- <j-dict-select-tag type="list" v-model="form.isModel" dictCode="module" :placeholder="$t('PleaseSelectModule')" />-->
|
||||||
<a-select :placeholder="$t('PleaseSelectModule')" v-model="form.isModel" @change="handleChange" :disabled="disableEdit">
|
<a-select :placeholder="$t('PleaseSelectModule')" v-model="form.isModel" @change="handleChange" :disabled="disableEdit">
|
||||||
<a-select-option :key="'1'" :value="'1'">
|
<a-select-option :key="'1'" :value="'1'">
|
||||||
{{$t('DocumentLibrary')}}
|
{{$t('DocumentLibrary')}}
|
||||||
@@ -28,19 +28,19 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 属性名称-->
|
<!-- 属性名称-->
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item :label="$t('AttributeName')" prop="dbFieldTxt">
|
<a-form-model-item :label="$t('AttributeName')" prop="dbFieldTxt">
|
||||||
<a-input v-model="form.dbFieldTxt" :placeholder="$t('PleaseEnterPropertyName')" :maxLength="120" ></a-input>
|
<a-input v-model="form.dbFieldTxt" :placeholder="$t('PleaseEnterPropertyName')" :maxLength="120" ></a-input>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 英文名称-->
|
<!-- 英文名称-->
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item :label="$t('enName')" prop="dbFieldEnName">
|
<a-form-model-item :label="$t('enName')" prop="dbFieldEnName">
|
||||||
<a-input v-model="form.dbFieldEnName" :placeholder="$t('PleaseEnterYourEnglishName')" :maxLength="120" ></a-input>
|
<a-input v-model="form.dbFieldEnName" :placeholder="$t('PleaseEnterYourEnglishName')" :maxLength="120" ></a-input>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- 属性类型-->
|
<!-- 属性类型-->
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item :label="$t('AttributeType')" prop="fieldShowType" >
|
<a-form-model-item :label="$t('AttributeType')" prop="fieldShowType" >
|
||||||
<j-dict-select-tag type="list" v-model="form.fieldShowType" dictCode="field_show_type" :placeholder="$t('PleaseSelectAttributeType')" :disabled="disabledEdit" />
|
<j-dict-select-tag type="list" v-model="form.fieldShowType" dictCode="field_show_type" :placeholder="$t('PleaseSelectAttributeType')" :disabled="disabledEdit" />
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</template>
|
</template>
|
||||||
<!-- <j-dict-select-tag type="list" v-model="form.dictName" dictCode="" placeholder="请选择选项内容" />-->
|
<!-- <j-dict-select-tag type="list" v-model="form.dictName" dictCode="" placeholder="请选择选项内容" />-->
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="isLength">
|
<a-col :span="24" v-if="isLength">
|
||||||
@@ -73,30 +73,27 @@
|
|||||||
<j-dict-select-tag type="list" v-model="form.fieldMustInput" dictCode="yn" :placeholder="$t('selectWhetherRequired')" />
|
<j-dict-select-tag type="list" v-model="form.fieldMustInput" dictCode="yn" :placeholder="$t('selectWhetherRequired')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<p class="tag-info">{{submitKey == 1 ? $t('DocumentLibraryModuleDisplay'):$t('documentSplitDisplay')}}</p>
|
<p class="tag-info">{{submitKey == 1?$t('DocumentLibraryModuleDisplay'):$t('documentSplitDisplay')}}</p>
|
||||||
<a-divider dashed />
|
<a-divider dashed />
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<!-- 文档库列表展示-->
|
|
||||||
<a-form-model-item :label="$t('DocumentLibraryListDisplay')" prop="isShowList" v-if="submitKey == 1">
|
<a-form-model-item :label="$t('DocumentLibraryListDisplay')" prop="isShowList" v-if="submitKey == 1">
|
||||||
<j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn"
|
<j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn"
|
||||||
:placeholder="$t('selectDisplayList')" />
|
:placeholder="$t('selectDisplayList')" />
|
||||||
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<!-- 文档拆分列表展示-->
|
|
||||||
<a-form-model-item :label="$t('documentSplitList')" prop="isShowList" v-if="submitKey == 2">
|
<a-form-model-item :label="$t('documentSplitList')" prop="isShowList" v-if="submitKey == 2">
|
||||||
<j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn"
|
<j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn"
|
||||||
:placeholder="$t('selectDisplayList')" />
|
:placeholder="$t('selectDisplayList')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="moduleShow">
|
<a-col :span="24" v-if="moduleShow">
|
||||||
<!-- 展示区域-->
|
|
||||||
<a-form-model-item :label="$t('DisplayArea')" prop="showArea">
|
<a-form-model-item :label="$t('DisplayArea')" prop="showArea">
|
||||||
<a-select :placeholder="$t('SelectDisplayArea')" v-model="form.showArea" @change="handleChange">
|
<a-select :placeholder="$t('SelectDisplayArea')" v-model="form.showArea" @change="handleChange">
|
||||||
<a-select-option v-for="(item,index) in areaOptions" :key="item.id" :value="item.id">
|
<a-select-option v-for="(item,index) in areaOptions" :key="item.id" :value="item.id">
|
||||||
{{item.showArea}}
|
{{item.showArea}}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<!-- <j-dict-select-tag type="list" v-model="form.showArea" dictCode="" placeholder="请选择展示区域" />-->
|
<!-- <j-dict-select-tag type="list" v-model="form.showArea" dictCode="" placeholder="请选择展示区域" />-->
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="isSearch">
|
<a-col :span="24" v-if="isSearch">
|
||||||
@@ -117,24 +114,24 @@
|
|||||||
<j-dict-select-tag type="list" v-model="form.isShowSearch" dictCode="yn" :placeholder="$t('selectSearchCenterDisplayed')" />
|
<j-dict-select-tag type="list" v-model="form.isShowSearch" dictCode="yn" :placeholder="$t('selectSearchCenterDisplayed')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!-- <a-col v-if="showFlowSubmitButton" :span="24" style="text-align: center">-->
|
<!-- <a-col v-if="showFlowSubmitButton" :span="24" style="text-align: center">-->
|
||||||
<!-- <a-button @click="submitForm">提 交</a-button>-->
|
<!-- <a-button @click="submitForm">提 交</a-button>-->
|
||||||
<!-- </a-col>-->
|
<!-- </a-col>-->
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- </j-form-container>-->
|
<!-- </j-form-container>-->
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { httpAction, getAction, postAction } 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'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TagForm',
|
name: 'TagForm',
|
||||||
components: {
|
components: {
|
||||||
},
|
},
|
||||||
@@ -293,7 +290,6 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
'form.isModel'(val){
|
'form.isModel'(val){
|
||||||
console.log(form.isModel,'form.isModelform.isModel')
|
|
||||||
console.log('val',val)
|
console.log('val',val)
|
||||||
if(val=='1'){
|
if(val=='1'){
|
||||||
this.moduleShow=true
|
this.moduleShow=true
|
||||||
@@ -335,9 +331,7 @@
|
|||||||
this.loadShowArea()
|
this.loadShowArea()
|
||||||
// console.log('edit',this.submitEdit)
|
// console.log('edit',this.submitEdit)
|
||||||
if(this.submitEdit==='add'){
|
if(this.submitEdit==='add'){
|
||||||
console.log(this.submitKey,'this.submitKeythis.submitKey')
|
|
||||||
if(this.submitKey==='1'){
|
if(this.submitKey==='1'){
|
||||||
console.log(this.submitKey,'this.submitKeythis.submitKey')
|
|
||||||
this.form.isModel='1'
|
this.form.isModel='1'
|
||||||
}else if(this.submitKey==='2'){
|
}else if(this.submitKey==='2'){
|
||||||
this.form.isModel='0'
|
this.form.isModel='0'
|
||||||
@@ -488,21 +482,21 @@
|
|||||||
// console.log(`selected ${value}`);
|
// console.log(`selected ${value}`);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.form-tag{
|
.form-tag{
|
||||||
.tag-content{
|
.tag-content{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tag-info{
|
.tag-info{
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.tag-content{
|
.tag-content{
|
||||||
.ant-select-selection-selected-value{
|
.ant-select-selection-selected-value{
|
||||||
color:rgba(0, 0, 0, 0.65);
|
color:rgba(0, 0, 0, 0.65);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user