Bläddra i källkod

feat:新增通知公告页面;

zhangchong 1 år sedan
förälder
incheckning
f7e9233fb8

+ 5 - 5
src/components/AnnexList/index.vue

@@ -86,7 +86,7 @@
 	</el-dialog>
 </template>
 <script setup lang="ts" name="AnnexList">
-import {reactive, ref, watch} from 'vue';
+import {reactive, ref} from 'vue';
 import { formatDate } from '/@/utils/formatTime';
 import {checkFile, fileType} from '/@/utils/tools';
 import { storeToRefs } from 'pinia';
@@ -203,7 +203,7 @@ const handleDelete = () => {
   })
       .then(() => {
         if(props.businessId){
-          fileDelete({ids:multipleSelection.value.map((v: any) => v.id)}).then((res: any) => {
+          fileDelete({ids:multipleSelection.value.map((v: any) => v.id)}).then(() => {
             queryList();
             for(let item of multipleSelection.value) {
               state.tableData.forEach((v: any, i: any) => {
@@ -232,8 +232,8 @@ const handleDelete = () => {
 // 上传
 const httpRequest = async (params: any) => {
   const file = params.file;
-  // 文件名(8位随机数):zokcutz4.jpg
-  const fileName = Math.random().toString(36).substr(-8) + file.name.substr(file.name.lastIndexOf('.'));
+  // 文件名(8位随机数):
+  const fileName = Math.random().toString(36).substring(-8) + file.name.substring(file.name.lastIndexOf('.'));
 
   // 目录加文件名【上线前修改目录名】
   const fileSrc = `test20220824/${fileName}`;
@@ -307,7 +307,7 @@ const submit = (formEl: FormInstance | undefined) => {
           additions:'测试附件上传内容',
         };
       })
-      fileAdd(uploadTable).then((res: any) => {
+      fileAdd(uploadTable).then(() => {
         ElMessage.success('操作成功');
         queryList();
       });

+ 1 - 1
src/components/AudioPlayer/index.vue

@@ -194,7 +194,7 @@ const downLoad = () => {
 	window.open(props.url);
 };
 nextTick(() => {
-  audioRef.value.onerror =  (error:any)=> {
+  audioRef.value.onerror =  ()=> {
     ElMessage.error('音频加载失败');
   };
 });

+ 6 - 6
src/components/CommonAdvice/index.vue

@@ -5,17 +5,17 @@
 			type="textarea"
 			show-word-limit
 			:autosize="{ minRows: props.minRows, maxRows: props.maxRows }"
-			:placeholder="placeholder"
+			:placeholder="props.placeholder"
 			:maxlength="props.maxlength"
 			:disabled="props.disabled"
       class="textarea-content"
 		>
 		</el-input>
 		<span class="buttons">
-			<el-button @click="showAdvice" class="default-button" :loading="loading" :disabled="props.disabled">常用意见</el-button>
-			<el-button type="primary" @click="onAddAdvice" :loading="loading" :disabled="props.disabled">添加到常用意见</el-button>
+			<el-button @click="showAdvice" class="default-button"  :disabled="props.disabled">常用意见</el-button>
+			<el-button type="primary" @click="onAddAdvice" :disabled="props.disabled">添加到常用意见</el-button>
 		</span>
-		<el-drawer v-model="state.showDrawer" :size="props.drawerWidth" title="" :show-close="false" :modal="modal">
+		<el-drawer v-model="state.showDrawer" :size="props.drawerWidth" :show-close="false" :modal="props.modal">
 			<template #header="{ close }">
 				<div class="comments-header">
 					<div>
@@ -120,7 +120,7 @@ const emit = defineEmits(['chooseAdvice', 'update:modelValue']);
 const props = defineProps({
 	modal: {
 		type: Boolean,
-		default: false,
+		default:false,
 	},
 	modelValue: {
 		type: String,
@@ -158,7 +158,7 @@ const props = defineProps({
 		type: [Number, String],
 		default: '35%',
 	},
-});
+} as any);
 const activeName = ref('personal'); // 默认选中tab
 const value = computed({
 	get() {

+ 1 - 1
src/components/Editor/index.vue

@@ -16,7 +16,7 @@ import '@wangeditor/editor/dist/css/style.css'; // 引入 css
 import { onBeforeUnmount, reactive, shallowRef, watch, nextTick } from 'vue';
 import { IDomEditor, Boot } from '@wangeditor/editor';
 import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
-import {Cookie, Session} from '/@/utils/storage';
+import {Cookie} from '/@/utils/storage';
 // import useUserStore from '@/store/modules/user'
 //  全局配置
 // 定义父组件传过来的值

+ 0 - 1
src/components/Pagination/index.vue

@@ -8,7 +8,6 @@
 
 <script lang="ts" name="pagination" setup>
 import { computed, onMounted, ref } from 'vue';
-import { Local } from '/@/utils/storage';
 import mittBus from '/@/utils/mitt';
 // 定义父组件传过来的值
 const props = defineProps({

+ 5 - 5
src/components/ProcessApproval/index.vue

@@ -208,17 +208,17 @@
 							</el-select>
 						</el-form-item>
 					</el-col>
-					<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" v-if="['Sms'].includes(formComponents)">
+					<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" v-if="formComponents.includes('Sms')">
 						<el-form-item label="短信通知" prop="isSms">
 							<el-checkbox v-model="state.ruleForm.isSms" label="短信通知" />
 						</el-form-item>
 					</el-col>
-					<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" v-if="['ApplyDelayProvince'].includes(<string>formComponents)">
+					<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" v-if=" formComponents.includes('ApplyDelayProvince')">
 						<el-form-item label="省延期申请" prop="applyDelayProvince">
 							<el-checkbox v-model="state.ruleForm.applyDelayProvince" label="省延期申请" />
 						</el-form-item>
 					</el-col>
-					<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" v-if="['Timelimit'].includes(<string>formComponents)">
+					<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" v-if="formComponents.includes('Timelimit')">
 						<el-form-item label="办理时限">
 							<el-row :gutter="10">
 								<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
@@ -339,7 +339,7 @@
 						type="primary"
 						@click="onReject(ruleFormRef)"
 						:loading="state.loading"
-						v-if="activeStep === 1 && ['Reject'].includes(<string>formComponents)"
+						v-if="activeStep === 1 && formComponents.includes('Reject')"
 						>驳 回</el-button
 					>
 				</span>
@@ -434,7 +434,7 @@ const channelOptions = [
 const showStepsArr = ['延期申请', '甄别申请', '工单重办']; // 显示步骤条的流程
 const handelArr = ['工单办理']; // 处于办理状态的流程 (如果是汇总节点 需要填写处理人等  办理流程才有期满时间)
 const returnArr = ['工单退回']; // 退回流程 (退回流程不需要展示其他 只需要填写意见和附件即可)
-const formComponents = ref<string>(); // 表单组件
+const formComponents = ref<EmptyArrayType>([]); // 表单组件
 const communicationModeOptions = ref<EmptyArrayType>([]); // 沟通方式
 const timeTypeOptions = ref<EmptyArrayType>([]); // 延期申请单位
 const orderRedoReasonOptions = ref<EmptyArrayType>([]); // 重办理由

+ 3 - 3
src/components/ProcessTimeLine/index.vue

@@ -318,7 +318,7 @@ onMounted(() => {
 :deep(.el-timeline-item__tail) {
 	border-left: 1px solid #bfcdff;
 }
-:deep(.el-timeline-item:last-child .el-timeline-item__tail){
-  //display: block;
-}
+/* :deep(.el-timeline-item:last-child .el-timeline-item__tail){
+	display: block;
+} */
 </style>

+ 1 - 2
src/directive/index.ts

@@ -1,12 +1,11 @@
 import type { App } from 'vue';
 import { authDirective } from '/@/directive/authDirective';
-import { wavesDirective, dragDirective, lazyImgDirective } from '/@/directive/customDirective';
+import { wavesDirective, lazyImgDirective } from '/@/directive/customDirective';
 
 /**
  * 导出指令方法:v-xxx
  * @methods authDirective 用户权限指令,用法:v-auth
  * @methods wavesDirective 按钮波浪指令,用法:v-waves
- * @methods dragDirective 自定义拖动指令,用法:v-drag
  * @methods lazyImgDirective 图片懒加载指令,用法:v-lazy
  */
 export function directive(app: App) {

+ 3 - 5
src/utils/PhoneScript.ts

@@ -103,7 +103,7 @@ export const VoiceInterfaceObject: any = {
 	//     console.log(returnVal);
 	// },
 	//心跳 回调
-	Back_keeplive: function (returnVal: any) {
+	Back_keeplive: function () {
 		// console.log(returnVal);
 	},
 	//登录
@@ -275,7 +275,6 @@ export const VoiceInterfaceObject: any = {
 		const returnVal = WebsocketInterface('Send', JSON.stringify(modelJson));
 		if (returnVal != 1) {
 			console.info(WebsocketInterface('GetError', returnVal));
-		} else {
 		}
 	},
 	//强制示闲座席
@@ -357,7 +356,7 @@ export const VoiceInterfaceObject: any = {
 		}
 	},
 	//开启事后 回调
-	Back_TalkedDealBegin: function (returnVal: any) {},
+	Back_TalkedDealBegin: function () {},
 	//结束事后
 	TalkedDealEnd: function () {},
 	//结束事后 回调
@@ -382,8 +381,7 @@ export const VoiceInterfaceObject: any = {
 	// 语音呼叫 回调
 	Back_dialOut: function (returnVal: any) {
 		console.log(returnVal);
-		if (returnVal.Params == '0') {
-		} else {
+		if (returnVal.Params !== '0') {
 			ElMessage.error(returnVal.Message);
 		}
 	},

+ 1 - 1
src/utils/tools.ts

@@ -212,7 +212,7 @@ export const copyText = (text: string) => {
     return new Promise((resolve, reject) => {
         try {
             //复制
-            toClipboard(text).then(r => {});
+            toClipboard(text).then(() => {});
             ElMessage.success('复制成功!');
             resolve(text);
         } catch (e) {

+ 2 - 2
src/views/business/urge/components/Order-urge.vue

@@ -70,7 +70,7 @@
 </template>
 <script setup lang="ts" name="businessUrgeDialog">
 import { defineAsyncComponent, reactive, ref } from 'vue';
-import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
+import { ElMessage, FormInstance } from 'element-plus';
 import { storeToRefs } from 'pinia';
 import { useUserInfo } from '/@/stores/userInfo';
 import { formatDate } from '/@/utils/formatTime';
@@ -148,7 +148,7 @@ const onSubmit = (formEl: FormInstance | undefined) => {
 			files: annexListRef.value?.fileList,
 		};
 		urgeApply(request)
-			.then((res: any) => {
+			.then(() => {
 				state.loading = false;
 				closeDialog();
 				emit('updateList');