Luka il y a 19 heures
Parent
commit
ca024c7a9e

+ 15 - 3
src/router/index.ts

@@ -142,7 +142,7 @@ export const constantRoutes: RouteRecordRaw[] = [
 				component: () => import('@/views/myPublish/components/detail.vue'),
 				name: 'addPublish',
 				meta: { title: '新增发布', icon: 'user' },
-			}
+			},
 		],
 	},
 	{
@@ -154,8 +154,8 @@ export const constantRoutes: RouteRecordRaw[] = [
 				component: () => import('@/components/components/notificationManageDetails.vue'),
 				name: 'notificationDetails',
 				meta: { title: '新增发布', icon: 'user' },
-			}
-		]
+			},
+		],
 	},
 	{
 		path: '/notificationListManage',
@@ -169,6 +169,18 @@ export const constantRoutes: RouteRecordRaw[] = [
 			},
 		],
 	},
+	{
+		path: '/globalparam',
+		component: Layout,
+		children: [
+			{
+				path: 'cfg',
+				component: () => import('@/views/globalparam/index.vue'),
+				name: 'cfg',
+				meta: { title: '超时提醒', icon: 'user' },
+			},
+		],
+	},
 ];
 
 // 动态路由,基于用户权限动态去加载

+ 5 - 3
src/views/addressBook/index.vue

@@ -93,15 +93,17 @@ const getTreeCheck = async data => {
 		} else {
 			searchNonIndustryConfig.pageListParams.deptIds = data.join();
 		}
-
-		await tableListRef.value[0].fetchPageListData({ deptIds: data.join() });
+		if (tabsItem.value == false) {
+			await tableListRef.value[0].fetchPageListData({ deptIds: data.join() });
+		}
 	}
 };
 const treeSelectdRef = ref<InstanceType<typeof TreeSelect>>();
 const searchTableRef = ref<InstanceType<typeof pageSearch>>();
-// 待优化
+const tabsItem = ref(false);
 const handleClick = async (tab: TabsPaneContext) => {
 	console.log(tab.props.name);
+	tabsItem.value = true;
 	setTimeout(() => {
 		if (treeSelectdRef.value) {
 			treeSelectdRef.value[0].handleReset();

+ 144 - 0
src/views/globalparam/index.vue

@@ -0,0 +1,144 @@
+<template>
+	<div class="globalparam-box">
+		<pageTitle :title="title"></pageTitle>
+		<div class="form">
+			<el-form
+				ref="dataFormRef"
+				label-suffix=":"
+				:rules="dataRule"
+				:model="dataForm"
+				label-width="200px"
+				size="large"
+			>
+				<el-row>
+					<el-col :span="8">
+						<el-form-item label="接收超期(天)" prop="receParamValue">
+							<el-input-number
+								:precision="0"
+								:min="1"
+								:max="99"
+								placeholder="请输入接收超期时限时间"
+								v-model="dataForm.receParamValue"
+								class="in-put"
+							></el-input-number>
+						</el-form-item>
+					</el-col>
+					<el-col :span="8">
+						<el-form-item label="处理超期(月)" prop="handParamValue">
+							<el-input-number
+								:precision="0"
+								:min="1"
+								:max="12"
+								placeholder="请输入处理超期时限时间"
+								v-model="dataForm.handParamValue"
+								class="in-put"
+							></el-input-number>
+						</el-form-item>
+					</el-col>
+					<el-col :span="8">
+						<el-form-item label="处置完成超期(天)" prop="closParamValue">
+							<el-input-number
+								:precision="0"
+								:min="1"
+								:max="99"
+								placeholder="请输入处置完成时限时间"
+								v-model="dataForm.closParamValue"
+								class="in-put"
+							></el-input-number>
+						</el-form-item>
+					</el-col>
+				</el-row>
+
+				<el-form-item label="假期列表" prop="holidayParamValue">
+					<el-input
+						v-model="dataForm.holidayParamValue"
+						maxlength="2000"
+						show-word-limit
+						:autosize="{ minRows: 3 }"
+						type="textarea"
+						placeholder="请输入假期列表,内容2000字以内"
+					/>
+				</el-form-item>
+				<el-form-item label="调休列表" prop="txdateParamValue">
+					<el-input
+						v-model="dataForm.txdateParamValue"
+						maxlength="2000"
+						show-word-limit
+						:autosize="{ minRows: 3 }"
+						type="textarea"
+						placeholder="请输入调休列表,内容2000字以内"
+					/>
+				</el-form-item>
+			</el-form>
+		</div>
+		<div class="globalparam-footer">
+			<el-button type="primary" @click="handleConfirmClick(dataFormRef)">保存</el-button>
+			<el-button @click="resetForm()">重置</el-button>
+		</div>
+	</div>
+</template>
+
+<script setup lang="ts" name="modal">
+import { reactive, ref } from 'vue';
+import type { FormInstance } from 'element-plus';
+import pageTitle from '@/components/components/pageTitle.vue';
+import useSystemStore from '@/store/main';
+
+const dataForm = reactive<any>({
+	receParamValue: 5,
+	handParamValue: 1,
+	closParamValue: 5,
+	holidayParamValue: '',
+	txdateParamValue: '',
+});
+const dataFormRef = ref<FormInstance>();
+const title = '超期提醒';
+const systemStore = useSystemStore();
+
+const resetForm = () => {
+	if (!dataFormRef.value) return;
+	dataFormRef.value.resetFields();
+};
+const dataRule = {
+	receParamValue: [{ required: true, message: '请输入接收超期时限时间', trigger: 'blur' }],
+	handParamValue: [{ required: true, message: '请输入处理超期时限时间', trigger: 'blur' }],
+	closParamValue: [{ required: true, message: '请输入关闭时限时间', trigger: 'blur' }],
+	holidayParamValue: [{ required: true, message: '请输入假期列表', trigger: 'blur' }],
+	txdateParamValue: [{ required: true, message: '请输入调休列表', trigger: 'blur' }],
+};
+
+// 点击确定
+function handleConfirmClick(formEl: FormInstance | undefined) {
+	if (!formEl) return;
+	formEl.validate((valid, fields) => {
+		if (valid) {
+		} else {
+			console.log('error submit!', fields);
+		}
+	});
+}
+
+function getOverTime() {}
+getOverTime();
+</script>
+
+<style lang="scss" scoped>
+.globalparam-box {
+	background-color: #fff;
+	margin: 20px;
+	padding: 15px 20px 20px 20px;
+}
+.globalparam-footer {
+	text-align: center;
+}
+.form {
+	padding: 10px 30px;
+}
+.form .el-input__wrapper {
+	width: 100% !important;
+}
+.in-put {
+	width: 100%;
+	text-align: left;
+}
+</style>

+ 1 - 3
src/views/notificationListManage/components/detail.vue

@@ -36,8 +36,8 @@
 											:disabled="item.disabled"
 											type="textarea"
 											v-model="formData[item.prop]"
+											:autosize="{ minRows: 3 }"
 											show-word-limit
-											autosize
 											:maxlength="item.maxlength || 200"
 											:placeholder="item.placeholder"
 										/>
@@ -106,8 +106,6 @@
 import { reactive, ref } from 'vue';
 import type { FormInstance } from 'element-plus';
 import useSystemStore from '@/store/main';
-import { outTypeList } from '@/libs/commonMeth';
-import { template } from 'lodash';
 // 定义props
 interface IProps {
 	modalConfig: {