|
@@ -203,15 +203,10 @@
|
|
|
</el-form-item>
|
|
|
</el-col> -->
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item
|
|
|
- label="计算数据源"
|
|
|
- size="default"
|
|
|
- prop="dataSourceName"
|
|
|
- :rules="formRules.isNotNull"
|
|
|
- >
|
|
|
+ <el-form-item label="计算数据源" size="default">
|
|
|
<el-select
|
|
|
style="width: 100%"
|
|
|
- v-model="tableForm.dataSourceName"
|
|
|
+ v-model="tableForm.dataSourceID"
|
|
|
class="input-shadow"
|
|
|
filterable
|
|
|
default-first-option
|
|
@@ -219,7 +214,7 @@
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in tableOptionser"
|
|
|
+ v-for="item in tableOption"
|
|
|
:key="item.v ? item.v : item.planDepartureApt"
|
|
|
:label="item.k ? item.k : item.planDepartureApt"
|
|
|
:value="item.v ? item.v : item.planDepartureApt"
|
|
@@ -265,6 +260,7 @@ const tableOptionser = ref<Array>([
|
|
|
v: "0",
|
|
|
},
|
|
|
]); //弹窗下拉
|
|
|
+const tableOption = ref<Array>([]); //弹窗下拉
|
|
|
const tableForm = reactive({
|
|
|
ItemID: "",
|
|
|
dataStructureID: route.query.dataStructureID,
|
|
@@ -275,6 +271,7 @@ const tableForm = reactive({
|
|
|
isMust: "",
|
|
|
isSplite: "",
|
|
|
dataSourceName: "",
|
|
|
+ dataSourceID: "",
|
|
|
event: "",
|
|
|
}); //弹窗内容
|
|
|
//列表
|
|
@@ -346,9 +343,10 @@ const btnClick = (row, index, param) => {
|
|
|
tableForm.ItemName = index.ItemName;
|
|
|
tableForm.outputIdentifier = index.outputIdentifier;
|
|
|
tableForm.dataType = index.dataType;
|
|
|
- tableForm.isKey = index.isKey;
|
|
|
- tableForm.isMust = index.isMust;
|
|
|
- tableForm.isSplite = index.isSplite;
|
|
|
+ tableForm.isKey = index.isKey === "唯一" ? "1" : "0";
|
|
|
+ tableForm.isMust = index.isMust === "必填" ? "1" : "0";
|
|
|
+ tableForm.isSplite = index.isSplite === "拆分" ? "1" : "0";
|
|
|
+ tableForm.dataSourceID = index.dataSourceID;
|
|
|
tableForm.dataSourceName = index.dataSourceName;
|
|
|
} else if (param === 3) {
|
|
|
msgTitle.value = "删除数据项";
|