update: 分类分级
Showing
3 changed files
with
19 additions
and
14 deletions
| ... | @@ -755,8 +755,8 @@ export const exportCgDir = () => request({ | ... | @@ -755,8 +755,8 @@ export const exportCgDir = () => request({ |
| 755 | * @param {no params} | 755 | * @param {no params} |
| 756 | * @path /db-dir/table/export | 756 | * @path /db-dir/table/export |
| 757 | */ | 757 | */ |
| 758 | export const exportDbDirTable = () => request({ | 758 | export const exportDbDirTable = (params) => request({ |
| 759 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/db-dir/table/export`, | 759 | url: `${import.meta.env.VITE_APP_CHECK_BASEURL}/db-dir/table/export?execGuid=${params.execGuid}`, |
| 760 | method: 'post', | 760 | method: 'post', |
| 761 | }) | 761 | }) |
| 762 | 762 | ... | ... |
| ... | @@ -331,7 +331,7 @@ const tableCheckboxSelectChange = (select, row) => { | ... | @@ -331,7 +331,7 @@ const tableCheckboxSelectChange = (select, row) => { |
| 331 | let rulesGuid: any = []; | 331 | let rulesGuid: any = []; |
| 332 | select.forEach((item: any) => { | 332 | select.forEach((item: any) => { |
| 333 | rulesName.push(item.fieldName); | 333 | rulesName.push(item.fieldName); |
| 334 | rulesGuid.push(item.guid); | 334 | rulesGuid.push(item.fieldGuid); |
| 335 | }); | 335 | }); |
| 336 | selectedRulesData.value = { | 336 | selectedRulesData.value = { |
| 337 | rulesName: rulesName.join('、'), | 337 | rulesName: rulesName.join('、'), |
| ... | @@ -344,7 +344,7 @@ const tableCheckboxAllSelectChange = (select) => { | ... | @@ -344,7 +344,7 @@ const tableCheckboxAllSelectChange = (select) => { |
| 344 | let rulesGuid: any = []; | 344 | let rulesGuid: any = []; |
| 345 | select.forEach((item: any) => { | 345 | select.forEach((item: any) => { |
| 346 | rulesName.push(item.fieldName); | 346 | rulesName.push(item.fieldName); |
| 347 | rulesGuid.push(item.guid); | 347 | rulesGuid.push(item.fieldGuid); |
| 348 | }); | 348 | }); |
| 349 | selectedRulesData.value = { | 349 | selectedRulesData.value = { |
| 350 | rulesName: rulesName.join('、'), | 350 | rulesName: rulesName.join('、'), |
| ... | @@ -1007,7 +1007,9 @@ const btnClick = async () => { | ... | @@ -1007,7 +1007,9 @@ const btnClick = async () => { |
| 1007 | }; | 1007 | }; |
| 1008 | // 数据库导出 | 1008 | // 数据库导出 |
| 1009 | const exportDB = async () => { | 1009 | const exportDB = async () => { |
| 1010 | exportDbDirTable().then((res: any) => { | 1010 | exportDbDirTable({ |
| 1011 | execGuid: execGuidInfo.value.execGuid, | ||
| 1012 | }).then((res: any) => { | ||
| 1011 | download(res, '数据库目录数据.xlsx', 'excel') | 1013 | download(res, '数据库目录数据.xlsx', 'excel') |
| 1012 | }); | 1014 | }); |
| 1013 | } | 1015 | } | ... | ... |
| ... | @@ -11,7 +11,7 @@ import { CirclePlus, Delete, Warning } from "@element-plus/icons-vue"; | ... | @@ -11,7 +11,7 @@ import { CirclePlus, Delete, Warning } from "@element-plus/icons-vue"; |
| 11 | 11 | ||
| 12 | const { proxy } = getCurrentInstance() as any; | 12 | const { proxy } = getCurrentInstance() as any; |
| 13 | const dialogLabelFormRef = ref(); | 13 | const dialogLabelFormRef = ref(); |
| 14 | 14 | const isAddDisabled = ref(true); | |
| 15 | // 原始数据存储 | 15 | // 原始数据存储 |
| 16 | const classGradeTreeData: any = ref([]); | 16 | const classGradeTreeData: any = ref([]); |
| 17 | const expandedKey: any = ref([]) | 17 | const expandedKey: any = ref([]) |
| ... | @@ -41,6 +41,7 @@ const getClassifyGradeTree = async () => { | ... | @@ -41,6 +41,7 @@ const getClassifyGradeTree = async () => { |
| 41 | classifyGuid.value = classGradeTreeData.value[0].guid; | 41 | classifyGuid.value = classGradeTreeData.value[0].guid; |
| 42 | newCreateGradeFormItems.value[1].options = transformDataForTree(transformedData) | 42 | newCreateGradeFormItems.value[1].options = transformDataForTree(transformedData) |
| 43 | treeInfo.value.loading = false; | 43 | treeInfo.value.loading = false; |
| 44 | isAddDisabled.value = false; | ||
| 44 | } else { | 45 | } else { |
| 45 | proxy.$ElMessage.error(res.msg); | 46 | proxy.$ElMessage.error(res.msg); |
| 46 | } | 47 | } |
| ... | @@ -230,12 +231,12 @@ const tableInfo = ref({ | ... | @@ -230,12 +231,12 @@ const tableInfo = ref({ |
| 230 | return tempInfo.join('/') | 231 | return tempInfo.join('/') |
| 231 | }, | 232 | }, |
| 232 | }, | 233 | }, |
| 233 | { label: "分级", field: "gradeDetailName", width: 80 }, | 234 | { label: "分级", field: "gradeDetailName", width: 60 }, |
| 234 | { | 235 | { |
| 235 | label: '状态', field: 'bizState', type: 'switch', activeText: '启用', inactiveText: '停用', activeValue: 'Y', inactiveValue: 'N', switchWidth: 56, width: 100, align: 'center' | 236 | label: '状态', field: 'bizState', type: 'switch', activeText: '启用', inactiveText: '停用', activeValue: 'Y', inactiveValue: 'N', switchWidth: 56, width: 100, align: 'center' |
| 236 | }, | 237 | }, |
| 237 | { label: "修改人", field: "updateUserName", width: 140 }, | 238 | { label: "修改人", field: "updateUserName", width: 80 }, |
| 238 | { label: "更新时间", field: "updateTime", width: 180 }, | 239 | { label: "更新时间", field: "updateTime", width: 160 }, |
| 239 | ], | 240 | ], |
| 240 | data: tableDataList.value, | 241 | data: tableDataList.value, |
| 241 | page: { | 242 | page: { |
| ... | @@ -818,7 +819,7 @@ const matchEnValue = ref({ | ... | @@ -818,7 +819,7 @@ const matchEnValue = ref({ |
| 818 | @select-change="selectChange" /> | 819 | @select-change="selectChange" /> |
| 819 | </div> | 820 | </div> |
| 820 | <div> | 821 | <div> |
| 821 | <el-button type="primary" class="v-add" @click="addNewLabel">新增</el-button> | 822 | <el-button type="primary" class="v-add" @click="addNewLabel" :disabled="isAddDisabled">新增</el-button> |
| 822 | <!-- <el-button class="v-import">导入</el-button> | 823 | <!-- <el-button class="v-import">导入</el-button> |
| 823 | <el-button>导出</el-button> --> | 824 | <el-button>导出</el-button> --> |
| 824 | </div> | 825 | </div> |
| ... | @@ -838,14 +839,16 @@ const matchEnValue = ref({ | ... | @@ -838,14 +839,16 @@ const matchEnValue = ref({ |
| 838 | <Warning /> | 839 | <Warning /> |
| 839 | </el-icon> | 840 | </el-icon> |
| 840 | <span class="tip"> | 841 | <span class="tip"> |
| 841 | 精确匹配使用中文;分隔每个规则 | 842 | 精确匹配使用英文","分隔每个规则 |
| 842 | </span> | 843 | </span> |
| 843 | </div> | 844 | </div> |
| 844 | <div class="v-match"> | 845 | <div class="v-match"> |
| 845 | <el-input v-model="matchChValue.value" :disabled="matchChValue.disabled" maxlength="200" | 846 | <el-input v-model="matchChValue.value" :disabled="matchChValue.disabled" maxlength="200" |
| 846 | style="width: 272px;height:94px;" show-word-limit type="textarea" class="no-resize" /> | 847 | style="width: 272px;height:94px;" show-word-limit type="textarea" class="no-resize" |
| 848 | placeholder="请输入字段中文" /> | ||
| 847 | <el-input v-model="matchEnValue.value" :disabled="matchEnValue.disabled" maxlength="200" | 849 | <el-input v-model="matchEnValue.value" :disabled="matchEnValue.disabled" maxlength="200" |
| 848 | style="width: 272px;height:94px;" show-word-limit type="textarea" class="no-resize" /> | 850 | style="width: 272px;height:94px;" show-word-limit type="textarea" class="no-resize" |
| 851 | placeholder="请输入字段英文" /> | ||
| 849 | </div> | 852 | </div> |
| 850 | </div> | 853 | </div> |
| 851 | <div class="dim-label" style="margin-top: 16px;"> | 854 | <div class="dim-label" style="margin-top: 16px;"> |
| ... | @@ -861,7 +864,7 @@ const matchEnValue = ref({ | ... | @@ -861,7 +864,7 @@ const matchEnValue = ref({ |
| 861 | <div v-for="(row, index) in formRows" :key="index" class="match-content-wrapper"> | 864 | <div v-for="(row, index) in formRows" :key="index" class="match-content-wrapper"> |
| 862 | <div class="match-content" @mouseenter="handleMouseEnter(index)" @mouseleave="handleMouseLeave()"> | 865 | <div class="match-content" @mouseenter="handleMouseEnter(index)" @mouseleave="handleMouseLeave()"> |
| 863 | <!-- 位置映射下拉框 --> | 866 | <!-- 位置映射下拉框 --> |
| 864 | <el-select v-model="row.name" placeholder="请选择中文名/英文名" :disabled=row.disabled class="v-select"> | 867 | <el-select v-model="row.name" placeholder="请选择" :disabled=row.disabled class="v-select"> |
| 865 | <el-option v-for="option in languageOptions" :key="option.value" :label="option.label" | 868 | <el-option v-for="option in languageOptions" :key="option.value" :label="option.label" |
| 866 | :value="option.value" /> | 869 | :value="option.value" /> |
| 867 | </el-select> | 870 | </el-select> | ... | ... |
-
Please register or sign in to post a comment