ffe58a1e by xukangle

fix

1 parent 56913a67
...@@ -418,8 +418,8 @@ const downloadTemplate = async (url) => { ...@@ -418,8 +418,8 @@ const downloadTemplate = async (url) => {
418 } 418 }
419 // 解码文件名 419 // 解码文件名
420 name = decodeURIComponent(name); 420 name = decodeURIComponent(name);
421 name = name.replace(/_\d{8}\d{9}_\d+/g, '');
421 var fileSuffix = name ? name.substring(name.lastIndexOf('.') + 1) : ''; 422 var fileSuffix = name ? name.substring(name.lastIndexOf('.') + 1) : '';
422 console.log(name, res, fileSuffix, '-------------------name');
423 download(res, name, fileSuffix); 423 download(res, name, fileSuffix);
424 } else { 424 } else {
425 res?.msg && ElMessage.error(res?.msg); 425 res?.msg && ElMessage.error(res?.msg);
...@@ -617,7 +617,7 @@ const panelChange = (scope, row) => { ...@@ -617,7 +617,7 @@ const panelChange = (scope, row) => {
617 required_mark: item.required, 617 required_mark: item.required,
618 }">{{ 618 }">{{
619 item.label 619 item.label
620 }}</span> 620 }}</span>
621 621
622 </span> 622 </span>
623 <div class="header_title_tooltip" style="width: auto" v-if="item.tooltip"> 623 <div class="header_title_tooltip" style="width: auto" v-if="item.tooltip">
...@@ -710,7 +710,7 @@ const panelChange = (scope, row) => { ...@@ -710,7 +710,7 @@ const panelChange = (scope, row) => {
710 <div class="item_panel" :class="{ is_block: panel.block }" v-for="panel in item.children"> 710 <div class="item_panel" :class="{ is_block: panel.block }" v-for="panel in item.children">
711 <label :class="{ required_mark: panel.required }">{{ 711 <label :class="{ required_mark: panel.required }">{{
712 panel.label 712 panel.label
713 }}</label> 713 }}</label>
714 <el-checkbox v-if="panel.type == 'checkbox'" v-model="formInline[panel.field]" 714 <el-checkbox v-if="panel.type == 'checkbox'" v-model="formInline[panel.field]"
715 :disabled="panel.disabled || readonly" :true-label="panel.trueValue ?? true" 715 :disabled="panel.disabled || readonly" :true-label="panel.trueValue ?? true"
716 :false-label="panel.falseValue ?? false">{{ panel.placeholder }}</el-checkbox> 716 :false-label="panel.falseValue ?? false">{{ panel.placeholder }}</el-checkbox>
...@@ -793,7 +793,7 @@ const panelChange = (scope, row) => { ...@@ -793,7 +793,7 @@ const panelChange = (scope, row) => {
793 <span class="item-label" slot="label"> 793 <span class="item-label" slot="label">
794 <span v-if="child.label" :class="{ required_mark: child.required }">{{ 794 <span v-if="child.label" :class="{ required_mark: child.required }">{{
795 child.label 795 child.label
796 }}</span> 796 }}</span>
797 </span> 797 </span>
798 <el-select v-if="child.type == 'select'" v-model="formInline[child.field]" 798 <el-select v-if="child.type == 'select'" v-model="formInline[child.field]"
799 :placeholder="child.placeholder" :disabled="child.disabled || readonly" :filterable="child.filterable" 799 :placeholder="child.placeholder" :disabled="child.disabled || readonly" :filterable="child.filterable"
...@@ -852,7 +852,7 @@ const panelChange = (scope, row) => { ...@@ -852,7 +852,7 @@ const panelChange = (scope, row) => {
852 <span class="item-label" slot="label"> 852 <span class="item-label" slot="label">
853 <span :class="{ required_mark: child.required }">{{ 853 <span :class="{ required_mark: child.required }">{{
854 child.label 854 child.label
855 }}</span> 855 }}</span>
856 </span> 856 </span>
857 <el-cascader v-if="child.type == 'cascader'" v-model="formInline[child.field]" :props="child.props" 857 <el-cascader v-if="child.type == 'cascader'" v-model="formInline[child.field]" :props="child.props"
858 :options="child.options" :show-all-levels="child.showAllLevels ?? true" 858 :options="child.options" :show-all-levels="child.showAllLevels ?? true"
...@@ -895,7 +895,7 @@ const panelChange = (scope, row) => { ...@@ -895,7 +895,7 @@ const panelChange = (scope, row) => {
895 <div class="item_panel" v-for="child in item.children"> 895 <div class="item_panel" v-for="child in item.children">
896 <label :class="{ required_mark: child.required }">{{ 896 <label :class="{ required_mark: child.required }">{{
897 child.label 897 child.label
898 }}</label> 898 }}</label>
899 <div class="tool_item"> 899 <div class="tool_item">
900 <el-select v-model="formInline[child.field]" :class="{ is_block: child.block }" 900 <el-select v-model="formInline[child.field]" :class="{ is_block: child.block }"
901 :placeholder="child.placeholder" :multiple="child.multiple" :collapse-tags="child.collapse" 901 :placeholder="child.placeholder" :multiple="child.multiple" :collapse-tags="child.collapse"
...@@ -970,7 +970,7 @@ const panelChange = (scope, row) => { ...@@ -970,7 +970,7 @@ const panelChange = (scope, row) => {
970 <span class="item-label" slot="label"> 970 <span class="item-label" slot="label">
971 <span :class="{ required_mark: child.required }">{{ 971 <span :class="{ required_mark: child.required }">{{
972 child.label 972 child.label
973 }}</span> 973 }}</span>
974 </span> 974 </span>
975 <el-input :class="[child.col, { is_block: child.block }]" v-model="formInline[child.field]" 975 <el-input :class="[child.col, { is_block: child.block }]" v-model="formInline[child.field]"
976 :rows="child.rows ?? 4" type="textarea" :placeholder="child.placeholder" 976 :rows="child.rows ?? 4" type="textarea" :placeholder="child.placeholder"
...@@ -1026,7 +1026,7 @@ const panelChange = (scope, row) => { ...@@ -1026,7 +1026,7 @@ const panelChange = (scope, row) => {
1026 <span class="item-label" slot="label"> 1026 <span class="item-label" slot="label">
1027 <span :class="{ required_mark: child.required }">{{ 1027 <span :class="{ required_mark: child.required }">{{
1028 child.label 1028 child.label
1029 }}</span> 1029 }}</span>
1030 </span> 1030 </span>
1031 <div class="input_group" :class="[child.col]" v-if="child.type == 'input-group'"> 1031 <div class="input_group" :class="[child.col]" v-if="child.type == 'input-group'">
1032 <template v-for="(group, c) in child.children"> 1032 <template v-for="(group, c) in child.children">
...@@ -1035,7 +1035,7 @@ const panelChange = (scope, row) => { ...@@ -1035,7 +1035,7 @@ const panelChange = (scope, row) => {
1035 <span class="item-label" slot="label"> 1035 <span class="item-label" slot="label">
1036 <span :class="{ required_mark: group.required }">{{ 1036 <span :class="{ required_mark: group.required }">{{
1037 group.label 1037 group.label
1038 }}</span> 1038 }}</span>
1039 </span> 1039 </span>
1040 <el-select v-if="group.type == 'select'" v-model="formInline[group.field]" 1040 <el-select v-if="group.type == 'select'" v-model="formInline[group.field]"
1041 :placeholder="group.placeholder" :clearable="group.clearable" 1041 :placeholder="group.placeholder" :clearable="group.clearable"
...@@ -1176,7 +1176,7 @@ const panelChange = (scope, row) => { ...@@ -1176,7 +1176,7 @@ const panelChange = (scope, row) => {
1176 <span class="item-label" slot="label"> 1176 <span class="item-label" slot="label">
1177 <span :class="{ required_mark: child.required }">{{ 1177 <span :class="{ required_mark: child.required }">{{
1178 child.label 1178 child.label
1179 }}</span> 1179 }}</span>
1180 </span> 1180 </span>
1181 <el-select v-if="child.type == 'select'" v-model="formInline[child.field]" 1181 <el-select v-if="child.type == 'select'" v-model="formInline[child.field]"
1182 :placeholder="child.placeholder" :clearable="child.clearable" :disabled="child.disabled || readonly" 1182 :placeholder="child.placeholder" :clearable="child.clearable" :disabled="child.disabled || readonly"
...@@ -1227,7 +1227,7 @@ const panelChange = (scope, row) => { ...@@ -1227,7 +1227,7 @@ const panelChange = (scope, row) => {
1227 <span class="item-label" slot="label" :class="[child.col]"> 1227 <span class="item-label" slot="label" :class="[child.col]">
1228 <span :class="{ required_mark: child.required }">{{ 1228 <span :class="{ required_mark: child.required }">{{
1229 child.label 1229 child.label
1230 }}</span> 1230 }}</span>
1231 </span> 1231 </span>
1232 <div class="input_popover_panel" v-if="child.type == 'input-popover-panel'"> 1232 <div class="input_popover_panel" v-if="child.type == 'input-popover-panel'">
1233 <el-popover placement="bottom-start" width="100%" trigger="click" :teleported="false"> 1233 <el-popover placement="bottom-start" width="100%" trigger="click" :teleported="false">
...@@ -1281,7 +1281,7 @@ const panelChange = (scope, row) => { ...@@ -1281,7 +1281,7 @@ const panelChange = (scope, row) => {
1281 <span class="item-label" slot="label"> 1281 <span class="item-label" slot="label">
1282 <span :class="{ required_mark: child.required }">{{ 1282 <span :class="{ required_mark: child.required }">{{
1283 child.label 1283 child.label
1284 }}</span> 1284 }}</span>
1285 </span> 1285 </span>
1286 <template v-if="child.type == 'upload-image'"> 1286 <template v-if="child.type == 'upload-image'">
1287 <el-upload :class="[child.col, 'avatar-uploader', { is_block: child.block }]" action="#" 1287 <el-upload :class="[child.col, 'avatar-uploader', { is_block: child.block }]" action="#"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!