From d9995144f1353ec0b59f4d005d359b80c9d1d9e5 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 04 九月 2024 01:35:04 +0800 Subject: [PATCH] 权限配置 --- src/views/system/contract/contract-result/index.vue | 4 ++-- src/views/system/contract/score/index.vue | 12 ++++++------ src/views/system/point/index.vue | 6 +----- src/views/system/data-manage/data-detail/index.vue | 23 +++++++++++++---------- src/views/system/check/result/detail/index.vue | 2 +- src/views/system/contract/contract/index.vue | 2 +- src/views/system/contract/report/index.vue | 2 +- 7 files changed, 25 insertions(+), 26 deletions(-) diff --git a/src/views/system/check/result/detail/index.vue b/src/views/system/check/result/detail/index.vue index d675d4b..b5edb8b 100644 --- a/src/views/system/check/result/detail/index.vue +++ b/src/views/system/check/result/detail/index.vue @@ -190,7 +190,7 @@ return department ? department.value : '鏈煡'; }, /** 瀵艰埅鍒囨崲 */ - handleSelect(key) { + handlefSelect(key) { this.activeIndex = key; this.queryParams.examineTag = key; this.queryParamsList.examineTag = key; diff --git a/src/views/system/contract/contract-result/index.vue b/src/views/system/contract/contract-result/index.vue index 5e585e6..0820f3d 100644 --- a/src/views/system/contract/contract-result/index.vue +++ b/src/views/system/contract/contract-result/index.vue @@ -135,7 +135,7 @@ style="float: right" @click="handlePublish(item)" v-show="item.publish != 1" - v-hasPermi="['result:contract:publish']" + v-hasPermi="['contract:result:publish']" >纭鍙戝竷</el-button > <el-button @@ -144,7 +144,7 @@ style="float: right" disabled v-show="item.publish == 1" - v-hasPermi="['result:contract:publish']" + v-hasPermi="['contract:result:publish']" >宸插彂甯�</el-button > </div> diff --git a/src/views/system/contract/contract/index.vue b/src/views/system/contract/contract/index.vue index 60df1bb..320f5dd 100644 --- a/src/views/system/contract/contract/index.vue +++ b/src/views/system/contract/contract/index.vue @@ -31,7 +31,7 @@ plain icon="el-icon-plus" size="mini" - v-hasPermi="['system:contract:import']" + v-hasPermi="['system:contract:add']" @click="handleImport" >鏂板</el-button > diff --git a/src/views/system/contract/report/index.vue b/src/views/system/contract/report/index.vue index 5c681ca..112a1e2 100644 --- a/src/views/system/contract/report/index.vue +++ b/src/views/system/contract/report/index.vue @@ -104,7 +104,7 @@ </el-table> <div slot="footer" class="dialog-footer"> <el-button @click="cancel">鍙� 娑�</el-button> - <el-button type="primary" @click="submitForm">鏍哥畻</el-button> + <el-button type="primary" @click="submitForm" v-hasPermi="['system:calculate:report:backfill']">鏍哥畻</el-button> </div> </el-dialog> diff --git a/src/views/system/contract/score/index.vue b/src/views/system/contract/score/index.vue index 2ef8338..b38f87c 100644 --- a/src/views/system/contract/score/index.vue +++ b/src/views/system/contract/score/index.vue @@ -25,15 +25,15 @@ <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['platform:score:add']">鏂板</el-button> + v-hasPermi="['contract:score:add']">鏂板</el-button> </el-col> <el-col :span="1.5"> <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['platform:score:remove']">鍒犻櫎</el-button> + v-hasPermi="['contract:score:remove']">鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['platform:score:export']">瀵煎嚭</el-button> + v-hasPermi="['contract:score:export']">瀵煎嚭</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> @@ -59,10 +59,10 @@ <template slot-scope="scope"> <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)">璇︽儏</el-button> <el-button size="mini" type="text" icon="el-icon-s-check" @click="handleAuditing(scope.row)" - v-hasPermi="['default:audit']" v-if="scope.row.auditingStatus === '寰呭鏍�'">瀹℃牳</el-button> + v-hasPermi="['contract:score:audit']" v-if="scope.row.auditingStatus === '寰呭鏍�'">瀹℃牳</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-if="scope.row.auditingStatus === '寰呭鏍�'" v-hasPermi="['system:auditing:edit']">淇敼</el-button> - <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">鍒犻櫎</el-button> + v-if="scope.row.auditingStatus === '寰呭鏍�'" v-hasPermi="['contract:score:edit']">淇敼</el-button> + <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['contract:score:remove']">鍒犻櫎</el-button> </template> </el-table-column> </el-table> diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue index df57a6b..749338f 100644 --- a/src/views/system/data-manage/data-detail/index.vue +++ b/src/views/system/data-manage/data-detail/index.vue @@ -64,7 +64,7 @@ </el-button> </div> <div style="font-size: 14px;height: 50px; font-weight: bold;">{{ item.deptName }}</div> - <div style="font-size: 14px;">璧勬簮锛歿{ item.imageResourceSecurity }}</div> + <div style="font-size: 14px;">寰楀垎锛歿{ item.imageResourceSecurity }}</div> <!-- <div style="font-size: 14px;">瑙嗛浼犺緭缃戣祫浜у噯纭巼锛歿{ item.propertyAccuracy }}</div> <div style="font-size: 14px;">寮卞彛浠ゅ緱鍒嗭細{{ item.weakPassword }}</div> <div style="font-size: 14px;">瑙嗛浼犺緭缃戝嵄闄╄祫浜ф瘮渚嬶細{{ item.riskProperty }}</div> @@ -79,10 +79,10 @@ v-hasPermi="['platform:platform:export']">瀵煎叆 </el-button> </el-col> - <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> - <right-toolbar :showSearch.sync="showSearch" @queryTable="handleQuery" :columns="showList"></right-toolbar> + <right-toolbar v-show="index !== 'image_resource_security'" :showSearch.sync="showSearch" @queryTable="handleQuery" :columns="showList"></right-toolbar> <div> <el-table v-loading="loading" :data="tableData.list"> @@ -100,20 +100,23 @@ <el-input v-model="resourceForm.deptName" disabled /> </el-form-item> <el-form-item label="骞冲彴杩愯鐜�" prop="platformOnline"> - <el-input-number v-model="resourceForm.platformOnline" /> + <el-input-number v-model="resourceForm.platformOnline" :precision="2" :step="0.1" :min="0" :max="1"/> </el-form-item> <el-form-item label="瑙嗛浼犺緭缃戣祫浜у噯纭巼" prop="propertyAccuracy"> - <el-input-number v-model="resourceForm.propertyAccuracy" /> + <el-input-number v-model="resourceForm.propertyAccuracy" :precision="2" :step="0.1" :min="0" :max="1"/> </el-form-item> <el-form-item label="寮卞彛浠ゅ緱鍒�" prop="weakPassword"> - <el-input-number v-model="resourceForm.weakPassword" /> + <el-input-number v-model="resourceForm.weakPassword" :precision="2" :step="0.1" :min="0" :max="1"/> </el-form-item> <el-form-item label="瑙嗛浼犺緭缃戝嵄闄╄祫浜ф瘮渚�" prop="riskProperty"> - <el-input-number v-model="resourceForm.riskProperty" /> + <el-input-number v-model="resourceForm.riskProperty" :precision="2" :step="0.1" :min="0" :max="1"/> </el-form-item> - <el-form-item label="瑙嗛浼犺緭缃戣竟鐣屽畬鏁存�ф娴嬫墸鍒嗛」" prop="boundaryIntegrity"> - <el-input-number v-model="resourceForm.boundaryIntegrity" /> - </el-form-item> + <el-tooltip class="item" effect="dark" content="杩濊杩炴帴浜掕仈缃戞墸鍑�20涓櫨鍒嗙偣/娆★紝杩濊鏃犵嚎AP鎺ュ叆銆侀殢韬玾ifi鎺ュ叆銆佸叡浜綉缁滃悇鎵e噺5涓櫨鍒嗙偣/娆★紝鐩磋嚦姝ら」鎸囨爣鎵e畬涓烘銆�" placement="top-start"> + <el-form-item label="瑙嗛浼犺緭缃戣竟鐣屽畬鏁存�ф娴嬫墸鍒嗛」" prop="boundaryIntegrity"> + <el-input-number v-model="resourceForm.boundaryIntegrity" :precision="2" :step="0.1" :min="0" :max="1"/> + </el-form-item> + </el-tooltip> + </el-form> <div slot="footer" class="dialog-footer"> <el-button @click="cancelR">鍙� 娑�</el-button> diff --git a/src/views/system/point/index.vue b/src/views/system/point/index.vue index 8554d51..9369274 100644 --- a/src/views/system/point/index.vue +++ b/src/views/system/point/index.vue @@ -80,11 +80,7 @@ <div class="el-upload__tip" slot="tip">鍙兘涓婁紶xls/xlsx鏂囦欢</div> </el-upload> </div> - <div> - <el-button class="bottom_" type="primary" size="small" v-loading="upload" @click="handleImport" - v-hasPermi="['point:import']">瀵煎叆</el-button> - </div> - <el-button type="primary" size="mini" plain icon="el-icon-top" slot="reference">瀵煎叆鐐逛綅</el-button> + <el-button type="primary" size="mini" plain icon="el-icon-top" slot="reference" v-hasPermi="['point:import']">瀵煎叆鐐逛綅</el-button> </el-popover> </el-col> <!-- <el-col :span="1.5">--> -- Gitblit v1.8.0