编辑变推送、form插槽修改
This commit is contained in:
parent
0b5d56b061
commit
d413a8c1a7
File diff suppressed because it is too large
Load Diff
|
@ -46,7 +46,7 @@
|
|||
</el-select>
|
||||
</template>
|
||||
<template v-else
|
||||
><div v-loading="selLoading">{{ showValue }}</div></template
|
||||
><div v-loading="selLoading">{{ showValue }}</div></template
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -74,7 +74,7 @@ export default {
|
|||
|
||||
{
|
||||
color: "#6a9af1",
|
||||
text: "编辑",
|
||||
text: "重推",
|
||||
},
|
||||
{
|
||||
color: "#d67a74",
|
||||
|
@ -137,15 +137,15 @@ export default {
|
|||
add() {
|
||||
this.$refs.rightDialog.openDialog("add");
|
||||
},
|
||||
// 表格操作事件 查看 编辑 删除
|
||||
// 表格操作事件 查看 重推 删除
|
||||
onFunc(index, row,item) {
|
||||
// 查看
|
||||
if (item.text==='查看') {
|
||||
this.openLoading("detail");
|
||||
this.$refs.rightDialog.openDialog("show", row);
|
||||
}
|
||||
// 编辑
|
||||
if (item.text==='编辑') {
|
||||
// 重推
|
||||
if (item.text==='重推') {
|
||||
this.openLoading("detail");
|
||||
this.$refs.rightDialog.openDialog("edit", row);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
:funData="funData"
|
||||
@onFunc="onFunc"
|
||||
>
|
||||
<!-- 编码-->
|
||||
<!-- 编码-->
|
||||
<template v-slot:argName="{ row }">
|
||||
<div style="width: 100%">
|
||||
{{row.argName}}
|
||||
|
@ -50,7 +50,7 @@
|
|||
</template>
|
||||
<template v-slot:argValue="{ row }">
|
||||
<div style="width: 100%">
|
||||
<!-- 若参数类型为1 (字符串) 否则为2 (日期)-->
|
||||
<!-- 若参数类型为1 (字符串) 否则为2 (日期)-->
|
||||
<template v-if="row.argType==1">
|
||||
<template v-if="!submitShow">{{row.argValue}}</template>
|
||||
<el-input
|
||||
|
@ -215,10 +215,9 @@ export default {
|
|||
openDialog(type, row) {
|
||||
this.queryProductClassfy();
|
||||
this.formRow = configData.formRow;
|
||||
this.submitShow = true;
|
||||
this.submitShow = true;
|
||||
this.isEdit = false
|
||||
this.funData = [
|
||||
]
|
||||
this.funData = []
|
||||
// 新增
|
||||
if (type == "add") {
|
||||
this.dialogTitle = "新增";
|
||||
|
|
|
@ -65,10 +65,18 @@
|
|||
</template>
|
||||
<template v-slot:argType="{ row }">
|
||||
<div style="width: 100%">
|
||||
<el-radio-group v-model="row.argType" :disabled="!submitShow">
|
||||
<el-radio label="1">字符串</el-radio>
|
||||
<el-radio label="2">日期</el-radio>
|
||||
</el-radio-group>
|
||||
<!-- <el-radio-group v-model="row.argType" :disabled="!submitShow">-->
|
||||
<!-- <el-radio label="1">字符串</el-radio>-->
|
||||
<!-- <el-radio label="2">日期</el-radio>-->
|
||||
<!-- </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>
|
||||
</template>
|
||||
<template v-slot:remark="{ row }">
|
||||
|
@ -116,6 +124,28 @@ export default {
|
|||
funData: [],
|
||||
isEdit: false,
|
||||
select_dist:{},
|
||||
options:[
|
||||
{
|
||||
label:"字符串",
|
||||
value:"1"
|
||||
},
|
||||
{
|
||||
label:"日期范围选择",
|
||||
value:"2"
|
||||
},
|
||||
{
|
||||
label:"年月",
|
||||
value:"3"
|
||||
},
|
||||
{
|
||||
label:"年月日",
|
||||
value:"4"
|
||||
},
|
||||
{
|
||||
label:"年月日时间",
|
||||
value:"5"
|
||||
},
|
||||
]
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
|
Loading…
Reference in New Issue