|
@@ -11,6 +11,7 @@
|
|
|
<HcTooltip keys="archives_bookmark_btn_add">
|
|
|
<el-button hc-btn type="primary" :loading="saveLoading" @click="addModalClick(false)">保存设置</el-button>
|
|
|
</HcTooltip>
|
|
|
+ <el-button hc-btn type="primary" :loading="refreshLoading" @click="refreshClick(false)">刷新档号</el-button>
|
|
|
</template>
|
|
|
<template #search>
|
|
|
<el-alert :closable="false" title="提示:设置基础信息,系统可统一内置到组卷信息里面去" type="error" />
|
|
@@ -117,7 +118,7 @@
|
|
|
<script setup>
|
|
|
import { onMounted, reactive, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
-import { archiveTreeDetail, archiveTreeUpdate } from '~api/other'
|
|
|
+import { archiveTreeDetail, archiveTreeUpdate, archiveTreeUpdate1 } from '~api/other'
|
|
|
import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
import HcTree from '~src/components/tree/hc-tree.vue'
|
|
|
import tasksApi from '~api/tasks/data'
|
|
@@ -218,6 +219,27 @@ const addModalClick = async (type) => {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+//刷新档号
|
|
|
+const refreshLoading = ref(false)
|
|
|
+const refreshClick = async () => {
|
|
|
+ if (!formInline.value.id) {
|
|
|
+ window.$message?.warning('请先点选左侧要修改信息的树节点')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ refreshLoading.value = true
|
|
|
+
|
|
|
+ const { code, msg } = await archiveTreeUpdate1({
|
|
|
+ id:formInline.value.id,
|
|
|
+ fileNumberPrefix:formInline.value.fileNumberPrefix,
|
|
|
+
|
|
|
+ })
|
|
|
+ //console.log(res);
|
|
|
+ refreshLoading.value = false
|
|
|
+ if (code == 200) {
|
|
|
+ window.$message?.success('修改成功')
|
|
|
+ // window?.location?.reload() //刷新页面
|
|
|
+ }
|
|
|
+}
|
|
|
const addinputItem = () => {
|
|
|
addArray.push({ title: '' })
|
|
|
}
|