lcw
This commit is contained in:
@ -16,13 +16,14 @@
|
||||
<el-table-column prop="ypbmmc" label="部门" width="150" align="center" />
|
||||
<el-table-column label="素材要求" align="center">
|
||||
<template #default="{ row }">
|
||||
<el-input v-model="row.scyq" type="textarea" :rows="4" :disabled="isDetail || !isShiQingBaoZhongXin" placeholder="请输入研判素材" />
|
||||
<el-input v-model="row.scyq" type="textarea" :rows="4" :disabled="isDetail || !isShiQingBaoZhongXin"
|
||||
placeholder="请输入研判素材" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="附件" align="center">
|
||||
<template #default="{ row }">
|
||||
<UploadFile v-model="row.fj" :disabled="isDetail || (!isShiQingBaoZhongXin && !isAdd)" :limit="1" :isImg="false"
|
||||
:isAll="true" />
|
||||
<UploadFile v-model="row.fj" :disabled="isDetail || (!isShiQingBaoZhongXin && !isAdd)" :limit="1"
|
||||
:isImg="false" :isAll="true" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="wcqk" label="完成状态" width="80" align="center">
|
||||
@ -32,7 +33,7 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="180" align="center">
|
||||
<!-- <el-table-column label="操作" width="180" align="center">
|
||||
<template #default="{ row }">
|
||||
|
||||
<el-button type="text" size="small" @click="updateStatus(row)" :disabled="updateDis(row)">
|
||||
@ -42,14 +43,14 @@
|
||||
提交素材
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
</FormMessage>
|
||||
</div>
|
||||
<!-- 底部按钮 -->
|
||||
<div class="bottom-actions" v-if="title !== '新增' && listQuery.id && listQuery.ssbmdm == userInfo.deptCode" >
|
||||
<div class="bottom-actions" v-if="title !== '新增' && listQuery.id && listQuery.ssbmdm == userInfo.deptCode">
|
||||
<el-button type="primary" size="small" @click="sendNotice" :loading="noticeLoading">下发通知</el-button>
|
||||
<el-button type="success" size="small" @click="confirmJudgment" :loading="confirmLoading">确认研判</el-button>
|
||||
</div>
|
||||
@ -148,20 +149,28 @@ const confirmLoading = ref(false) // 确认研判加载状态
|
||||
|
||||
const rules = reactive({
|
||||
// 可以在这里添加表单验证规则
|
||||
ypsj: [
|
||||
{ required: true, message: '请选择约稿时间', trigger: 'change' }
|
||||
],
|
||||
jzsj:[ { required: true, message: '请选择截止时间', trigger: 'change' }]
|
||||
|
||||
});
|
||||
watch(() => props.dict, (val) => {
|
||||
if (val) {
|
||||
formData.value = [
|
||||
{ label: "研判议题", prop: "ypyt", type: "input", width: '48%', disabled: isDetail.value },
|
||||
{ label: "研判时间", prop: "ypsj", type: "datetime", width: '48%' , disabled: isDetail.value },
|
||||
{ label: "报告类型", prop: "bglx", type: "radio", options: props.dict.D_BZ_YPLX, width: '48%' , disabled: isDetail.value },
|
||||
{ label: "研判方式", prop: "ypfs", type: "radio", options: props.dict.D_BZ_YPFS, width: '48%' , disabled: isDetail.value },
|
||||
{ label: "参与研判部门", prop: "jsdxBmDm", type: "department", multiple: true, depMc: 'jsdxBmMc', width: '48%' , disabled: isDetail.value },
|
||||
{ label: "研判要求", prop: "ypyq", type: "textarea", width: '100%' , disabled: isDetail.value },
|
||||
{ label: "列表", prop: "bmList", type: "slot", width: '100%' },
|
||||
// { label: "研判议题", prop: "ypyt", type: "input", width: '48%', disabled: isDetail.value },
|
||||
{ label: "约稿时间", prop: "ypsj", type: "datetime", width: '48%', disabled: isDetail.value },
|
||||
{ label: "截止时间", prop: "jzsj", type: "datetime", width: '48%', disabled: isDetail.value },
|
||||
// { label: "报告类型", prop: "bglx", type: "radio", options: props.dict.D_BZ_YPLX, width: '48%' , disabled: isDetail.value },
|
||||
// { label: "研判方式", prop: "ypfs", type: "radio", options: props.dict.D_BZ_YPFS, width: '48%' , disabled: isDetail.value },
|
||||
{ label: "约稿部门", prop: "jsdxBmDm", type: "department", multiple: true, depMc: 'jsdxBmMc', width: '48%', disabled: isDetail.value },
|
||||
{ label: "约稿要求", prop: "ypyq", type: "textarea", width: '100%', disabled: isDetail.value },
|
||||
{ label: "列表", prop: "bmList", type: "slot", width: '100%' },
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
/** 是否修改禁用 */
|
||||
function updateDis(row) {
|
||||
/** 无id 禁用 */
|
||||
@ -461,6 +470,7 @@ defineExpose({ init });
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
||||
// z-index: 1000;
|
||||
}
|
||||
|
||||
.table-box {
|
||||
// width: calc(100% - 2px);
|
||||
width: 100%;
|
||||
|
||||
@ -4,16 +4,16 @@
|
||||
<div ref="searchBox" class="mt10">
|
||||
<Search :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount" />
|
||||
</div>
|
||||
<PageTitle :malginLeft="10" :height="35" backgroundColor="#ffff" :marginBottom="5" :marginTop="5">
|
||||
<PageTitle :malginLeft="10" :height="35" backgroundColor="#ffff" :marginBottom="5" :marginTop="5">
|
||||
<template #left>
|
||||
<el-button type="primary" size="small" @click="getDataById('add', '')">
|
||||
<el-button type="primary" size="small" @click="getDataById('add', '')">
|
||||
<el-icon style="vertical-align: middle">
|
||||
<CirclePlus />
|
||||
</el-icon>
|
||||
<span style="vertical-align: middle">新增</span>
|
||||
</el-button>
|
||||
</template>
|
||||
</PageTitle>
|
||||
</PageTitle>
|
||||
<!-- 表格 -->
|
||||
<div class="tabBox">
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||
@ -26,9 +26,11 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link size="small" type="primary" @click="getDataById('edit', row)" :disabled="userInfo.deptCode!=row.ssbmdm">修改</el-link>
|
||||
<el-link size="small" type="primary" @click="getDataById('edit', row)"
|
||||
:disabled="userInfo.deptCode != row.ssbmdm">修改</el-link>
|
||||
<el-link size="small" type="primary" @click="getDataById('detail', row)">详情</el-link>
|
||||
<el-link size="small" type="danger" @click="deleteFile(row)" :disabled="userInfo.deptCode!=row.ssbmdm">删除</el-link>
|
||||
<el-link size="small" type="danger" @click="deleteFile(row)"
|
||||
:disabled="userInfo.deptCode != row.ssbmdm">删除</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||
@ -48,7 +50,7 @@ import Search from "@/components/aboutTable/Search.vue";
|
||||
import { useRoute } from 'vue-router'
|
||||
import { getItem } from "@/utils/storage.js";
|
||||
import { sjzlGetPageList, sjzldeleteEntity } from "@/api/yj.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance, watch,computed } from "vue";
|
||||
import { reactive, ref, onMounted, getCurrentInstance, watch, computed } from "vue";
|
||||
import AddForm from "./addForm.vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_BZ_YPFS, D_BZ_YPLX } = proxy.$dict("D_BZ_YPFS", "D_BZ_YPLX")
|
||||
@ -57,7 +59,7 @@ const searchBox = ref(); //搜索框
|
||||
|
||||
const userInfo = ref({})
|
||||
onMounted(() => {
|
||||
userInfo.value = getItem('deptId')?getItem('deptId')[0]:{}
|
||||
userInfo.value = getItem('deptId') ? getItem('deptId')[0] : {}
|
||||
tabHeightFn()
|
||||
if (route.query.id) {
|
||||
detailDiloag.value.init('edit', {
|
||||
@ -77,7 +79,8 @@ const isShiQingBaoZhongXin = computed(() => {
|
||||
})
|
||||
|
||||
const searchConfiger = ref([
|
||||
{ label: "研判议题", prop: 'ypyt', placeholder: "请输入研判议题", showType: "input" },
|
||||
{ label: "约稿时间", prop: 'startTime', placeholder: "请输入约稿时间", showType: "datetimerange" },
|
||||
{ label: "约稿要求", prop: 'ypyq', placeholder: "请输入约稿要求", showType: "input" },
|
||||
// { label: "研判方式", prop: 'ypfs', placeholder: "请输入研判方式", showType: "radio",options:D_BZ_YPFS },
|
||||
]);
|
||||
|
||||
@ -96,11 +99,12 @@ const pageData = reactive({
|
||||
},
|
||||
controlsWidth: 240,
|
||||
tableColumn: [
|
||||
{ label: "研判议题", prop: "ypyt" },
|
||||
{ label: "研判方式", prop: "ypfs", showSolt: true },
|
||||
{ label: "报告类型", prop: "bglx", showSolt: true },
|
||||
{ label: "研判时间", prop: "ypsj" },
|
||||
{ label: "研判要求", prop: "ypyq" },
|
||||
// { label: "研判议题", prop: "ypyt" },
|
||||
// { label: 方式", prop: "ypfs", showSolt: true },
|
||||
// { label: "报告类型", prop: "bglx", showSolt: true },
|
||||
{ label: "约稿时间", prop: "ypsj" },
|
||||
{ label: "截止时间", prop: "jzsj" },
|
||||
{ label: "约稿要求", prop: "ypyq" },
|
||||
{ label: "发起部门", prop: "ssbm" },
|
||||
]
|
||||
});
|
||||
@ -111,6 +115,8 @@ const onSearch = (val) => {
|
||||
const promes = {
|
||||
...val,
|
||||
...pageData.pageConfiger,
|
||||
startTime: val.startTime ? val.startTime[0] : '',
|
||||
endTime: val.startTime ? val.startTime[1] : '',
|
||||
}
|
||||
queryFrom.value = { ...promes }
|
||||
pageData.pageConfiger.pageCurrent = 1;
|
||||
|
||||
Reference in New Issue
Block a user