Przeglądaj źródła

事项清单 ok

Luka 1 miesiąc temu
rodzic
commit
c9f116753c

+ 2 - 2
src/api/notificationInfoManage/contactsmanage.ts

@@ -3,7 +3,7 @@ import request from '@/utils/request';
 // 违法联络员状态调整
 export const changeInventoryStatus = (id: string, status: string) => {
 	return request({
-		url: '/api/business/ntlo/changeInventoryStatus',
+		url: '/business/ntlo/changeInventoryStatus',
 		method: 'get',
 		params: {
 			id: id,
@@ -15,7 +15,7 @@ export const changeInventoryStatus = (id: string, status: string) => {
 // 违法联络员数据上传
 export const importInfo = (data: any) => {
 	return request({
-		url: '/api/business/ntlo/import',
+		url: '/business/ntlo/import',
 		headers: {
 			'Content-Type': 'multipart/form-data',
 		},

+ 1 - 1
src/api/notificationInfoManage/mattersmanage.ts

@@ -3,7 +3,7 @@ import request from '@/utils/request';
 // 违法事项清单状态调整
 export const changeInventoryStatus = (id: string, status: string) => {
 	return request({
-		url: '/api/business/lonm/changeInventoryStatus',
+		url: '/business/lonm/changeInventoryStatus',
 		method: 'get',
 		params: {
 			id: id,

+ 1 - 1
src/views/notificationInfoManage/contactsmanage/index.vue

@@ -227,7 +227,7 @@ function handleStatus(row: any, status: string, str: string) {
 		.then(async () => {
 			const postData: any = await changeInventoryStatus(row.liaisonId, status);
 			if (postData.code === 200) {
-				tableListRef.value[0].fetchPageListData({ industryType: activeTab.value });
+				tableListRef.value.fetchPageListData({ industryType: activeTab.value });
 				ElMessage.success('操作成功!');
 			} else {
 				ElMessage.error('操作失败!');

+ 5 - 3
src/views/notificationInfoManage/mattersmanage/components/detail.vue

@@ -90,7 +90,7 @@
 										<el-tree-select
 											v-model="formData[item.prop]"
 											:data="treeData"
-											:render-after-expand="false"
+											:render-after-expand="true"
 											:disabled="dialogLook || item.disabled"
 											node-key="id"
 											filterable
@@ -274,8 +274,10 @@ function handleConfirmClick(formEl: FormInstance | undefined, status: string) {
 		if (valid) {
 			dialogVisible.value = false;
 			// 可用状态 编辑始终 都是可用
-			if (formData.value.releaseStatus != '2') {
-				formData.value.releaseStatus == status;
+			if (formData.value.releaseStatus == '2') {
+				formData.value.releaseStatus = '2';
+			} else {
+				formData.value.releaseStatus = status;
 			}
 
 			let data = { ...formData.value };

+ 1 - 1
src/views/notificationInfoManage/mattersmanage/config/content.config.ts

@@ -19,7 +19,7 @@ const contentConfig = {
 		{ type: 'normal', label: '通报标准或具体行为列举', prop: 'notificationStandards', width: 180 },
 		{ type: 'normal', label: '通报依据', prop: 'notificationBasis', width: 90 },
 		{ type: 'custom', label: '发出单位', prop: 'deliveryUnit', slotName: 'deliveryUnit', width: 220 },
-		{ type: 'normal', label: '接收单位', prop: 'lonmMiddleStr', width: 220 },
+		{ type: 'normal', label: '接收单位', prop: 'receivingUnit', width: 220 },
 		{ type: 'custom', label: '发布状态', prop: 'releaseStatus', slotName: 'releaseStatus', width: 140 },
 		{ type: 'normal', label: '创建日期', prop: 'addDate', width: 140 },
 		{ type: 'normal', label: '创建人员', prop: 'addName', width: 140 },

+ 1 - 1
src/views/notificationInfoManage/mattersmanage/config/detail.config.ts

@@ -99,7 +99,7 @@ const modalConfig = {
 		},
 		{
 			label: '接收单位',
-			prop: 'lonmMiddle',
+			prop: 'receivingUnit',
 			type: 'input',
 			span: 24,
 			placeholder: ' 请输入接收单位',

+ 1 - 1
src/views/notificationInfoManage/mattersmanage/config/search.config.ts

@@ -52,7 +52,7 @@ const searchConfig = {
 		},
 		{
 			label: '接收单位',
-			prop: 'lonmMiddle',
+			prop: 'receivingUnit',
 			type: 'input',
 			placeholder: '请输入接收单位',
 		},

+ 1 - 3
src/views/notificationInfoManage/mattersmanage/index.vue

@@ -139,8 +139,6 @@ const handleAdd = () => {
 const searchTableRef = ref();
 // 状态按钮
 function handleStatus(value: string, status: string, str: string) {
-	ElMessage.success('小编在努力开发中。。。');
-	return;
 	ElMessageBox.confirm(`是否${str}这条数据?`, '状态提示', {
 		confirmButtonText: '确定',
 		cancelButtonText: '取消',
@@ -149,7 +147,7 @@ function handleStatus(value: string, status: string, str: string) {
 		.then(async () => {
 			const postData: any = await changeInventoryStatus(value, status);
 			if (postData.code === 200) {
-				tableListRef.value[0].fetchPageListData();
+				tableListRef.value.fetchPageListData();
 				ElMessage.success('操作成功!');
 			} else {
 				ElMessage.error('操作失败!');