-
+
{{ disableEdit ? '返回' : '取消' }}
import DialogForm from '../../../components/DialogForm/index.vue';
import { groupConnectWorkshop } from '@/utils/equipment-module';
-
-const SmallTitle = {
- name: 'SmallTitle',
- props: ['size'],
- components: {},
- data() {
- return {};
- },
- methods: {},
- render: function (h) {
- return h(
- 'span',
- {
- class: 'small-title',
- style: {
- fontSize: '18px',
- lineHeight:
- this.size == 'lg' ? '24px' : this.size == 'sm' ? '18px' : '20px',
- fontWeight: 500,
- fontFamily: '微软雅黑, Microsoft YaHei, Arial, Helvetica, sans-serif',
- },
- },
- this.$slots.default
- );
- },
-};
+import BaseDialogWrapperVue from '../components/BaseDialogWrapper.vue';
+import SmallTitle from '../components/SmallTitle.js';
export default {
- components: { SmallTitle, DialogForm },
+ components: { SmallTitle, DialogForm, BaseDialog: BaseDialogWrapperVue },
props: ['dataId'], // dataId 作为一个通用的存放id的字段
data() {
return {
@@ -411,6 +389,35 @@ export default {
this.getList('inspector');
},
methods: {
+ /** 确认是否关闭 */
+ async handleConfirmClose() {
+ if (this.disableEdit) return this.handleCancel();
+
+ try {
+ if (
+ await this.$confirm(
+
+
+ 确认要关闭页面吗?
+
+
+ 确定关闭将不保留编辑内容
+
+
,
+ {
+ confirmButtonText: '确 定',
+ cancelButtonText: '取 消',
+ type: 'warning',
+ }
+ )
+ ) {
+ this.handleCancel();
+ }
+ } catch (err) {
+ return false;
+ }
+ },
+
handleSearchBarBtnClick(btn) {
switch (btn.btnName) {
case 'search':
diff --git a/src/views/specialEquipment/check/Content.vue b/src/views/specialEquipment/check/Content.vue
index 682f2ca9..fd2c8afd 100644
--- a/src/views/specialEquipment/check/Content.vue
+++ b/src/views/specialEquipment/check/Content.vue
@@ -64,10 +64,18 @@ import { parseTime } from '../../core/mixins/code-filter';
import CheckOrderListTable from './CheckOrderListTable.vue';
import edit from './Content-edit.vue';
import AddCheckDet from './Content-add_detail.vue';
+import BaseDialogWrapperVue from '../components/BaseDialogWrapper.vue';
export default {
name: 'SpecialEquipmentCheckConfig',
- components: { addOrUpdata, add, edit, AddCheckDet, CheckOrderListTable },
+ components: {
+ addOrUpdata,
+ add,
+ edit,
+ AddCheckDet,
+ BaseDialog: BaseDialogWrapperVue,
+ CheckOrderListTable,
+ },
mixins: [basicPageMixin],
data() {
return {
@@ -86,7 +94,7 @@ export default {
? {
type: 'edit',
btnName: '修改',
- }
+ }
: undefined,
{
type: 'detail',
@@ -96,7 +104,7 @@ export default {
? {
type: 'delete',
btnName: '删除',
- }
+ }
: undefined,
].filter((v) => v),
tableProps: [
@@ -334,9 +342,8 @@ export default {
}
return this.$axios({
- url:
- `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
- // + checkPersonParam,
+ url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
+ // + checkPersonParam,
// '/base/equipment-check-order/confirm?ids=' + JSON.stringify([id]).replaceAll("\"", ''),
method: 'put',
data: [id],
diff --git a/src/views/specialEquipment/check/Record-detail.vue b/src/views/specialEquipment/check/Record-detail.vue
index 5ebee49f..6396e241 100644
--- a/src/views/specialEquipment/check/Record-detail.vue
+++ b/src/views/specialEquipment/check/Record-detail.vue
@@ -7,9 +7,10 @@
- {{ form.name }}
+ {{ form.name || '---' }}
- {{ form.department }}
+ {{ form.department || '---' }}
@@ -111,7 +112,7 @@
-
+
{{ disableEdit ? '返回' : '取消' }}
import { parseTime } from '../../core/mixins/code-filter';
import DialogForm from '../../../components/DialogForm/index.vue';
-
-const SmallTitle = {
- name: 'SmallTitle',
- props: ['size'],
- components: {},
- data() {
- return {};
- },
- methods: {},
- render: function (h) {
- return h(
- 'span',
- {
- class: 'small-title',
- style: {
- fontSize: '18px',
- lineHeight:
- this.size == 'lg' ? '24px' : this.size == 'sm' ? '18px' : '20px',
- fontWeight: 500,
- fontFamily: '微软雅黑, Microsoft YaHei, Arial, Helvetica, sans-serif',
- },
- },
- this.$slots.default
- );
- },
-};
+import BaseDialogWrapperVue from '../components/BaseDialogWrapper.vue';
+import SmallTitle from '../components/SmallTitle.js';
export default {
- components: { SmallTitle, DialogForm },
+ components: { SmallTitle, DialogForm, BaseDialog: BaseDialogWrapperVue },
props: ['dataId'], // dataId 作为一个通用的存放id的字段
filters: { parseTime },
data() {
diff --git a/src/views/specialEquipment/check/add-or-updata.vue b/src/views/specialEquipment/check/add-or-updata.vue
index bdf46a00..3f85a426 100644
--- a/src/views/specialEquipment/check/add-or-updata.vue
+++ b/src/views/specialEquipment/check/add-or-updata.vue
@@ -9,7 +9,9 @@
@@ -37,12 +39,12 @@
-->
- {{ dataForm.name }}
+ {{ dataForm.name || '---' }}
- {{ dataForm.department }}
+ {{ dataForm.department || '---' }}
@@ -94,7 +96,7 @@
@pagination="getList" />
@@ -111,7 +113,7 @@
+
+
diff --git a/src/views/specialEquipment/components/SmallTitle.js b/src/views/specialEquipment/components/SmallTitle.js
new file mode 100644
index 00000000..d517c97e
--- /dev/null
+++ b/src/views/specialEquipment/components/SmallTitle.js
@@ -0,0 +1,32 @@
+//
+
+export default {
+ name: 'SmallTitle',
+ props: ['size'],
+ components: {},
+ data() {
+ return {};
+ },
+ methods: {},
+ render: function (h) {
+ return h(
+ 'span',
+ {
+ class: 'small-title',
+ style: {
+ fontSize: '18px',
+ lineHeight:
+ this.size == 'lg' ? '24px' : this.size == 'sm' ? '18px' : '20px',
+ fontWeight: 500,
+ fontFamily: '微软雅黑, Microsoft YaHei, Arial, Helvetica, sans-serif',
+ },
+ },
+ this.$slots.default
+ );
+ },
+};
diff --git a/src/views/specialEquipment/components/firefightingDrawer.vue b/src/views/specialEquipment/components/firefightingDrawer.vue
index 8339b653..78a2df74 100644
--- a/src/views/specialEquipment/components/firefightingDrawer.vue
+++ b/src/views/specialEquipment/components/firefightingDrawer.vue
@@ -121,35 +121,16 @@