Explorar o código

样式统一调整

zhangchong %!s(int64=2) %!d(string=hai) anos
pai
achega
cf89a7667e
Modificáronse 5 ficheiros con 32 adicións e 31 borrados
  1. 0 11
      package-lock.json
  2. 0 1
      package.json
  3. 0 2
      src/main.ts
  4. 30 15
      src/views/business/order/index.vue
  5. 2 2
      src/views/home/index.vue

+ 0 - 11
package-lock.json

@@ -15,7 +15,6 @@
 				"@microsoft/signalr": "^7.0.0",
 				"@wangeditor/editor": "^5.1.23",
 				"@wangeditor/editor-for-vue": "^5.1.12",
-				"animate.css": "^4.1.1",
 				"axios": "^1.2.0",
 				"echarts": "^5.4.0",
 				"element-plus": "^2.2.22",
@@ -1204,11 +1203,6 @@
 				"ajv": "^6.9.1"
 			}
 		},
-		"node_modules/animate.css": {
-			"version": "4.1.1",
-			"resolved": "https://registry.npmmirror.com/animate.css/-/animate.css-4.1.1.tgz",
-			"integrity": "sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ=="
-		},
 		"node_modules/ansi-regex": {
 			"version": "5.0.1",
 			"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -5381,11 +5375,6 @@
 			"peer": true,
 			"requires": {}
 		},
-		"animate.css": {
-			"version": "4.1.1",
-			"resolved": "https://registry.npmmirror.com/animate.css/-/animate.css-4.1.1.tgz",
-			"integrity": "sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ=="
-		},
 		"ansi-regex": {
 			"version": "5.0.1",
 			"resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",

+ 0 - 1
package.json

@@ -19,7 +19,6 @@
 		"@microsoft/signalr": "^7.0.0",
 		"@wangeditor/editor": "^5.1.23",
 		"@wangeditor/editor-for-vue": "^5.1.12",
-		"animate.css": "^4.1.1",
 		"axios": "^1.2.0",
 		"echarts": "^5.4.0",
 		"element-plus": "^2.2.22",

+ 0 - 2
src/main.ts

@@ -8,8 +8,6 @@ import other from '/@/utils/other';
 import ElementPlus from 'element-plus';
 import 'element-plus/dist/index.css';
 import '/@/theme/index.scss';
-
-import 'animate.css';
 // 分页组件
 import Pagination from '/@/components/Pagination/index.vue';
 // 空组件

+ 30 - 15
src/views/business/order/index.vue

@@ -164,14 +164,14 @@
 					<!-- <p class="table-title">信息列表</p> -->
 					<div>
 						<el-button type="primary" @click="onAddWorkOrder"> <SvgIcon name="ele-Plus" class="mr5" />新建工单 </el-button>
-						<!-- <el-button type="primary" :disabled="!state.multipleSelection.length" v-waves @click="onImportTable">
-								<SvgIcon name="iconfont icon-daochu" class="mr5" />导出
-							</el-button> -->
+						<el-button type="primary" :disabled="!state.multipleSelection.length" v-waves @click="onImportTable">
+							<SvgIcon name="iconfont icon-daochu" class="mr5" />导出
+						</el-button>
 					</div>
 				</div>
 				<!-- 表格 -->
 				<el-table :data="state.tableList" v-loading="state.loading" row-key="id" @selection-change="handleSelectionChange" @sort-change="sortChange">
-					<!-- <el-table-column type="selection" width="55" :reserve-selection="true" /> -->
+					<el-table-column type="selection" width="55" :reserve-selection="true" />
 					<el-table-column type="index" width="60" label="序号" />
 					<!--  sortable="custom" 工单编码排序 -->
 					<el-table-column label="工单编码" prop="no" show-overflow-tooltip width="150">
@@ -265,9 +265,11 @@
 import { defineAsyncComponent, ref, reactive, onMounted, onActivated } from 'vue';
 import { ElMessageBox, ElMessage } from 'element-plus';
 import type { FormInstance } from 'element-plus';
-import { useRouter } from 'vue-router';
+import { storeToRefs } from 'pinia';
+import { useThemeConfig } from '/@/stores/themeConfig';
+import { useRouter, useRoute } from 'vue-router';
 import { formatDate } from '/@/utils/formatTime';
-// import table2excel from 'js-table2excel';
+import table2excel from 'js-table2excel';
 import { listBaseData, orderList, hotspottype, orderDelete } from '/@/api/business/order';
 
 // 引入组件
@@ -370,6 +372,9 @@ const state = reactive(<any>{
 	orgData: [],
 });
 const cascaderRef = ref();
+const route = useRoute();
+const storesThemeConfig = useThemeConfig();
+const { themeConfig } = storeToRefs(storesThemeConfig);
 // 热点分类远程搜索
 const HotspotProps = {
 	label: 'hotSpotName',
@@ -568,15 +573,25 @@ const onDeleteOrder = (row: any) => {
 		})
 		.catch(() => {});
 };
