Browse Source

门类管理-门类字段管理

master
z_yu 3 years ago
parent
commit
c735bd1c65
  1. 2
      src/views/category/fileNoFormat/index.vue
  2. 15
      src/views/components/category/SettingForm.vue
  3. 4
      src/views/system/role/index.vue

2
src/views/category/fileNoFormat/index.vue

@ -109,7 +109,7 @@ export default {
FetchArchivesTypeManage({ categoryId: this.selectedCategory.id, isType: 2 }).then((res) => {
this.table.left.data.splice(0, this.table.left.data.length)
res.forEach((item) => {
if (!item.isDisplayformat) {
if (!item.isDisplayformat && item.isInput && !item.isAutomatic) {
this.table.left.data.push(item)
}
})

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

@ -84,6 +84,8 @@
<script>
import { getDicts } from '@/api/archivesConfig/dict'
import { getNoFormatField } from '@/api/category/fileNoFormat'
export default {
name: 'SettingForm',
components: {},
@ -328,13 +330,24 @@ export default {
}
},
// -
changeAuto() {
changeAuto(value) {
if (this.form.isAutomaticField === 1) {
this.form.isAutomatic = false
this.$message.error('已经为档号组成项,不可设置为自动生成')
} else if (this.form.isInputClass !== 'text') {
this.form.isAutomatic = false
this.$message.error('著录形式必须为文本框才可操作!')
} else if (value) {
console.log(this.form)
getNoFormatField({ categoryId: this.form.categoryId }).then((res) => {
const repeatIndex = res.findIndex((item) => {
return item.dictionaryId === this.form.id
})
if (repeatIndex >= 0) {
this.form.isAutomatic = false
this.$message.error('已经为档号组成项,不能设为自动生成!')
}
})
}
},
// submitForm(formName) {

4
src/views/system/role/index.vue

@ -371,4 +371,8 @@ export default {
border: 0;
padding: 0;
}
::v-deep .el-table__body tr.current-row > td{
color: #fff;
background-color: #13439E;
}
</style>
Loading…
Cancel
Save