From c206ab5b4a38f99bec4ee34d7b01bbabc83fa120 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 19 六月 2024 14:29:44 +0800 Subject: [PATCH] update 优化 三方登录不同域名问题 采用新方案 --- src/views/workflow/leave/index.vue | 34 +++++++++++++--------------------- 1 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/views/workflow/leave/index.vue b/src/views/workflow/leave/index.vue index e47768d..d9c50c4 100644 --- a/src/views/workflow/leave/index.vue +++ b/src/views/workflow/leave/index.vue @@ -22,10 +22,10 @@ <template #header> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> - <el-button v-hasPermi="['demo:leave:add']" type="primary" plain icon="Plus" @click="handleAdd">鏂板</el-button> + <el-button v-hasPermi="['workflow:leave:add']" type="primary" plain icon="Plus" @click="handleAdd">鏂板</el-button> </el-col> <el-col :span="1.5"> - <el-button v-hasPermi="['demo:leave:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> + <el-button v-hasPermi="['workflow:leave:export']" type="warning" plain icon="Download" @click="handleExport">瀵煎嚭</el-button> </el-col> <right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> </el-row> @@ -53,18 +53,14 @@ <el-table-column label="璇峰亣鍘熷洜" align="center" prop="remark" /> <el-table-column align="center" label="娴佺▼鐘舵��" min-width="70"> <template #default="scope"> - <dict-tag :options="wf_business_status" :value="scope.row.processInstanceVo.businessStatus"></dict-tag> + <dict-tag :options="wf_business_status" :value="scope.row.status"></dict-tag> </template> </el-table-column> <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-button - v-if=" - scope.row.processInstanceVo.businessStatus === 'draft' || - scope.row.processInstanceVo.businessStatus === 'cancel' || - scope.row.processInstanceVo.businessStatus === 'back' - " - v-hasPermi="['demo:leave:edit']" + v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'" + v-hasPermi="['workflow:leave:edit']" size="small" link type="primary" @@ -73,12 +69,8 @@ >淇敼</el-button > <el-button - v-if=" - scope.row.processInstanceVo.businessStatus === 'draft' || - scope.row.processInstanceVo.businessStatus === 'cancel' || - scope.row.processInstanceVo.businessStatus === 'back' - " - v-hasPermi="['demo:leave:remove']" + v-if="scope.row.status === 'draft' || scope.row.status === 'cancel' || scope.row.status === 'back'" + v-hasPermi="['workflow:leave:remove']" size="small" link type="primary" @@ -88,7 +80,7 @@ > <el-button link type="primary" size="small" icon="View" @click="handleView(scope.row)">鏌ョ湅</el-button> <el-button - v-if="scope.row.processInstanceVo.businessStatus === 'waiting'" + v-if="scope.row.status === 'waiting'" link size="small" type="primary" @@ -184,9 +176,9 @@ /** 鏂板鎸夐挳鎿嶄綔 */ const handleAdd = () => { proxy.$tab.closePage(proxy.$route); - proxy.$router.push(`/demo/leaveEdit/index/add/add`); + proxy.$router.push(`/workflow/leaveEdit/index/add/add`); proxy.$router.push({ - path: `/demo/leaveEdit/index`, + path: `/workflow/leaveEdit/index`, query: { type: 'add' } @@ -197,7 +189,7 @@ const handleUpdate = (row?: LeaveVO) => { proxy.$tab.closePage(proxy.$route); proxy.$router.push({ - path: `/demo/leaveEdit/index`, + path: `/workflow/leaveEdit/index`, query: { id: row.id, type: 'update' @@ -209,7 +201,7 @@ const handleView = (row?: LeaveVO) => { proxy.$tab.closePage(proxy.$route); proxy.$router.push({ - path: `/demo/leaveEdit/index`, + path: `/workflow/leaveEdit/index`, query: { id: row.id, type: 'view' @@ -229,7 +221,7 @@ /** 瀵煎嚭鎸夐挳鎿嶄綔 */ const handleExport = () => { proxy?.download( - 'demo/leave/export', + 'workflow/leave/export', { ...queryParams.value }, -- Gitblit v1.9.3