|
@@ -48,15 +48,15 @@
|
|
<el-table-column type="selection" width="55" align="center">
|
|
<el-table-column type="selection" width="55" align="center">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="name" label="因子名称"> </el-table-column>
|
|
<el-table-column prop="name" label="因子名称"> </el-table-column>
|
|
- <el-table-column prop="spatial_type" label="条件" width="150">
|
|
|
|
|
|
+ <el-table-column prop="conditionInfo" label="条件" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-select
|
|
<el-select
|
|
- v-model="scope.row.default"
|
|
|
|
|
|
+ v-model="scope.row.conditionInfo.default"
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
class="input-style"
|
|
class="input-style"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in scope.row.spatial_types"
|
|
|
|
|
|
+ v-for="item in scope.row.conditionInfo.items"
|
|
:key="item.key"
|
|
:key="item.key"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.key"
|
|
:value="item.key"
|
|
@@ -73,12 +73,12 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-input
|
|
<el-input
|
|
Onkeyup="this.value=this.value.replace(/[^\d^\.]+/g,'').replace(/^0+(\d)/,'$1').replace(/^\./,'0.').match(/\d+.?\d{0,2}/);this.dispatchEvent(new Event('input'))"
|
|
Onkeyup="this.value=this.value.replace(/[^\d^\.]+/g,'').replace(/^0+(\d)/,'$1').replace(/^\./,'0.').match(/\d+.?\d{0,2}/);this.dispatchEvent(new Event('input'))"
|
|
- v-model.number="scope.row.defaultValue"
|
|
|
|
|
|
+ v-model.number="scope.row.conditionInfo.defaultValue"
|
|
placeholder="距离"
|
|
placeholder="距离"
|
|
class="input-style font-14"
|
|
class="input-style font-14"
|
|
- :disabled="scope.row.hasValue"
|
|
|
|
|
|
+ :disabled="scope.row.conditionInfo.hasValue"
|
|
type="number"
|
|
type="number"
|
|
- @input="testInput(scope.row.hasValue)"
|
|
|
|
|
|
+ @input="testInput(scope.row.conditionInfo.hasValue)"
|
|
></el-input>
|
|
></el-input>
|
|
<!-- :disabled="scope.row.condition == 'F'" -->
|
|
<!-- :disabled="scope.row.condition == 'F'" -->
|
|
</template>
|
|
</template>
|
|
@@ -185,6 +185,7 @@ export default {
|
|
let tableList = [];
|
|
let tableList = [];
|
|
selectdata.forEach((item) => {
|
|
selectdata.forEach((item) => {
|
|
let JSONItem = JSON.parse(item.conditionInfo);
|
|
let JSONItem = JSON.parse(item.conditionInfo);
|
|
|
|
+ console.log(JSONItem);
|
|
tableList.push({
|
|
tableList.push({
|
|
id: item.id,
|
|
id: item.id,
|
|
// name: item.yxyzmc,
|
|
// name: item.yxyzmc,
|
|
@@ -195,11 +196,12 @@ export default {
|
|
// yzbsm: item.bsm,
|
|
// yzbsm: item.bsm,
|
|
name: item.name,
|
|
name: item.name,
|
|
bsm: item.bsm,
|
|
bsm: item.bsm,
|
|
- spatial_types: JSONItem.items,
|
|
|
|
- spatial_type: JSONItem.spatial_type,
|
|
|
|
- hasValue: JSONItem.hasValue, //是否可以填写约束值
|
|
|
|
- defaultValue: Number(JSONItem.defaultValue), //约束值默认值
|
|
|
|
- default: JSONItem.default, //默认选中条件
|
|
|
|
|
|
+ conditionInfo:JSONItem,
|
|
|
|
+ // spatial_types: JSONItem.items,
|
|
|
|
+ // spatial_type: JSONItem.spatial_type,
|
|
|
|
+ // hasValue: JSONItem.hasValue, //是否可以填写约束值
|
|
|
|
+ // defaultValue: Number(JSONItem.defaultValue), //约束值默认值
|
|
|
|
+ // default: JSONItem.default, //默认选中条件
|
|
});
|
|
});
|
|
});
|
|
});
|
|
tableList.forEach((item) => {
|
|
tableList.forEach((item) => {
|
|
@@ -275,6 +277,7 @@ export default {
|
|
});
|
|
});
|
|
if (sign) {
|
|
if (sign) {
|
|
this.$parent.tableData = this.dialogData;
|
|
this.$parent.tableData = this.dialogData;
|
|
|
|
+ console.log(this.dialogData);
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
} else {
|
|
} else {
|
|
this.$message.warning("请将信息补充完整!");
|
|
this.$message.warning("请将信息补充完整!");
|