修改触发条件
This commit is contained in:
parent
c09e163788
commit
43b9124dc1
@ -39,13 +39,29 @@
|
|||||||
|
|
||||||
<el-input
|
<el-input
|
||||||
disabled
|
disabled
|
||||||
v-if="updata.triggerConditionCode != 'DRESSING_CHANGE_DATE'"
|
v-if="updata.dictDataType == 'STRING'"
|
||||||
v-model="updata.triggerConditionValue"
|
v-model="updata.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
|
placeholder="请输入触发条件"
|
||||||
|
maxlength="100"
|
||||||
></el-input>
|
></el-input>
|
||||||
|
<el-select
|
||||||
|
disabled
|
||||||
|
v-if="updata.dictDataType == 'SELECT'"
|
||||||
|
v-model="updata.triggerConditionValue"
|
||||||
|
style="width: 300px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in ConditionValue"
|
||||||
|
:key="item.dictValue"
|
||||||
|
:label="item.dictLabel"
|
||||||
|
:value="item.dictValue"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
disabled
|
disabled
|
||||||
v-if="updata.triggerConditionCode == 'DRESSING_CHANGE_DATE'"
|
v-if="updata.dictDataType == 'DATE'"
|
||||||
v-model="updata.triggerConditionValue"
|
v-model="updata.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
type="date"
|
type="date"
|
||||||
@ -53,6 +69,15 @@
|
|||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
<!-- {{ item }} -->
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-if="updata.dictDataType == 'DECIMAL'"
|
||||||
|
style="width: 300px"
|
||||||
|
v-model="updata.triggerConditionValue"
|
||||||
|
type="number"
|
||||||
|
:min="0"
|
||||||
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
<!-- 二级 -->
|
<!-- 二级 -->
|
||||||
<div v-show="show3 == true">
|
<div v-show="show3 == true">
|
||||||
@ -108,16 +133,31 @@
|
|||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<el-input
|
<el-input
|
||||||
v-if="item.triggerConditionCode != 'DRESSING_CHANGE_DATE'"
|
disabled
|
||||||
|
v-if="item.dictDataType == 'STRING'"
|
||||||
v-model="item.triggerConditionValue"
|
v-model="item.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
disabled
|
placeholder="请输入触发条件"
|
||||||
|
maxlength="100"
|
||||||
></el-input>
|
></el-input>
|
||||||
|
<el-select
|
||||||
|
disabled
|
||||||
|
v-if="item.dictDataType == 'SELECT'"
|
||||||
|
v-model="item.triggerConditionValue"
|
||||||
|
style="width: 300px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in ConditionValue"
|
||||||
|
:key="item.dictValue"
|
||||||
|
:label="item.dictLabel"
|
||||||
|
:value="item.dictValue"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
disabled
|
disabled
|
||||||
v-if="item.triggerConditionCode == 'DRESSING_CHANGE_DATE'"
|
v-if="item.dictDataType == 'DATE'"
|
||||||
v-model="item.triggerConditionValue"
|
v-model="item.triggerConditionValue"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
type="date"
|
type="date"
|
||||||
@ -125,6 +165,15 @@
|
|||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
|
<!-- {{ item }} -->
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-if="item.dictDataType == 'DECIMAL'"
|
||||||
|
style="width: 300px"
|
||||||
|
v-model="item.triggerConditionValue"
|
||||||
|
type="number"
|
||||||
|
:min="0"
|
||||||
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -169,11 +218,7 @@
|
|||||||
>
|
>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="toptop">
|
<div class="toptop">
|
||||||
<el-select
|
<el-select v-model="item.routeNodeName" style="width: 100px">
|
||||||
v-model="item.routeNodeName"
|
|
||||||
style="width: 100px"
|
|
||||||
@change="changetoday"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in parentDictCodelist"
|
v-for="item in parentDictCodelist"
|
||||||
:key="item.dictValue"
|
:key="item.dictValue"
|
||||||
@ -900,8 +945,7 @@ export default {
|
|||||||
Cookies.set("routeName", this.routeName);
|
Cookies.set("routeName", this.routeName);
|
||||||
}
|
}
|
||||||
this.infolist();
|
this.infolist();
|
||||||
this.handlelist();
|
// this.handlelist();
|
||||||
|
|
||||||
this.openfalse();
|
this.openfalse();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -1210,23 +1254,24 @@ export default {
|
|||||||
this.routeId = this.$route.query.id;
|
this.routeId = this.$route.query.id;
|
||||||
triggerConditionList(this.routeId).then((res) => {
|
triggerConditionList(this.routeId).then((res) => {
|
||||||
this.openlist.triggerConditionList = res.data;
|
this.openlist.triggerConditionList = res.data;
|
||||||
|
this.openlist.triggerConditionList.forEach((p) => {
|
||||||
|
this.optiononditionOperators();
|
||||||
|
p.dictDataType = this.optionsname.find(
|
||||||
|
(el) => el.dictValue == p.triggerConditionCode
|
||||||
|
)?.dictDataType;
|
||||||
|
console.log(p, "0000000000000000");
|
||||||
|
});
|
||||||
this.handlelist();
|
this.handlelist();
|
||||||
if (res.data.length == 1) {
|
if (res.data.length == 1) {
|
||||||
// 新增一条时
|
// 回显一条时
|
||||||
this.updata = res.data[0];
|
this.updata = res.data[0];
|
||||||
|
|
||||||
this.updata.triggerConditionOperatorName =
|
this.updata.triggerConditionOperatorName =
|
||||||
this.optionstriggerConditionOperator.find(
|
this.optionstriggerConditionOperator.find(
|
||||||
(el) => el.dictValue == this.updata.triggerConditionOperator
|
(el) => el.dictValue == this.updata.triggerConditionOperator
|
||||||
)?.dictLabel;
|
)?.dictLabel;
|
||||||
console.log(
|
|
||||||
this.updata.triggerConditionOperatorName,
|
|
||||||
"updata.triggerConditionOperatorName"
|
|
||||||
);
|
|
||||||
|
|
||||||
this.updatalist = [];
|
this.updatalist = [];
|
||||||
} else {
|
} else {
|
||||||
// 新增两条或者三条
|
// 回显两条或者三条
|
||||||
this.updata = res.data[0];
|
this.updata = res.data[0];
|
||||||
this.updata.triggerConditionOperatorName =
|
this.updata.triggerConditionOperatorName =
|
||||||
this.optionstriggerConditionOperator.find(
|
this.optionstriggerConditionOperator.find(
|
||||||
@ -1240,9 +1285,6 @@ export default {
|
|||||||
(el) => el.dictValue == e.triggerConditionOperator
|
(el) => el.dictValue == e.triggerConditionOperator
|
||||||
)?.dictLabel;
|
)?.dictLabel;
|
||||||
});
|
});
|
||||||
// this.updatalist.triggerConditionOperatorName = this.optionstriggerConditionOperator.find(
|
|
||||||
// (el) => el.dictValue == this.updatalist.triggerConditionOperator
|
|
||||||
// )?.dictLabel;
|
|
||||||
}
|
}
|
||||||
if (this.open == true) {
|
if (this.open == true) {
|
||||||
this.$set(this.openlist, "suitRange", this.$route.query.suitRange);
|
this.$set(this.openlist, "suitRange", this.$route.query.suitRange);
|
||||||
@ -1261,7 +1303,12 @@ export default {
|
|||||||
o.dictDataType = this.optionsname.find(
|
o.dictDataType = this.optionsname.find(
|
||||||
(el) => el.dictValue == o.triggerConditionCode
|
(el) => el.dictValue == o.triggerConditionCode
|
||||||
)?.dictDataType;
|
)?.dictDataType;
|
||||||
// console.log(o.dictDataType, "dict");
|
if (o.triggerConditionCode.includes("SEX")) {
|
||||||
|
var dictType = "SEX";
|
||||||
|
getAgencytype(dictType).then((res) => {
|
||||||
|
this.ConditionValue = res.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.$set(this.updata, "suitRange", this.openlist.suitRange);
|
this.$set(this.updata, "suitRange", this.openlist.suitRange);
|
||||||
});
|
});
|
||||||
@ -1270,6 +1317,8 @@ export default {
|
|||||||
edit() {
|
edit() {
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.infolistname();
|
this.infolistname();
|
||||||
|
|
||||||
|
// this.openfalse();
|
||||||
},
|
},
|
||||||
//wangeditor传值
|
//wangeditor传值
|
||||||
onNodeContent(item) {
|
onNodeContent(item) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user