对外报告管理-文件夹编辑回显修改
This commit is contained in:
@@ -116,11 +116,11 @@
|
||||
</div>
|
||||
<div class="table-operator" style="overflow:hidden;margin-bottom: 20px">
|
||||
<div style="float: right;margin-bottom: 0px;margin-left: 20px">
|
||||
<div class="operator-text" @click="handleuploadFile()">
|
||||
<div class="operator-text" @click="handleuploadFile()" v-if='authmanage'>
|
||||
<a-icon type="import"/>
|
||||
{{ $t('UploadFile') }}
|
||||
</div>
|
||||
<div class="operator-text" @click="handleDel()">
|
||||
<div class="operator-text" @click="handleDel()" v-if='authmanage'>
|
||||
<a-icon type="delete"/>
|
||||
{{ $t('BatchDelete') }}
|
||||
</div>
|
||||
@@ -146,8 +146,8 @@
|
||||
<span slot="operation" slot-scope="text,record">
|
||||
<!-- <a class="text-operation" @click="handlelist(record)">{{$t('view')}}</a>-->
|
||||
<a class="text-operation" @click="download(record)">{{$t('download')}}</a>
|
||||
<a class="text-operation" @click="handleEdit(record)">{{$t('edit')}}</a>
|
||||
<a class="text-operation" @click="batchDel(record)">{{$t('delete')}}</a>
|
||||
<a class="text-operation" @click="handleEdit(record)" v-if='authmanage'>{{$t('edit')}}</a>
|
||||
<a class="text-operation" @click="batchDel(record)" v-if='authmanage'>{{$t('delete')}}</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
@@ -189,20 +189,20 @@
|
||||
<a-form-model-item :label="$t('Foldername')" prop="folderName">
|
||||
<a-input class="box-input add-input" v-model="form.folderName" :placeholder="$t('PleaseEnter')+$t('Foldername')"/>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item :label="$t('Administrativeprivileges')" prop="authManage">
|
||||
<a-form-model-item :label="$t('Administrativeprivileges')" prop="authManageIdsName">
|
||||
<PersonnelSelection class="box-input add-input"
|
||||
:personneQuery="form"
|
||||
:query="{db_field_name:'authManageIds',db_field_txt:$t('Administrativeprivileges')}"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="form.authManage"/>
|
||||
v-model="form.authManageIdsName"/>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item :label="$t('Checkthepermissions')" prop="authView">
|
||||
<a-form-model-item :label="$t('Checkthepermissions')" prop="authViewIdsName">
|
||||
<PersonnelSelection
|
||||
class="box-input add-input"
|
||||
:personneQuery="form"
|
||||
:query="{db_field_name:'authViewIds',db_field_txt:$t('Checkthepermissions')}"
|
||||
@change="PersonnelSelectionChange"
|
||||
v-model="form.authView"/>
|
||||
v-model="form.authViewIdsName"/>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item :label="$t('Folderorder')" prop="orderId">
|
||||
<a-input-number v-model="form.orderId" :min="1" :max="99999" class="box-input add-input"
|
||||
@@ -286,10 +286,10 @@ export default {
|
||||
{ required: true, message: this.$t('PleaseEnter') + this.$t('Foldername'), trigger: 'blur' },
|
||||
{ min: 1, max: 50, message: this.$t('cantExeed') + '50' + this.$t('characters'), trigger: 'blur' }
|
||||
],
|
||||
authManage: [
|
||||
authManageIdsName: [
|
||||
{ required: true, message: this.$t('PleaseSelect') + this.$t('Administrativeprivileges'), trigger: 'change' },
|
||||
],
|
||||
authView: [
|
||||
authViewIdsName: [
|
||||
{ required: true, message: this.$t('PleaseSelect') + this.$t('Checkthepermissions'), trigger: 'change' },
|
||||
],
|
||||
orderId: [
|
||||
@@ -359,6 +359,7 @@ export default {
|
||||
uploadMenuId: '',
|
||||
selectedKeys: [],
|
||||
deleteNode: false,
|
||||
authmanage:false,
|
||||
fullWidth: '',
|
||||
parameter: {},
|
||||
widthBrown: '',
|
||||
@@ -397,6 +398,7 @@ export default {
|
||||
PersonnelSelectionChange(value, id) {
|
||||
this.form[value] = id
|
||||
this.form = { ...this.form }
|
||||
console.log(this.form)
|
||||
},
|
||||
//关闭条款内容弹框
|
||||
handleCancel() {
|
||||
@@ -517,11 +519,11 @@ export default {
|
||||
this.NodeTreeItem = {
|
||||
pageX: x,
|
||||
pageY: y,
|
||||
authManage: node._props.dataRef.authManage,
|
||||
authManageIdsName: node._props.dataRef.authManageIdsName,
|
||||
authViewIds: node._props.dataRef.authViewIds,
|
||||
key: node._props.dataRef.key,
|
||||
authManageIds: node._props.dataRef.authManageIds,
|
||||
authView: node._props.dataRef.authView,
|
||||
authViewIdsName: node._props.dataRef.authViewIdsName,
|
||||
title: node._props.dataRef.title,
|
||||
folderName: node._props.dataRef.folderName,
|
||||
orderId: node._props.dataRef.orderId,
|
||||
@@ -587,8 +589,8 @@ export default {
|
||||
this.form.id = this.nodeItem.key
|
||||
this.form.authManageIds = this.nodeItem.authManageIds
|
||||
this.form.authViewIds = this.nodeItem.authViewIds
|
||||
this.form.authManage = this.nodeItem.authManage
|
||||
this.form.authView = this.nodeItem.authView
|
||||
this.form.authManageIdsName = this.nodeItem.authManageIdsName
|
||||
this.form.authViewIdsName = this.nodeItem.authViewIdsName
|
||||
this.form.folderName = this.nodeItem.folderName
|
||||
this.form.orderId = this.nodeItem.orderId
|
||||
this.menuRightVisible = true
|
||||
@@ -601,7 +603,7 @@ export default {
|
||||
async () => {
|
||||
deleteAction(`extRepo/extRepoFolder/delete`, { id: this.nodeItem.key }).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$message.success(res.message)
|
||||
this.loadMenuData()
|
||||
let queryParam = {
|
||||
supFolder: this.menuId
|
||||
@@ -611,7 +613,7 @@ export default {
|
||||
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
||||
// eventBUs.$emit('searchReset')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -645,7 +647,7 @@ export default {
|
||||
postAction(`extRepo/extRepoFolder/add`, params).then(res => {
|
||||
if (res.success) {
|
||||
this.menuRightVisible = false
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
this.$message.success(res.message)
|
||||
// this.onExpand(expandId)
|
||||
this.form = {}
|
||||
this.expandedKeys.push(this.nodeItem.id)
|
||||
@@ -659,7 +661,7 @@ export default {
|
||||
this.searchQuery(JSON.parse(JSON.stringify(queryParam)))
|
||||
// eventBUs.$emit('searchReset')
|
||||
} else {
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.flag = false
|
||||
@@ -714,6 +716,7 @@ export default {
|
||||
getAction(this.url.list, params).then(res => {
|
||||
if (res.success) {
|
||||
this.dataSource = res.result.pageList.records || []
|
||||
this.authmanage =res.result.auth_manage
|
||||
this.total = res.result.pageList.total
|
||||
this.loading = false
|
||||
}
|
||||
@@ -835,7 +838,7 @@ export default {
|
||||
}
|
||||
deleteAction('com.jero.modules.extRepo/extRepoData/delete', { id: val.id }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.$message.success(res.message)
|
||||
|
||||
_this.loadData(JSON.parse(JSON.stringify(queryParam)))
|
||||
} else {
|
||||
@@ -859,7 +862,7 @@ export default {
|
||||
}
|
||||
deleteAction('com.jero.modules.extRepo/extRepoData/deleteBatch', { ids: idList.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
_this.$message.success(res.message)
|
||||
_this.selectedRowKeys = []
|
||||
|
||||
_this.loadData(JSON.parse(JSON.stringify(queryParam)))
|
||||
|
||||
Reference in New Issue
Block a user