From 99e94aa2b7d2bd6736b1dfdf2ed6be54a4c8cdec Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期三, 13 十二月 2023 09:28:42 +0800
Subject: [PATCH] 删除权限控制
---
web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue b/web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue
index b91c86c..fd37e36 100644
--- a/web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue
+++ b/web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue
@@ -28,7 +28,7 @@
</el-date-picker>
</el-form-item>
<el-form-item class="marginTopAndMarginBottom2" label="搴撶被鍨�" style="width: 99%">
- <zt-dict v-model="dataForm.configItemChange.libraryType" :radio="true" dict="library_type"></zt-dict>
+ <zt-dict :disabled="stepMarker!=='pzxbg_first'" v-model="dataForm.configItemChange.libraryType" :radio="true" dict="library_type"></zt-dict>
</el-form-item>
</div>
<div class="el-configChangeDialog el-border-bottom">
@@ -286,12 +286,17 @@
<add-or-update-check ref="addOrUpdate" @recall="setCheckId"/>
<ConfigItemList ref="configItemList" @getChangeItemList="getChangeItemList"></ConfigItemList>
</el-form>
+ <template v-slot:footer>
+ <el-button v-if="dataForm.disabled" type="primary" @click="print()">鎵撳嵃</el-button>
+ </template>
</zt-dialog>
</template>
<script>
import AddOrUpdateCheck from '../testCheckOrder/TestCheckOrder-AddOrUpdate'
import ConfigItemList from './configItemList.vue'
+ import qs from "qs";
+ import Cookies from "js-cookie";
export default {
data() {
@@ -383,7 +388,7 @@
if (!this.dataForm.disabled) {
if (!row.stepMarker) {
this.stepMarker = 'pzxbg_first'
- this.title = '鍏ュ簱鐢宠'
+ this.title = '鍙樻洿鐢宠'
} else {
this.title = row.stepName
this.stepMarker = row.stepMarker
@@ -434,6 +439,14 @@
console.log(checkId, row, "setCheckId(checkId, row)")
this.$set(row, 'checkId', checkId)
},
+ async print(){
+ var params = qs.stringify({
+ token: Cookies.get('token'),
+ id:this.dataForm.id
+ })
+ let apiURL = `/configItemChange/ConfigItemChange/exportConfigChange`
+ window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}`
+ },
// 鑾峰彇淇℃伅
async getInfo() {
let params = {
--
Gitblit v1.9.1