Browse Source

政策找人,房屋管理默认打开一层菜单,政策新增差文件上传

feature
mk 3 years ago
parent
commit
9e8c1bf9a8
  1. 2
      src/views/dataBoard/sida/zy/placeResList.vue
  2. 8
      src/views/modules/base/community/communityTable.vue
  3. 19
      src/views/modules/communityService/policy/addPolicy.vue
  4. 46
      src/views/modules/communityService/policy/policyList.vue
  5. 4
      src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue

2
src/views/dataBoard/sida/zy/placeResList.vue

@ -254,7 +254,7 @@ export default {
width: '10%' width: '10%'
} }
]), ]),
(this.header = ['序号', '场所名称', '场所类型', '场所规模', '负责人', '手机号', '最新检查时间', '最新检查结果', '故障次数', '操作']); (this.header = ['序号', '场所名称', '场所类型', '场所规模', '负责人', '联系电话', '最新检查时间', '最新检查结果', '故障次数', '操作']);
this.list = data.map((item, index) => { this.list = data.map((item, index) => {
return [ return [
index + 1, index + 1,

8
src/views/modules/base/community/communityTable.vue

@ -504,7 +504,7 @@ export default {
xcxmLoading: false, xcxmLoading: false,
agencyObj: {}, // agencyObj: {}, //
treeObj:{},
tableData: [], tableData: [],
validTableDataNum: 0, // validTableDataNum: 0, //
selection: [], selection: [],
@ -636,7 +636,7 @@ export default {
}); });
}, },
async loadTable(fromTree, treeObj) { async loadTable(fromTree, treeObj) {
console.log(111, treeObj); this.treeObj = {... treeObj}
// //
this.roleList = localStorage.getItem("roleList"); this.roleList = localStorage.getItem("roleList");
let conditions = []; let conditions = [];
@ -1337,11 +1337,11 @@ export default {
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
this.pageNo = 1; this.pageNo = 1;
this.loadTable(); this.loadTable(this.treeObj);
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageNo = val; this.pageNo = val;
this.loadTable(); this.loadTable(this.treeObj);
}, },
// //

19
src/views/modules/communityService/policy/addPolicy.vue

@ -242,6 +242,7 @@
:disabled="formType === 'detail'" :disabled="formType === 'detail'"
:rules="newDataRule" :rules="newDataRule"
ref="ref_policy_form1" ref="ref_policy_form1"
v-if="newFormData"
> >
<el-form-item <el-form-item
v-if="formData.assignFlag" v-if="formData.assignFlag"
@ -578,6 +579,15 @@ export default {
data.assignInfo.serviceScopeList[i].objectId data.assignInfo.serviceScopeList[i].objectId
); );
} }
} else {
this.newFormData = {
noticeApproches: [],
serviceScopeList: [], //
serviceTimeStart: "", //yyyy-MM-dd
serviceTimeEnd: "", //yyyy-MM-dd
serverOrgType: "", // community_org ic_user_volunteer party_unit
serverOrgId: "", //Id
};
} }
if (data.attachmentList) { if (data.attachmentList) {
this.fileList = data.attachmentList; this.fileList = data.attachmentList;
@ -750,7 +760,6 @@ export default {
// // this.formData.ruleList = this.ruleList // // this.formData.ruleList = this.ruleList
// // return false // // return false
// this.btnDisable = true; // this.btnDisable = true;
// setTimeout(() => { // setTimeout(() => {
// this.btnDisable = false; // this.btnDisable = false;
@ -763,7 +772,7 @@ export default {
// this.addFuwu(); // this.addFuwu();
// } // }
// }); // });
this.addFuwu(); await this.addFuwu();
}, },
getLastItem(list, vals, key) { getLastItem(list, vals, key) {
let LIST = list || []; let LIST = list || [];
@ -771,7 +780,6 @@ export default {
// console.log(item[key]); // console.log(item[key]);
for (let i of vals) { for (let i of vals) {
if (item[key] === i) { if (item[key] === i) {
console.log(item[key]);
this.sarr.push(item); this.sarr.push(item);
} else if (item["objectType"] == "district") { } else if (item["objectType"] == "district") {
this.getLastItem(item.children, vals, key); this.getLastItem(item.children, vals, key);
@ -814,6 +822,7 @@ export default {
async addFuwu() { async addFuwu() {
// //
await this.operationOption(); await this.operationOption();
// ,
// this.formData.attachmentList = [...this.fileList]; // this.formData.attachmentList = [...this.fileList];
// this.fileList.forEach(item=>{ // this.fileList.forEach(item=>{
// this.formData.attachmentList.push({ // this.formData.attachmentList.push({
@ -835,7 +844,7 @@ export default {
this.formData.policyId = this.policyId; this.formData.policyId = this.policyId;
} }
//nullnull? //nullnull?
if (this.formType == "copy"&& this.formData.assignFlag == 0) { if (this.formType == "copy" && this.formData.assignFlag == 0) {
this.formData.assignInfo = { this.formData.assignInfo = {
noticeApproches: [], noticeApproches: [],
serverOrgId: "", serverOrgId: "",
@ -844,7 +853,7 @@ export default {
serviceTimeEnd: "", serviceTimeEnd: "",
serviceTimeStart: "", serviceTimeStart: "",
}; };
this.formData.attachmentList = [] this.formData.attachmentList = [];
} }
// const url = 'http://yapi.elinkservice.cn/mock/245/heart/icServiceProject/service/initiate' // const url = 'http://yapi.elinkservice.cn/mock/245/heart/icServiceProject/service/initiate'
let params = { let params = {

46
src/views/modules/communityService/policy/policyList.vue

@ -35,8 +35,9 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="人员标签" prop="expiredFlag"> <el-form-item label="人员标签" prop="resiSearchTagName">
<el-input <el-input
v-model="formData.resiSearchTagName"
placeholder="请输入" placeholder="请输入"
size="small" size="small"
class="u-item-width-normal" class="u-item-width-normal"
@ -59,25 +60,25 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="发布日期" prop="timeStart"> <el-form-item label="发布日期" prop="createdTimeStart">
<el-date-picker <el-date-picker
v-model="formData.timeStart" v-model="formData.createdTimeStart"
class="u-item-width-daterange" class="u-item-width-daterange"
size="small" size="small"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
value="yyyy-MM-dd" value="yyyy-MM-dd HH:mm:ss"
placeholder="开始时间" placeholder="开始时间"
> >
</el-date-picker> </el-date-picker>
<span class="u-data-tag"></span> <span class="u-data-tag"></span>
<el-date-picker <el-date-picker
v-model="formData.timeEnd" v-model="formData.createdTimeEnd"
class="u-item-width-daterange u-data-tag" class="u-item-width-daterange u-data-tag"
size="small" size="small"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
value="yyyy-MM-dd" value="yyyy-MM-dd HH:mm:ss"
placeholder="结束时间" placeholder="结束时间"
> >
</el-date-picker> </el-date-picker>
@ -185,7 +186,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
scope.row.expiredFlag === "1" ? "已过期" : "未过期" scope.row.expiredFlag ? "已过期" : "未过期"
}}</span> }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -287,27 +288,31 @@ export default {
user: {}, user: {},
agencyId: "", agencyId: "",
policyLevelArray: [ policyLevelArray: [
{ value: "0", label: "市级" }, { value: 0, label: "市级" },
{ value: "1", label: "区级" }, { value: 1, label: "区级" },
{ value: "2", label: "街道级" }, { value: 2, label: "街道级" },
], // ], //
tableData: [], tableData: [],
statusArray: [ statusArray: [
{ {
value: "1", value: true,
label: "是", label: "是",
}, },
{ {
value: "0", value: false,
label: "否", label: "否",
}, },
], ],
formData: { formData: {
title: "", // title: "", //
content: "", // // content: "", //
expiredFlag: "", //10 expiredFlag: null, //10
policyLevel:null,//012
resiSearchTagName:"",//
createdTimeStart:"",//yyyy-MM-dd
createdTimeEnd:"",//yyyy-MM-dd
}, },
pageNo: 1, pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20, pageSize: window.localStorage.getItem("pageSize") || 20,
@ -478,7 +483,7 @@ export default {
pageNo, pageNo,
...formData, ...formData,
}); });
console.log(this.formData);
this.tableLoading = false; this.tableLoading = false;
if (code === 0) { if (code === 0) {
this.total = data.total || 0; this.total = data.total || 0;
@ -552,8 +557,11 @@ export default {
resetSearch() { resetSearch() {
this.formData = { this.formData = {
title: "", // title: "", //
content: "", // expiredFlag: null, //10
expiredFlag: "", //10 policyLevel:null,//012
resiSearchTagName:"",//
createdTimeStart:"",//yyyy-MM-dd
createdTimeEnd:"",//yyyy-MM-dd
}; };
this.pageNo = 1; this.pageNo = 1;

4
src/views/modules/shequzhili/tuceng/anquan/shebei/addForm.vue

@ -137,10 +137,10 @@ export default {
data() { data() {
let checkMObile = (rule, value, callback) => { let checkMObile = (rule, value, callback) => {
if (value === '') { if (value === '') {
callback(new Error('请输入手机号')); callback(new Error('请输入联系电话'));
} else { } else {
if (!isMobile(value)) { if (!isMobile(value)) {
callback(new Error('手机号格式不正确')); callback(new Error('联系电话格式不正确'));
} }
callback(); callback();
} }

Loading…
Cancel
Save