布局对外报告管理
参数项清单-添加角色显示
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-modal
|
||||
:title="title"
|
||||
:maskClosable="false"
|
||||
@@ -12,33 +13,37 @@
|
||||
<a-form>
|
||||
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text"
|
||||
:title="$t('parameterTemplate')">{{$t('parameterTemplate')}}</span>
|
||||
:title="$t('fileName')">{{$t('fileName')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="paramsTemplateName">
|
||||
<a-input class="box-input"
|
||||
:disabled="disabled"
|
||||
v-model.trim="formInline.paramsTemplateName"
|
||||
:placeholder="$t('PleaseEnter')+$t('parameterTemplate')"/>
|
||||
<a-button type="primary" class="button-text"
|
||||
@click="clickButtonToUpload('accessory_id')">
|
||||
{{ (formInline.fileName === 'null' || formInline.fileName === '' ||
|
||||
formInline.fileName == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||
}}
|
||||
</a-button>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="Required">*</span>
|
||||
<span class="title-text-text" :title="$t('zoneOfApplication')">{{$t('zoneOfApplication')}}</span>
|
||||
<span class="title-text-text" :title="$t('fileDeclaration')">{{$t('fileDeclaration')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="region">
|
||||
<j-dict-select-tag class="box-input" v-model="formInline.region"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
||||
:type="'select'"
|
||||
:triggerChange="false" :dictCode="'region'"/>
|
||||
<a-input class="box-input add-input"
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('PleaseEnter')+$t('fileDeclaration')"
|
||||
v-model="formInline.description"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -48,14 +53,31 @@
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('contentDescription')">{{$t('contentDescription')}}</span>
|
||||
:title="$t('Openpersonnel')">{{$t('Openpersonnel')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="description">
|
||||
<a-input class="box-input add-input"
|
||||
type="textarea"
|
||||
:disabled="disabled"
|
||||
v-model="formInline.description"
|
||||
:placeholder="$t('PleaseEnter')+$t('contentDescription')"/>
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'Openpersonnel',db_field_txt:$t('Openpersonnel')}"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.Openpersonnel"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<div class="box-title-text">
|
||||
<div class="title-text">
|
||||
<span class="title-text-text"
|
||||
:title="$t('Downloadprivileges')">{{$t('Downloadprivileges')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="description">
|
||||
<PersonnelSelection
|
||||
:query="{db_field_name:'Downloadprivileges',db_field_txt:$t('Downloadprivileges')}"
|
||||
:personneQuery="formInline"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="formInline.lawEngineerName"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
@@ -68,16 +90,21 @@
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||
</div>
|
||||
</a-modal>
|
||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
|
||||
export default {
|
||||
name: 'addModel',
|
||||
components: {
|
||||
PersonnelSelection
|
||||
PersonnelSelection,
|
||||
uploadFile
|
||||
},
|
||||
props: ['url'],
|
||||
data() {
|
||||
@@ -186,6 +213,30 @@ export default {
|
||||
projectNameChange(value){
|
||||
console.log(value)
|
||||
},
|
||||
/** 上传文件的回调 */
|
||||
uploadSuccess(data) {
|
||||
let attIdList = []
|
||||
if (data && data.length > 0) {
|
||||
data.map(item => {
|
||||
attIdList.push(item.id || data.name)
|
||||
})
|
||||
}
|
||||
/** 赋值给当前对应的表单文件 */
|
||||
this.formInline[this.uploadName] = attIdList.join(',')
|
||||
this.formInline = { ...this.formInline }
|
||||
},
|
||||
clickButtonToUpload(item) {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
this.$refs.uploadFile.visible = true
|
||||
this.uploadName = item
|
||||
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => {
|
||||
if (res.success) {
|
||||
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||
} else {
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -44,17 +44,18 @@
|
||||
<template #overlay>
|
||||
<a-menu
|
||||
@click="({ key: menuKey }) => onContextMenuClick(treeKey, menuKey, record)">
|
||||
<a-menu-item key="1" @click="orgAdd" v-has="'split:sarFileSplitMenu:add'">{{$t('newNode')}}
|
||||
<a-menu-item key="1" @click="orgAdd" v-has="'split:sarFileSplitMenu:add'">{{$t('Addingfolder')}}
|
||||
</a-menu-item>
|
||||
<a-menu-item key="4" @click="orgAdds" v-if="deleteNode"
|
||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('Addingsubfolders')}}
|
||||
</a-menu-item>
|
||||
<a-menu-item key="2" @click="orgEdit" v-has="'split:sarFileSplitMenu:update'">
|
||||
{{$t('modifyNode')}}
|
||||
{{$t('Editfolder')}}
|
||||
</a-menu-item>
|
||||
<a-menu-item key="3" @click="orgDelete"
|
||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('deleteNode')}}
|
||||
</a-menu-item>
|
||||
<a-menu-item key="4" @click="orgDelete" v-if="deleteNode"
|
||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('add')}}
|
||||
v-has="'split:sarFileSplitMenu:delete'">{{$t('Deletefolders')}}
|
||||
</a-menu-item>
|
||||
|
||||
</a-menu>
|
||||
</template>
|
||||
</a-dropdown>
|
||||
@@ -184,15 +185,19 @@
|
||||
:label-col="labelCol"
|
||||
:wrapper-col="wrapperCol"
|
||||
>
|
||||
<a-form-model-item :label="$t('clauseNo')" prop="name">
|
||||
<a-input v-model="form.name" :placeholder="$t('PleaseEnter')+$t('clauseNo')"/>
|
||||
<a-form-model-item :label="$t('Foldername')" prop="name">
|
||||
<a-input v-model="form.name" :placeholder="$t('PleaseEnter')+$t('Foldername')"/>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item :label="$t('clauseName')" prop="itemName">
|
||||
<a-input v-model="form.itemName" :placeholder="$t('PleaseEnter')+$t('clauseName')"/>
|
||||
<a-form-model-item :label="$t('Folderpermissions')" prop="itemName">
|
||||
<PersonnelSelection
|
||||
:personneQuery="form"
|
||||
:query="{db_field_name:'Folderpermissions',db_field_txt:$t('Folderpermissions')}"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="form.folderpermissions"/>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item :label="$t('serialNumber')" prop="displaySeq">
|
||||
<a-form-model-item :label="$t('Folderorder')" prop="displaySeq">
|
||||
<a-input-number v-model="form.displaySeq" :min="1" :max="99999"
|
||||
:placeholder="$t('PleaseEnter')+$t('serialNumber')" :formatter="limitNumber"
|
||||
:placeholder="$t('PleaseEnter')+$t('Folderorder')" :formatter="limitNumber"
|
||||
:parser="limitNumber" style="width: 100%"/>
|
||||
<!-- <a-input-number v-model="rowCount" :min="1" :placeholder="$t('pleaseEnter')+$t('numberRows')" :formatter="limitNumber" :parser="limitNumber" />-->
|
||||
</a-form-model-item>
|
||||
@@ -220,13 +225,14 @@ import Vue from 'vue'
|
||||
import moment from 'moment'
|
||||
import eventBUs from '@/common/event'
|
||||
import { mapGetters } from 'vuex'
|
||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||
|
||||
export default {
|
||||
name: 'SplitDetail',
|
||||
components: {
|
||||
addModel,
|
||||
handleModel,
|
||||
// exportTree,
|
||||
PersonnelSelection,
|
||||
globalAdvancedQuery
|
||||
// ImportFile
|
||||
},
|
||||
@@ -242,6 +248,7 @@ export default {
|
||||
},
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
disabled:false,
|
||||
total: 0,
|
||||
tableData: [],
|
||||
selectedRowKeys: [],
|
||||
@@ -393,6 +400,10 @@ export default {
|
||||
this.contentVisible = true
|
||||
this.contentValue = val
|
||||
},
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.form[value] = id
|
||||
this.form = { ...this.form }
|
||||
},
|
||||
//关闭条款内容弹框
|
||||
handleCancel() {
|
||||
this.contentVisible = false
|
||||
@@ -549,12 +560,18 @@ export default {
|
||||
},
|
||||
//树形新增
|
||||
orgAdd() {
|
||||
this.menuTitle = this.$t('add')
|
||||
this.menuTitle = this.$t('Addingfolder')
|
||||
this.isEdit = false
|
||||
this.form = {}
|
||||
this.menuRightVisible = true
|
||||
|
||||
},
|
||||
orgAdds(){
|
||||
this.menuTitle = this.$t('Addingsubfolders')
|
||||
this.isEdit = false
|
||||
this.form = {}
|
||||
this.menuRightVisible = true
|
||||
},
|
||||
//树形修改
|
||||
orgEdit() {
|
||||
this.menuTitle = this.$t('edit')
|
||||
|
||||
Reference in New Issue
Block a user