明树Git Lab

Commit dd63132b authored by zhanghan's avatar zhanghan

日常信息报送 投委会档案 开发完毕

parent e91d68aa
Pipeline #106733 passed with stage
in 18 seconds
...@@ -372,7 +372,6 @@ const saveClick = () => { ...@@ -372,7 +372,6 @@ const saveClick = () => {
}, },
error: () => { error: () => {
loading.value = false; loading.value = false;
ElMessage.error("操作失败,请稍后重试");
}, },
}); });
}; };
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="manage-header"> <div class="manage-header">
<div class="header-left"></div> <div class="header-left"></div>
<div class="header-right"> <div class="header-right">
<el-button type="primary" @click="investmentAdd">新增</el-button> <el-button type="primary" @click="everydayAdd">新增</el-button>
</div> </div>
</div> </div>
<div class="manage-content" v-loading="loading"> <div class="manage-content" v-loading="loading">
...@@ -64,46 +64,31 @@ const { proxy } = getCurrentInstance(); ...@@ -64,46 +64,31 @@ const { proxy } = getCurrentInstance();
let tableData = ref([]); let tableData = ref([]);
let tableColumns = ref([ let tableColumns = ref([
{ {
prop: "itemName", prop: "wjmc",
label: "事项名称", label: "文件名称",
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ {
prop: "itemType", prop: "nd",
label: "事项类型", label: "报送年度",
showOverflowTooltip: true,
},
{
prop: "planYear",
label: "编制年度",
showOverflowTooltip: true,
},
{
prop: "planCycle",
label: "规划周期(年)",
showOverflowTooltip: true,
},
{
prop: "planUnit",
label: "编制单位",
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ {
prop: "leadingDepartment", prop: "bzr",
label: "牵头部门", label: "编制人",
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ {
prop: "creatorName", prop: "bzrbm",
label: "填报人", label: "编制人部门",
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ {
prop: "creatorTime", prop: "fjscLen",
label: "填报时间", label: "附件",
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ {
prop: "operations", prop: "operations",
label: "操作", label: "操作",
...@@ -121,7 +106,7 @@ let pageSize = ref(10); ...@@ -121,7 +106,7 @@ let pageSize = ref(10);
const getStatementData = () => { const getStatementData = () => {
loading.value = true; loading.value = true;
proxy.$post({ proxy.$post({
url: "/api/project/getTzghList", url: "/api/project/getXxbsList",
data: { data: {
page: currentPage.value, page: currentPage.value,
pagesize: pageSize.value, pagesize: pageSize.value,
...@@ -148,12 +133,12 @@ const handleCurrentPageChange = (page) => { ...@@ -148,12 +133,12 @@ const handleCurrentPageChange = (page) => {
currentPage.value = page; currentPage.value = page;
getStatementData(); getStatementData();
}; };
const investmentAdd = () => { const everydayAdd = () => {
router.push("/investmentAdd"); router.push("/everydayAdd");
}; };
const editStatement = (item) => { const editStatement = (item) => {
router.push({ router.push({
name: "investmentAdd", name: "everydayAdd",
query: { query: {
id: item.id, id: item.id,
}, },
...@@ -161,7 +146,7 @@ const editStatement = (item) => { ...@@ -161,7 +146,7 @@ const editStatement = (item) => {
}; };
const previewStatement = (item) => { const previewStatement = (item) => {
router.push({ router.push({
name: "investmentAdd", name: "everydayAdd",
query: { query: {
isPreview: true, isPreview: true,
id: item.id, id: item.id,
...@@ -176,7 +161,7 @@ const deleteStatement = (item) => { ...@@ -176,7 +161,7 @@ const deleteStatement = (item) => {
}) })
.then(() => { .then(() => {
proxy.$post({ proxy.$post({
url: "/api/project/deleteTzgh", url: "/api/project/deleteXxbs",
data: { data: {
id: item.id, id: item.id,
}, },
......
This diff is collapsed.
...@@ -91,9 +91,9 @@ ...@@ -91,9 +91,9 @@
<el-form-item label="填报时间"> <el-form-item label="填报时间">
<el-date-picker <el-date-picker
v-model="formData.creatorTime" v-model="formData.creatorTime"
type="date" type="datetime"
format="YYYY-MM-DD" format="YYYY-MM-DD HH:mm:ss"
value-format="YYYY-MM-DD" value-format="YYYY-MM-DD HH:mm:ss"
placeholder="请选择填报时间" placeholder="请选择填报时间"
picker-options="{ disabledDate: (date) => date > new Date() }" picker-options="{ disabledDate: (date) => date > new Date() }"
/> />
...@@ -227,7 +227,6 @@ const saveClick = () => { ...@@ -227,7 +227,6 @@ const saveClick = () => {
}, },
error: (err) => { error: (err) => {
loading.value = false; loading.value = false;
ElMessage.error(err.msg || "操作失败,请稍后重试");
}, },
}); });
}; };
......
...@@ -143,7 +143,6 @@ const saveClick = () => { ...@@ -143,7 +143,6 @@ const saveClick = () => {
}, },
error: () => { error: () => {
loading.value = false; loading.value = false;
ElMessage.error("操作失败,请稍后重试");
}, },
}); });
}; };
......
...@@ -125,7 +125,8 @@ const getStatementData = () => { ...@@ -125,7 +125,8 @@ const getStatementData = () => {
tableData.value = data.rows.map((it) => { tableData.value = data.rows.map((it) => {
return { return {
...it, ...it,
fjscLen: it.fjsc?.length + "个", meetingMinutesAttachmentLen:
it.meetingMinutesAttachment?.length + "份",
}; };
}); });
total.value = data.count; total.value = data.count;
......
...@@ -170,17 +170,17 @@ const saveClick = () => { ...@@ -170,17 +170,17 @@ const saveClick = () => {
loading.value = true; loading.value = true;
// 投委会管理专属新增/编辑接口 // 投委会管理专属新增/编辑接口
console.log(rcTwhglId.value, "rcTwhglId.value");
const url = rcTwhglId.value const url = rcTwhglId.value
? "/api/project/updateRcTwhgl" ? "/api/project/updateTwhgl"
: "/api/project/createRcTwhgl"; : "/api/project/createTwhgl";
proxy.$post({ proxy.$post({
url: url, url: url,
data: { ...formData }, data: { ...formData },
callback: () => { callback: () => {
loading.value = false; loading.value = false;
ElMessage.success( ElMessage.success(rcTwhglId.value ? "编辑成功" : "新增成功");
rcTwhglId.value ? "投委会记录编辑成功" : "投委会记录新增成功"
);
router.back(-1); router.back(-1);
}, },
error: (err) => { error: (err) => {
...@@ -188,8 +188,6 @@ const saveClick = () => { ...@@ -188,8 +188,6 @@ const saveClick = () => {
// 唯一键冲突特殊提示(会议编号重复) // 唯一键冲突特殊提示(会议编号重复)
if (err.msg?.includes("unique") || err.msg?.includes("重复")) { if (err.msg?.includes("unique") || err.msg?.includes("重复")) {
ElMessage.error("会议编号已存在,请更换唯一编号后重试"); ElMessage.error("会议编号已存在,请更换唯一编号后重试");
} else {
ElMessage.error(err.msg || "操作失败,请稍后重试");
} }
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment