Commit ed321a24 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 60d234c8 993fca22
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
<div <div
class="vertical-skin" class="vertical-skin"
:id="conponentsId" :id="conponentsId"
v-if="imageResolution === '2'" v-else-if="imageResolution === '2'"
:style="{ :style="{
background: filterItem('1', 0), background: filterItem('1', 0),
}" }"
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<a-form-model-item label="所属部门" prop="deptId"> <a-form-model-item label="所属部门" prop="deptId">
<a-select <a-select
showSearch showSearch
v-model="form.deptId"
optionFilterProp="label" optionFilterProp="label"
v-model="form.deptId"
placeholder="请选择部门" placeholder="请选择部门"
@change="handleDeptSelect" @change="handleDeptSelect"
allowClear allowClear
...@@ -57,29 +57,36 @@ ...@@ -57,29 +57,36 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="经办人Id" prop="operatorId">
<a-input v-model="form.operatorId" placeholder="请输入经办人Id" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="12">
<a-form-model-item label="所属窗口" prop="windowId"> <a-form-model-item label="所属窗口" prop="windowId">
<a-select <a-select
v-model="form.windowId" v-model="form.windowId"
placeholder="请选择窗口" placeholder="请选择窗口"
@change="handleWindowSelect" @change="handleWindowSelect"
showSearch
allowClear
optionFilterProp="label"
> >
<a-select-option <a-select-option
v-for="v in windowData" v-for="v in windowData"
:key="v.id" :key="v.id"
:value="v.id" :value="v.id"
>{{ v.name }}</a-select-option :label="v.name + v.fromnum"
:data-name="v.name"
> >
<span>{{ v.name }}</span>
<span>--</span>
<span>{{ v.fromnum }}</span>
</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> --> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12">
<a-form-model-item label="经办人Id" prop="operatorId">
<a-input v-model="form.operatorId" placeholder="请输入经办人Id" />
</a-form-model-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="星级" prop="starlevel"> <a-form-model-item label="星级" prop="starlevel">
<a-select <a-select
...@@ -95,27 +102,27 @@ ...@@ -95,27 +102,27 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row>
<a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="职务" prop="userpost"> <a-form-model-item label="职务" prop="userpost">
<a-input v-model="form.userpost" placeholder="请输入职务" /> <a-input v-model="form.userpost" placeholder="请输入职务" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row>
<a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="职称" prop="posttitle"> <a-form-model-item label="职称" prop="posttitle">
<a-input v-model="form.posttitle" placeholder="请输入职称" /> <a-input v-model="form.posttitle" placeholder="请输入职称" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="政治面貌" prop="politicalstatus"> <a-form-model-item label="称号" prop="dangyuan">
<a-select <a-select
allowClear allowClear
v-model="form.politicalstatus" v-model="form.dangyuan"
placeholder="请选择政治面貌" placeholder="请选择称号"
> >
<a-select-option <a-select-option
v-for="(value, key) in politicalDict" v-for="(value, key) in designationDict"
:key="key" :key="key"
:value="Number(key)" :value="Number(key)"
>{{ value }}</a-select-option >{{ value }}</a-select-option
...@@ -124,14 +131,14 @@ ...@@ -124,14 +131,14 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="称号" prop="dangyuan"> <a-form-model-item label="政治面貌" prop="politicalstatus">
<a-select <a-select
allowClear allowClear
v-model="form.dangyuan" v-model="form.politicalstatus"
placeholder="请选择称号" placeholder="请选择政治面貌"
> >
<a-select-option <a-select-option
v-for="(value, key) in designationDict" v-for="(value, key) in politicalDict"
:key="key" :key="key"
:value="Number(key)" :value="Number(key)"
>{{ value }}</a-select-option >{{ value }}</a-select-option
...@@ -144,6 +151,11 @@ ...@@ -144,6 +151,11 @@
<a-input v-model="form.phone" placeholder="请输入电话" /> <a-input v-model="form.phone" placeholder="请输入电话" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-model-item label="手机" prop="mobile">
<a-input v-model="form.mobile" placeholder="请输入手机" />
</a-form-model-item>
</a-col>
</a-row> </a-row>
<a-row v-if="form.dangyuan === 99"> <a-row v-if="form.dangyuan === 99">
<!-- <a-col :span="12"> </a-col> --> <!-- <a-col :span="12"> </a-col> -->
...@@ -154,11 +166,6 @@ ...@@ -154,11 +166,6 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12">
<a-form-model-item label="手机" prop="mobile">
<a-input v-model="form.mobile" placeholder="请输入手机" />
</a-form-model-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="身份证" prop="idCard"> <a-form-model-item label="身份证" prop="idCard">
<a-input v-model="form.idCard" placeholder="请输入身份证号码" /> <a-input v-model="form.idCard" placeholder="请输入身份证号码" />
...@@ -392,7 +399,7 @@ export default { ...@@ -392,7 +399,7 @@ export default {
loading: false, loading: false,
imageUrl: "", imageUrl: "",
labelCol: { span: 5 }, labelCol: { span: 5 },
wrapperCol: { span: 14 }, wrapperCol: { span: 19 },
indeterminate: true, indeterminate: true,
checkAll: false, checkAll: false,
modelIds: [], // 模块 modelIds: [], // 模块
...@@ -401,12 +408,13 @@ export default { ...@@ -401,12 +408,13 @@ export default {
siteId: "", siteId: "",
siteName: "", siteName: "",
}, },
curWindow: {}, // 当前选择窗口
form: { form: {
// roleId: "", // 权限id // roleId: "", // 权限id
deptId: undefined, // 部门id deptId: undefined, // 部门id
deptName: "", //部门名称 deptName: "", //部门名称
windowName: "", // 窗口名称 windowName: "", // 窗口名称
// windowId: undefined, // 窗口id windowId: undefined, // 窗口id
siteName: "", // 站点名称 siteName: "", // 站点名称
siteId: "", // 站点id siteId: "", // 站点id
name: "", // 姓名 name: "", // 姓名
...@@ -469,6 +477,15 @@ export default { ...@@ -469,6 +477,15 @@ export default {
this.siteInfo.siteId = info.id; this.siteInfo.siteId = info.id;
this.siteInfo.siteName = info.label; this.siteInfo.siteName = info.label;
}, },
// 获取窗口列表
async getWindowList(deptId) {
let windowData = [];
let res = await getWindowList({ deptId, page: 1, size: -1 });
if (res.data.code == 1) {
windowData = res.data.data.data;
}
return windowData;
},
// 获取模块 // 获取模块
async getModelList() { async getModelList() {
let res = await modelList({ page: 1, size: -1 }); let res = await modelList({ page: 1, size: -1 });
...@@ -478,20 +495,29 @@ export default { ...@@ -478,20 +495,29 @@ export default {
// 部门选择 // 部门选择
async handleDeptSelect(val, node) { async handleDeptSelect(val, node) {
this.form.windowId = undefined; this.form.windowId = undefined;
this.form.windowName = "";
if (val) {
let { text } = node.componentOptions.children[0]; let { text } = node.componentOptions.children[0];
this.form.deptName = text; this.form.deptName = text;
let res = await getWindowList({ deptId: val, page: 1, size: -1 }); this.windowData = await this.getWindowList(val);
this.windowData = res.data.data.data; } else {
this.form.deptName = "";
this.windowData = [];
}
}, },
//编辑获取窗口 //编辑获取窗口
async editWindow(val) { async editWindow(val) {
let res = await getWindowList({ deptId: val, page: 1, size: -1 }); this.windowData = await this.getWindowList(val);
this.windowData = res.data.data.data;
}, },
// 窗口选择 // 窗口选择
handleWindowSelect(val, node) { handleWindowSelect(val, node) {
let { text } = node.componentOptions.children[0]; if (val) {
this.form.windowName = text; let name = node.data.attrs["data-name"];
this.form.windowName = name;
} else {
this.form.windowName = "";
}
this.$forceUpdate();
}, },
// 保存 // 保存
hideModal() { hideModal() {
...@@ -509,9 +535,11 @@ export default { ...@@ -509,9 +535,11 @@ export default {
}, },
// 编辑 // 编辑
onEdit(data) { onEdit(data) {
this.editWindow(data.deptId);
this.form = { ...data }; this.form = { ...data };
this.form.loginName && this.$delete(this.form, "loginName"); this.form.loginName && this.$delete(this.form, "loginName");
this.form.loginPwd && this.$delete(this.form, "loginPwd"); this.form.loginPwd && this.$delete(this.form, "loginPwd");
this.form.windowId = this.form.windowId ? this.form.windowId : undefined;
if (this.form.photoPath) { if (this.form.photoPath) {
this.fileList = [ this.fileList = [
{ {
...@@ -523,16 +551,18 @@ export default { ...@@ -523,16 +551,18 @@ export default {
}, },
]; ];
} }
// this.editWindow(data.deptId);
}, },
// 关闭对话框 // 关闭对话框
handleClose() { handleClose() {
// this.$refs.formData.resetFields();
this.loading = false; this.loading = false;
this.Visible = false; this.Visible = false;
this.form.windowName = "";
this.fileList = [];
this.$refs.formData.resetFields();
}, },
// 重置 // 重置
handleReset() { handleReset() {
this.form.windowName = "";
this.$refs.formData.resetFields(); this.$refs.formData.resetFields();
}, },
// 照片上传 // 照片上传
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<a-form-model-item label="所属部门" prop="deptId"> <a-form-model-item label="所属部门" prop="deptId">
<a-select <a-select
showSearch showSearch
v-model="form.deptId"
optionFilterProp="label" optionFilterProp="label"
v-model="form.deptId"
placeholder="请选择部门" placeholder="请选择部门"
@change="handleDeptSelect" @change="handleDeptSelect"
allowClear allowClear
...@@ -57,29 +57,36 @@ ...@@ -57,29 +57,36 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="经办人Id" prop="operatorId">
<a-input v-model="form.operatorId" placeholder="请输入经办人Id" />
</a-form-model-item>
</a-col>
<!-- <a-col :span="12">
<a-form-model-item label="所属窗口" prop="windowId"> <a-form-model-item label="所属窗口" prop="windowId">
<a-select <a-select
v-model="form.windowId" v-model="form.windowId"
placeholder="请选择窗口" placeholder="请选择窗口"
@change="handleWindowSelect" @change="handleWindowSelect"
showSearch
allowClear
optionFilterProp="label"
> >
<a-select-option <a-select-option
v-for="v in windowData" v-for="v in windowData"
:key="v.id" :key="v.id"
:value="v.id" :value="v.id"
>{{ v.name }}</a-select-option :label="v.name + v.fromnum"
:data-name="v.name"
> >
<span>{{ v.name }}</span>
<span>--</span>
<span>{{ v.fromnum }}</span>
</a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> --> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12">
<a-form-model-item label="经办人Id" prop="operatorId">
<a-input v-model="form.operatorId" placeholder="请输入经办人Id" />
</a-form-model-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="星级" prop="starlevel"> <a-form-model-item label="星级" prop="starlevel">
<a-select <a-select
...@@ -95,27 +102,27 @@ ...@@ -95,27 +102,27 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row>
<a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="职务" prop="userpost"> <a-form-model-item label="职务" prop="userpost">
<a-input v-model="form.userpost" placeholder="请输入职务" /> <a-input v-model="form.userpost" placeholder="请输入职务" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row>
<a-row>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="职称" prop="posttitle"> <a-form-model-item label="职称" prop="posttitle">
<a-input v-model="form.posttitle" placeholder="请输入职称" /> <a-input v-model="form.posttitle" placeholder="请输入职称" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="政治面貌" prop="politicalstatus"> <a-form-model-item label="称号" prop="dangyuan">
<a-select <a-select
allowClear allowClear
v-model="form.politicalstatus" v-model="form.dangyuan"
placeholder="请选择政治面貌" placeholder="请选择称号"
> >
<a-select-option <a-select-option
v-for="(value, key) in politicalDict" v-for="(value, key) in designationDict"
:key="key" :key="key"
:value="Number(key)" :value="Number(key)"
>{{ value }}</a-select-option >{{ value }}</a-select-option
...@@ -124,14 +131,14 @@ ...@@ -124,14 +131,14 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="称号" prop="dangyuan"> <a-form-model-item label="政治面貌" prop="politicalstatus">
<a-select <a-select
allowClear allowClear
v-model="form.dangyuan" v-model="form.politicalstatus"
placeholder="请选择称号" placeholder="请选择政治面貌"
> >
<a-select-option <a-select-option
v-for="(value, key) in designationDict" v-for="(value, key) in politicalDict"
:key="key" :key="key"
:value="Number(key)" :value="Number(key)"
>{{ value }}</a-select-option >{{ value }}</a-select-option
...@@ -144,6 +151,11 @@ ...@@ -144,6 +151,11 @@
<a-input v-model="form.phone" placeholder="请输入电话" /> <a-input v-model="form.phone" placeholder="请输入电话" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="12">
<a-form-model-item label="手机" prop="mobile">
<a-input v-model="form.mobile" placeholder="请输入手机" />
</a-form-model-item>
</a-col>
</a-row> </a-row>
<a-row v-if="form.dangyuan === 99"> <a-row v-if="form.dangyuan === 99">
<!-- <a-col :span="12"> </a-col> --> <!-- <a-col :span="12"> </a-col> -->
...@@ -154,11 +166,6 @@ ...@@ -154,11 +166,6 @@
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :span="12">
<a-form-model-item label="手机" prop="mobile">
<a-input v-model="form.mobile" placeholder="请输入手机" />
</a-form-model-item>
</a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="身份证" prop="idCard"> <a-form-model-item label="身份证" prop="idCard">
<a-input v-model="form.idCard" placeholder="请输入身份证号码" /> <a-input v-model="form.idCard" placeholder="请输入身份证号码" />
...@@ -426,7 +433,7 @@ export default { ...@@ -426,7 +433,7 @@ export default {
loading: false, loading: false,
imageUrl: "", imageUrl: "",
labelCol: { span: 5 }, labelCol: { span: 5 },
wrapperCol: { span: 14 }, wrapperCol: { span: 19 },
indeterminate: true, indeterminate: true,
checkAll: false, checkAll: false,
modelIds: [], // 模块 modelIds: [], // 模块
...@@ -442,7 +449,7 @@ export default { ...@@ -442,7 +449,7 @@ export default {
deptId: undefined, // 部门id deptId: undefined, // 部门id
deptName: "", //部门名称 deptName: "", //部门名称
windowName: "", // 窗口名称 windowName: "", // 窗口名称
// windowId: undefined, // 窗口id windowId: undefined, // 窗口id
siteName: "", // 站点名称 siteName: "", // 站点名称
siteId: "", // 站点id siteId: "", // 站点id
name: "", // 姓名 name: "", // 姓名
...@@ -510,23 +517,40 @@ export default { ...@@ -510,23 +517,40 @@ export default {
let res = await modelList({ page: 1, size: -1 }); let res = await modelList({ page: 1, size: -1 });
this.modelIds = res.data.data.data; this.modelIds = res.data.data.data;
}, },
// 获取窗口列表
async getWindowList(deptId) {
let windowData = [];
let res = await getWindowList({ deptId, page: 1, size: -1 });
if (res.data.code == 1) {
windowData = res.data.data.data;
}
return windowData;
},
// 部门选择 // 部门选择
async handleDeptSelect(val, node) { async handleDeptSelect(val, node) {
this.form.windowId = undefined; this.form.windowId = undefined;
this.form.windowName = "";
if (val) {
let { text } = node.componentOptions.children[0]; let { text } = node.componentOptions.children[0];
this.form.deptName = text; this.form.deptName = text;
let res = await getWindowList({ deptId: val, page: 1, size: -1 }); this.windowData = await this.getWindowList(val);
this.windowData = res.data.data.data; } else {
this.form.deptName = "";
this.windowData = [];
}
}, },
//编辑获取窗口 //编辑获取窗口
async editWindow(val) { async editWindow(val) {
let res = await getWindowList({ deptId: val, page: 1, size: -1 }); this.windowData = await this.getWindowList(val);
this.windowData = res.data.data.data;
}, },
// 窗口选择 // 窗口选择
handleWindowSelect(val, node) { handleWindowSelect(val, node) {
let { text } = node.componentOptions.children[0]; if (val) {
this.form.windowName = text; let name = node.data.attrs["data-name"];
this.form.windowName = name;
} else {
this.form.windowName = "";
}
}, },
// 保存 // 保存
hideModal() { hideModal() {
...@@ -548,12 +572,12 @@ export default { ...@@ -548,12 +572,12 @@ export default {
}, },
// 重置 // 重置
handleReset() { handleReset() {
this.form.windowName = "";
this.$refs.formData.resetFields(); this.$refs.formData.resetFields();
}, },
// 新增 // 新增
onAdd() { onAdd() {
Object.assign(this.form, this.$options.data().form); Object.assign(this.form, this.$options.data().form);
this.windowData = [];
this.form.id && this.$delete(this.form, "id"); this.form.id && this.$delete(this.form, "id");
}, },
// 编辑 // 编辑
...@@ -575,6 +599,9 @@ export default { ...@@ -575,6 +599,9 @@ export default {
// 关闭对话框 // 关闭对话框
handleClose() { handleClose() {
// this.$refs.formData.resetFields(); // this.$refs.formData.resetFields();
this.windowData = [];
this.fileList = [];
this.form.windowName = "";
this.loading = false; this.loading = false;
this.Visible = false; this.Visible = false;
}, },
......
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
</div> </div>
<span v-else>--</span> <span v-else>--</span>
</template> </template>
<!-- 创建时间 --> <!-- 所属窗口 -->
<template slot="windowName" slot-scope="text"> <template slot="windowName" slot-scope="text">
{{ text.windowName ? text.windowName : "--" }} {{ text.windowName ? text.windowName : "--" }}
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment