diff --git a/src/pages/policyRegulation/standardTrackingList/Inventory.vue b/src/pages/policyRegulation/standardTrackingList/Inventory.vue
index 06d17deba..731495f7d 100644
--- a/src/pages/policyRegulation/standardTrackingList/Inventory.vue
+++ b/src/pages/policyRegulation/standardTrackingList/Inventory.vue
@@ -4,6 +4,7 @@
type="primary"
size="mini"
style="margin-bottom: 10px;"
+ :disabled="disabled"
@click="handleSearchStandard"
>
手动查找
@@ -12,6 +13,7 @@
type="danger"
size="mini"
style="margin-bottom: 10px;"
+ :disabled="disabled"
@click="handleDeleteStandard"
>
批量删除
@@ -67,6 +69,7 @@
placeholder="请选择产品类型"
size="mini"
clearable
+ :disabled="disabled"
>
@@ -105,6 +109,7 @@
placeholder="请选择实施要求"
clearable
size="mini"
+ :disabled="disabled"
>
[]
- }
+ },
+ disabled: {
+ type: Boolean,
+ default: false
+ },
},
data () {
return {
diff --git a/src/pages/policyRegulation/standardTrackingList/addModel.vue b/src/pages/policyRegulation/standardTrackingList/addModel.vue
index 9b64e10ed..bf310e791 100644
--- a/src/pages/policyRegulation/standardTrackingList/addModel.vue
+++ b/src/pages/policyRegulation/standardTrackingList/addModel.vue
@@ -21,19 +21,31 @@
class="form-item-first"
prop="checkListName"
label="核查清单名称"
+ :disabled="disabled"
/>
-
-
+
+
数据获取中...
@@ -43,6 +55,7 @@
type="primary"
size="mini"
:loading="isSubmit"
+ :disabled="disabled"
@click="onSubmit"
>
提交
@@ -146,6 +159,7 @@ export default {
},
loading: false,
reloadForm: true,
+ disabled: false,
}
},
methods: {
@@ -167,8 +181,14 @@ export default {
})
this.showDrawer = true
},
- edit (id) {
- this.title = '编辑'
+ edit (id, type) {
+ if (type && type === 'detail') {
+ this.title = '详情'
+ this.disabled = true
+ } else {
+ this.title = '编辑'
+ this.disabled = false
+ }
this.showDrawer = true
const config = { _this: this, loading: 'loading' }
this.$http._getData(this.url.getById, { checklistId: id }, config).then(res => {
diff --git a/src/pages/policyRegulation/standardTrackingList/index.vue b/src/pages/policyRegulation/standardTrackingList/index.vue
index 4e9a2769b..b5fef8462 100644
--- a/src/pages/policyRegulation/standardTrackingList/index.vue
+++ b/src/pages/policyRegulation/standardTrackingList/index.vue
@@ -131,7 +131,7 @@
sortable="custom"
>
- {{ row.checkListName }}
+ {{ row.checkListName }}