-// 导出列表
-// const onImportTable = () => {
-// 	const tabeHeader = [
-// 		{ key: 'phoneNo', colWidth: '', title: '电话号码', type: 'text', isCheck: true },
-// 		{ key: 'duration', colWidth: '', title: '黑名单时长(秒)', type: 'text', isCheck: true },
-// 		{ key: 'creationTime', colWidth: '', title: '创建时间', type: 'text', isCheck: true },
-// 	];
-// 	table2excel(tabeHeader, state.multipleSelection, `${formatDate(new Date(), 'YYYY-mm-dd HH-MM')}`);
-// };
+//导出列表
+const onImportTable = () => {
+	const tabeHeader = [
+		{ key: 'no', colWidth: '', title: '工单编码', type: 'text', isCheck: true },
+		{ key: 'title', colWidth: '', title: '标题', type: 'text', isCheck: true },
+		{ key: 'statusText', colWidth: '', title: '工单状态', type: 'text', isCheck: true },
+		{ key: 'currentStepName', colWidth: '', title: '当前环节', type: 'text', isCheck: true },
+		{ key: 'acceptTypeText', colWidth: '', title: '受理类型', type: 'text', isCheck: true },
+		{ key: 'hotspot', colWidth: '', title: '热点分类', type: 'text', isCheck: true },
+		{ key: 'emergencyLevelText', colWidth: '', title: '紧急程度', type: 'text', isCheck: true },
+		{ key: 'expiredTime', colWidth: '', title: '办理期限', type: 'text', isCheck: true },
+		{ key: 'employeeName', colWidth: '', title: '受理坐席', type: 'text', isCheck: true },
+	];
+	table2excel(
+		tabeHeader,
+		state.multipleSelection,
+		`${themeConfig.value.globalTitle}-${route.meta.title} ${formatDate(new Date(), 'YYYY-mm-dd HH-MM')}`
+	);
+};
 onMounted(async () => {
 	getBaseData();
 	getList(state.activeName);

+ 2 - 2
src/views/home/index.vue

@@ -68,14 +68,14 @@
 					<div class="list-content-tabs">
 						<div
 							class="list-content-tabs-item"
-							:class="state.active === 'gd' ? 'active animate__animated animate__fadeInRight' : ''"
+							:class="state.active === 'gd' ? 'active' : ''"
 							@click="changeList('gd')"
 						>
 							工单池 <span v-show="state.activities.length">({{ state.activities.length }})</span>
 						</div>
 						<div
 							class="list-content-tabs-item"
-							:class="state.active === 'db' ? 'active animate__animated animate__fadeInLeft' : ''"
+							:class="state.active === 'db' ? 'active' : ''"
 							@click="changeList('db')"
 						>
 							待办列表 <span v-show="state.activities.length">({{ state.activities.length }})</span>