Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
commit
d292b655d3
|
@ -70,7 +70,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12" v-if="systemLevel !== 1">
|
<el-col :span="12">
|
||||||
<el-form-item label="收件人" prop="ToUserTypeList">
|
<el-form-item label="收件人" prop="ToUserTypeList">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.ToUserTypeList"
|
v-model="form.ToUserTypeList"
|
||||||
|
|
|
@ -72,6 +72,9 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span style="margin-left: auto">
|
<span style="margin-left: auto">
|
||||||
|
<el-button type="primary" size="mini" @click="handleExport">
|
||||||
|
{{ $t('common:button:export') }}
|
||||||
|
</el-button>
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -378,6 +381,7 @@ import {
|
||||||
getEmailNoticeConfigList,
|
getEmailNoticeConfigList,
|
||||||
deleteEmailNoticeConfig,
|
deleteEmailNoticeConfig,
|
||||||
} from '@/api/dictionary'
|
} from '@/api/dictionary'
|
||||||
|
import { GetEmailNoticeConfigList_Export } from '@/api/export'
|
||||||
import BoxContent from '@/components/BoxContent'
|
import BoxContent from '@/components/BoxContent'
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import EmailForm from './EmailForm'
|
import EmailForm from './EmailForm'
|
||||||
|
@ -504,6 +508,13 @@ export default {
|
||||||
this.previewHTML = html
|
this.previewHTML = html
|
||||||
this.previewVisible = true
|
this.previewVisible = true
|
||||||
},
|
},
|
||||||
|
// 导出
|
||||||
|
handleExport() {
|
||||||
|
// this.searchData.IsDistinguishCriteria = this.isDistinguishCriteria
|
||||||
|
// this.searchData.systemLevel = this.systemLevel
|
||||||
|
// return GetEmailNoticeConfigList_Export(this.searchData)
|
||||||
|
return GetEmailNoticeConfigList_Export()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
></EmailList>
|
></EmailList>
|
||||||
</el-tab-pane>
|
</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
|
<EmailList
|
||||||
v-if="activeTab === '3'"
|
v-if="activeTab === '3'"
|
||||||
:is-distinguish-criteria="false"
|
:is-distinguish-criteria="false"
|
||||||
:system-level="2"
|
:system-level="2"
|
||||||
></EmailList>
|
></EmailList>
|
||||||
</el-tab-pane>
|
</el-tab-pane> -->
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</box-content>
|
</box-content>
|
||||||
</template>
|
</template>
|
||||||
|
@ -43,107 +43,107 @@
|
||||||
import {
|
import {
|
||||||
getEmailNoticeConfigList,
|
getEmailNoticeConfigList,
|
||||||
deleteEmailNoticeConfig,
|
deleteEmailNoticeConfig,
|
||||||
} from "@/api/dictionary";
|
} from '@/api/dictionary'
|
||||||
import BoxContent from "@/components/BoxContent";
|
import BoxContent from '@/components/BoxContent'
|
||||||
import Pagination from "@/components/Pagination";
|
import Pagination from '@/components/Pagination'
|
||||||
import EmailList from "./components/EmailList";
|
import EmailList from './components/EmailList'
|
||||||
const searchDataDefault = () => {
|
const searchDataDefault = () => {
|
||||||
return {
|
return {
|
||||||
IsReturnRequired: "",
|
IsReturnRequired: '',
|
||||||
IsUrgent: "",
|
IsUrgent: '',
|
||||||
IsEnable: "",
|
IsEnable: '',
|
||||||
PageIndex: 1,
|
PageIndex: 1,
|
||||||
PageSize: 20,
|
PageSize: 20,
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
export default {
|
export default {
|
||||||
name: "EmailListIndex",
|
name: 'EmailListIndex',
|
||||||
components: { BoxContent, Pagination, EmailList },
|
components: { BoxContent, Pagination, EmailList },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
activeTab: "0",
|
activeTab: '0',
|
||||||
searchData: searchDataDefault(),
|
searchData: searchDataDefault(),
|
||||||
loading: false,
|
loading: false,
|
||||||
list: [],
|
list: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
rowData: {},
|
rowData: {},
|
||||||
title: "",
|
title: '',
|
||||||
editVisible: false,
|
editVisible: false,
|
||||||
attachmentVisible: false,
|
attachmentVisible: false,
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 获取受试者列表
|
// 获取受试者列表
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true
|
||||||
getEmailNoticeConfigList(this.searchData)
|
getEmailNoticeConfigList(this.searchData)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
this.list = res.Result.CurrentPageData;
|
this.list = res.Result.CurrentPageData
|
||||||
this.total = res.Result.TotalCount;
|
this.total = res.Result.TotalCount
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.loading = false;
|
this.loading = false
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
// 新增
|
// 新增
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.rowData = {};
|
this.rowData = {}
|
||||||
this.title = "新增";
|
this.title = '新增'
|
||||||
this.editVisible = true;
|
this.editVisible = true
|
||||||
},
|
},
|
||||||
// 编辑
|
// 编辑
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
this.rowData = { ...row };
|
this.rowData = { ...row }
|
||||||
this.title = "编辑";
|
this.title = '编辑'
|
||||||
this.editVisible = true;
|
this.editVisible = true
|
||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$confirm(this.$t("trials:staffResearch:message:confirmDel"), {
|
this.$confirm(this.$t('trials:staffResearch:message:confirmDel'), {
|
||||||
type: "warning",
|
type: 'warning',
|
||||||
distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
deleteEmailNoticeConfig(row.Id).then((res) => {
|
deleteEmailNoticeConfig(row.Id).then((res) => {
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.getList();
|
this.getList()
|
||||||
this.$message.success("删除成功!");
|
this.$message.success('删除成功!')
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
handleDetail(row) {
|
handleDetail(row) {
|
||||||
this.rowData = { ...row };
|
this.rowData = { ...row }
|
||||||
this.attachmentVisible = true;
|
this.attachmentVisible = true
|
||||||
},
|
},
|
||||||
// 查询
|
// 查询
|
||||||
handleSearch() {
|
handleSearch() {
|
||||||
this.searchData.PageIndex = 1;
|
this.searchData.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 重置
|
// 重置
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.searchData = searchDataDefault();
|
this.searchData = searchDataDefault()
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 排序
|
// 排序
|
||||||
handleSortByColumn(column) {
|
handleSortByColumn(column) {
|
||||||
if (column.order === "ascending") {
|
if (column.order === 'ascending') {
|
||||||
this.searchData.Asc = true;
|
this.searchData.Asc = true
|
||||||
} else {
|
} else {
|
||||||
this.searchData.Asc = false;
|
this.searchData.Asc = false
|
||||||
}
|
}
|
||||||
this.searchData.SortField = column.prop;
|
this.searchData.SortField = column.prop
|
||||||
this.searchData.PageIndex = 1;
|
this.searchData.PageIndex = 1
|
||||||
this.getList();
|
this.getList()
|
||||||
},
|
},
|
||||||
// 关闭新增、编辑框
|
// 关闭新增、编辑框
|
||||||
closeDialog() {
|
closeDialog() {
|
||||||
this.editVisible = false;
|
this.editVisible = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue