修改完善指标加工信息

main
于阔 9 months ago
parent 16c3aef2a9
commit 3de3bb49a5

@ -143,12 +143,12 @@ defineExpose({
<ElRow> <ElRow>
<ElCol :span="12"> <ElCol :span="12">
<ElFormItem label="数据源" style="margin-left:20px;"> <ElFormItem label="数据源" style="margin-left:20px;">
<ElSelect v-model="sqlInfo.dataSourceId" placeholder="请选择数据源"> <ElSelect v-model="sqlInfo.dataSourceId" placeholder="请选择数据源" style="width:100%;">
<el-option :label="item.dsname" :value="item.dscode" :key="item.dscode" v-for="item in sqlInfo.dataSourceList" /> <el-option :label="item.dsname" :value="item.dscode" :key="item.dscode" v-for="item in sqlInfo.dataSourceList" />
</ElSelect> </ElSelect>
</ElFormItem> </ElFormItem>
</ElCol> </ElCol>
<ElButton type="text" @click="formatterSql" style="margin-left:20px;"> 格式化SQL </ElButton> <!-- <ElButton type="text" @click="formatterSql" style="margin-left:20px;"> 格式化SQL </ElButton> -->
</ElRow> </ElRow>
<ElRow> <ElRow>
<ElCol :span="24"> <ElCol :span="24">

@ -56,7 +56,7 @@
</script> </script>
<template> <template>
<ContentWrap v-loading="loading"> <ContentWrap v-loading="loading">
<ElTabs tab-position="left" style="height: 100%;"> <ElTabs tab-position="left" style="height:400px;overflow: hidden;">
<ElTabPane label="SQL"> <ElTabPane label="SQL">
<ProcedureConfig ref="procedureConfig" rule-type="SqlRule" :rule-info="props.ruleInfo" /> <ProcedureConfig ref="procedureConfig" rule-type="SqlRule" :rule-info="props.ruleInfo" />
</ElTabPane> </ElTabPane>

@ -146,7 +146,7 @@ defineExpose({
</template> </template>
<style scoped> <style scoped>
.sqlRuleForm{ .sqlRuleForm{
width:800px; width:600px;
margin: 20px auto; margin: 20px auto;
} }
.operateSQLR{ .operateSQLR{

@ -186,7 +186,9 @@ const filterTableList = ()=>{
console.log(filterList); console.log(filterList);
ColumnStatus.value = false; ColumnStatus.value = false;
} }
const closeAside = ()=>{
ColumnStatus.value = false;
}
// //
const submit = ()=>{ const submit = ()=>{
return {ruleJson:{ return {ruleJson:{
@ -200,13 +202,8 @@ defineExpose({
</script> </script>
<template> <!--
<ElContainer> <ElInput
<ElContainer>
<ElHeader>
<ElButton type="success" @click="handleAddParams"></ElButton>
<ElButton type="danger" @click="deleteParamsList" :disabled="idsList.length==0">批量删除</ElButton>
<ElInput
v-model="searchParam.searchText" v-model="searchParam.searchText"
placeholder="按参数名称或注释搜索" placeholder="按参数名称或注释搜索"
clearable clearable
@ -220,6 +217,13 @@ defineExpose({
</el-select> </el-select>
</template> </template>
</ElInput> </ElInput>
-->
<template>
<ElContainer class="setParamsContainer">
<ElContainer>
<ElHeader style="height:40px;">
<ElButton type="success" @click="handleAddParams"></ElButton>
<ElButton type="danger" @click="deleteParamsList"></ElButton>
</ElHeader> </ElHeader>
<ElMain> <ElMain>
<!-- 参数配置字段信息的表格 --> <!-- 参数配置字段信息的表格 -->
@ -229,8 +233,6 @@ defineExpose({
:data="filterList" :data="filterList"
@selection-change="onSelectionChange" @selection-change="onSelectionChange"
@row-click="handleRowClick" @row-click="handleRowClick"
style="width:100%;"
height="calc(100% - 50px)"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
> >
<ElTableColumn fixed type="selection" width="40" /> <ElTableColumn fixed type="selection" width="40" />
@ -247,11 +249,33 @@ defineExpose({
</ElTable> </ElTable>
</ElMain> </ElMain>
</ElContainer> </ElContainer>
<ElAside width="250px" style="border-left:1px solid #ddd;height:calc(100vh - 70px);"> <ElAside class="setParamsAside" v-show="ColumnStatus">
<Form @register="formRegister" :schema="formSchema" labelPosition="top" v-show="ColumnStatus" /> <div class="faClose cursor-pointer" @click="closeAside">
<i class="fa fa-close"></i>
</div>
<Form @register="formRegister" labelPosition="top" :schema="formSchema" />
</ElAside> </ElAside>
</ElContainer> </ElContainer>
</template> </template>
<style scoped> <style scoped>
.setParamsContainer{
position:relative;
height:400px;
}
.setParamsAside{
width:200px;
height:400px;
position:absolute;
right:0;
top:0;
background-color: #fff;
z-index:10000;
border-left:1px solid #ddd;
}
.faClose{
position:absolute;
right:0px;
top:0px;
z-index:10001;
}
</style> </style>

@ -355,10 +355,11 @@ const exportExcel = async () => {
<ElButton @click="dialogVisible = false">{{ t('dialogDemo.close') }}</ElButton> <ElButton @click="dialogVisible = false">{{ t('dialogDemo.close') }}</ElButton>
</template> </template>
</Dialog> </Dialog>
<Dialog v-model="RuleConfigInfo.dialogVisible" :title="RuleConfigInfo.dialogTitle" :ISFullScreen="true" style="overflow: hidden;"> <Dialog v-model="RuleConfigInfo.dialogVisible" :title="RuleConfigInfo.dialogTitle" style="overflow: hidden;min-width:800px;">
<RepSetRuleWrite <RepSetRuleWrite
:current-row="RuleConfigInfo.currentRow" :current-row="RuleConfigInfo.currentRow"
:action-type="RuleConfigInfo.actionType" :action-type="RuleConfigInfo.actionType"
:rule-type="RuleConfigInfo.RuleType" /> :rule-type="RuleConfigInfo.RuleType"
@close-dialog="RuleConfigInfo.dialogVisible=false;" />
</Dialog> </Dialog>
</template> </template>

@ -336,8 +336,8 @@ const exportExcel = async () => {
</template> </template>
</Table> </Table>
</ContentWrap> </ContentWrap>
<!-- :ISFullScreen="true" -->
<Dialog v-model="dialogVisible" :title="dialogTitle" :ISFullScreen="true" style="overflow: hidden;"> <Dialog v-model="dialogVisible" :title="dialogTitle" style="overflow: hidden;min-width:800px;">
<Write <Write
ref="writeRef" ref="writeRef"
:current-row="currentRow" :current-row="currentRow"

Loading…
Cancel
Save