|
|
@ -11,14 +11,16 @@ |
|
|
|
style=" width: 100%; display: flex; flex-direction:column;align-items: center;justify-content: space-between;"> |
|
|
|
<div v-for="(item,index) in sysAdvancedList " style=" border-bottom: 1px dotted #000;width: 100%; display: flex; flex-direction: row;align-items: center;justify-content: space-between;"> |
|
|
|
<div style="display: flex; flex-direction: column;" > |
|
|
|
<h5>{{ item.advancedName }}</h5> |
|
|
|
<h5 v-if="item.remark">{{ item.remark }} |
|
|
|
<!-- <el-input-number v-model="num" @change="handleChange" style="width: 150px;" |
|
|
|
:min="1" :max="10" label="描述文字"></el-input-number> --> |
|
|
|
</h5> |
|
|
|
<h4>{{ item.advancedName }}</h4> |
|
|
|
<h4 v-if="item.remark">{{ item.remark.slice(0, 7) }} |
|
|
|
<el-input-number v-model="item.timeInterval" @change="handleChange(item)" style="width: 150px;" |
|
|
|
:min="1" label="描述文字"></el-input-number>{{ item.remark.slice(-2) }} |
|
|
|
</h4> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-switch :v-model="item.openFlag" active-color="#13ce66" inactive-color="#eaecf0"> |
|
|
|
<el-switch v-model="item.openFlag" active-color="#13ce66" inactive-color="#eaecf0" :active-value=1 |
|
|
|
:inactive-value=0 @change="handleSwitch(item)"> |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -45,22 +47,8 @@ |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
<!-- <h3>文明币有效期设置</h3> |
|
|
|
<div class="m-table" |
|
|
|
style=" border-bottom: 1px dotted #000;width: 100%; display: flex; flex-direction: row;"> |
|
|
|
<div style="display: flex; flex-direction: column;"> |
|
|
|
<h3>文明币有效期设置:</h3> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 20px;margin-top: 12px; display: flex; flex-direction: column;" > |
|
|
|
<template> |
|
|
|
<el-radio v-model="radio" label="1">永久有效</el-radio> |
|
|
|
<el-radio v-model="radio" label="2" style="margin-top: 10px;"> |
|
|
|
<el-input-number v-model="num" @change="handleChange" :min="1" style="width: 150px;" |
|
|
|
:max="10" label="描述文字"></el-input-number>(个月) |
|
|
|
</el-radio> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- |
|
|
|
|
|
|
|
<h3>居民上报事件</h3> |
|
|
|
<div class="m-table" |
|
|
|
style=" border-bottom: 1px dotted #000;width: 100%; display: flex; flex-direction: row;align-items: center;justify-content: space-between;"> |
|
|
@ -76,6 +64,22 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
<h3>文明币有效期设置</h3> |
|
|
|
<div class="m-table" |
|
|
|
style=" border-bottom: 1px dotted #000;width: 100%; display: flex; flex-direction: row;"> |
|
|
|
<div style="display: flex; flex-direction: column;"> |
|
|
|
<h3>文明币有效期设置:</h3> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 20px;margin-top: 12px; display: flex; flex-direction: column;" > |
|
|
|
<template> |
|
|
|
<el-radio v-model="radio" label="1">永久有效</el-radio> |
|
|
|
<el-radio v-model="radio" label="2" style="margin-top: 10px;"> |
|
|
|
<el-input-number v-model="num" @change="handleChange" :min="1" style="width: 150px;" |
|
|
|
:max="10" label="描述文字"></el-input-number>(个月) |
|
|
|
</el-radio> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -92,6 +96,7 @@ import axios from 'axios'; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
radio:"", |
|
|
|
num:"", |
|
|
|
HotlineShow:1, |
|
|
|
customerId:"", |
|
|
@ -114,7 +119,46 @@ export default { |
|
|
|
this.sysAdvancedPage(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleSwitch(row){ |
|
|
|
console.log(row,this.num,"sdgmlsdlgjk"); |
|
|
|
|
|
|
|
const url = '/sys/sysAdvanced/update'; |
|
|
|
const param = { |
|
|
|
id: row.id, |
|
|
|
openFlag:row.openFlag, |
|
|
|
}; |
|
|
|
requestPost(url, param).then(res=>{ |
|
|
|
if (res.code === 0) { |
|
|
|
console.log("sgl.msl;kgm"); |
|
|
|
|
|
|
|
this.sysAdvancedPage() |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleChange(row){ |
|
|
|
console.log(row,this.num,"sdgmlsdlgjk"); |
|
|
|
const url = '/sys/sysAdvanced/update'; |
|
|
|
const param = { |
|
|
|
id: row.id, |
|
|
|
timeInterval:row.timeInterval, |
|
|
|
// openFlag:this.openFlag, |
|
|
|
remark:row.remark.slice(0, 7)+row.timeInterval+ row.remark.slice(-2) |
|
|
|
}; |
|
|
|
console.log(param,"sdlkjggsdklf"); |
|
|
|
requestPost(url, param).then(res=>{ |
|
|
|
if (res.code === 0) { |
|
|
|
console.log("sgl.msl;kgm"); |
|
|
|
|
|
|
|
this.sysAdvancedPage() |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//update/id |
|
|
|
// json格式的id |
|
|
|
async sysAdvancedPage(row) { |
|
|
|
console.log("dfgkljdlk;fg"); |
|
|
|
|
|
|
|
const url = '/sys/sysAdvanced/page'; |
|
|
|
const param = { |
|
|
|
customerId: this.customerId, |
|
|
@ -122,6 +166,7 @@ export default { |
|
|
|
const { data, code, msg } = await requestPost(url, param); |
|
|
|
if (code === 0) { |
|
|
|
this.sysAdvancedList=data.list |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|