Browse Source

宣传状态排序,系统高级设置

chengyang
是小王呀\24601 9 months ago
parent
commit
e44c41e9b8
  1. 13
      src/views/modules/communityParty/comPromotion/add.vue
  2. 5
      src/views/modules/communityParty/comPromotion/index.vue
  3. 1
      src/views/modules/home/index.vue
  4. 101
      src/views/modules/workSys/sysConfigure/index.vue

13
src/views/modules/communityParty/comPromotion/add.vue

@ -41,8 +41,8 @@
<el-switch v-model="formData.top" :active-value="1" :inactive-value="0"
@change="handleOnlineRegistration"></el-switch>
</el-form-item>
<el-form-item label="显示排序" style="display: block" prop="top" label-width="150px">
<el-input-number v-model="num" @change="handleChange" :min="1" :max="10" label="描述文字"></el-input-number>
<el-form-item v-if="formData.top" label="置顶排序" style="display: block" prop="top" label-width="150px">
<el-input-number v-model="formData.sort" :min="1" :max="10" label="描述文字"></el-input-number>
</el-form-item>
<!-- <el-form-item label="消息推送" label-width="150px" prop="sendMsg">
<el-checkbox v-model="formData.sendMsg" @change="checkbox1" label="是否通过公众号推送给社区居民"></el-checkbox>
@ -119,8 +119,9 @@ export default {
coverPic: "",//
releaseTime: "",//
sendMsg: false,//
top: 1,//
status: 0 //
top: 0,//
status: 0 ,//,
sort:1
},
serviceList: [],
// gridList: [],
@ -202,8 +203,8 @@ export default {
}
},
handleOnlineRegistration(value) {
console.log(this.fileList);
if( value && this.fileList.length==0){
console.log(value,this.formData.coverPic,"wefoujsoidgjsdlkgj");
if( value && !this.formData.coverPic){
console.log("51545");
this.$message.error("置顶需上传封面图片")
this.formData.top = false;

5
src/views/modules/communityParty/comPromotion/index.vue

@ -74,10 +74,7 @@
<span>{{ scope.row.top === 0 ? '否' : '是' }}</span>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="top" header-align="center" align="center" label="排序">
<template slot-scope="scope">
<span>{{ scope.row.top === 0 ? '否' : '是' }}</span>
</template>
<el-table-column :show-overflow-tooltip="true" prop="sort" header-align="center" align="center" label="排序">
</el-table-column>
<el-table-column :show-overflow-tooltip="true" prop="status" header-align="center" align="center" label="状态">
<template slot-scope="scope">

1
src/views/modules/home/index.vue

@ -701,6 +701,7 @@ export default {
created() {
},
mounted() {
console.log(this.$store.state.user.customerId,"dsgjsdlkgjsdkld");
this.getUserwarnlist()
this.getBuildingwarnlist()
this.getStatistics()

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

@ -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>

Loading…
Cancel
Save