0) return
+
+ getDicts().then(data => {
+ if (data) {
+ const res = data.filter(item => {
+ item.checked = false
+ return item.dicCode === 'DALM'
+ })
+ this.ctgOptions = res[0]?.childMenus || [] // 增加可选链,避免报错
+ }
+ })
+ },
// 打印条码
onPrint(res) {
this.codeLoading = true
@@ -410,10 +451,11 @@ export default {
// 文件/案卷重置query
resetQuery() {
+ this.ctgValue = ''
if (this.selectedCategory.isType === 5) {
this.queryOption = [
- { value: 'queryTitle', label: '姓名' },
- { value: 'archiveNo', label: '编号' }
+ { value: 'queryTitle', label: '题名' },
+ { value: 'archiveNo', label: '档号' }
// { value: 'responsibleby', label: '责任者' },
// { value: 'docNo', label: '发文字号 ' },
// { value: 'barcode', label: '条形码' },
@@ -422,7 +464,7 @@ export default {
]
} else {
this.queryOption = [
- { value: 'queryTitle', label: '姓名' },
+ { value: 'queryTitle', label: '题名' },
{ value: 'archiveNo', label: '档号' }
// { value: 'archiveCtgNo', label: '实体分类号' },
// { value: 'barcode', label: '条形码' },
@@ -444,17 +486,23 @@ export default {
})
},
// list
+ // list
getTableList() {
// this.query.queryType = null
this.query.queryTitle = ''
this.query.archiveNo = ''
- this.query.archiveCtgNo = ''
+ // 注释/删除:原本清空archiveCtgNo的代码
+ // this.query.archiveCtgNo = ''
this.query.responsibleby = ''
this.query.docNo = ''
this.query.documentNo = ''
this.query.barcode = ''
this.query.folderLocation = ''
this.query.tempNo = ''
+
+ // 新增:将ctgValue赋值给archiveCtgNo
+ this.query.archiveCtgNo = this.ctgValue || ''
+
switch (this.anjuanInputSelect) {
case 'queryTitle': // 题名
this.query.queryTitle = this.anjuanQuery[this.anjuanInputSelect]
@@ -517,7 +565,7 @@ export default {
this.$refs.table.toggleRowSelection(row)
this.selections = this.crud.selections
this.isAnjuan = this.crud.selections.length !== 1
- this.$emit('getJnInAjBtnState', this.isAnjuan)
+ this.$bus.$emit('updateAnjuanState', this.isAnjuan) // 发送事件
this.$emit('getSelections', row, null)
},
// 触发单选
@@ -525,7 +573,7 @@ export default {
this.selections = selection
// 判断案卷内的卷内-新增btn-状态
this.isAnjuan = selection.length !== 1
- this.$emit('getJnInAjBtnState', this.isAnjuan)
+ this.$bus.$emit('updateAnjuanState', this.isAnjuan) // 发送事件
this.$emit('getSelections', row, selection)
},
// 绑定标签
diff --git a/src/views/archivesManage/archivesList/archivesJuannei/index.vue b/src/views/archivesManage/archivesList/archivesJuannei/index.vue
index c5628bc..b30a457 100644
--- a/src/views/archivesManage/archivesList/archivesJuannei/index.vue
+++ b/src/views/archivesManage/archivesList/archivesJuannei/index.vue
@@ -7,7 +7,7 @@
-->
- 新增
+ 新增
修改
@@ -28,6 +28,24 @@
+
+
+
-
+
{{ scope.row.tid ? '已绑': '未绑' }}
-
+ -->
@@ -199,6 +216,7 @@
import { header, form } from '@crud/crud'
import { mapGetters } from 'vuex'
import { archivesCrud } from '../mixins/archives'
+import { getDicts } from '@/api/archivesConfig/dict'
import PreviewForm from '@/views/components/category/PreviewForm'
import ArchivesInfo from '../module/archivesInfo/index'
import BindingTagDlg from '@/views/components/BindingTagDlg'
@@ -250,8 +268,8 @@ export default {
junneiData: [],
juanneiQuery: {},
queryOption: [
- { value: 'queryTitle', label: '姓名' },
- { value: 'archiveNo', label: '编号' }
+ { value: 'queryTitle', label: '题名' },
+ { value: 'archiveNo', label: '档号' }
// { value: 'responsibleby', label: '责任者' },
// { value: 'documentNo', label: '文件编号 ' },
// { value: 'barcode', label: '条形码' },
@@ -270,7 +288,10 @@ export default {
],
codeLoading: false,
printDialogVisible: false, // 打印弹窗显示状态
- printLabelList: [] // 传递给打印组件的标签数据
+ printLabelList: [], // 传递给打印组件的标签数据
+ ctgValue: '',
+ ctgOptions: [],
+ localIsAnjuan: true
}
},
computed: {
@@ -284,7 +305,8 @@ export default {
tableDisplayFields(val) {
this.doLayout()
},
- isAnjuan: function(newValue, oldValue) {
+ isAnjuan(newVal, oldVal) {
+ console.log('卷内组件 isAnjuan 同步更新:', oldVal, '→', newVal)
},
fixedStatusBar: function(newValue, oldValue) {
},
@@ -303,8 +325,36 @@ export default {
this.selections = []
},
mounted() {
+ this.getIntellClassify()
+ this.$bus.$on('updateAnjuanState', (isAnjuan) => {
+ console.log('卷内组件通过事件总线接收:', isAnjuan)
+ this.localIsAnjuan = isAnjuan // 直接更新本地状态,按钮禁用状态会立即变化
+ })
+ },
+ beforeDestroy() {
+ // 销毁事件监听,避免内存泄漏
+ this.$bus.$off('updateAnjuanState')
},
methods: {
+ // 分类下拉框清空事件
+ handleCtgClear() {
+ this.ctgValue = '' // 确保值被清空
+ this.getTableList() // 清空后刷新列表
+ },
+ getIntellClassify() {
+ // 如果已有分类数据,不再重复请求
+ if (this.ctgOptions.length > 0) return
+
+ getDicts().then(data => {
+ if (data) {
+ const res = data.filter(item => {
+ item.checked = false
+ return item.dicCode === 'DALM'
+ })
+ this.ctgOptions = res[0]?.childMenus || [] // 增加可选链,避免报错
+ }
+ })
+ },
// 打印条码
onPrint(res) {
this.codeLoading = true
@@ -382,6 +432,9 @@ export default {
this.query.documentNo = ''
this.query.barcode = ''
this.query.folderLocation = ''
+
+ this.query.archiveCtgNo = this.ctgValue || ''
+
switch (this.juanneiInputSelect) {
case 'queryTitle': // 题名
this.query.queryTitle = this.juanneiQuery[this.juanneiInputSelect]
diff --git a/src/views/archivesManage/archivesList/index.vue b/src/views/archivesManage/archivesList/index.vue
index 67312a5..66a0a93 100644
--- a/src/views/archivesManage/archivesList/index.vue
+++ b/src/views/archivesManage/archivesList/index.vue
@@ -13,7 +13,7 @@
-
+
@@ -170,6 +170,10 @@ export default {
isdel: function(newValue, oldValue) {
},
isRecycle: function(newValue, oldValue) {
+ },
+ isAnjuan(newValue, oldValue) {
+ console.log('父组件 isAnjuan 真实变化:', oldValue, '→', newValue)
+ // 这里能直观看到父组件的 isAnjuan 是不是真的变了
}
},
mounted() {
@@ -322,6 +326,7 @@ export default {
},
// 判断案卷内的卷内-新增btn-状态 中转站
getJnInAjBtnState(data) {
+ console.log('getJnInAjBtnState', data)
this.isAnjuan = data
},
getAjInProjectBtnState(data) {
@@ -790,7 +795,7 @@ export default {
diff --git a/src/views/home.vue b/src/views/home.vue
index ddd14e2..482f654 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -27,7 +27,7 @@
- -
+
+
-
全景图
diff --git a/vue.config.js b/vue.config.js
index 5372b5f..555a9bf 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title // 网址标题
-const port = 8013 // 端口配置
+const port = 7090 // 端口配置
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {
// hash 模式下可使用