Browse Source

档案门类

master
xuhuajiao 2 years ago
parent
commit
85f5bf5103
  1. 20
      src/api/system/category/category.js
  2. 51
      src/api/system/category/fieldManage.js
  3. 42
      src/api/system/category/fileNoFormat.js
  4. 35
      src/api/system/category/listBrowsing.js
  5. 26
      src/api/system/category/orderingRule.js
  6. 16
      src/api/system/dict.js
  7. 2
      src/api/system/logs.js
  8. 2
      src/assets/styles/yxk-admin.scss
  9. 2
      src/views/components/category/PreviewForm.vue
  10. 36
      src/views/components/category/SettingForm.vue
  11. 10
      src/views/system/archivesCategory/descriptionPreview/index.vue
  12. 42
      src/views/system/archivesCategory/fieldManage/index.vue
  13. 1
      src/views/system/archivesCategory/fieldManage/module/form.vue
  14. 17
      src/views/system/archivesCategory/fieldManage/module/quickSetting.vue
  15. 6
      src/views/system/archivesCategory/fileNoFormat/index.vue
  16. 2
      src/views/system/archivesCategory/fileNoFormat/module/form.vue
  17. 2
      src/views/system/archivesCategory/fileNoFormat/module/sortDialog.vue
  18. 2
      src/views/system/archivesCategory/form.vue
  19. 6
      src/views/system/archivesCategory/listBrowsing/index.vue
  20. 2
      src/views/system/archivesCategory/listBrowsing/module/form.vue
  21. 2
      src/views/system/archivesCategory/listBrowsing/module/sortDialog.vue
  22. 4
      src/views/system/archivesCategory/orderingRule/index.vue
  23. 2
      src/views/system/archivesCategory/orderingRule/module/form.vue
  24. 2
      src/views/system/archivesCategory/orderingRule/module/sortDialog.vue
  25. 2
      src/views/system/fileLibraryManage/baseInfo/index.vue
  26. 8
      src/views/system/fileLibraryManage/descriptionPreview/index.vue
  27. 6
      src/views/system/fileLibraryManage/fileNoFormat/index.vue
  28. 2
      src/views/system/fileLibraryManage/fileNoFormat/module/form.vue
  29. 2
      src/views/system/fileLibraryManage/fileNoFormat/module/sortDialog.vue
  30. 4
      src/views/system/fileLibraryManage/listBrowsing/index.vue
  31. 4
      src/views/system/fileLibraryManage/orderingRule/index.vue
  32. 2
      src/views/system/fileLibraryManage/orderingRule/module/form.vue
  33. 2
      src/views/system/fileLibraryManage/orderingRule/module/sortDialog.vue
  34. 2
      src/views/system/log/errorLog/index.vue
  35. 2
      src/views/system/log/loginLog/index.vue
  36. 2
      src/views/system/log/operateLog/index.vue
  37. 2
      src/views/system/notifyManage/index.vue
  38. 8
      src/views/system/subjectLibraryManage/descriptionPreview/index.vue
  39. 4
      src/views/system/subjectLibraryManage/listBrowsing/index.vue
  40. 4
      src/views/system/subjectLibraryManage/orderingRule/index.vue
  41. 2
      src/views/system/subjectLibraryManage/orderingRule/module/form.vue
  42. 2
      src/views/system/subjectLibraryManage/orderingRule/module/sortDialog.vue

20
src/api/system/category/category.js

@ -105,4 +105,22 @@ export function FetchDelCategoryScreen(data) {
}) })
} }
export default { add, edit, del, FetchCategoryMenu }
// 门类下得字段
export function FetchInitCategoryField(params) {
return request({
url: 'api/category/initCategoryField',
method: 'get',
params
})
}
// 著录界面排序
export function FetchUpardicSort(data) {
return request({
url: 'api/category/upardicSort',
method: 'put',
data
})
}
export default { add, edit, del, FetchCategoryMenu, FetchInitCategoryField, FetchUpardicSort }

51
src/api/system/category/fieldManage.js

