diff --git a/src/api/system/archivesClass.js b/src/api/system/archivesClass.js index 840b030..5ab300c 100644 --- a/src/api/system/archivesClass.js +++ b/src/api/system/archivesClass.js @@ -9,4 +9,28 @@ export function FetchInitArchivesClass(params) { }) } -export default { FetchInitArchivesClass } +export function add(data) { + return request({ + url: 'api/archivesClass/editArchivesClass', + method: 'post', + data + }) +} + +export function edit(data) { + return request({ + url: 'api/archivesClass/editArchivesClass', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: 'api/archivesClass/delArchivesClass', + method: 'post', + data + }) +} + +export default { add, edit, del, FetchInitArchivesClass } diff --git a/src/api/system/category/fileNoFormat.js b/src/api/system/category/fileNoFormat.js index 34c5d7a..a1fcdb1 100644 --- a/src/api/system/category/fileNoFormat.js +++ b/src/api/system/category/fileNoFormat.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getNoFormatField(params) { return request({ - url: 'api/category/list', + url: 'api/category/getAllSetting', method: 'get', params }) @@ -10,7 +10,7 @@ export function getNoFormatField(params) { export function edit(data) { return request({ - url: 'api/dic-setting/update', + url: 'api/category/updateSetting', method: 'put', data }) @@ -26,7 +26,7 @@ export function add(data) { export function order(data) { return request({ - url: 'api/dic-setting/squence', + url: 'api/category/squenceSetting', method: 'put', data }) @@ -34,7 +34,7 @@ export function order(data) { export function del(data) { return request({ - url: 'api/dic-setting/delete', + url: 'api/category/deleteSetting', method: 'delete', data }) diff --git a/src/views/components/category/SettingForm.vue b/src/views/components/category/SettingForm.vue index 29ff90c..7c7f88a 100644 --- a/src/views/components/category/SettingForm.vue +++ b/src/views/components/category/SettingForm.vue @@ -31,14 +31,14 @@ - - + +
- +
@@ -143,7 +143,7 @@ export default { } // 对应字典必填判断 var checkDictionaryConfigId = (rule, value, callback) => { - if ((this.form.isInputClass === 'select' || this.form.isInputClass === 'popover') && !this.form.dictionaryConfigId.id && this.form.mateData === 3) { + if ((this.form.isInputClass === 'select' || this.form.isInputClass === 'popover') && !this.form.dictionaryId.id && this.form.mateData === 3) { callback(new Error('对应字典项不可为空!')) } else { callback() @@ -177,7 +177,7 @@ export default { editLength: [ { validator: checkEditLength, trigger: 'blur' } ], - dictionaryConfigId: [ + dictionaryId: [ { validator: checkDictionaryConfigId, trigger: 'blur' } ], fillingDigit: [ @@ -191,7 +191,7 @@ export default { } return { form: { - dictionaryConfigId: { + dictionaryId: { id: null } }, @@ -248,7 +248,7 @@ export default { if (this.form.mateData !== 3) { this.dictionaryData = [] - this.form.dictionaryConfigId.id = null + this.form.dictionaryId.id = null } // 字段类型 @@ -284,7 +284,7 @@ export default { this.getDictrionaryList() } else { this.dictionaryData = [] - this.form.dictionaryConfigId.id = null + this.form.dictionaryId.id = null } } }, @@ -298,7 +298,7 @@ export default { // this.dictionaryId = value // }, changeDictType(value) { - this.form.dictionaryConfigId.id = null + this.form.dictionaryId.id = null }, // 著录形式为'下拉框'、'弹出框'的,对应字典不为空,反之为空 selectInputClass(value) { @@ -307,7 +307,7 @@ export default { } else { this.dictionaryData = [] this.form.mateData = null - this.form.dictionaryConfigId.id = null + this.form.dictionaryId.id = null } // 字段类型为数字型,且默认著录类型为数字框不可更改 if (this.form.isDataType === 2 && this.form.isInputClass !== 'number') { @@ -382,7 +382,7 @@ export default { // submitForm(formName) { // // 对应字典必填判断 // if (this.form.isInputClass === 'select' || this.form.isInputClass === 'popover') { - // if (!this.form.dictionaryConfigId.id) { + // if (!this.form.dictionaryId.id ) { // this.$message.error('对应字典项不可为空!') // return // } diff --git a/src/views/system/archivesCategory/fieldManage/index.vue b/src/views/system/archivesCategory/fieldManage/index.vue index 2a881d7..3282c9f 100644 --- a/src/views/system/archivesCategory/fieldManage/index.vue +++ b/src/views/system/archivesCategory/fieldManage/index.vue @@ -31,7 +31,7 @@ 文本域 - +