|
|
@ -17,6 +17,7 @@ import { |
|
|
FormPageList, |
|
|
FormPageList, |
|
|
FormPageConfig, |
|
|
FormPageConfig, |
|
|
viewPageType, |
|
|
viewPageType, |
|
|
|
|
|
tableButton, |
|
|
} from "@/api/DesignForm/tableButton"; |
|
|
} from "@/api/DesignForm/tableButton"; |
|
|
import { |
|
|
import { |
|
|
inputUnit, |
|
|
inputUnit, |
|
|
@ -56,12 +57,15 @@ import AKSelect from "@/components/DesignForm/public/form/select.vue"; |
|
|
import ContainerPath from "@/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/container.vue"; |
|
|
import ContainerPath from "@/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/container.vue"; |
|
|
import exportPanel from "../exportPanel.vue"; |
|
|
import exportPanel from "../exportPanel.vue"; |
|
|
import importPanel from "../importPanel.vue"; |
|
|
import importPanel from "../importPanel.vue"; |
|
|
|
|
|
import { EpPropMergeType } from "element-plus/es/utils"; |
|
|
|
|
|
import { RendererNode, RendererElement } from "vue"; |
|
|
|
|
|
import { echatsViews } from "@/api/DesignForm/types"; |
|
|
|
|
|
|
|
|
const props = withDefaults( |
|
|
const props = withDefaults( |
|
|
defineProps<{ |
|
|
defineProps<{ |
|
|
data: FormPageList; |
|
|
data: FormPageList; |
|
|
searchData?: attrButton[]; |
|
|
searchData?: attrButton[]; |
|
|
config: FormPageConfig; |
|
|
config?: FormPageConfig|any; |
|
|
formId?: string; |
|
|
formId?: string; |
|
|
beforeRequest?: (params: any, rout: any) => any; |
|
|
beforeRequest?: (params: any, rout: any) => any; |
|
|
afterResponse?: (result: any) => any | string; |
|
|
afterResponse?: (result: any) => any | string; |
|
|
@ -79,7 +83,7 @@ const props = withDefaults( |
|
|
signCode?: string; |
|
|
signCode?: string; |
|
|
pickAppMenu?: any; |
|
|
pickAppMenu?: any; |
|
|
versiontitle?: string; |
|
|
versiontitle?: string; |
|
|
viewPage?: viewPageType; |
|
|
viewPage?: viewPageType|any; |
|
|
formBasicConfig?: any; |
|
|
formBasicConfig?: any; |
|
|
fieldsDetailList?: any; |
|
|
fieldsDetailList?: any; |
|
|
orgAndManTree?: any; |
|
|
orgAndManTree?: any; |
|
|
@ -1512,7 +1516,7 @@ const confirmEvent = (val: any) => { |
|
|
id: [val.masters_key], |
|
|
id: [val.masters_key], |
|
|
isTrue: 2, |
|
|
isTrue: 2, |
|
|
}; |
|
|
}; |
|
|
softDeletion(sendData).then((data) => { |
|
|
softDeletion(sendData).then((data: { mag: EpPropMergeType<(new (...args: any[]) => string|globalThis.VNode<RendererNode, RendererElement, { [key: string]: any; }>)|(() => string|globalThis.VNode<RendererNode, RendererElement, { [key: string]: any; }>)|((new (...args: any[]) => string|globalThis.VNode<RendererNode, RendererElement, { [key: string]: any; }>)|(() => string|globalThis.VNode<RendererNode, RendererElement, { [key: string]: any; }>))[], unknown, unknown>|undefined; }) => { |
|
|
// console.log('cancel!',data) |
|
|
// console.log('cancel!',data) |
|
|
ElNotification({ |
|
|
ElNotification({ |
|
|
title: "系统提示!", |
|
|
title: "系统提示!", |
|
|
@ -1709,10 +1713,10 @@ const tabsView = (val: any, types: number) => { |
|
|
const writeListTitle = (val: any, viewConfig: any) => { |
|
|
const writeListTitle = (val: any, viewConfig: any) => { |
|
|
// console.log("判断是否有标题--1-->",val) |
|
|
// console.log("判断是否有标题--1-->",val) |
|
|
// console.log("判断是否有标题--2-->",viewConfig) |
|
|
// console.log("判断是否有标题--2-->",viewConfig) |
|
|
var titleAry = []; |
|
|
var titleAry: any[] = []; |
|
|
if (viewConfig.form && viewConfig.form.title) { |
|
|
if (viewConfig.form && viewConfig.form.title) { |
|
|
if (viewConfig.form.title.length > 0) { |
|
|
if (viewConfig.form.title.length > 0) { |
|
|
viewConfig.form.title.forEach((item, index) => { |
|
|
viewConfig.form.title.forEach((item: string|number, index: any) => { |
|
|
// console.log("判断是否有标题--"+index+"-->",val[item]) |
|
|
// console.log("判断是否有标题--"+index+"-->",val[item]) |
|
|
if (val[item]) { |
|
|
if (val[item]) { |
|
|
titleAry.push(val[item]); |
|
|
titleAry.push(val[item]); |
|
|
@ -1902,7 +1906,122 @@ const readerColumnSun = (column: any) => { |
|
|
{{ item.label }} |
|
|
{{ item.label }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div></div> |
|
|
<div> |
|
|
|
|
|
<el-button-group class="ml-4"> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="折叠查询表单" |
|
|
|
|
|
placement="bottom" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="config.searchIsShow = !config.searchIsShow" |
|
|
|
|
|
class="fa fa-search" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="viewPage.list.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="列表视图" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-table" |
|
|
|
|
|
:color="viewPage.list.isClick ? '#a0cfff' : ''" |
|
|
|
|
|
@click="tabsView(viewPage.list, 1)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="props.viewPage.card && props.viewPage.card.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="卡片视图" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-id-card-o" |
|
|
|
|
|
:color=" |
|
|
|
|
|
props.viewPage.card && props.viewPage.card.isClick ? '#a0cfff' : '' |
|
|
|
|
|
" |
|
|
|
|
|
@click="tabsView(props.viewPage.card, 6)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="viewPage.date.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="日历视图" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-calendar" |
|
|
|
|
|
:color="viewPage.date.isClick ? '#a0cfff' : ''" |
|
|
|
|
|
@click="tabsView(viewPage.date, 2)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="viewPage.time.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="时间轴" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-clock-o" |
|
|
|
|
|
:color="viewPage.time.isClick ? '#a0cfff' : ''" |
|
|
|
|
|
@click="tabsView(viewPage.time, 3)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="viewPage.gantt.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="甘特图" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-bar-chart" |
|
|
|
|
|
:color="viewPage.gantt.isClick ? '#a0cfff' : ''" |
|
|
|
|
|
@click="tabsView(viewPage.gantt, 4)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="viewPage.map.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="地图视图" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-map-signs" |
|
|
|
|
|
:color="viewPage.map.isClick ? '#a0cfff' : ''" |
|
|
|
|
|
@click="tabsView(viewPage.map, 5)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
<el-tooltip |
|
|
|
|
|
v-if="viewPage.chart.status" |
|
|
|
|
|
class="box-item" |
|
|
|
|
|
effect="dark" |
|
|
|
|
|
content="BI报表" |
|
|
|
|
|
placement="top" |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="small" |
|
|
|
|
|
class="fa fa-line-chart" |
|
|
|
|
|
:color="viewPage.chart.isClick ? '#a0cfff' : ''" |
|
|
|
|
|
@click="tabsView(viewPage.chart, 7)" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-tooltip> |
|
|
|
|
|
</el-button-group> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
|