标签管理文档拆分列表
This commit is contained in:
@@ -570,5 +570,8 @@ module.exports = {
|
|||||||
viewFile:'view file',
|
viewFile:'view file',
|
||||||
fileFormatIncorrect:'the file format is incorrect',
|
fileFormatIncorrect:'the file format is incorrect',
|
||||||
pleaseUploadFile:'please upload the file',
|
pleaseUploadFile:'please upload the file',
|
||||||
|
documentSplitList:'document split list display',
|
||||||
|
selectSplitListDisplay:'Please select whether to split the document list for display',
|
||||||
|
selectDisplayList:'please select whether to display in list',
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -574,6 +574,8 @@ module.exports = {
|
|||||||
viewFile:'查看文件',
|
viewFile:'查看文件',
|
||||||
fileFormatIncorrect:'文件格式不正确',
|
fileFormatIncorrect:'文件格式不正确',
|
||||||
pleaseUploadFile:'请上传文件',
|
pleaseUploadFile:'请上传文件',
|
||||||
|
documentSplitList:'文档拆分列表展示',
|
||||||
|
selectSplitListDisplay:'请选择是否文档拆分列表展示',
|
||||||
|
selectDisplayList:'请选择是否列表展示',
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -106,12 +106,11 @@
|
|||||||
<a-col :span="12" v-else-if="item.field_show_type === '6'">
|
<a-col :span="12" v-else-if="item.field_show_type === '6'">
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
<span class="Required" v-if="item.field_must_input == 1">*</span>
|
<span class="RequireddateChange" v-if="item.field_must_input == 1">*</span>
|
||||||
<span class="title-text-text" :title="item.db_field_txt">{{item.db_field_txt}}</span>
|
<span class="title-text-text" :title="item.db_field_txt">{{item.db_field_txt}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
<a-form-model-item class="itemModel" :prop="item.db_field_name">
|
||||||
<a-range-picker class="box-input" v-model="formInline[item.db_field_name]"
|
<a-range-picker class="box-input" v-model="formInline[item.db_field_name]"
|
||||||
:placeholder="$t('PleaseSelect')+item.db_field_txt"
|
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@change="onChange(item.db_field_name)"></a-range-picker>
|
@change="onChange(item.db_field_name)"></a-range-picker>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
@@ -628,7 +627,7 @@
|
|||||||
//保存
|
//保存
|
||||||
splitSave(){
|
splitSave(){
|
||||||
// console.log('vallll',this.contentList)
|
// console.log('vallll',this.contentList)
|
||||||
// console.log('formInline',this.formInline)
|
console.log('formInline',this.formInline)
|
||||||
this.$refs.splitEditForm.validate(valid=>{
|
this.$refs.splitEditForm.validate(valid=>{
|
||||||
if(valid){
|
if(valid){
|
||||||
this.submitFlag=true
|
this.submitFlag=true
|
||||||
@@ -952,8 +951,15 @@
|
|||||||
edit(item) {
|
edit(item) {
|
||||||
this.visible=true
|
this.visible=true
|
||||||
this.type = 'edit'
|
this.type = 'edit'
|
||||||
|
// this.getForm(() => {
|
||||||
|
// this.formInline=item
|
||||||
|
// })
|
||||||
this.getForm(() => {
|
this.getForm(() => {
|
||||||
this.formInline=item
|
getAction(this.url.getDocumentInfo, { id: item.id }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.formInline = res.result[0]
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
@@ -1164,4 +1170,13 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.split-content{
|
||||||
|
.box-input .ant-input-number-input-wrap{
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
.ant-input-number{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -76,12 +76,17 @@
|
|||||||
<p class="tag-info">{{$t('DocumentLibraryModuleDisplay')}}</p>
|
<p class="tag-info">{{$t('DocumentLibraryModuleDisplay')}}</p>
|
||||||
<a-divider dashed />
|
<a-divider dashed />
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-model-item :label="$t('DocumentLibraryListDisplay')" prop="isShowList">
|
<a-form-model-item :label="$t('DocumentLibraryListDisplay')" prop="isShowList" v-if="moduleShow">
|
||||||
<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('SelectWhetherDisplayList')" />
|
:placeholder="$t('selectDisplayList')" />
|
||||||
|
|
||||||
|
</a-form-model-item>
|
||||||
|
<a-form-model-item :label="$t('documentSplitList')" prop="isShowList" v-if="!moduleShow">
|
||||||
|
<j-dict-select-tag type="list" v-model="form.isShowList" dictCode="yn"
|
||||||
|
:placeholder="$t('selectDisplayList')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="submitKey=='1'">
|
<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">
|
||||||
@@ -97,14 +102,14 @@
|
|||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<p class="tag-info" v-if="submitKey=='1'">{{$t('DisplayOtherModules')}}</p>
|
<p class="tag-info" v-if="moduleShow">{{$t('DisplayOtherModules')}}</p>
|
||||||
<a-divider dashed v-if="submitKey=='1'" />
|
<a-divider dashed v-if="moduleShow" />
|
||||||
<a-col :span="24" v-if="submitKey=='1'">
|
<a-col :span="24" v-if="moduleShow">
|
||||||
<a-form-model-item :label="$t('RegulationsListDisplay')" prop="isShowLawsList">
|
<a-form-model-item :label="$t('RegulationsListDisplay')" prop="isShowLawsList">
|
||||||
<j-dict-select-tag type="list" v-model="form.isShowLawsList" dictCode="yn" :placeholder="$t('selectDisplayListRegulations')" />
|
<j-dict-select-tag type="list" v-model="form.isShowLawsList" dictCode="yn" :placeholder="$t('selectDisplayListRegulations')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24" v-if="submitKey=='1'">
|
<a-col :span="24" v-if="moduleShow">
|
||||||
<a-form-model-item :label="$t('SearchCenterDisplay')" prop="isShowSearch">
|
<a-form-model-item :label="$t('SearchCenterDisplay')" prop="isShowSearch">
|
||||||
<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>
|
||||||
@@ -218,7 +223,7 @@
|
|||||||
{ required: true, message: this.$t('selectWhetherRequired'),trigger: 'change'},
|
{ required: true, message: this.$t('selectWhetherRequired'),trigger: 'change'},
|
||||||
],
|
],
|
||||||
isShowList: [
|
isShowList: [
|
||||||
{ required: true, message: this.$t('SelectWhetherDisplayList'),trigger: 'change'},
|
{ required: true, message: this.$t('selectDisplayList'),trigger: 'change'},
|
||||||
],
|
],
|
||||||
showArea: [
|
showArea: [
|
||||||
{ required: true, message: this.$t('SelectDisplayArea'),trigger: 'change'},
|
{ required: true, message: this.$t('SelectDisplayArea'),trigger: 'change'},
|
||||||
@@ -250,7 +255,8 @@
|
|||||||
isSearch:true,
|
isSearch:true,
|
||||||
isLength:true,
|
isLength:true,
|
||||||
flag:false, //表单提交标识
|
flag:false, //表单提交标识
|
||||||
disabledEdit:false
|
disabledEdit:false,
|
||||||
|
moduleShow:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@@ -282,6 +288,15 @@
|
|||||||
},
|
},
|
||||||
disableEdit(){
|
disableEdit(){
|
||||||
|
|
||||||
|
},
|
||||||
|
'form.isModel'(val){
|
||||||
|
console.log('val',val)
|
||||||
|
if(val=='1'){
|
||||||
|
this.moduleShow=true
|
||||||
|
}else if(val=='0'){
|
||||||
|
this.moduleShow=false
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -420,15 +435,23 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
// console.log('form',this.form)
|
// console.log('form',this.form)
|
||||||
|
console.log('model',this.form.isModel)
|
||||||
|
let onlineId=''
|
||||||
|
let url=''
|
||||||
|
if(this.form.isModel=='1'){
|
||||||
|
onlineId='48308196e7b04761b533dc31bc899707'
|
||||||
|
}else if(this.form.isModel=='0'){
|
||||||
|
onlineId='c998a34ea4b84089932197ed0705c757'
|
||||||
|
}
|
||||||
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
|
postAction(`online/cgform/api/doDbSynch/${onlineId}/normal
|
||||||
`,{}).then(res=>{
|
`,{}).then(res=>{
|
||||||
})
|
})
|
||||||
this.$emit('ok',false);
|
this.$emit('ok',false);
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'));
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.confirmLoading = false;
|
this.confirmLoading = false;
|
||||||
|
|||||||
@@ -342,9 +342,9 @@
|
|||||||
this.queryParams.pageNo=this.queryParams.pageNo-1
|
this.queryParams.pageNo=this.queryParams.pageNo-1
|
||||||
}
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
// postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
||||||
`,{}).then(res=>{
|
// `,{}).then(res=>{
|
||||||
})
|
// })
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -337,23 +337,24 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (this.key == 1) {
|
if (this.key == 1) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
if(this.tableData&&this.tableData.length==1&&this.queryParam.pageNo!=1){
|
if (this.tableData && this.tableData.length == 1 && this.queryParam.pageNo != 1) {
|
||||||
this.queryParam.pageNo=this.queryParam.pageNo-1
|
this.queryParam.pageNo = this.queryParam.pageNo - 1
|
||||||
}
|
}
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
} else if (this.key == 2) {
|
} else if (this.key == 2) {
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
if(this.tableData&&this.tableData.length==1&&this.queryParam.pageNo!=1){
|
if (this.tableData && this.tableData.length == 1 && this.queryParam.pageNo != 1) {
|
||||||
this.queryParam.pageNo=this.queryParam.pageNo-1
|
this.queryParam.pageNo = this.queryParam.pageNo - 1
|
||||||
}
|
}
|
||||||
this.loadData(0)
|
this.loadData(0)
|
||||||
}
|
}
|
||||||
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
// postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
||||||
`,{}).then(res=>{
|
// `,{}).then(res=>{
|
||||||
})
|
// })
|
||||||
}else{
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -388,9 +389,9 @@
|
|||||||
}
|
}
|
||||||
this.loadData(0)
|
this.loadData(0)
|
||||||
}
|
}
|
||||||
postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
// postAction(`online/cgform/api/doDbSynch/48308196e7b04761b533dc31bc899707/normal
|
||||||
`,{}).then(res=>{
|
// `,{}).then(res=>{
|
||||||
})
|
// })
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user