Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running Details

uat_us
caiyiling 2024-11-04 11:08:50 +08:00
commit d292b655d3
3 changed files with 60 additions and 49 deletions

View File

@ -70,7 +70,7 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="systemLevel !== 1">
<el-col :span="12">
<el-form-item label="收件人" prop="ToUserTypeList">
<el-select
v-model="form.ToUserTypeList"

View File

@ -72,6 +72,9 @@
</el-form-item>
</el-form>
<span style="margin-left: auto">
<el-button type="primary" size="mini" @click="handleExport">
{{ $t('common:button:export') }}
</el-button>
<!-- <el-button
type="primary"
size="mini"
@ -378,6 +381,7 @@ import {
getEmailNoticeConfigList,
deleteEmailNoticeConfig,
} from '@/api/dictionary'
import { GetEmailNoticeConfigList_Export } from '@/api/export'
import BoxContent from '@/components/BoxContent'
import Pagination from '@/components/Pagination'
import EmailForm from './EmailForm'
@ -504,6 +508,13 @@ export default {
this.previewHTML = html
this.previewVisible = true
},
//
handleExport() {
// this.searchData.IsDistinguishCriteria = this.isDistinguishCriteria
// this.searchData.systemLevel = this.systemLevel
// return GetEmailNoticeConfigList_Export(this.searchData)
return GetEmailNoticeConfigList_Export()
},
},
}
</script>

View File

@ -29,13 +29,13 @@
></EmailList>
</el-tab-pane>
<!-- 系统相关-分角色 -->
<el-tab-pane :label="$t('trials:emailManageCfg:title:systemDisRole')" name="3">
<!-- <el-tab-pane :label="$t('trials:emailManageCfg:title:systemDisRole')" name="3">
<EmailList
v-if="activeTab === '3'"
:is-distinguish-criteria="false"
:system-level="2"
></EmailList>
</el-tab-pane>
</el-tab-pane> -->
</el-tabs>
</box-content>
</template>
@ -43,107 +43,107 @@
import {
getEmailNoticeConfigList,
deleteEmailNoticeConfig,
} from "@/api/dictionary";
import BoxContent from "@/components/BoxContent";
import Pagination from "@/components/Pagination";
import EmailList from "./components/EmailList";
} from '@/api/dictionary'
import BoxContent from '@/components/BoxContent'
import Pagination from '@/components/Pagination'
import EmailList from './components/EmailList'
const searchDataDefault = () => {
return {
IsReturnRequired: "",
IsUrgent: "",
IsEnable: "",
IsReturnRequired: '',
IsUrgent: '',
IsEnable: '',
PageIndex: 1,
PageSize: 20,
};
};
}
}
export default {
name: "EmailListIndex",
name: 'EmailListIndex',
components: { BoxContent, Pagination, EmailList },
data() {
return {
activeTab: "0",
activeTab: '0',
searchData: searchDataDefault(),
loading: false,
list: [],
total: 0,
rowData: {},
title: "",
title: '',
editVisible: false,
attachmentVisible: false,
};
}
},
mounted() {
this.getList();
this.getList()
},
methods: {
//
getList() {
this.loading = true;
this.loading = true
getEmailNoticeConfigList(this.searchData)
.then((res) => {
this.loading = false;
this.list = res.Result.CurrentPageData;
this.total = res.Result.TotalCount;
this.loading = false
this.list = res.Result.CurrentPageData
this.total = res.Result.TotalCount
})
.catch(() => {
this.loading = false;
});
this.loading = false
})
},
//
handleAdd() {
this.rowData = {};
this.title = "新增";
this.editVisible = true;
this.rowData = {}
this.title = '新增'
this.editVisible = true
},
//
handleEdit(row) {
this.rowData = { ...row };
this.title = "编辑";
this.editVisible = true;
this.rowData = { ...row }
this.title = '编辑'
this.editVisible = true
},
//
handleDelete(row) {
this.$confirm(this.$t("trials:staffResearch:message:confirmDel"), {
type: "warning",
this.$confirm(this.$t('trials:staffResearch:message:confirmDel'), {
type: 'warning',
distinguishCancelAndClose: true,
}).then(() => {
deleteEmailNoticeConfig(row.Id).then((res) => {
if (res.IsSuccess) {
this.getList();
this.$message.success("删除成功!");
this.getList()
this.$message.success('删除成功!')
}
});
});
})
})
},
handleDetail(row) {
this.rowData = { ...row };
this.attachmentVisible = true;
this.rowData = { ...row }
this.attachmentVisible = true
},
//
handleSearch() {
this.searchData.PageIndex = 1;
this.getList();
this.searchData.PageIndex = 1
this.getList()
},
//
handleReset() {
this.searchData = searchDataDefault();
this.getList();
this.searchData = searchDataDefault()
this.getList()
},
//
handleSortByColumn(column) {
if (column.order === "ascending") {
this.searchData.Asc = true;
if (column.order === 'ascending') {
this.searchData.Asc = true
} else {
this.searchData.Asc = false;
this.searchData.Asc = false
}
this.searchData.SortField = column.prop;
this.searchData.PageIndex = 1;
this.getList();
this.searchData.SortField = column.prop
this.searchData.PageIndex = 1
this.getList()
},
//
closeDialog() {
this.editVisible = false;
this.editVisible = false
},
},
};
}
</script>