系统配置增加是否返回给app
This commit is contained in:
parent
729d4bc645
commit
6b711858e6
|
|
@ -9,6 +9,13 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="value" label="内容" width="500">
|
<el-table-column prop="value" label="内容" width="500">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="是否返回给App">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-switch v-model="scope.row.isAppUse"
|
||||||
|
@change="updateAmendNotice($event,scope.row)"
|
||||||
|
:active-value="1" :inactive-value="0"></el-switch>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="createAt" label="创建时间">
|
<el-table-column prop="createAt" label="创建时间">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" prop="id" width="120">
|
<el-table-column label="操作" prop="id" width="120">
|
||||||
|
|
@ -279,6 +286,10 @@
|
||||||
<el-input v-else v-model="form.value" :rows="4" style="width:65%;"></el-input>
|
<el-input v-else v-model="form.value" :rows="4" style="width:65%;"></el-input>
|
||||||
<!-- <el-input v-model="form.value" style="width:65%;"></el-input> -->
|
<!-- <el-input v-model="form.value" style="width:65%;"></el-input> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="是否返回给App" :label-width="formLabelWidth">
|
||||||
|
<el-switch v-model="form.isAppUse" :active-value="1" :inactive-value="0"></el-switch>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
||||||
|
|
@ -321,6 +332,7 @@
|
||||||
min: '',
|
min: '',
|
||||||
value: '',
|
value: '',
|
||||||
type: '',
|
type: '',
|
||||||
|
isAppUse: false,
|
||||||
},
|
},
|
||||||
form2: {
|
form2: {
|
||||||
id: '',
|
id: '',
|
||||||
|
|
@ -399,7 +411,7 @@
|
||||||
this.condition = 'kefu'
|
this.condition = 'kefu'
|
||||||
this.dataSelect()
|
this.dataSelect()
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
// 修改弹框
|
// 修改弹框
|
||||||
amend(index, rows) {
|
amend(index, rows) {
|
||||||
|
|
@ -410,9 +422,37 @@
|
||||||
this.form.value = rows.value;
|
this.form.value = rows.value;
|
||||||
this.form.max = rows.max;
|
this.form.max = rows.max;
|
||||||
this.form.createAt = rows.createAt;
|
this.form.createAt = rows.createAt;
|
||||||
|
this.form.isAppUse = rows.isAppUse;
|
||||||
this.form.conditionFrom = rows.conditionFrom
|
this.form.conditionFrom = rows.conditionFrom
|
||||||
},
|
},
|
||||||
|
updateAmendNotice(e,row){
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('common/update'),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData({
|
||||||
|
...row,
|
||||||
|
isAppUse: e
|
||||||
|
})
|
||||||
|
}).then(({
|
||||||
|
data
|
||||||
|
}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '操作成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.dataSelect()
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
// 修改
|
// 修改
|
||||||
|
|
||||||
amendNoticeTo() {
|
amendNoticeTo() {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl('common/update'),
|
url: this.$http.adornUrl('common/update'),
|
||||||
|
|
@ -424,7 +464,8 @@
|
||||||
'min': this.form.min,
|
'min': this.form.min,
|
||||||
'max': this.form.max,
|
'max': this.form.max,
|
||||||
'createAt': this.form.createAt,
|
'createAt': this.form.createAt,
|
||||||
'conditionFrom': this.form.conditionFrom
|
'conditionFrom': this.form.conditionFrom,
|
||||||
|
isAppUse: this.form.isAppUse
|
||||||
})
|
})
|
||||||
}).then(({
|
}).then(({
|
||||||
data
|
data
|
||||||
|
|
@ -436,9 +477,10 @@
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
this.dataSelect()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.dataSelect()
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(data.msg)
|
this.$message.error(data.msg)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue