|
|
@ -9,19 +9,20 @@ |
|
|
|
<h3>12345政务热线</h3> |
|
|
|
<div class="m-table" |
|
|
|
style=" width: 100%; display: flex; flex-direction:column;align-items: center;justify-content: space-between;"> |
|
|
|
<div |
|
|
|
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;"> |
|
|
|
<h3>设置“联系当事人时限”默认值</h3> |
|
|
|
<h3>“联系当事人时限”设置为“派件时间”之后 <el-input-number v-model="num" @change="handleChange" style="width: 150px;" |
|
|
|
:min="1" :max="10" label="描述文字"></el-input-number>的小时</h3> |
|
|
|
<div 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;" v-for="(item,index) in sysAdvancedList "> |
|
|
|
<h3>{{ item.advancedName }}</h3> |
|
|
|
<h3 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> --> |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-switch v-model="HotlineShow" active-color="#13ce66" inactive-color="#eaecf0"> |
|
|
|
<el-switch :v-model="item.openFlag" active-color="#13ce66" inactive-color="#eaecf0"> |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<!-- <div |
|
|
|
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;"> |
|
|
|
<h3>设置“(部门)办结时限”默认值</h3> |
|
|
@ -42,9 +43,9 @@ |
|
|
|
<el-switch v-model="HotlineShow" active-color="#13ce66" inactive-color="#eaecf0"> |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
<h3>文明币有效期设置</h3> |
|
|
|
<!-- <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;"> |
|
|
@ -74,7 +75,7 @@ |
|
|
|
</el-switch> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -92,7 +93,9 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
num:"", |
|
|
|
HotlineShow:1 |
|
|
|
HotlineShow:1, |
|
|
|
customerId:"", |
|
|
|
sysAdvancedList:[] |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: { }, |
|
|
@ -106,84 +109,24 @@ export default { |
|
|
|
watch: {}, |
|
|
|
mounted() { |
|
|
|
this.user = this.$store.state.user; |
|
|
|
this.customerId=this.$store.state.customerId |
|
|
|
this.agencyId = this.user.agencyId; |
|
|
|
this.getTableData(); |
|
|
|
this.sysAdvancedPage(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleAdd(row, type) { |
|
|
|
if (row.id) { |
|
|
|
this.detailId = row.id; |
|
|
|
this.dialogVisible=true; |
|
|
|
} |
|
|
|
}, |
|
|
|
async handleHid(row) { |
|
|
|
let status = ''; |
|
|
|
if (row.status == '1') { |
|
|
|
status = '0'; |
|
|
|
} else { |
|
|
|
status = '1'; |
|
|
|
} |
|
|
|
const url = '/actual/base/residentCategoryConfig/changeStatus'; |
|
|
|
async sysAdvancedPage(row) { |
|
|
|
const url = '/sys/sysAdvanced/page'; |
|
|
|
const param = { |
|
|
|
id: row.id, |
|
|
|
status: status |
|
|
|
customerId: this.customerId, |
|
|
|
}; |
|
|
|
// const url = 'http://yapi.elinkservice.cn/mock/330/actual/base/enterprise/list'; |
|
|
|
const { pageSize, pageNo, formData } = this; |
|
|
|
const { data, code, msg } = await requestPost(url, param); |
|
|
|
if (code === 0) { |
|
|
|
this.$message.success('操作成功'); |
|
|
|
this.getTableData(); |
|
|
|
this.sysAdvancedList=data.list |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSearch(val) { |
|
|
|
this.pageNo = 1; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
handleClose() { |
|
|
|
this.dialogVisible = false; |
|
|
|
this.detailId = ''; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
async getTableData() { |
|
|
|
const url = '/actual/base/residentCategoryConfig/page'; |
|
|
|
// const url = 'http://yapi.elinkservice.cn/mock/330/actual/base/enterprise/list'; |
|
|
|
const { pageSize, pageNo, formData } = this; |
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
pageSize, |
|
|
|
pageNo, |
|
|
|
...formData |
|
|
|
}); |
|
|
|
if (code === 0) { |
|
|
|
this.total = data.total || 0; |
|
|
|
this.tableData = data.list |
|
|
|
? data.list.map(item => { |
|
|
|
return item; |
|
|
|
}) |
|
|
|
: []; |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
handleSizeChange(val) { |
|
|
|
this.pageSize = val; |
|
|
|
window.localStorage.setItem('pageSize', val); |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
handleCurrentChange(val) { |
|
|
|
this.pageNo = val; |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
resetSearch() { |
|
|
|
this.formData = { |
|
|
|
intelligentFlag: '', |
|
|
|
warnFlag: '' |
|
|
|
}; |
|
|
|
this.pageNo = 1; |
|
|
|
this.getTableData(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|