Browse Source

字段,门类,预归档

master
xuhuajiao 1 year ago
parent
commit
a8bad98d66
  1. 11
      src/api/system/archivesScope.js
  2. 10
      src/api/system/fileLibrary/fileLibrary.js
  3. 14
      src/assets/iconfonts/light/iconfont.css
  4. 2
      src/assets/iconfonts/light/iconfont.js
  5. 14
      src/assets/iconfonts/light/iconfont.json
  6. BIN
      src/assets/iconfonts/light/iconfont.ttf
  7. BIN
      src/assets/iconfonts/light/iconfont.woff
  8. BIN
      src/assets/iconfonts/light/iconfont.woff2
  9. 165
      src/views/components/category/PreviewForm.vue
  10. 23
      src/views/components/category/SettingForm.vue
  11. 1
      src/views/prearchiveLibrary/index.vue
  12. 47
      src/views/prearchiveLibrary/module/batchFile.vue
  13. 21
      src/views/prearchiveLibrary/module/scope.vue
  14. 2
      src/views/system/archivesCategory/descriptionPreview/index.vue
  15. 8
      src/views/system/fileLibraryManage/descriptionPreview/index.vue
  16. 11
      src/views/system/fileLibraryManage/fieldManage/index.vue
  17. 4
      src/views/system/fileLibraryManage/listBrowsing/index.vue

11
src/api/system/archivesScope.js

@ -51,4 +51,13 @@ export function del(data) {
})
}
export default { add, edit, del, FetchInitArchivesScope, FetchSonArchivesScope, FetchArchivesScopeTree }
// 根据子门类id获取档案归档范围
export function FetchArchivesScopeByCategoryId(params) {
return request({
url: 'api/archivesScope/getArchivesScopeByCategoryId',
method: 'get',
params
})
}
export default { add, edit, del, FetchInitArchivesScope, FetchSonArchivesScope, FetchArchivesScopeTree, FetchArchivesScopeByCategoryId }

10
src/api/system/fileLibrary/fileLibrary.js

@ -52,6 +52,14 @@ export function FetchInitDocumentField(params) {
})
}
export function FetchDocumentFieldManage(params) {
return request({
url: 'api/document/documentFieldManage',
method: 'get',
params
})
}
// 著录界面排序
export function FetchUpardicSort(data) {
return request({
@ -70,4 +78,4 @@ export function FetchInitDocumentFieldByPid(params) {
})
}
export default { add, edit, del, sort, FetchDocumentMenu, FetchInitDocumentFieldByPid }
export default { add, edit, del, sort, FetchDocumentMenu, FetchDocumentFieldManage, FetchInitDocumentFieldByPid }

14
src/assets/iconfonts/light/iconfont.css

@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 3966148 */
src: url('iconfont.woff2?t=1688977345185') format('woff2'),
url('iconfont.woff?t=1688977345185') format('woff'),
url('iconfont.ttf?t=1688977345185') format('truetype');
src: url('iconfont.woff2?t=1697608535383') format('woff2'),
url('iconfont.woff?t=1697608535383') format('woff'),
url('iconfont.ttf?t=1697608535383') format('truetype');
}
.iconfont {
@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-gengduo1:before {
content: "\e660";
}
.icon-wancheng:before {
content: "\e65f";
}
.icon-zhengque:before {
content: "\e653";
}

2
src/assets/iconfonts/light/iconfont.js
File diff suppressed because it is too large
View File

14
src/assets/iconfonts/light/iconfont.json

@ -5,6 +5,20 @@
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "37728681",
"name": "更多",
"font_class": "gengduo1",
"unicode": "e660",
"unicode_decimal": 58976
},
{
"icon_id": "36940610",
"name": "完成",
"font_class": "wancheng",
"unicode": "e65f",
"unicode_decimal": 58975
},
{
"icon_id": "35809396",
"name": "正确",

BIN
src/assets/iconfonts/light/iconfont.ttf

BIN
src/assets/iconfonts/light/iconfont.woff

BIN
src/assets/iconfonts/light/iconfont.woff2

165
src/views/components/category/PreviewForm.vue

@ -10,7 +10,7 @@
v-if="item.isInputClass === 'select'"
v-model="addOrUpdateForm[item.fieldName]"
:options="item.options"
:normalizer="normalizer"
:normalizer=" isTableType === 1 ? normalizerFonds : (isTableType === 2 ? normalizerClassify : normalizer)"
:clearable="false"
placeholder=""
:style="{ width: item.editLength+'px'}"
@ -37,7 +37,7 @@
@input="autoAddZero(item.isFilling, item.fieldName, addOrUpdateForm[item.fieldName], item.fillingDigit)"
@blur="isRepeatHandle(item)"
>
<i v-if="item.isInputClass === 'popover'" slot="suffix" class="el-input__icon iconfont icon-weibiaoti-2" @click="handleCurrentFieldName(item)" />
<i v-if="item.isInputClass === 'popover'" slot="suffix" class="el-input__icon iconfont icon-gengduo1" @click="handleCurrentFieldName(item)" />
</el-input>
<!-- date -->
<el-date-picker v-if="item.isInputClass === 'date'" v-model="addOrUpdateForm[item.fieldName]" type="date" align="right" format="yyyy-MM-dd" placeholder="" :clearable="false" :style="{ width: item.editLength+'px'}" :disabled="isDisabled" :validate-event="!isDisabled" />
@ -71,15 +71,28 @@
</el-form>
<!-- 弹框形式的内容展示 -->
<el-dialog class="edit-form-dialog" :append-to-body="true" :visible="popoverVisible" :before-close="handleClose" :close-on-click-modal="false" title="字典列表">
<el-dialog class="edit-form-dialog" :append-to-body="true" :visible="popoverVisible" :before-close="handleClose" :close-on-click-modal="false" :title="tableTitle">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<el-table ref="popoverTable" :data="popoverTableData" highlight-current-row row-key="id" :tree-props="{children: 'childMenus', hasChildren: 'hasChildren'}" style="width: 100%;" @selection-change="handleSelectionChange" @row-click="clickRowHandler">
<el-table v-if="isTableType === 1" ref="popoverTable" :data="popoverTableData" highlight-current-row row-key="id" :tree-props="{children: 'childMenus', hasChildren: 'hasChildren'}" style="width: 100%;" @selection-change="handleSelectionChange" @row-click="clickRowHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="dicName" label="字典名称" />
<el-table-column prop="dicCode" label="字典代码" />
<el-table-column prop="dicExplain" label="内容说明" />
<el-table-column prop="fondsNo" label="全宗号" />
<el-table-column prop="fondsName" label="全宗名称" />
<el-table-column prop="fondsOrders" label="排序" width="60" />
</el-table>
<el-table v-if="isTableType === 2" ref="popoverTable" :data="popoverTableData" highlight-current-row row-key="id" :tree-props="{children: 'childArchivesClass', hasChildren: 'hasChildren'}" style="width: 100%;" @selection-change="handleSelectionChange" @row-click="clickRowHandler">
<el-table-column type="selection" width="55" />
<el-table-column label="分类名称" prop="name" width="130" />
<el-table-column label="分类编号" prop="code" />
<el-table-column label="排序" prop="classSeq" />
<el-table-column label="所属门类" prop="categoryName" />
</el-table>
<el-table v-if="isTableType === 3" ref="popoverTable" :data="popoverTableData" highlight-current-row row-key="dictionaryId" :tree-props="{children: 'childMenus', hasChildren: 'hasChildren'}" style="width: 100%;" @selection-change="handleSelectionChange" @row-click="clickRowHandler">
<el-table-column type="selection" width="55" />
<el-table-column prop="dictionaryName" label="字典名称" />
<el-table-column prop="dictionaryCode" label="字典代码" />
<el-table-column prop="dictionaryRemarks" label="内容说明" />
</el-table>
</div>
</el-dialog>
@ -94,7 +107,10 @@ import { getNoFormatField } from '@/api/system/category/fileNoFormat'
import draggable from 'vuedraggable'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { FetchFindAllSubsetById } from '@/api/archivesConfig/dictDetail'
// import { FetchFindAllSubsetById } from '@/api/archivesConfig/dictDetail'
import { FetchSonDictionaryList } from '@/api/system/dict'
import { FetchFondsAll } from '@/api/system/fonds'
import { FetchArchivesClassTree, FetchSonArchivesClass } from '@/api/system/archivesClass'
import { parseTime, getCurrentTime } from '@/utils/index'
export default {
@ -144,6 +160,8 @@ export default {
},
rules: {
},
isTableType: 1,
tableTitle: '字典列表',
popoverTableData: [], // popover - popoverTableData
popoverVisible: false, // popover - visible
currentFieldName: null, // popover fieldName
@ -153,16 +171,7 @@ export default {
result: null,
autoMatic: null,
// isType: 'category',
normalizer(node) {
if (node.childMenus == null || node.childMenus === 'null') {
delete node.childMenus
}
return {
id: node.dicName,
label: node.dicName,
children: node.childMenus
}
},
file: null, // change
fileNames: '', // - name
formatType: '', // - type
@ -200,6 +209,36 @@ export default {
// }
},
methods: {
normalizer(node) {
if (node.childMenus == null || node.childMenus === 'null') {
delete node.childMenus
}
return {
id: node.dictionaryId,
label: node.dictionaryName,
children: node.childMenus
}
},
normalizerClassify(node) {
if (node.childArchivesClass && !node.childArchivesClass.length) {
delete node.childArchivesClass
}
return {
id: node.id,
label: node.name,
children: node.childArchivesClass
}
},
normalizerFonds(node) {
if (node.childMenus == null || node.childMenus === 'null') {
delete node.childMenus
}
return {
id: node.id,
label: node.fondsName,
children: node.childMenus
}
},
//
// getNode(tree, dicName) {
// for (let i = 0; i < tree.length; i++) {
@ -245,12 +284,15 @@ export default {
} else {
const fieldInfo = this.formPreviewData.find(element => element.fieldName === val.fieldName)
if (fieldInfo.isInputClass === 'select' || fieldInfo.isInputClass === 'popover') {
await FetchFindAllSubsetById({ id: fieldInfo.dictionaryConfigId.id }).then(res => {
const params = {
'pid': fieldInfo.dictionaryId.id
}
await FetchSonDictionaryList(params).then(res => {
const option = this.getNode(res, this.addOrUpdateForm[val.fieldName])
if (option) {
const obj = {}
obj.name = val.fieldName
obj.val = option[0].dicCode + val.connector
obj.val = option[0].dictionaryCode + val.connector
obj.sequence = val.sequence
// string += '' + option[0].dicCode + val.connector
getAutoFiledVal.push(obj)
@ -293,8 +335,21 @@ export default {
},
//
getAllSubset(item) {
if (item.dictionaryConfigId) {
FetchFindAllSubsetById({ id: item.dictionaryConfigId.id }).then(res => {
console.log('item', item)
if (item.mateData === 1) {
this.getFondsDatas(item)
} else if (item.mateData === 2) {
if (item.categoryId) {
this.getClassifyTree(item)
}
} else {
if (item.dictionaryId) {
const params = {
'pid': item.dictionaryId.id
}
this.isTableType = 3
this.tableTitle = '字典列表'
FetchSonDictionaryList(params).then(res => {
if (item.isInputClass === 'select') {
this.$set(item, 'options', res)
} else if (item.isInputClass === 'popover') {
@ -302,6 +357,60 @@ export default {
}
})
}
}
},
getFondsDatas(item) {
const parent = {}
parent.id = 0
parent.fondsName = '全宗选择'
this.isTableType = 1
this.tableTitle = '全宗列表'
FetchFondsAll().then(res => {
if (item.isInputClass === 'select') {
this.$set(item, 'options', res)
} else if (item.isInputClass === 'popover') {
this.popoverTableData = res
}
})
},
getClassifyTree(item) {
console.log('666', this.selectedCategory)
this.isTableType = 2
this.tableTitle = '分类列表'
FetchArchivesClassTree({ 'categoryId': this.selectedCategory.pid }).then(res => {
if (item.isInputClass === 'select') {
const classifyOptions = res.map(function(obj) {
if (obj.childArchivesClass !== null) {
obj.hasChildren = true
} else {
obj.hasChildren = false
}
if (obj.hasChildren) {
obj.children = null
}
return obj
})
this.$set(item, 'options', classifyOptions)
} else if (item.isInputClass === 'popover') {
this.popoverTableData = res
}
})
},
getSonClass(tree, treeNode, resolve) {
setTimeout(() => {
FetchSonArchivesClass({ pid: tree.id }).then(res => {
const data = res.map(function(obj) {
if (obj.sonNum !== 0 && obj.sonNum) {
obj.hasChildren = true
obj.children = null
} else {
obj.hasChildren = false
}
return obj
})
resolve(data)
})
}, 100)
},
// api
handlerIsRepeat(params, item) {
@ -381,10 +490,12 @@ export default {
}
this.handlerIsRepeat(params, this.treeCurrentFiled)
}
if (this.isDesFormType !== 'prearchiveLibrary') {
const index = this.autoMatic.findIndex(i => this.treeCurrentFiled.fieldName === i.fieldName)
if (index !== -1) {
this.handleAuto()
}
}
},
// popover - table
clickRowHandler(row) {
@ -394,15 +505,23 @@ export default {
// popover - table
handleSelectionChange(val) {
if (val.length > 0) {
this.addOrUpdateForm[this.currentFieldName] = val[0].dicName
if (this.isTableType === 1) {
this.addOrUpdateForm[this.currentFieldName] = val[0].fondsName
} else if (this.isTableType === 2 && this.isDesFormType !== 'prearchiveLibrary') {
this.addOrUpdateForm[this.currentFieldName] = val[0].name
} else {
this.addOrUpdateForm[this.currentFieldName] = val[0].dictionaryName
}
}
this.$refs.popoverTable.clearSelection()
this.popoverVisible = false
if (this.isDesFormType !== 'prearchiveLibrary') {
const index = this.autoMatic.findIndex(i => this.currentFieldName === i.fieldName)
if (index !== -1) {
this.handleAuto()
}
}
},
// popover -
handleCurrentFieldName(item) {

23
src/views/components/category/SettingForm.vue

@ -111,6 +111,10 @@ export default {
thisFields: {
type: Object,
required: true
},
isDesFormType: {
type: String,
default: ''
}
},
data() {
@ -217,11 +221,7 @@ export default {
],
//
dictionaryData: [],
dataOptions: [
{ value: 1, label: '全宗' },
{ value: 2, label: '档案分类' },
{ value: 3, label: '字典' }
]
dataOptions: []
}
},
watch: {
@ -236,6 +236,19 @@ export default {
},
mounted() {
this.form = this.thisFields
console.log('isDesFormType', this.isDesFormType)
if (this.isDesFormType === 'prearchiveLibrary') {
this.dataOptions = [
{ value: 1, label: '全宗' },
{ value: 3, label: '字典' }
]
} else {
this.dataOptions = [
{ value: 1, label: '全宗' },
{ value: 2, label: '档案分类' },
{ value: 3, label: '字典' }
]
}
this.$nextTick(() => {
if (!this.isAdd) {
this.getForm()

1
src/views/prearchiveLibrary/index.vue

@ -35,7 +35,6 @@
</template>
</crudOperation>
</div>
<eForm ref="eform" />
<!--表格渲染-->
<div class="container-right">
<span class="right-top-line" />

47
src/views/prearchiveLibrary/module/batchFile.vue

@ -37,7 +37,7 @@
/>
</el-form-item>
</el-form>
<div class="corres-field-main">
<div v-loading="fieldLoading" class="corres-field-main">
<div class="corres-field-list corres-field-left">
<div class="corres-field-title">
<p>字段取值</p>
@ -83,13 +83,13 @@
<span>{{ selectedCategoryName }}</span>
</div>
<div class="field-list">
<div v-for="(item,index) in allData" :key="index" class="field-item">
<div v-for="(item,index) in allFieldData" :key="index" class="field-item">
<p>{{ item.categoryFieldId.fieldCnName }}</p>
<div class="field-state"><span :class=" item.categoryFieldId.isInput ? 'is-select' : 'is-hide'">{{ item.categoryFieldId.isInput ? '显示': '隐藏' }}</span></div>
</div>
</div>
</div>
<div v-if="allData.length === 0" class="empty-data" />
<div v-if="allFieldData.length === 0" class="empty-data" />
</div>
<div slot="footer" class="dialog-footer">
<el-button type="text" @click="batchVisible = false">取消</el-button>
@ -107,6 +107,7 @@ import { preLibraryCrud } from '../mixins/index'
import { FetchInitFieldMate, FetchMateByDocumentId, FetchDetailsByDocumentIdAndCategoryId } from '@/api/system/fieldMate'
import { FetchDocumentMenu } from '@/api/system/fileLibrary/fileLibrary'
import { FetchCategoryMenu } from '@/api/system/category/category'
import { FetchArchivesScopeByCategoryId } from '@/api/system/archivesScope'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
// import { LOAD_CHILDREN_OPTIONS } from '@riophae/vue-treeselect'
@ -135,6 +136,7 @@ export default {
documentName: '',
categoryId: null
},
selectedCategory: {},
selectedCategoryName: null,
scopeVisible: false,
loadSource: [],
@ -154,7 +156,8 @@ export default {
selectStatus: [],
selectOptions: [],
options: [],
allData: [],
fieldLoading: false,
allFieldData: [],
targetData: [],
leftLoading: false,
rightLoading: false
@ -191,8 +194,9 @@ export default {
getInitDetail(id) {
FetchInitFieldMate({ 'id': id }).then((res) => {
this.selectedCategoryName = res.categoryName
this.selectedCategory = res.fieldMateDetails[0].pid.categoryId
this.form.categoryId = res.fieldMateDetails[0].pid.categoryId.pid
this.getDetailsByDocumentIdAndCategoryId()
this.getArchivesScopeByCategoryId()
}).catch(err => {
console.log(err)
})
@ -218,17 +222,32 @@ export default {
},
//
getDetailsByDocumentIdAndCategoryId() {
this.fieldLoading = true
const params = {
'categoryId': this.form.categoryId,
'documentId': this.selectedDocument.id
}
FetchDetailsByDocumentIdAndCategoryId(params).then(res => {
console.log(res)
this.allData = res
this.allFieldData = res
res.forEach((item, index) => {
this.selectStatus.push({ mode: false, fiedType: item.documentFieldId.isDefaultValue === '' ? 2 : 1, value: item.documentFieldId.fieldCnName, field: item.documentFieldId, isInput: item.documentFieldId.isInput })
this.selectStatus.push({ mode: false, fiedType: item.categoryFieldId.isDefaultValue === '' ? 2 : 1, value: item.categoryFieldId.isDefaultValue === '' ? item.documentFieldId.fieldCnName : item.categoryFieldId.isDefaultValue, field: item.documentFieldId, isInput: item.documentFieldId.isInput })
})
console.log(this.selectStatus)
this.fieldLoading = false
})
},
// id
getArchivesScopeByCategoryId() {
const params = {
'categoryId': this.form.categoryId
}
FetchArchivesScopeByCategoryId(params).then(res => {
console.log(res)
if (Array.isArray(res) && res.length === 1) {
this.form.scope = res[0].scopeName
} else {
this.getDetailsByDocumentIdAndCategoryId()
console.log('有多个“归档范围”')
}
})
},
handleSelectCategory(val) {
@ -237,11 +256,19 @@ export default {
//
selectScope() {
this.$refs.scopeModule.scopeVisible = true
this.$nextTick(() => {
if (this.form.categoryId) {
this.$refs.scopeModule.$refs.tree2.setCurrentKey(this.form.categoryId)
this.$refs.scopeModule.handleNodeClick2(this.selectedCategory)
}
})
},
hanleScopeSelect(val) {
hanleScopeSelect(val, category) {
console.log('category', category)
if (val.length !== 0) {
this.form.scope = val[0].scopeName
console.log('val', val)
this.form.categoryId = category.id
}
},
selectChange(index) {

21
src/views/prearchiveLibrary/module/scope.vue

@ -13,6 +13,7 @@
v-loading="crud.loading"
:data="crud.data"
node-key="id"
default-expand-all
:props="defaultProps"
:expand-on-click-node="false"
@node-click="handleNodeClick2"
@ -116,16 +117,28 @@ export default {
},
//
handleNodeClick2(val) {
console.log('222', val)
console.log('33', val.isType)
if (val) {
this.selectedCategory = val
if (val.pid !== '0') {
Vue.set(this.selectedCategory, 'parentName', this.$refs.tree2.getNode(val.pid).data.cnName)
}
this.getInitArchivesScope()
this.getInitArchivesScope(this.selectedCategory)
}
},
getInitArchivesScope() {
FetchInitArchivesScope({ 'categoryId': this.selectedCategory.id }).then(res => {
getInitArchivesScope(data) {
let params
if (data.isType !== 3) {
params = {
'categoryId': this.selectedCategory.id
}
} else {
params = {
'categoryId': this.selectedCategory.pid
}
}
FetchInitArchivesScope(params).then(res => {
this.tableData = res.content.map(function(item, index) {
if (item.sonNum !== 0) {
item.hasChildren = true
@ -173,7 +186,7 @@ export default {
},
confirmedScope() {
this.scopeVisible = false
this.$emit('getScope', this.selections)
this.$emit('getScope', this.selections, this.selectedCategory)
},
handleClose(done) {
this.scopeVisible = false

2
src/views/system/archivesCategory/descriptionPreview/index.vue

@ -40,7 +40,7 @@
<!-- 修改字段 -->
<el-dialog class="edit-form-dialog" :visible="settingFormVisible" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body title="修改字段">
<div class="setting-dialog">
<SettingForm ref="editForm" :is-category="true" :is-disabled="false" :is-add="false" :this-fields="editField" />
<SettingForm ref="editForm" :is-category="true" :is-disabled="false" :is-add="false" :this-fields="editField" :is-des-form-type="isDesFormType" />
<div slot="footer" class="dialog-footer">
<el-button type="primary" :loading="loading" @click="editSubmit">保存</el-button>
</div>

8
src/views/system/fileLibraryManage/descriptionPreview/index.vue

@ -40,7 +40,7 @@
<!-- 修改字段 -->
<el-dialog class="edit-form-dialog" :visible="settingFormVisible" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body title="修改字段">
<div class="setting-dialog">
<SettingForm ref="editForm" :is-category="false" :is-disabled="false" :is-add="false" :this-fields="editField" />
<SettingForm ref="editForm" :is-category="false" :is-disabled="false" :is-add="false" :this-fields="editField" :is-des-form-type="isDesFormType" />
<div slot="footer" class="dialog-footer">
<el-button type="primary" :loading="loading" @click="editSubmit">保存</el-button>
</div>
@ -64,7 +64,7 @@
<script>
import PreviewForm from '@/views/components/category/PreviewForm'
import SettingForm from '@/views/components/category/SettingForm'
import { FetchInitDocumentField } from '@/api/system/fileLibrary/fileLibrary'
import { FetchDocumentFieldManage } from '@/api/system/fileLibrary/fileLibrary'
import { edit } from '@/api/system/fileLibrary/fieldManage'
import { FetchUpardicSort } from '@/api/system/fileLibrary/fileLibrary'
export default {
@ -92,7 +92,7 @@ export default {
editField: {},
isInputFields: [],
loading: false,
isDesFormType: 'category'
isDesFormType: 'prearchiveLibrary'
}
},
watch: {
@ -107,7 +107,7 @@ export default {
getArchivesType(setField) {
//
this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate()
FetchInitDocumentField({ documentId: this.selectedCategory.id, isType: 2 }).then(res => {
FetchDocumentFieldManage({ documentId: this.selectedCategory.id, isType: 2 }).then(res => {
this.allFieldsData.splice(0, this.allFieldsData.length)
this.isInputFields.splice(0, this.isInputFields.length)
if (!setField) {

11
src/views/system/fileLibraryManage/fieldManage/index.vue

@ -87,7 +87,7 @@ export default {
cruds() {
return CRUD({
tag: 'field',
url: 'api/document/initDocumentField',
url: 'api/document/documentFieldManage',
crudMethod: fieldCrudMethod,
title: '字段',
optShow: {
@ -212,13 +212,4 @@ export default {
</script>
<style lang="scss" scoped>
// ::v-deep thead .el-table-column--selection .cell {
// display: none;
// }
// ::v-deep div.el-dialog__footer {
// text-align: center;
// }
// ::v-deep .el-table tr .el-table__cell {
// height: 40px;
// }
</style>

4
src/views/system/fileLibraryManage/listBrowsing/index.vue

@ -73,7 +73,7 @@
</div>
</template>
<script>
import { FetchInitDocumentField } from '@/api/system/fileLibrary/fileLibrary'
import { FetchDocumentFieldManage } from '@/api/system/fileLibrary/fileLibrary'
import { FetchInitArchivesView } from '@/api/archivesManage/archivesList'
import { add } from '@/api/system/fileLibrary/listBrowsing'
import eForm from './module/form'
@ -135,7 +135,7 @@ export default {
this.getBottomTableData()
},
getDisplayFieldData() {
FetchInitDocumentField({ documentId: this.selectedCategory.id, isType: 2 }).then((res) => {
FetchDocumentFieldManage({ documentId: this.selectedCategory.id, isType: 2 }).then((res) => {
this.table.right.data.splice(0, this.table.right.data.length)
this.table.left.data.splice(0, this.table.left.data.length)
res.sort((item1, item2) => { return item1.displayOrder - item2.displayOrder }).forEach((item) => {

Loading…
Cancel
Save