From aa05304d221b1883d746e686f390d6f3fba598a7 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期五, 24 五月 2024 09:36:09 +0800 Subject: [PATCH] feat:动态数据中心 --- src/views/system/unit/index.vue | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/views/system/unit/index.vue b/src/views/system/unit/index.vue index b09b0a5..1ec0f28 100644 --- a/src/views/system/unit/index.vue +++ b/src/views/system/unit/index.vue @@ -44,7 +44,7 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-hasPermi="['system:unit:add']" + v-hasPermi="['unit:add']" >鏂板</el-button> </el-col> <el-col :span="1.5"> @@ -55,7 +55,7 @@ size="mini" :disabled="single" @click="handleUpdate" - v-hasPermi="['system:unit:edit']" + v-hasPermi="['unit:edit']" >淇敼</el-button> </el-col> <el-col :span="1.5"> @@ -66,7 +66,7 @@ size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['system:unit:remove']" + v-hasPermi="['unit:remove']" >鍒犻櫎</el-button> </el-col> <el-col :span="1.5"> @@ -76,7 +76,7 @@ icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['system:unit:export']" + v-hasPermi="['unit:export']" >瀵煎嚭</el-button> </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> @@ -98,14 +98,14 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['system:unit:edit']" + v-hasPermi="['unit:edit']" >淇敼</el-button> <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" - v-hasPermi="['system:unit:remove']" + v-hasPermi="['unit:remove']" >鍒犻櫎</el-button> </template> </el-table-column> @@ -129,7 +129,7 @@ <el-input v-model="form.unitName" placeholder="璇疯緭鍏ュ崟浣嶅悕绉�" /> </el-form-item> <el-form-item label="鍗曚綅璐﹀彿" prop="unitAdminAccount"> - <el-input v-model="form.unitAdminAccount" placeholder="璇疯緭鍏ュ崟浣嶇鐞嗗憳璐﹀彿" /> + <el-input v-model="form.unitAdminAccount" placeholder="璇疯緭鍏ュ崟浣嶇鐞嗗憳璐﹀彿" :disabled="account" /> </el-form-item> <el-form-item label="鍗曚綅鑱旂郴浜�" prop="unitContact"> <el-input v-model="form.unitContact" placeholder="璇疯緭鍏ュ崟浣嶈仈绯讳汉" /> @@ -156,6 +156,8 @@ name: "Unit", data() { return { + // 璐﹀彿涓嶅彲淇敼 + account: true, // 閬僵灞� loading: true, // 閫変腑鏁扮粍 @@ -267,6 +269,8 @@ /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { this.daterangeCreateTime = []; + this.queryParams.start = null; + this.queryParams.end = null; this.resetForm("queryForm"); this.handleQuery(); }, @@ -278,12 +282,14 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd() { + this.account = false; this.reset(); this.open = true; this.title = "娣诲姞杩愮淮鍗曚綅"; }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { + this.account = true; this.reset(); const id = row.id || this.ids getUnit(id).then(response => { @@ -324,7 +330,7 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - this.download('system/unit/export', { + this.download('yw-unit/export', { ...this.queryParams }, `unit_${new Date().getTime()}.xlsx`) } -- Gitblit v1.8.0