修改文档拆分的权限
This commit is contained in:
@@ -124,7 +124,6 @@ export const ConfigurableTableMixin = {
|
|||||||
this.getTableHeaderFunc(params).then(res => {
|
this.getTableHeaderFunc(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.columns = this.dealColumns(res.result || [])
|
this.columns = this.dealColumns(res.result || [])
|
||||||
console.log(this.columns)
|
|
||||||
this.isTrue = false
|
this.isTrue = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.isTrue = true
|
this.isTrue = true
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ export default {
|
|||||||
// 查看
|
// 查看
|
||||||
{
|
{
|
||||||
text: this.$t('view'),
|
text: this.$t('view'),
|
||||||
clickEvent: 'handleDetail',
|
clickEvent: 'handleDetail'
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,11 +66,38 @@
|
|||||||
<!--表格部分-->
|
<!--表格部分-->
|
||||||
<div class="page-right-box">
|
<div class="page-right-box">
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<search ref="searchRef"
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
:url="url"
|
<a-row :gutter="24">
|
||||||
:get-query-condition-func="getQueryConditionFunc"
|
<a-col :md="8"
|
||||||
@search="searchQuery"
|
:sm="12"
|
||||||
@reset="searchReset" />
|
style="line-height: 48px">
|
||||||
|
<a-form-item :label="'条款号'" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')+'条款号'"
|
||||||
|
v-model="queryParam.clauseNo"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<a-col :md="8"
|
||||||
|
:sm="12"
|
||||||
|
style="line-height: 48px">
|
||||||
|
<a-form-item :label="'条款内容'" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')+'条款内容'"
|
||||||
|
v-model="queryParam.clauseContent"></a-input>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
<div style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
|
<a-button icon="search" type="primary" @click="searchQuery" style="margin-left: 8px">
|
||||||
|
{{$t('query')}}
|
||||||
|
</a-button>
|
||||||
|
<a-button icon="reload" type="primary" ghost style="margin-left: 8px"
|
||||||
|
@click="searchReset">{{ $t('reset') }}</a-button>
|
||||||
|
</div>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
<!-- <search ref="searchRef"-->
|
||||||
|
<!-- :url="url"-->
|
||||||
|
<!-- :get-query-condition-func="getQueryConditionFunc"-->
|
||||||
|
<!-- @search="searchQuery"-->
|
||||||
|
<!-- @reset="searchReset" />-->
|
||||||
</div>
|
</div>
|
||||||
<!--操作按钮-->
|
<!--操作按钮-->
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
@@ -123,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<j-table
|
<j-table
|
||||||
v-if="columns && columns.length > 0"
|
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
@@ -198,7 +224,6 @@ import {
|
|||||||
getClauseTreeData,
|
getClauseTreeData,
|
||||||
copyClause
|
copyClause
|
||||||
} from '../../../api/documentToolApi.js'
|
} from '../../../api/documentToolApi.js'
|
||||||
import Search from '../../../components/customField/Search.vue'
|
|
||||||
import { isHasPermission } from '../../../utils/hasPermission.js'
|
import { isHasPermission } from '../../../utils/hasPermission.js'
|
||||||
import SplitDetailBatchEditDrawer from './modules/SplitDetailBatchEditDrawer.vue'
|
import SplitDetailBatchEditDrawer from './modules/SplitDetailBatchEditDrawer.vue'
|
||||||
import { downFile, downloadFile, postAction } from '../../../api/manage'
|
import { downFile, downloadFile, postAction } from '../../../api/manage'
|
||||||
@@ -211,12 +236,12 @@ export default {
|
|||||||
SplitAddForm,
|
SplitAddForm,
|
||||||
SplitClauseDetail,
|
SplitClauseDetail,
|
||||||
SplitDetailNodeAdd,
|
SplitDetailNodeAdd,
|
||||||
Search,
|
|
||||||
SplitDetailBatchEditDrawer
|
SplitDetailBatchEditDrawer
|
||||||
},
|
},
|
||||||
mixins: [ConfigurableTableMixin],
|
mixins: [ConfigurableTableMixin],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
queryParam: {},
|
||||||
data: [],
|
data: [],
|
||||||
loading: false, // 提交的加载
|
loading: false, // 提交的加载
|
||||||
treeLoading: false, // 树形区域的加载
|
treeLoading: false, // 树形区域的加载
|
||||||
@@ -237,7 +262,35 @@ export default {
|
|||||||
flag: '4', // 查询要用到
|
flag: '4', // 查询要用到
|
||||||
operateSlotName: 'action',
|
operateSlotName: 'action',
|
||||||
getQueryConditionFunc: getDocSplitSearch,
|
getQueryConditionFunc: getDocSplitSearch,
|
||||||
getTableHeaderFunc: getDocSplitTableHeader,
|
// getTableHeaderFunc: getDocSplitTableHeader,
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
dataIndex: 'item_num',
|
||||||
|
title: '条款号',
|
||||||
|
align: 'center',
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
dataIndex: 'item_name',
|
||||||
|
title: '条款名称',
|
||||||
|
align: 'center',
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
dataIndex: 'item_content',
|
||||||
|
title: '条款内容',
|
||||||
|
align: 'center',
|
||||||
|
width: 150,
|
||||||
|
scopedSlots: { customRender: 'item_content' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('operation'),
|
||||||
|
align: 'center',
|
||||||
|
width: 160,
|
||||||
|
fixed: 'right',
|
||||||
|
scopedSlots: { customRender: 'action' }
|
||||||
|
}
|
||||||
|
],
|
||||||
treeData: [],
|
treeData: [],
|
||||||
searchValue: '',
|
searchValue: '',
|
||||||
selectedKeys: [],
|
selectedKeys: [],
|
||||||
@@ -272,7 +325,13 @@ export default {
|
|||||||
tableSlotField: ['item_content', 'interpretation_articles'],
|
tableSlotField: ['item_content', 'interpretation_articles'],
|
||||||
uploadData: {},
|
uploadData: {},
|
||||||
isBackTitle: true,
|
isBackTitle: true,
|
||||||
expandedKeys: []
|
expandedKeys: [],
|
||||||
|
labelCol: {
|
||||||
|
span: 6
|
||||||
|
},
|
||||||
|
wrapperCol: {
|
||||||
|
span: 14
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -297,8 +356,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.operateColumn.scopedSlots.customRender = 'action'
|
// this.operateColumn.scopedSlots.customRender = 'action'
|
||||||
this.showAction = this.$route.query.createBy === this.userInfo.id || this.administrators
|
this.showAction = true
|
||||||
this.infoId = this.$route.query.infoId
|
this.infoId = this.$route.query.infoId
|
||||||
this.filters = {
|
this.filters = {
|
||||||
menu_id: this.menuId,
|
menu_id: this.menuId,
|
||||||
@@ -354,7 +413,7 @@ export default {
|
|||||||
showContent (fieldName, val) {
|
showContent (fieldName, val) {
|
||||||
const title = (this.columns.find(tt => tt.dbFieldName === fieldName) || {}).dbFieldTxt
|
const title = (this.columns.find(tt => tt.dbFieldName === fieldName) || {}).dbFieldTxt
|
||||||
if (title) {
|
if (title) {
|
||||||
this.$refs.splitClauseDetail.title = title
|
this.$refs.splitClauseDetail.title = titler
|
||||||
}
|
}
|
||||||
this.$refs.splitClauseDetail.open(val)
|
this.$refs.splitClauseDetail.open(val)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user