feat:再次调整
This commit is contained in:
@ -47,8 +47,8 @@ import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||
import Pages from "@/components/aboutTable/Pages.vue";
|
||||
import Search from "@/components/aboutTable/Search.vue";
|
||||
import { useRoute } from 'vue-router'
|
||||
import { getJudgmentCommandList, signCommand, feedbackCommand } from "@/api/huiShangyp/judgmentCommand.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance, watch,computed } from "vue";
|
||||
import { getJudgmentCommandList, deleteJudgmentCommand } from "@/api/huiShangyp/judgmentCommand.js";
|
||||
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")
|
||||
@ -67,7 +67,7 @@ onMounted(() => {
|
||||
|
||||
|
||||
const searchConfiger = ref([
|
||||
{ label: "研判议题", prop: 'ypyt', placeholder: "请输入研判议题", showType: "input" },
|
||||
{ label: "指令标题", prop: 'zlbt', placeholder: "请输入研判议题", showType: "input" },
|
||||
// { label: "研判方式", prop: 'ypfs', placeholder: "请输入研判方式", showType: "radio",options:D_BZ_YPFS },
|
||||
]);
|
||||
|
||||
@ -86,12 +86,9 @@ 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: "ssbm" },
|
||||
{ label: "指令标题", prop: "zlbt" },
|
||||
{ label: "指令内容", prop: "zlnr", },
|
||||
{ label: "部门", prop: "xfbmMc" },
|
||||
]
|
||||
});
|
||||
const queryFrom = ref({});
|
||||
@ -119,7 +116,7 @@ const changeSize = (val) => {
|
||||
// 获取列表
|
||||
const getList = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value, wjlb: '01' };
|
||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||
getJudgmentCommandList(data).then(res => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
@ -131,7 +128,7 @@ const getList = () => {
|
||||
// 表格高度计算
|
||||
const tabHeightFn = () => {
|
||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||
window.onresize = function () {
|
||||
window.onresize = function() {
|
||||
tabHeightFn();
|
||||
};
|
||||
};
|
||||
@ -148,7 +145,7 @@ const deleteFile = (row) => {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
sjzldeleteEntity({ ids: [row.id] }).then(res => {
|
||||
deleteJudgmentCommand({ ids: [row.id] }).then(res => {
|
||||
proxy.$message.success('删除成功');
|
||||
getList();
|
||||
}).catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user