|
@@ -202,12 +202,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { listRenew, getRenew, delRenew, addRenew, updateRenew, exportRenew } from "@/api/personnel/relations/renew/index";
|
|
|
|
|
|
|
+import { listInfo, getInfo, delInfo, addInfo, updateInfo, exportInfo } from "@/api/personnel/attendance/info/index";
|
|
|
import PeopleSelect from "@/components/PeopleSelect/index.vue";
|
|
import PeopleSelect from "@/components/PeopleSelect/index.vue";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
import { listDept } from "@/api/system/dept";
|
|
import { listDept } from "@/api/system/dept";
|
|
|
-import { getBaseHeader } from "@/utils/request";
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "SystemDictType",
|
|
name: "SystemDictType",
|
|
|
components: {
|
|
components: {
|
|
@@ -300,7 +299,7 @@ export default {
|
|
|
getList() {
|
|
getList() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
// 执行查询
|
|
// 执行查询
|
|
|
- listRenew(this.queryParams).then(response => {
|
|
|
|
|
|
|
+ listInfo(this.queryParams).then(response => {
|
|
|
this.typeList = response.data.list;
|
|
this.typeList = response.data.list;
|
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -347,7 +346,7 @@ export default {
|
|
|
handleDetail(row) {
|
|
handleDetail(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
const id = row.id;
|
|
const id = row.id;
|
|
|
- getRenew(id).then(response => {
|
|
|
|
|
|
|
+ getInfo(id).then(response => {
|
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
|
this.openDetail = true;
|
|
this.openDetail = true;
|
|
|
this.title = "详情";
|
|
this.title = "详情";
|
|
@@ -357,7 +356,7 @@ export default {
|
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
this.reset();
|
|
|
const id = row.id;
|
|
const id = row.id;
|
|
|
- getRenew(id).then(response => {
|
|
|
|
|
|
|
+ getInfo(id).then(response => {
|
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
this.open = true;
|
|
|
this.title = "修改";
|
|
this.title = "修改";
|
|
@@ -368,13 +367,13 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
if (this.form.id !== undefined) {
|
|
if (this.form.id !== undefined) {
|
|
|
- updateRenew(this.form).then(response => {
|
|
|
|
|
|
|
+ updateInfo(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
- addRenew(this.form).then(response => {
|
|
|
|
|
|
|
+ addInfo(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
this.open = false;
|
|
|
this.getList();
|
|
this.getList();
|
|
@@ -387,7 +386,7 @@ export default {
|
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
|
this.$modal.confirm('是否确认删除字典编号为"' + ids + '"的数据项?').then(function () {
|
|
this.$modal.confirm('是否确认删除字典编号为"' + ids + '"的数据项?').then(function () {
|
|
|
- return delRenew(ids);
|
|
|
|
|
|
|
+ return delInfo(ids);
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.getList();
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
this.$modal.msgSuccess("删除成功");
|
|
@@ -402,7 +401,7 @@ export default {
|
|
|
// 执行导出
|
|
// 执行导出
|
|
|
this.$modal.confirm('是否确认导出所有数据项?').then(() => {
|
|
this.$modal.confirm('是否确认导出所有数据项?').then(() => {
|
|
|
this.exportLoading = true;
|
|
this.exportLoading = true;
|
|
|
- return exportRenew(params);
|
|
|
|
|
|
|
+ return exportInfo(params);
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
this.$download.excel(response, '.xls');
|
|
this.$download.excel(response, '.xls');
|
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|