@ -0,0 +1,51 @@
import request from '@/utils/request'
// 编辑门类字段
export function add(data) {
data.isSystem = false
if (data.isDataType === 1) {
data.isDataTypeDetails = 'varchar'
} else if (data.isDataType === 2) {
data.isDataTypeDetails = 'int'
}
return request({
url: 'api/category/editArchivesDictionary',
method: 'post',
data
})
}
// 删除公共筛选
export function edit(data) {
if (data.isDataType === 1) {
data.isDataTypeDetails = 'varchar'
} else if (data.isDataType === 2) {
data.isDataTypeDetails = 'int'
}
return request({
url: 'api/category/editArchivesDictionary',
method: 'post',
data
})
}
// 删除门类类型菜单
export function del(ids) {
const params = { id: ids[0] }
return request({
url: 'api/category/deleteArchivesDictionary',
method: 'delete',
params
})
}
// 门类字段快速设置
export function FetchEditFast(data) {
return request({
url: 'api/category/editFast',
method: 'post',
data
})
}
export default { add, edit, del, FetchEditFast }

42
src/api/system/category/fileNoFormat.js

@ -0,0 +1,42 @@
import request from '@/utils/request'
export function getNoFormatField(params) {
return request({
url: 'api/category/list',
method: 'get',
params
})
}
export function edit(data) {
return request({
url: 'api/dic-setting/update',
method: 'put',
data
})
}
export function add(data) {
return request({
url: 'api/category/createSetting',
method: 'post',
data
})
}
export function order(data) {
return request({
url: 'api/dic-setting/squence',
method: 'put',
data
})
}
export function del(data) {
return request({
url: 'api/dic-setting/delete',
method: 'delete',
data
})
}
export default { edit }

35
src/api/system/category/listBrowsing.js

@ -0,0 +1,35 @@
import request from '@/utils/request'
export function add(data) {
return request({
url: 'api/category/createListDisplay',
method: 'post',
data
})
}
export function edit(data) {
return request({
url: 'api/category/createListDisplay',
method: 'post',
data
})
}
// export function previewFormOrder(data) {
// return request({
// url: 'api/arc-display/sort',
// method: 'put',
// data
// })
// }
export function order(data) {
return request({
url: 'api/category/display-order',
method: 'put',
data
})
}
export default { add }

26
src/api/system/category/orderingRule.js

@ -0,0 +1,26 @@
import request from '@/utils/request'
export function getDisplayField(params) {
return request({
url: 'api/category/getIsDisPlayState',
method: 'get',
params
})
}
export function edit(data) {
return request({
url: 'api/category/orderby',
method: 'put',
data
})
}
export function order(data) {
return request({
url: 'api/category/update-queue',
method: 'put',
data
})
}
export default { edit }

16
src/api/system/dict.js

@ -1,12 +1,12 @@
import request from '@/utils/request' import request from '@/utils/request'
export function getDictsList(params) {
return request({
url: 'api/dictionary/initDictionaryList',
method: 'get',
params
})
}
// export function getDictsList(params) {
// return request({
// url: 'api/dictionary/initDictionaryList',
// method: 'get',
// params
// })
// }
export function add(data) { export function add(data) {
return request({ return request({
@ -48,4 +48,4 @@ export function FetchSonDictionaryList(params) {
}) })
} }
export default { add, edit, del, getDictsList, FetchDictionaryTree, FetchSonDictionaryList }
export default { add, edit, del, FetchDictionaryTree, FetchSonDictionaryList }

2
src/api/system/logs.js

@ -14,7 +14,7 @@ export function warnRemark(data) {
// 获取表格 // 获取表格
export function getNoticeList(params) { export function getNoticeList(params) {
return request({ return request({
url: 'api/notice/list',
url: 'api/notice/initNotice',
method: 'get', method: 'get',
params params
}) })

2
src/assets/styles/yxk-admin.scss

@ -1696,7 +1696,7 @@ input[type ='number'] {
} }
.des-preview-right { .des-preview-right {
width: 758px;
width: 740px;
margin-left: 20px; margin-left: 20px;
} }
} }

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

@ -89,7 +89,7 @@
<script> <script>
import { crud } from '@crud/crud' import { crud } from '@crud/crud'
import { edit, FetchDoeditIsRepeat } from '@/api/archivesManage/archivesList' import { edit, FetchDoeditIsRepeat } from '@/api/archivesManage/archivesList'
import { getNoFormatField } from '@/api/category/fileNoFormat'
import { getNoFormatField } from '@/api/system/category/fileNoFormat'
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
import Treeselect from '@riophae/vue-treeselect' import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'

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

@ -1,6 +1,5 @@
<template> <template>
<div class="des-form"> <div class="des-form">
<el-form ref="form" :model="form" :rules="rules" :hide-required-asterisk="isDisabled" size="small" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" :hide-required-asterisk="isDisabled" size="small" label-width="80px">
<el-row> <el-row>
<el-col :span="16"> <el-col :span="16">
@ -36,11 +35,11 @@
<el-input v-if="isDisabled" v-model="form.dictionaryConfigId.dicName" disabled /> <el-input v-if="isDisabled" v-model="form.dictionaryConfigId.dicName" disabled />
<!-- @change="selectDictionary" --> <!-- @change="selectDictionary" -->
<div v-else class="dictionary-selected"> <div v-else class="dictionary-selected">
<el-select v-model="form.dictionaryConfigId.type" class="dictionary-left" placeholder="" value-key="id" :disabled="form.isInputClass !== 'select' && form.isInputClass !== 'popover'">
<el-select v-model="form.mateData" class="dictionary-left" placeholder="" value-key="id" :disabled="form.isInputClass !== 'select' && form.isInputClass !== 'popover'" @change="changeDictType">
<el-option v-for="item in dataOptions" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in dataOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
<el-select v-model="form.dictionaryConfigId.id" class="dictionary-right" placeholder="" value-key="id" :disabled="form.dictionaryConfigId.type !== 'dictionary'">
<el-option v-for="item in dictionaryData" :key="item.id" :label="item.dicName" :value="item.id" />
<el-select v-model="form.dictionaryConfigId.id" class="dictionary-right" placeholder="" value-key="id" :disabled="form.mateData !== 3">
<el-option v-for="item in dictionaryData" :key="item.id" :label="item.dictionaryName" :value="item.id" />
</el-select> </el-select>
</div> </div>
</el-form-item> </el-form-item>
@ -90,8 +89,8 @@
</template> </template>
<script> <script>
import { getDicts } from '@/api/archivesConfig/dict'
import { getNoFormatField } from '@/api/category/fileNoFormat'
import { FetchDictionaryTree } from '@/api/system/dict'
import { getNoFormatField } from '@/api/system/category/fileNoFormat'
export default { export default {
name: 'SettingForm', name: 'SettingForm',
@ -144,7 +143,7 @@ export default {
} }
// //
var checkDictionaryConfigId = (rule, value, callback) => { var checkDictionaryConfigId = (rule, value, callback) => {
if ((this.form.isInputClass === 'select' || this.form.isInputClass === 'popover') && !this.form.dictionaryConfigId.id) {
if ((this.form.isInputClass === 'select' || this.form.isInputClass === 'popover') && !this.form.dictionaryConfigId.id && this.form.mateData === 3) {
callback(new Error('对应字典项不可为空!')) callback(new Error('对应字典项不可为空!'))
} else { } else {
callback() callback()
@ -193,8 +192,7 @@ export default {
return { return {
form: { form: {
dictionaryConfigId: { dictionaryConfigId: {
id: null,
type: null
id: null
} }
}, },
rules: getRules(), rules: getRules(),
@ -215,9 +213,9 @@ export default {
// //
dictionaryData: [], dictionaryData: [],
dataOptions: [ dataOptions: [
{ value: 'group', label: '全宗' },
{ value: 'classify', label: '档案分类' },
{ value: 'dictionary', label: '字典' }
{ value: 1, label: '全宗' },
{ value: 2, label: '档案分类' },
{ value: 3, label: '字典' }
] ]
// dictionaryId: null // dictionaryId: null
} }
@ -233,6 +231,7 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.form = this.thisFields this.form = this.thisFields
console.log(this.form)
if (!this.isAdd) { if (!this.isAdd) {
this.getForm() this.getForm()
} }
@ -246,6 +245,12 @@ export default {
this.form.isInput = !!this.form.isInput this.form.isInput = !!this.form.isInput
this.form.isRequired = !!this.form.isRequired this.form.isRequired = !!this.form.isRequired
this.form.isAutomatic = !!this.form.isAutomatic this.form.isAutomatic = !!this.form.isAutomatic
if (this.form.mateData !== 3) {
this.dictionaryData = []
this.form.dictionaryConfigId.id = null
}
// //
if (this.form.isDataType === 1) { if (this.form.isDataType === 1) {
this.form.isDataTypeTxt = '字符' this.form.isDataTypeTxt = '字符'
@ -279,24 +284,29 @@ export default {
this.getDictrionaryList() this.getDictrionaryList()
} else { } else {
this.dictionaryData = [] this.dictionaryData = []
this.form.dictionaryConfigId.id = null
} }
} }
}, },
// list // list
getDictrionaryList() { getDictrionaryList() {
getDicts().then(res => {
FetchDictionaryTree().then(res => {
this.dictionaryData = res this.dictionaryData = res
}) })
}, },
// selectDictionary(value) { // selectDictionary(value) {
// this.dictionaryId = value // this.dictionaryId = value
// }, // },
changeDictType(value) {
this.form.dictionaryConfigId.id = null
},
// '''' // ''''
selectInputClass(value) { selectInputClass(value) {
if (value === 'select' || value === 'popover') { if (value === 'select' || value === 'popover') {
this.getDictrionaryList() this.getDictrionaryList()
} else { } else {
this.dictionaryData = [] this.dictionaryData = []
this.form.mateData = null
this.form.dictionaryConfigId.id = null this.form.dictionaryConfigId.id = null
} }
// //

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

@ -64,9 +64,9 @@
<script> <script>
import PreviewForm from '@/views/components/category/PreviewForm' import PreviewForm from '@/views/components/category/PreviewForm'
import SettingForm from '@/views/components/category/SettingForm' import SettingForm from '@/views/components/category/SettingForm'
import { FetchArchivesTypeManage } from '@/api/category/category'
import { edit } from '@/api/category/fieldManage'
import { previewFormOrder } from '@/api/category/listBrowsing'
import { FetchInitCategoryField } from '@/api/system/category/category'
import { edit } from '@/api/system/category/fieldManage'
import { FetchUpardicSort } from '@/api/system/category/category'
export default { export default {
name: 'DescriptionPreview', name: 'DescriptionPreview',
components: { PreviewForm, SettingForm }, components: { PreviewForm, SettingForm },
@ -104,7 +104,7 @@ export default {
getArchivesType(setField) { getArchivesType(setField) {
// //
this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate() this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate()
FetchArchivesTypeManage({ categoryId: this.selectedCategory.id, isType: 2 }).then(res => {
FetchInitCategoryField({ categoryId: this.selectedCategory.id, isType: 2 }).then(res => {
this.allFieldsData.splice(0, this.allFieldsData.length) this.allFieldsData.splice(0, this.allFieldsData.length)
this.isInputFields.splice(0, this.isInputFields.length) this.isInputFields.splice(0, this.isInputFields.length)
if (!setField) { if (!setField) {
@ -174,7 +174,7 @@ export default {
id: item.id id: item.id
} }
}) })
previewFormOrder(sortParam).then(() => {
FetchUpardicSort(sortParam).then(() => {
this.previewFormVisible = false this.previewFormVisible = false
this.getArchivesType() this.getArchivesType()
}) })

42
src/views/system/archivesCategory/fieldManage/index.vue

@ -67,24 +67,13 @@
</el-table> </el-table>
<!--表单渲染--> <!--表单渲染-->
<eForm crud-tag="field" /> <eForm crud-tag="field" />
<quickSetting ref="quick" />
<el-dialog title="删除字段" :visible.sync="deleteVisible" :close-on-click-modal="false" :modal-append-to-body="false" append-to-body :before-close="handleClose">
<span class="dialog-right-top" />
<span class="dialog-left-bottom" />
<div class="setting-dialog">
<div class="dialog-delt">
<p><span>确定要删除当前字段吗</span></p>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click.native="handleConfirm">确定</el-button>
</div>
</div>
</el-dialog>
<quickSetting ref="quick" @refresh="initData" />
</div> </div>
</template> </template>
<script> <script>
import fieldCrudMethod from '@/api/category/fieldManage'
import fieldCrudMethod from '@/api/system/category/fieldManage'
import eForm from './module/form' import eForm from './module/form'
import quickSetting from './module/quickSetting' import quickSetting from './module/quickSetting'
import CRUD, { presenter } from '@crud/crud' import CRUD, { presenter } from '@crud/crud'
@ -98,7 +87,7 @@ export default {
cruds() { cruds() {
return CRUD({ return CRUD({
tag: 'field', tag: 'field',
url: 'api/arc-dic/manage',
url: 'api/category/initCategoryField',
crudMethod: fieldCrudMethod, crudMethod: fieldCrudMethod,
title: '字段', title: '字段',
optShow: { optShow: {
@ -197,16 +186,16 @@ export default {
return return
} }
this.deleteData = data this.deleteData = data
this.deleteVisible = true
},
handleConfirm() {
this.deleteVisible = false
this.crud.delAllLoading = true
this.crud.doDelete(this.deleteData)
},
handleClose(done) {
this.deleteData = {}
done()
this.$confirm('此操作将删除当前所选' + this.crud.title + '<span>你是否还要继续?</span>', '提示', {
confirmButtonText: '继续',
cancelButtonText: '取消',
type: 'warning',
dangerouslyUseHTMLString: true
}).then(() => {
this.crud.delAllLoading = true
this.crud.doDelete(this.deleteData)
}).catch(() => {
})
}, },
digitFormatter(row, column, cellValue) { digitFormatter(row, column, cellValue) {
return cellValue || '-' return cellValue || '-'
@ -214,6 +203,9 @@ export default {
toQuick() { toQuick() {
this.$refs.quick.quickTableData = JSON.parse(JSON.stringify(this.crud.data)) this.$refs.quick.quickTableData = JSON.parse(JSON.stringify(this.crud.data))
this.$refs.quick.quickVisible = true this.$refs.quick.quickVisible = true
},
initData() {
this.crud.refresh()
} }
} }
} }

1
src/views/system/archivesCategory/fieldManage/module/form.vue

@ -47,6 +47,7 @@ const defaultForm = {
displayformatType: null, displayformatType: null,
editLength: 196, editLength: 196,
displayLength: null, displayLength: null,
mateData: null,
dictionaryConfigId: { dictionaryConfigId: {
id: null id: null
} }

17
src/views/system/archivesCategory/fieldManage/module/quickSetting.vue

@ -19,13 +19,14 @@
</el-table> </el-table>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="quickVisible=false">取消</el-button> <el-button @click.native="quickVisible=false">取消</el-button>
<el-button type="primary" @click.native="handleSort">保存</el-button>
<el-button type="primary" @click.native="handleSave">保存</el-button>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { FetchEditFast } from '@/api/system/category/fieldManage'
export default { export default {
data() { data() {
return { return {
@ -40,9 +41,17 @@ export default {
}) })
}, },
methods: { methods: {
handleSort() {
this.quickTableData.forEach((item, index) => {
item.sequence = index + 1
handleSave() {
FetchEditFast(this.quickTableData).then(res => {
if (res === 'SUCCESS') {
this.$message({
message: '快速设置字段成功',
type: 'success',
duration: 2500
})
this.$emit('refresh')
this.quickVisible = false
}
}) })
} }
} }

6
src/views/system/archivesCategory/fileNoFormat/index.vue

@ -55,8 +55,8 @@
</template> </template>
<script> <script>
import { FetchArchivesTypeManage } from '@/api/category/category'
import { getNoFormatField, del } from '@/api/category/fileNoFormat'
import { FetchInitCategoryField } from '@/api/system/category/category'
import { getNoFormatField, del } from '@/api/system/category/fileNoFormat'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
import Vue from 'vue' import Vue from 'vue'
@ -106,7 +106,7 @@ export default {
}, },
methods: { methods: {
initData() { initData() {
FetchArchivesTypeManage({ categoryId: this.selectedCategory.id, isType: 2 }).then((res) => {
FetchInitCategoryField({ categoryId: this.selectedCategory.id, isType: 2 }).then((res) => {
this.table.left.data.splice(0, this.table.left.data.length) this.table.left.data.splice(0, this.table.left.data.length)
res.forEach((item) => { res.forEach((item) => {
if (!item.isDisplayformat && item.isInput && !item.isAutomatic) { if (!item.isDisplayformat && item.isInput && !item.isAutomatic) {

2
src/views/system/archivesCategory/fileNoFormat/module/form.vue

@ -24,7 +24,7 @@
</template> </template>
<script> <script>
import { add, edit } from '@/api/category/fileNoFormat'
import { add, edit } from '@/api/system/category/fileNoFormat'
export default { export default {
data() { data() {
return { return {

2
src/views/system/archivesCategory/fileNoFormat/module/sortDialog.vue

@ -17,7 +17,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { order } from '@/api/category/fileNoFormat'
import { order } from '@/api/system/category/fileNoFormat'
export default { export default {
data() { data() {

2
src/views/system/archivesCategory/form.vue

@ -160,8 +160,6 @@ export default {
}, },
// //
[CRUD.HOOK.afterValidateCU](crud) { [CRUD.HOOK.afterValidateCU](crud) {
console.log(this.pid)
console.log(crud.form)
delete crud.form.parentName delete crud.form.parentName
return true return true
}, },

6
src/views/system/archivesCategory/listBrowsing/index.vue

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

2
src/views/system/archivesCategory/listBrowsing/module/form.vue

@ -31,7 +31,7 @@
</template> </template>
<script> <script>
import { add, edit } from '@/api/category/listBrowsing'
import { add, edit } from '@/api/system/category/listBrowsing'
export default { export default {
data() { data() {
return { return {

2
src/views/system/archivesCategory/listBrowsing/module/sortDialog.vue

@ -17,7 +17,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { order } from '@/api/category/listBrowsing'
import { order } from '@/api/system/category/listBrowsing'
export default { export default {
data() { data() {

4
src/views/system/archivesCategory/orderingRule/index.vue

@ -61,8 +61,8 @@
</template> </template>
<script> <script>
import { getDisplayField } from '@/api/category/orderingRule'
import { edit } from '@/api/category/orderingRule'
import { getDisplayField } from '@/api/system/category/orderingRule'
import { edit } from '@/api/system/category/orderingRule'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
import Vue from 'vue' import Vue from 'vue'

2
src/views/system/archivesCategory/orderingRule/module/form.vue

@ -31,7 +31,7 @@
</template> </template>
<script> <script>
import { edit } from '@/api/category/orderingRule'
import { edit } from '@/api/system/category/orderingRule'
export default { export default {
data() { data() {
return { return {

2
src/views/system/archivesCategory/orderingRule/module/sortDialog.vue

@ -17,7 +17,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { order } from '@/api/category/orderingRule'
import { order } from '@/api/system/category/orderingRule'
export default { export default {
data() { data() {

2
src/views/system/fileLibraryManage/baseInfo/index.vue

@ -46,7 +46,7 @@
</template> </template>
<script> <script>
import { getNoFormatField } from '@/api/category/fileNoFormat'
import { getNoFormatField } from '@/api/system/category/fileNoFormat'
export default { export default {
name: 'BaseInfo', name: 'BaseInfo',
props: { props: {

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

@ -64,9 +64,9 @@
<script> <script>
import PreviewForm from '@/views/components/category/PreviewForm' import PreviewForm from '@/views/components/category/PreviewForm'
import SettingForm from '@/views/components/category/SettingForm' import SettingForm from '@/views/components/category/SettingForm'
import { FetchArchivesTypeManage } from '@/api/category/category'
import { FetchInitCategoryField } from '@/api/system/category/category'
import { edit } from '@/api/category/fieldManage' import { edit } from '@/api/category/fieldManage'
import { previewFormOrder } from '@/api/category/listBrowsing'
import { FetchUpardicSort } from '@/api/system/category/category'
export default { export default {
name: 'DescriptionPreview', name: 'DescriptionPreview',
components: { PreviewForm, SettingForm }, components: { PreviewForm, SettingForm },
@ -104,7 +104,7 @@ export default {
getArchivesType(setField) { getArchivesType(setField) {
// //
this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate() this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate()
FetchArchivesTypeManage({ categoryId: this.selectedCategory.id, isType: 2 }).then(res => {
FetchInitCategoryField({ categoryId: this.selectedCategory.id, isType: 2 }).then(res => {
this.allFieldsData.splice(0, this.allFieldsData.length) this.allFieldsData.splice(0, this.allFieldsData.length)
this.isInputFields.splice(0, this.isInputFields.length) this.isInputFields.splice(0, this.isInputFields.length)
if (!setField) { if (!setField) {
@ -174,7 +174,7 @@ export default {
id: item.id id: item.id
} }
}) })
previewFormOrder(sortParam).then(() => {
FetchUpardicSort(sortParam).then(() => {
this.previewFormVisible = false this.previewFormVisible = false
this.getArchivesType() this.getArchivesType()
}) })

6
src/views/system/fileLibraryManage/fileNoFormat/index.vue

@ -55,8 +55,8 @@
</template> </template>
<script> <script>
import { FetchArchivesTypeManage } from '@/api/category/category'
import { getNoFormatField, del } from '@/api/category/fileNoFormat'
import { FetchInitCategoryField } from '@/api/system/category/category'
import { getNoFormatField, del } from '@/api/system/category/fileNoFormat'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
import Vue from 'vue' import Vue from 'vue'
@ -106,7 +106,7 @@ export default {
}, },
methods: { methods: {
initData() { initData() {
FetchArchivesTypeManage({ categoryId: this.selectedCategory.id, isType: 2 }).then((res) => {
FetchInitCategoryField({ categoryId: this.selectedCategory.id, isType: 2 }).then((res) => {
this.table.left.data.splice(0, this.table.left.data.length) this.table.left.data.splice(0, this.table.left.data.length)
res.forEach((item) => { res.forEach((item) => {
if (!item.isDisplayformat && item.isInput && !item.isAutomatic) { if (!item.isDisplayformat && item.isInput && !item.isAutomatic) {

2
src/views/system/fileLibraryManage/fileNoFormat/module/form.vue

@ -24,7 +24,7 @@
</template> </template>
<script> <script>
import { add, edit } from '@/api/category/fileNoFormat'
import { add, edit } from '@/api/system/category/fileNoFormat'
export default { export default {
data() { data() {
return { return {

2
src/views/system/fileLibraryManage/fileNoFormat/module/sortDialog.vue

@ -17,7 +17,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { order } from '@/api/category/fileNoFormat'
import { order } from '@/api/system/category/fileNoFormat'
export default { export default {
data() { data() {

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

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

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

@ -61,8 +61,8 @@
</template> </template>
<script> <script>
import { getDisplayField } from '@/api/category/orderingRule'
import { edit } from '@/api/category/orderingRule'
import { getDisplayField } from '@/api/system/category/orderingRule'
import { edit } from '@/api/system/category/orderingRule'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
import Vue from 'vue' import Vue from 'vue'

2
src/views/system/fileLibraryManage/orderingRule/module/form.vue

@ -31,7 +31,7 @@
</template> </template>
<script> <script>
import { edit } from '@/api/category/orderingRule'
import { edit } from '@/api/system/category/orderingRule'
export default { export default {
data() { data() {
return { return {

2
src/views/system/fileLibraryManage/orderingRule/module/sortDialog.vue

@ -17,7 +17,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { order } from '@/api/category/orderingRule'
import { order } from '@/api/system/category/orderingRule'
export default { export default {
data() { data() {

2
src/views/system/log/errorLog/index.vue

@ -66,7 +66,7 @@ export default {
name: 'ErrorLog', name: 'ErrorLog',
components: { Search, pagination }, components: { Search, pagination },
cruds() { cruds() {
return CRUD({ title: '异常日志', url: 'api/logs/error' })
return CRUD({ title: '异常日志', url: 'api/log/initErrorLog' })
}, },
mixins: [presenter()], mixins: [presenter()],
data() { data() {

2
src/views/system/log/loginLog/index.vue

@ -51,7 +51,7 @@ export default {
mixins: [presenter(), crud(), header()], mixins: [presenter(), crud(), header()],
cruds() { cruds() {
return CRUD({ return CRUD({
url: 'api/loginlogs/list',
url: 'api/log/initLoginLog',
// sort: ['update_time,desc'], // sort: ['update_time,desc'],
// crudMethod: caseCrudMethod, // crudMethod: caseCrudMethod,
optShow: { optShow: {

2
src/views/system/log/operateLog/index.vue

@ -64,7 +64,7 @@ export default {
mixins: [presenter(), crud()], mixins: [presenter(), crud()],
cruds() { cruds() {
return CRUD({ return CRUD({
url: 'api/logs',
url: 'api/log/initLog',
title: '操作日志', title: '操作日志',
optShow: { optShow: {
add: false, add: false,

2
src/views/system/notifyManage/index.vue

@ -122,7 +122,7 @@ export default {
name: 'NotifyManage', name: 'NotifyManage',
components: { rrOperation, DateRangePicker, SelectObj }, components: { rrOperation, DateRangePicker, SelectObj },
cruds() { cruds() {
return CRUD({ title: '通知', url: 'api/system/logs', crudMethod: { }})
return CRUD({ title: '通知', url: 'api/notice/initNotice', crudMethod: { }})
}, },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
inject: ['reload'], inject: ['reload'],

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

@ -64,9 +64,9 @@
<script> <script>
import PreviewForm from '@/views/components/category/PreviewForm' import PreviewForm from '@/views/components/category/PreviewForm'
import SettingForm from '@/views/components/category/SettingForm' import SettingForm from '@/views/components/category/SettingForm'
import { FetchArchivesTypeManage } from '@/api/category/category'
import { FetchInitCategoryField } from '@/api/system/category/category'
import { edit } from '@/api/category/fieldManage' import { edit } from '@/api/category/fieldManage'
import { previewFormOrder } from '@/api/category/listBrowsing'
import { FetchUpardicSort } from '@/api/system/category/category'
export default { export default {
name: 'DescriptionPreview', name: 'DescriptionPreview',
components: { PreviewForm, SettingForm }, components: { PreviewForm, SettingForm },
@ -104,7 +104,7 @@ export default {
getArchivesType(setField) { getArchivesType(setField) {
// //
this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate() this.$refs.previewForm1.$refs['addOrUpdateForm'].clearValidate()
FetchArchivesTypeManage({ categoryId: this.selectedCategory.id, isType: 2 }).then(res => {
FetchInitCategoryField({ categoryId: this.selectedCategory.id, isType: 2 }).then(res => {
this.allFieldsData.splice(0, this.allFieldsData.length) this.allFieldsData.splice(0, this.allFieldsData.length)
this.isInputFields.splice(0, this.isInputFields.length) this.isInputFields.splice(0, this.isInputFields.length)
if (!setField) { if (!setField) {
@ -174,7 +174,7 @@ export default {
id: item.id id: item.id
} }
}) })
previewFormOrder(sortParam).then(() => {
FetchUpardicSort(sortParam).then(() => {
this.previewFormVisible = false this.previewFormVisible = false
this.getArchivesType() this.getArchivesType()
}) })

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

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

4
src/views/system/subjectLibraryManage/orderingRule/index.vue

@ -61,8 +61,8 @@
</template> </template>
<script> <script>
import { getDisplayField } from '@/api/category/orderingRule'
import { edit } from '@/api/category/orderingRule'
import { getDisplayField } from '@/api/system/category/orderingRule'
import { edit } from '@/api/system/category/orderingRule'
import eForm from './module/form' import eForm from './module/form'
import sortDialog from './module/sortDialog' import sortDialog from './module/sortDialog'
import Vue from 'vue' import Vue from 'vue'

2
src/views/system/subjectLibraryManage/orderingRule/module/form.vue

@ -31,7 +31,7 @@
</template> </template>
<script> <script>
import { edit } from '@/api/category/orderingRule'
import { edit } from '@/api/system/category/orderingRule'
export default { export default {
data() { data() {
return { return {

2
src/views/system/subjectLibraryManage/orderingRule/module/sortDialog.vue

@ -17,7 +17,7 @@
<script> <script>
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import { order } from '@/api/category/orderingRule'
import { order } from '@/api/system/category/orderingRule'
export default { export default {
data() { data() {

Loading…
Cancel
Save