Browse Source

高级设置的接口对接(12345事件)

chengyang
是小王呀\24601 9 months ago
parent
commit
10ea0d0745
  1. 13
      src/views/modules/base/orgUnitManger/index.vue
  2. 1
      src/views/modules/shequzhili/eventOld/eventList-grid.vue
  3. 1
      src/views/modules/shequzhili/eventOld/eventList.vue
  4. 89
      src/views/modules/workSys/sysConfigure/index.vue

13
src/views/modules/base/orgUnitManger/index.vue

@ -66,19 +66,6 @@
<div class="u-table-btn2-left">
<el-button style="" class="diy-button--blue" icon="el-icon-plus" size="small"
@click="handleAdd">添加组织</el-button>
<!-- <el-button style="margin-left:10px" class="diy-button--white" size="small"
@click="handleExport">导出</el-button> -->
<!-- <el-button style="margin-left:10px" class="diy-button--white" size="small"
@click="deleteBatch">批量删除</el-button> -->
<el-button @click="handleExport" class="diy-button--white" size="small">导出</el-button>
<el-button class="diy-button--white" size="small">
<el-upload :headers="$getElUploadHeaders()" ref="upload" class="upload-btn" action="uploadUlr" :limit="1"
:accept="'.xls,.xlsx'" :with-credentials="true" :show-file-list="false" :auto-upload="true"
:on-progress="handleProgress" :on-success="handleExcelSuccess" :before-upload="beforeExcelUpload"
:http-request="uploadHttpRequest">
上传导入
</el-upload>
</el-button>
<el-button style="margin-left: 10px" size="small" class="diy-button--add" type="parimary"
@click="deleteBatch">批量删除</el-button>
</div>

1
src/views/modules/shequzhili/eventOld/eventList-grid.vue

@ -935,7 +935,6 @@ export default {
},
handleChangeAgency (val) {
this.sarr = []
const map = new Map();
this.getLastItem(

1
src/views/modules/shequzhili/eventOld/eventList.vue

@ -799,6 +799,7 @@ export default {
const { data, code, msg } = await requestPost(url, {
pageSize,
pageNo,
convertDemandType: "idea",
...formData,
});
if (code === 0) {

89
src/views/modules/workSys/sysConfigure/index.vue

@ -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
// jsonid
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);
}

Loading…
Cancel
Save