|
@@ -14,13 +14,22 @@
|
|
|
>
|
|
|
<div class="dialog-container">
|
|
|
<div class="select-box">
|
|
|
- <el-cascader></el-cascader>
|
|
|
+ <el-cascader v-model="searchClassify"
|
|
|
+ :options="classifyList"
|
|
|
+ :props="{
|
|
|
+ children:'Children',
|
|
|
+ label:'ClassifyName',
|
|
|
+ value:'BaseFromMysteelChemicalClassifyId',
|
|
|
+ multiple:true
|
|
|
+ }"
|
|
|
+ @change="getEdbList"
|
|
|
+ ></el-cascader>
|
|
|
<el-input style="width:240px;"></el-input>
|
|
|
</div>
|
|
|
<div class="select-table">
|
|
|
<el-table :data="edbList" border>
|
|
|
<el-table-column type="selection" width="55" align="center"></el-table-column>
|
|
|
- <el-table-column label="指标ID" align="center" width="120"></el-table-column>
|
|
|
+ <el-table-column label="指标ID" align="center" width="120" prop="edbId"></el-table-column>
|
|
|
<el-table-column label="指标名称" align="center">
|
|
|
<template slot-scope="{row}">
|
|
|
<el-input v-model="row.edbName"></el-input>
|
|
@@ -33,7 +42,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="单位" align="center" width="140">
|
|
|
<template slot-scope="{row}">
|
|
|
- <el-input v-model="row.edbName"></el-input>
|
|
|
+ <el-input v-model="row.unit"></el-input>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<!-- 操作 -->
|
|
@@ -50,10 +59,15 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="footer-container" slot="footer">
|
|
|
+ <el-button @click="$emit('close')">取消</el-button>
|
|
|
+ <el-button @click="handleAddEdb">加入指标库</el-button>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { steelInterface } from "@/api/modules/thirdBaseApi";
|
|
|
export default {
|
|
|
props:{
|
|
|
isOpenDialog:{
|
|
@@ -94,9 +108,31 @@ export default {
|
|
|
this.edbList = []
|
|
|
this.selectEdbList = []
|
|
|
},
|
|
|
+ //获取钢联化工数据库目录
|
|
|
getClassifyList(){
|
|
|
- //获取钢联化工数据库目录
|
|
|
+ steelInterface.classifyList().then((res) => {
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ this.classifyList = res.Data||[]
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取对应目录下的钢联化工指标
|
|
|
+ getEdbList(){
|
|
|
+ this.edbList = [{
|
|
|
+ edbId:'123456',
|
|
|
+ edbName:'指标名称指标名称',
|
|
|
+ frequency:'日度',
|
|
|
+ unit:'吨',
|
|
|
+ classify:''
|
|
|
+ }]
|
|
|
},
|
|
|
+ handleAddEdb(){
|
|
|
+ //校验所选指标
|
|
|
+ },
|
|
|
+ batchAddEdb(){
|
|
|
+ //获取添加结果
|
|
|
+ //有已存在的指标 弹窗提示
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|