Browse Source

名单

master
jiangyy 3 years ago
parent
commit
2145c77070
  1. 55
      src/views/modules/communityService/fuwujilu/fuwuList.vue

55
src/views/modules/communityService/fuwujilu/fuwuList.vue

@ -179,7 +179,7 @@
<el-table-column fixed="right"
label="操作"
align="center"
width="180">
width="220">
<template slot-scope="scope">
<el-button @click="handleDetail(scope.row)"
type="text"
@ -195,6 +195,10 @@
type="text"
size="small"
class="div-table-button--edit">反馈</el-button>
<el-button @click="handlePersonList(scope.row)"
type="text"
size="small"
class="div-table-button--edit">人员名单</el-button>
<el-button v-if="scope.row.serviceStatus==='in_service'"
@click="handleDel(scope.row)"
type="text"
@ -256,6 +260,23 @@
:formType="formType">
</detail-form>
</el-dialog>
<el-dialog v-if="showPersonList"
:visible.sync="showPersonList"
:close-on-click-modal="false"
:close-on-press-escape="false"
:title="'人员名单'"
width="1150px"
top="5vh"
class="dialog-h"
@closed="showPersonList = false">
<person-list ref="ref_detail_form"
:policyId="policyId"
:ruleList="ruleList"
@handleOk="handleOk"
@handleClose="handleClose"
:formType="formType">
</person-list>
</el-dialog>
</div>
</template>
@ -269,9 +290,10 @@ import axios from "axios";
import addForm from "./addForm";
import detailForm from "./detailForm";
import feedBackForm from "./addForm";
import personList from "../policy/personList";
export default {
components: { addForm, detailForm, feedBackForm },
components: { addForm, detailForm, feedBackForm, personList },
data () {
let endDisabledDate = (time) => {//datareturn
@ -357,7 +379,9 @@ export default {
serviceOptions: [],
serviceOptiondList: [],
policyId: '',
showPersonList: false,
ruleList: []
};
},
computed: {
@ -442,6 +466,31 @@ export default {
return this.$message.error("网络错误");
});
},
//
async handlePersonList (row) {
this.policyId = row.policyId
await this.loadRuleList()
this.formType = 'personList'
this.showPersonList = true;
},
async loadRuleList () {
const url = "/heart/policy/rulelist/" + this.policyId
let params = {}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.ruleList = data
} else {
this.$message.error(msg)
}
},
async handleAdd () {

Loading…
Cancel
Save