瀏覽代碼

联络员通讯录

Luka 8 小時之前
父節點
當前提交
173ad04082

二進制
src/assets/person-add.png


+ 21 - 2
src/views/addressBook/components/detail.vue

@@ -82,7 +82,6 @@
 										<el-select
 											:disabled="item.disabled"
 											v-model="formData[item.prop]"
-											multiple
 											filterable
 											remote
 											reserve-keyword
@@ -113,6 +112,9 @@
 					>
 					<slot name="button"></slot>
 				</span>
+				<el-col span="24">
+					<img class="imgClass" src="@/assets/person-add.png" />
+				</el-col>
 			</template>
 		</el-dialog>
 	</div>
@@ -153,11 +155,24 @@ interface userNameListItem {
 	value: string;
 	label: string;
 }
+const allOptions = ref<userNameListItem[]>([]);
+allOptions.value = [
+	{ label: '综合办公室-张三', value: 'Alabama' },
+	{ label: '科技信息处-李四', value: 'Alaska' },
+	{ label: '综合办公室-王五', value: 'Arizona' },
+	{ label: '科技信息处-赵六', value: 'California' },
+];
 const options = ref<userNameListItem[]>([]);
 const userLoading = ref(false);
 const remoteuserNameMethod = (query: string) => {
 	if (query) {
-		// userLoading.value = true;
+		userLoading.value = true;
+		setTimeout(() => {
+			userLoading.value = false;
+			options.value = allOptions.value.filter(item => {
+				return item.label.toLowerCase().includes(query.toLowerCase());
+			});
+		}, 200);
 	} else {
 		options.value = [];
 	}
@@ -258,4 +273,8 @@ defineExpose({
 .form {
 	padding: 10px 30px;
 }
+.imgClass {
+	margin-top: 5%;
+	width: 100%;
+}
 </style>

+ 3 - 3
src/views/addressBook/config/detail.config.ts

@@ -1,8 +1,8 @@
 const modalConfig = {
 	pageName: 'contactPerson',
-	addTitle: '新增行业内违法信息通报通讯录',
-	editTitle: '编辑行业内违法信息通报通讯录',
-	detailTitle: '查看行业内违法信息通报通讯录',
+	addTitle: '个人基本信息',
+	editTitle: '个人基本信息',
+	detailTitle: '个人基本信息',
 	labelWidth: '150px',
 	formRules: {
 		contactDeptName: [{ required: true, message: '请选择单位名称', trigger: 'change' }],

+ 3 - 3
src/views/addressBook/config/detail.nonIndustry.config.ts

@@ -1,8 +1,8 @@
 const modalConfig = {
 	pageName: 'contactPerson',
-	addTitle: '新增行业外违法信息通报通讯录',
-	editTitle: '编辑行业外违法信息通报通讯录',
-	detailTitle: '查看行业外违法信息通报通讯录',
+	addTitle: '个人基本信息',
+	editTitle: '个人基本信息',
+	detailTitle: '个人基本信息',
 	labelWidth: '150px',
 	formRules: {
 		contactDeptName: [{ required: true, message: '请选择单位名称', trigger: 'change' }],

+ 3 - 3
src/views/notificationListManage/config/detail.config.ts

@@ -1,8 +1,8 @@
 const modalConfig = {
 	pageName: 'rentalCompany',
-	addTitle: '新建违法信息通报事项清单信息',
-	editTitle: '编辑违法信息通报事项清单信息',
-	detailTitle: '查看违法信息通报事项清单信息',
+	addTitle: '违法信息通报事项清单信息',
+	editTitle: '违法信息通报事项清单信息',
+	detailTitle: '违法信息通报事项清单信息',
 	labelWidth: '140px',
 	dialogWidth: '70%',
 	formRules: {

+ 0 - 1
src/views/notificationListManage/index.vue

@@ -9,7 +9,6 @@
 			<template #operate="scope">
 				<el-button type="primary" link @click="handleEdit(scope.row.rentalCompanyId)"> 查看 </el-button>
 				<el-button type="primary" link @click="handleEdit(scope.row.rentalCompanyId)"> 编辑 </el-button>
-				<el-button type="primary" link @click="handleDelete(scope.row.rentalCompanyId)"> 删除 </el-button>
 				<el-button type="primary" link @click="handleDelete(scope.row.rentalCompanyId)"> 启用 </el-button>
 				<el-button type="primary" link @click="handleDelete(scope.row.rentalCompanyId)"> 废止 </el-button>
 			</template>