|
@@ -61,13 +61,13 @@
|
|
|
<el-alert :closable="false" title="配置流水号生成的规则,是否设置有虚号及位数" type="error" />
|
|
|
<div class="hc-card-header-tree-checkbox">
|
|
|
<div>
|
|
|
- <el-radio-group v-model="indexType">
|
|
|
+ <el-radio-group v-model="pageType">
|
|
|
<el-radio :value="1">有虚号</el-radio>
|
|
|
<el-radio :value="0">无虚号</el-radio>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<div class="mt-4">
|
|
|
- <el-input-number v-model="indexNum" :max="10" :min="0" />
|
|
|
+ <el-input-number v-model="pageLen" :max="10" :min="0" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -96,6 +96,9 @@ const config = ref({})
|
|
|
const dirType = ref(0)//目录类型
|
|
|
const indexType = ref(0)//流水号类型
|
|
|
const indexNum = ref(0)//虚位数
|
|
|
+const pageType = ref(0)//页面流水号
|
|
|
+const pageLen = ref(0)
|
|
|
+
|
|
|
//监听
|
|
|
watch(() => [
|
|
|
useAppState.getCollapse,
|
|
@@ -127,6 +130,9 @@ const getConfigByProjectId = async () => {
|
|
|
dirType.value = res.data['dirType'] || 0//目录类型
|
|
|
indexType.value = res.data['indexType'] || 0//流水号类型
|
|
|
indexNum.value = res.data['indexNum'] || 0//虚位树
|
|
|
+ pageType.value = res.data['pageType'] || 0//页面流水号
|
|
|
+ pageLen.value = res.data['pageLen'] || 0
|
|
|
+
|
|
|
if (config.value.projectType == 1 || config.value.projectType == 2) {
|
|
|
projectTypeList.value = [config.value.projectType]
|
|
|
} else if (config.value.projectType == 3) {
|
|
@@ -158,6 +164,9 @@ const uploadModalClick = async () => {
|
|
|
dirType: dirType.value,
|
|
|
indexType: indexType.value,
|
|
|
indexNum: indexNum.value,
|
|
|
+ pageType: pageType.value,
|
|
|
+ pageLen: pageLen.value,
|
|
|
+
|
|
|
|
|
|
})
|
|
|
|