12 changed files with 4558 additions and 3436 deletions
@ -1,4 +1,4 @@ |
|||||
NODE_ENV=production |
NODE_ENV=production |
||||
VUE_APP_API_SERVER = https://lingshan-smps.elinkservice.cn/api |
VUE_APP_API_SERVER = https://lingshan-smps.elinkservice.cn/api |
||||
VUE_APP_NODE_ENV=prod |
VUE_APP_NODE_ENV=prod |
||||
VUE_APP_PUBLIC_PATH=lingshan-oper |
VUE_APP_PUBLIC_PATH=epmet-oper-gov |
||||
|
@ -1,4 +1,4 @@ |
|||||
NODE_ENV=production |
NODE_ENV=production |
||||
VUE_APP_API_SERVER = http://119.167.72.91/api |
VUE_APP_API_SERVER = http://119.167.72.91/api |
||||
VUE_APP_NODE_ENV=prod:sit |
VUE_APP_NODE_ENV=prod:sit |
||||
VUE_APP_PUBLIC_PATH=lingshan-oper |
VUE_APP_PUBLIC_PATH=epmet-oper-gov |
@ -1,4 +1,4 @@ |
|||||
NODE_ENV=production |
NODE_ENV=production |
||||
VUE_APP_API_SERVER = http://119.167.72.91/api |
VUE_APP_API_SERVER = http://119.167.72.91/api |
||||
VUE_APP_NODE_ENV=prod:uat |
VUE_APP_NODE_ENV=prod:uat |
||||
VUE_APP_PUBLIC_PATH=lingshan-oper |
VUE_APP_PUBLIC_PATH=epmet-oper-gov |
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,298 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<base-page |
||||
|
:searchParams="searchParams" |
||||
|
:tableParams="tableParams" |
||||
|
:tableUrl="tableUrl" |
||||
|
:addUrl="addUrl" |
||||
|
:editUrl="editUrl" |
||||
|
:delUrl="delUrl" |
||||
|
:editAuth="editAuth" |
||||
|
:delAuth="delAuth" |
||||
|
:infoUrl="infoUrl" |
||||
|
:exportUrl="exportUrl" |
||||
|
:importUrl="importUrl" |
||||
|
:mubanUrl="mubanUrl" |
||||
|
:editParams="editParams" |
||||
|
:editElseRules="editElseRules" |
||||
|
idName="icDangerousChemicalsId" |
||||
|
></base-page> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import basePage from "@/views/modules/cpts/base/index"; |
||||
|
import { getItemByIdInCascader, collapse } from "@/utils/cascader"; |
||||
|
|
||||
|
export default { |
||||
|
props: {}, |
||||
|
|
||||
|
data() { |
||||
|
return { |
||||
|
searchParams: [ |
||||
|
{ |
||||
|
field: "所属组织", |
||||
|
keyName: "orgId", |
||||
|
type: "cascader", |
||||
|
value: "", |
||||
|
supKeys: ["orgType"], |
||||
|
supValues: [""], |
||||
|
optionUrl: "/gov/org/customeragency/agencygridtreeV2", |
||||
|
optionUrlParams: { |
||||
|
customerId: this.$store.state.user.customerId, |
||||
|
}, |
||||
|
optionList: [], |
||||
|
optionProps: { |
||||
|
multiple: false, |
||||
|
value: "agencyId", |
||||
|
label: "agencyName", |
||||
|
children: "subAgencyList", |
||||
|
checkStrictly: true, |
||||
|
emitPath: false, |
||||
|
}, |
||||
|
optionCook(obj) { |
||||
|
return [obj]; |
||||
|
}, |
||||
|
handleChangeFn(val, item, that) { |
||||
|
const { optionList } = item; |
||||
|
const optionPlaneList = collapse( |
||||
|
optionList, |
||||
|
"subAgencyList" |
||||
|
); |
||||
|
if (val) { |
||||
|
let selectedItem = getItemByIdInCascader( |
||||
|
optionPlaneList, |
||||
|
[val], |
||||
|
"agencyId", |
||||
|
"subAgencyList" |
||||
|
)[0]; |
||||
|
item["supValues"][0] = |
||||
|
selectedItem.level == "grid" |
||||
|
? "grid" |
||||
|
: "agency"; |
||||
|
console.log("handleChangeFn", selectedItem); |
||||
|
} else { |
||||
|
item["supValues"][0] = ""; |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
{ field: "代办员姓名", keyName: "name", type: "input" }, |
||||
|
{ field: "手机号", keyName: "phone", type: "input" }, |
||||
|
{ field: "身份证号", keyName: "mobile", type: "input" }, |
||||
|
], |
||||
|
|
||||
|
tableParams: [ |
||||
|
{ field: "序号", keyName: "", type: "no" }, |
||||
|
{ field: "所属组织", keyName: "orgName", type: "text" }, |
||||
|
{ field: "代办员姓名", keyName: "name", type: "text" }, |
||||
|
{ field: "性别", keyName: "gender", type: "text" }, |
||||
|
{ field: "年龄", keyName: "age", type: "text" }, |
||||
|
{ field: "学历", keyName: "edu", type: "text" }, |
||||
|
{ field: "联系电话", keyName: "mobile", type: "text" }, |
||||
|
{ field: "身份证号", keyName: "idCard", type: "text" }, |
||||
|
], |
||||
|
tableUrl: "【GET】/epmetuser/lingshan/serviceAgent/work/agentList", |
||||
|
mubanUrl: "", |
||||
|
importUrl: "", |
||||
|
exportUrl: "/gov/org/icDangerousChemicals/export", |
||||
|
|
||||
|
// addUrl: "/gov/org/staff/addstaffv2", |
||||
|
editUrl: "/gov/org/staff/editstaff", |
||||
|
infoUrl: "/gov/org/staff/editstaffinit", |
||||
|
delUrl: "/gov/org/icDangerousChemicals/del", |
||||
|
// editAuth(item) { |
||||
|
// return item.agencyId == this.$store.state.user.agencyId; |
||||
|
// }, |
||||
|
// delAuth(item) { |
||||
|
// return item.agencyId == this.$store.state.user.agencyId; |
||||
|
// }, |
||||
|
|
||||
|
editParams: [ |
||||
|
// { |
||||
|
// field: "所属组织", |
||||
|
// keyName: "orgId", |
||||
|
// type: "cascader", |
||||
|
// value: () => [], |
||||
|
// supKeys: ["orgType"], |
||||
|
// supValues: [""], |
||||
|
// optionUrl: "/gov/org/customeragency/agencygridtreeV2", |
||||
|
// optionUrlParams: { |
||||
|
// customerId: this.$store.state.user.customerId, |
||||
|
// }, |
||||
|
// optionList: [], |
||||
|
// optionProps: { |
||||
|
// multiple: false, |
||||
|
// value: "agencyId", |
||||
|
// label: "agencyName", |
||||
|
// children: "subAgencyList", |
||||
|
// checkStrictly: true, |
||||
|
// emitPath: false, |
||||
|
// }, |
||||
|
// optionCook(obj) { |
||||
|
// return [obj]; |
||||
|
// }, |
||||
|
// handleChangeFn(val, item, that) { |
||||
|
// const { optionList } = item; |
||||
|
// const optionPlaneList = collapse( |
||||
|
// optionList, |
||||
|
// "subAgencyList" |
||||
|
// ); |
||||
|
// if (val) { |
||||
|
// let selectedItem = getItemByIdInCascader( |
||||
|
// optionPlaneList, |
||||
|
// [val], |
||||
|
// "agencyId", |
||||
|
// "subAgencyList" |
||||
|
// )[0]; |
||||
|
// that.fmData[item["keyName"]] = |
||||
|
// selectedItem.agencyId; |
||||
|
// that.fmData[item["supKeys"][0]] = |
||||
|
// selectedItem.level == "grid" |
||||
|
// ? "grid" |
||||
|
// : "agency"; |
||||
|
// console.log("handleChangeFn", selectedItem); |
||||
|
// } else { |
||||
|
// that.fmData[item["keyName"]] = ""; |
||||
|
// that.fmData[item["supKeys"][0]] = ""; |
||||
|
// } |
||||
|
// }, |
||||
|
// rules: [ |
||||
|
// { |
||||
|
// required: true, |
||||
|
// message: "所属组织不能为空", |
||||
|
// trigger: "blur", |
||||
|
// }, |
||||
|
// ], |
||||
|
// }, |
||||
|
{ |
||||
|
field: "代办员姓名", |
||||
|
keyName: "name", |
||||
|
type: "input", |
||||
|
maxlength: 50, |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "代办员姓名不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "手机号", |
||||
|
keyName: "mobile", |
||||
|
type: "input", |
||||
|
maxlength: 50, |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "手机号不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "身份证号", |
||||
|
keyName: "idCard", |
||||
|
type: "input", |
||||
|
maxlength: 50, |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "身份证号不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "学历", |
||||
|
keyName: "edu", |
||||
|
type: "select", |
||||
|
optionUrl: "/sys/dict/data/education", |
||||
|
optionUrlParams: { |
||||
|
formCode: "resi_base_info", |
||||
|
}, |
||||
|
optionList: () => [], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "学历不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "专兼职", |
||||
|
keyName: "workType", |
||||
|
type: "select", |
||||
|
optionUrl: "", |
||||
|
optionUrlParams: {}, |
||||
|
optionList: () => [ |
||||
|
{ value: "fulltime", label: "专职" }, |
||||
|
{ value: "parttime", label: "兼职" }, |
||||
|
], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "专兼职不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "职责", |
||||
|
keyName: "roleList", |
||||
|
multiple: true, |
||||
|
type: "select", |
||||
|
optionUrl: "/gov/org/staff/rolelist", |
||||
|
optionUrlParams: { |
||||
|
agencyId: this.$store.state.user.agencyId, |
||||
|
}, |
||||
|
optionList: () => [], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "职责不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "角色", |
||||
|
keyName: "newRoleList", |
||||
|
multiple: true, |
||||
|
type: "select", |
||||
|
optionUrl: "/gov/access/govrole/list", |
||||
|
optionUrlMethod: "get", |
||||
|
optionUrlParams: {}, |
||||
|
optionList: () => [], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "角色不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
editElseRules: {}, |
||||
|
editConfig: {}, |
||||
|
}; |
||||
|
}, |
||||
|
components: { basePage }, |
||||
|
computed: {}, |
||||
|
watch: {}, |
||||
|
|
||||
|
async mounted() {}, |
||||
|
|
||||
|
methods: {}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped></style> |
@ -0,0 +1,298 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<base-page |
||||
|
:searchParams="searchParams" |
||||
|
:tableParams="tableParams" |
||||
|
:tableUrl="tableUrl" |
||||
|
:addUrl="addUrl" |
||||
|
:editUrl="editUrl" |
||||
|
:delUrl="delUrl" |
||||
|
:editAuth="editAuth" |
||||
|
:delAuth="delAuth" |
||||
|
:infoUrl="infoUrl" |
||||
|
:exportUrl="exportUrl" |
||||
|
:importUrl="importUrl" |
||||
|
:mubanUrl="mubanUrl" |
||||
|
:editParams="editParams" |
||||
|
:editElseRules="editElseRules" |
||||
|
idName="icDangerousChemicalsId" |
||||
|
></base-page> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import basePage from "@/views/modules/cpts/base/index"; |
||||
|
import { getItemByIdInCascader, collapse } from "@/utils/cascader"; |
||||
|
|
||||
|
export default { |
||||
|
props: {}, |
||||
|
|
||||
|
data() { |
||||
|
return { |
||||
|
searchParams: [ |
||||
|
{ |
||||
|
field: "所属组织", |
||||
|
keyName: "orgId", |
||||
|
type: "cascader", |
||||
|
value: "", |
||||
|
supKeys: ["orgType"], |
||||
|
supValues: [""], |
||||
|
optionUrl: "/gov/org/customeragency/agencygridtreeV2", |
||||
|
optionUrlParams: { |
||||
|
customerId: this.$store.state.user.customerId, |
||||
|
}, |
||||
|
optionList: [], |
||||
|
optionProps: { |
||||
|
multiple: false, |
||||
|
value: "agencyId", |
||||
|
label: "agencyName", |
||||
|
children: "subAgencyList", |
||||
|
checkStrictly: true, |
||||
|
emitPath: false, |
||||
|
}, |
||||
|
optionCook(obj) { |
||||
|
return [obj]; |
||||
|
}, |
||||
|
handleChangeFn(val, item, that) { |
||||
|
const { optionList } = item; |
||||
|
const optionPlaneList = collapse( |
||||
|
optionList, |
||||
|
"subAgencyList" |
||||
|
); |
||||
|
if (val) { |
||||
|
let selectedItem = getItemByIdInCascader( |
||||
|
optionPlaneList, |
||||
|
[val], |
||||
|
"agencyId", |
||||
|
"subAgencyList" |
||||
|
)[0]; |
||||
|
item["supValues"][0] = |
||||
|
selectedItem.level == "grid" |
||||
|
? "grid" |
||||
|
: "agency"; |
||||
|
console.log("handleChangeFn", selectedItem); |
||||
|
} else { |
||||
|
item["supValues"][0] = ""; |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
{ field: "代办员姓名", keyName: "name", type: "input" }, |
||||
|
{ field: "手机号", keyName: "phone", type: "input" }, |
||||
|
{ field: "身份证号", keyName: "mobile", type: "input" }, |
||||
|
], |
||||
|
|
||||
|
tableParams: [ |
||||
|
{ field: "序号", keyName: "", type: "no" }, |
||||
|
{ field: "所属组织", keyName: "orgName", type: "text" }, |
||||
|
{ field: "代办员姓名", keyName: "name", type: "text" }, |
||||
|
{ field: "性别", keyName: "gender", type: "text" }, |
||||
|
{ field: "年龄", keyName: "age", type: "text" }, |
||||
|
{ field: "学历", keyName: "edu", type: "text" }, |
||||
|
{ field: "联系电话", keyName: "mobile", type: "text" }, |
||||
|
{ field: "身份证号", keyName: "idCard", type: "text" }, |
||||
|
], |
||||
|
tableUrl: "【GET】/epmetuser/lingshan/serviceAgent/work/agentList", |
||||
|
mubanUrl: "", |
||||
|
importUrl: "", |
||||
|
exportUrl: "/gov/org/icDangerousChemicals/export", |
||||
|
|
||||
|
// addUrl: "/gov/org/staff/addstaffv2", |
||||
|
editUrl: "/gov/org/staff/editstaff", |
||||
|
infoUrl: "/gov/org/staff/editstaffinit", |
||||
|
delUrl: "/gov/org/icDangerousChemicals/del", |
||||
|
// editAuth(item) { |
||||
|
// return item.agencyId == this.$store.state.user.agencyId; |
||||
|
// }, |
||||
|
// delAuth(item) { |
||||
|
// return item.agencyId == this.$store.state.user.agencyId; |
||||
|
// }, |
||||
|
|
||||
|
editParams: [ |
||||
|
// { |
||||
|
// field: "所属组织", |
||||
|
// keyName: "orgId", |
||||
|
// type: "cascader", |
||||
|
// value: () => [], |
||||
|
// supKeys: ["orgType"], |
||||
|
// supValues: [""], |
||||
|
// optionUrl: "/gov/org/customeragency/agencygridtreeV2", |
||||
|
// optionUrlParams: { |
||||
|
// customerId: this.$store.state.user.customerId, |
||||
|
// }, |
||||
|
// optionList: [], |
||||
|
// optionProps: { |
||||
|
// multiple: false, |
||||
|
// value: "agencyId", |
||||
|
// label: "agencyName", |
||||
|
// children: "subAgencyList", |
||||
|
// checkStrictly: true, |
||||
|
// emitPath: false, |
||||
|
// }, |
||||
|
// optionCook(obj) { |
||||
|
// return [obj]; |
||||
|
// }, |
||||
|
// handleChangeFn(val, item, that) { |
||||
|
// const { optionList } = item; |
||||
|
// const optionPlaneList = collapse( |
||||
|
// optionList, |
||||
|
// "subAgencyList" |
||||
|
// ); |
||||
|
// if (val) { |
||||
|
// let selectedItem = getItemByIdInCascader( |
||||
|
// optionPlaneList, |
||||
|
// [val], |
||||
|
// "agencyId", |
||||
|
// "subAgencyList" |
||||
|
// )[0]; |
||||
|
// that.fmData[item["keyName"]] = |
||||
|
// selectedItem.agencyId; |
||||
|
// that.fmData[item["supKeys"][0]] = |
||||
|
// selectedItem.level == "grid" |
||||
|
// ? "grid" |
||||
|
// : "agency"; |
||||
|
// console.log("handleChangeFn", selectedItem); |
||||
|
// } else { |
||||
|
// that.fmData[item["keyName"]] = ""; |
||||
|
// that.fmData[item["supKeys"][0]] = ""; |
||||
|
// } |
||||
|
// }, |
||||
|
// rules: [ |
||||
|
// { |
||||
|
// required: true, |
||||
|
// message: "所属组织不能为空", |
||||
|
// trigger: "blur", |
||||
|
// }, |
||||
|
// ], |
||||
|
// }, |
||||
|
{ |
||||
|
field: "代办员姓名", |
||||
|
keyName: "name", |
||||
|
type: "input", |
||||
|
maxlength: 50, |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "代办员姓名不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "手机号", |
||||
|
keyName: "mobile", |
||||
|
type: "input", |
||||
|
maxlength: 50, |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "手机号不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "身份证号", |
||||
|
keyName: "idCard", |
||||
|
type: "input", |
||||
|
maxlength: 50, |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "身份证号不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "学历", |
||||
|
keyName: "edu", |
||||
|
type: "select", |
||||
|
optionUrl: "/sys/dict/data/education", |
||||
|
optionUrlParams: { |
||||
|
formCode: "resi_base_info", |
||||
|
}, |
||||
|
optionList: () => [], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "学历不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "专兼职", |
||||
|
keyName: "workType", |
||||
|
type: "select", |
||||
|
optionUrl: "", |
||||
|
optionUrlParams: {}, |
||||
|
optionList: () => [ |
||||
|
{ value: "fulltime", label: "专职" }, |
||||
|
{ value: "parttime", label: "兼职" }, |
||||
|
], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "专兼职不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "职责", |
||||
|
keyName: "roleList", |
||||
|
multiple: true, |
||||
|
type: "select", |
||||
|
optionUrl: "/gov/org/staff/rolelist", |
||||
|
optionUrlParams: { |
||||
|
agencyId: this.$store.state.user.agencyId, |
||||
|
}, |
||||
|
optionList: () => [], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "职责不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
{ |
||||
|
field: "角色", |
||||
|
keyName: "newRoleList", |
||||
|
multiple: true, |
||||
|
type: "select", |
||||
|
optionUrl: "/gov/access/govrole/list", |
||||
|
optionUrlMethod: "get", |
||||
|
optionUrlParams: {}, |
||||
|
optionList: () => [], |
||||
|
editDisabled: false, |
||||
|
rules: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "角色不能为空", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
], |
||||
|
editElseRules: {}, |
||||
|
editConfig: {}, |
||||
|
}; |
||||
|
}, |
||||
|
components: { basePage }, |
||||
|
computed: {}, |
||||
|
watch: {}, |
||||
|
|
||||
|
async mounted() {}, |
||||
|
|
||||
|
methods: {}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped></style> |
Loading…
Reference in new issue