编辑变推送、form插槽修改

This commit is contained in:
hyt 2024-03-26 14:21:37 +08:00
parent 0b5d56b061
commit d413a8c1a7
5 changed files with 521 additions and 492 deletions

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@
</el-select> </el-select>
</template> </template>
<template v-else <template v-else
><div v-loading="selLoading">{{ showValue }}</div></template ><div v-loading="selLoading">{{ showValue }}</div></template
> >
</div> </div>
</template> </template>

View File

@ -74,7 +74,7 @@ export default {
{ {
color: "#6a9af1", color: "#6a9af1",
text: "编辑", text: "重推",
}, },
{ {
color: "#d67a74", color: "#d67a74",
@ -137,15 +137,15 @@ export default {
add() { add() {
this.$refs.rightDialog.openDialog("add"); this.$refs.rightDialog.openDialog("add");
}, },
// //
onFunc(index, row,item) { onFunc(index, row,item) {
// //
if (item.text==='查看') { if (item.text==='查看') {
this.openLoading("detail"); this.openLoading("detail");
this.$refs.rightDialog.openDialog("show", row); this.$refs.rightDialog.openDialog("show", row);
} }
// //
if (item.text==='编辑') { if (item.text==='重推') {
this.openLoading("detail"); this.openLoading("detail");
this.$refs.rightDialog.openDialog("edit", row); this.$refs.rightDialog.openDialog("edit", row);
} }

View File

@ -42,7 +42,7 @@
:funData="funData" :funData="funData"
@onFunc="onFunc" @onFunc="onFunc"
> >
<!-- 编码--> <!-- 编码-->
<template v-slot:argName="{ row }"> <template v-slot:argName="{ row }">
<div style="width: 100%"> <div style="width: 100%">
{{row.argName}} {{row.argName}}
@ -50,7 +50,7 @@
</template> </template>
<template v-slot:argValue="{ row }"> <template v-slot:argValue="{ row }">
<div style="width: 100%"> <div style="width: 100%">
<!-- 若参数类型为1 字符串 否则为2 日期--> <!-- 若参数类型为1 字符串 否则为2 日期-->
<template v-if="row.argType==1"> <template v-if="row.argType==1">
<template v-if="!submitShow">{{row.argValue}}</template> <template v-if="!submitShow">{{row.argValue}}</template>
<el-input <el-input
@ -215,10 +215,9 @@ export default {
openDialog(type, row) { openDialog(type, row) {
this.queryProductClassfy(); this.queryProductClassfy();
this.formRow = configData.formRow; this.formRow = configData.formRow;
this.submitShow = true; this.submitShow = true;
this.isEdit = false this.isEdit = false
this.funData = [ this.funData = []
]
// //
if (type == "add") { if (type == "add") {
this.dialogTitle = "新增"; this.dialogTitle = "新增";

View File

@ -65,10 +65,18 @@
</template> </template>
<template v-slot:argType="{ row }"> <template v-slot:argType="{ row }">
<div style="width: 100%"> <div style="width: 100%">
<el-radio-group v-model="row.argType" :disabled="!submitShow"> <!-- <el-radio-group v-model="row.argType" :disabled="!submitShow">-->
<el-radio label="1">字符串</el-radio> <!-- <el-radio label="1">字符串</el-radio>-->
<el-radio label="2">日期</el-radio> <!-- <el-radio label="2">日期</el-radio>-->
</el-radio-group> <!-- </el-radio-group>-->
<el-select v-model="row.argType" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div> </div>
</template> </template>
<template v-slot:remark="{ row }"> <template v-slot:remark="{ row }">
@ -116,6 +124,28 @@ export default {
funData: [], funData: [],
isEdit: false, isEdit: false,
select_dist:{}, select_dist:{},
options:[
{
label:"字符串",
value:"1"
},
{
label:"日期范围选择",
value:"2"
},
{
label:"年月",
value:"3"
},
{
label:"年月日",
value:"4"
},
{
label:"年月日时间",
value:"5"
},
]
}; };
}, },
mounted() { mounted() {