| | |
| | | importExcelUrl: '/qms/inspectionPlan/importExcel', |
| | | exportXlsUrl: '/qms/inspectionPlan/exportXls', |
| | | edit:'/qms/inspectionPlan/edit', |
| | | submit:'/qms/inspectionPlan/submit', |
| | | active: '/qms/inspectionPlan/active', |
| | | publish:'/qms/inspectionPlan/publish', |
| | | version:'/qms/inspectionPlan/version' |
| | |
| | | computed: { |
| | | /* 导入路径页面重新计算 */ |
| | | importExcelUrl: function () { |
| | | // return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;//开发环境指向 |
| | | return `${window._CONFIG['hxFileURL']}/${this.url.importExcelUrl}` |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;//开发环境指向 |
| | | }, |
| | | }, |
| | | methods: { |
| | |
| | | this.$refs.modalForm.title = '新增' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | }, |
| | | handleSubmit(record) { |
| | | let that = this; |
| | | that.loading = true |
| | | getAction(that.url.submit, { id:record.id}).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.loadData(); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false |
| | | }) |
| | | }, |
| | | //启用禁用 |
| | | handleActive(id) { |
| | | if (!this.url.active) { |