Commit c9e11e76360e1b5dbac6fabbe463c481e3d71143

Authored by xingyu4j
1 parent d730c50d

fix slot-scope

Showing 53 changed files with 247 additions and 247 deletions
yudao-ui-admin/src/views/bpm/definition/index.vue
... ... @@ -6,19 +6,19 @@
6 6 <el-table v-loading="loading" :data="list">
7 7 <el-table-column label="定义编号" align="center" prop="id" width="400" />
8 8 <el-table-column label="定义名称" align="center" prop="name" width="100">
9   - <template slot-scope="scope">
  9 + <template v-slot="scope">
10 10 <el-button type="text" @click="handleBpmnDetail(scope.row)">
11 11 <span>{{ scope.row.name }}</span>
12 12 </el-button>
13 13 </template>
14 14 </el-table-column>
15 15 <el-table-column label="定义分类" align="center" prop="category" width="100">
16   - <template slot-scope="scope">
  16 + <template v-slot="scope">
17 17 <dict-tag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="scope.row.category" />
18 18 </template>
19 19 </el-table-column>
20 20 <el-table-column label="表单信息" align="center" prop="formType" width="200">
21   - <template slot-scope="scope">
  21 + <template v-slot="scope">
22 22 <el-button v-if="scope.row.formId" type="text" @click="handleFormDetail(scope.row)">
23 23 <span>{{ scope.row.formName }}</span>
24 24 </el-button>
... ... @@ -29,25 +29,25 @@
29 29 </template>
30 30 </el-table-column>
31 31 <el-table-column label="流程版本" align="center" prop="processDefinition.version" width="80">
32   - <template slot-scope="scope">
  32 + <template v-slot="scope">
33 33 <el-tag size="medium" v-if="scope.row">v{{ scope.row.version }}</el-tag>
34 34 <el-tag size="medium" type="warning" v-else>未部署</el-tag>
35 35 </template>
36 36 </el-table-column>
37 37 <el-table-column label="状态" align="center" prop="version" width="80">
38   - <template slot-scope="scope">
  38 + <template v-slot="scope">
39 39 <el-tag type="success" v-if="scope.row.suspensionState === 1">激活</el-tag>
40 40 <el-tag type="warning" v-if="scope.row.suspensionState === 2">挂起</el-tag>
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="部署时间" align="center" prop="deploymentTime" width="180">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <span>{{ parseTime(scope.row.deploymentTime) }}</span>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="定义描述" align="center" prop="description" width="300" show-overflow-tooltip />
49 49 <el-table-column label="操作" align="center" width="150" fixed="right">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <el-button size="mini" type="text" icon="el-icon-s-custom" @click="handleAssignRule(scope.row)"
52 52 v-hasPermi="['bpm:task-assign-rule:update']">分配规则</el-button>
53 53 </template>
... ...
yudao-ui-admin/src/views/bpm/form/index.vue
... ... @@ -27,18 +27,18 @@
27 27 <el-table-column label="编号" align="center" prop="id" />
28 28 <el-table-column label="表单名" align="center" prop="name" />
29 29 <el-table-column label="开启状态" align="center" prop="status">
30   - <template slot-scope="scope">
  30 + <template v-slot="scope">
31 31 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
32 32 </template>
33 33 </el-table-column>
34 34 <el-table-column label="备注" align="center" prop="remark" />
35 35 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
36   - <template slot-scope="scope">
  36 + <template v-slot="scope">
37 37 <span>{{ parseTime(scope.row.createTime) }}</span>
38 38 </template>
39 39 </el-table-column>
40 40 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDetail(scope.row)"
43 43 v-hasPermi="['bpm:form:query']">详情</el-button>
44 44 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
... ...
yudao-ui-admin/src/views/bpm/group/index.vue
... ... @@ -38,24 +38,24 @@
38 38 <el-table-column label="组名" align="center" prop="name" />
39 39 <el-table-column label="描述" align="center" prop="description" />
40 40 <el-table-column label="成员" align="center">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <span v-for="userId in scope.row.memberUserIds">
43 43 {{ getUserNickname(userId) }}
44 44 </span>
45 45 </template>
46 46 </el-table-column>
47 47 <el-table-column label="状态" align="center" prop="status">
48   - <template slot-scope="scope">
  48 + <template v-slot="scope">
49 49 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
50 50 </template>
51 51 </el-table-column>
52 52 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
53   - <template slot-scope="scope">
  53 + <template v-slot="scope">
54 54 <span>{{ parseTime(scope.row.createTime) }}</span>
55 55 </template>
56 56 </el-table-column>
57 57 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
58   - <template slot-scope="scope">
  58 + <template v-slot="scope">
59 59 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
60 60 v-hasPermi="['bpm:user-group:update']">修改</el-button>
61 61 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/bpm/model/index.vue
... ... @@ -40,19 +40,19 @@
40 40 <el-table v-loading="loading" :data="list">
41 41 <el-table-column label="流程标识" align="center" prop="key" />
42 42 <el-table-column label="流程名称" align="center" prop="name" width="200">
43   - <template slot-scope="scope">
  43 + <template v-slot="scope">
44 44 <el-button type="text" @click="handleBpmnDetail(scope.row)">
45 45 <span>{{ scope.row.name }}</span>
46 46 </el-button>
47 47 </template>
48 48 </el-table-column>
49 49 <el-table-column label="流程分类" align="center" prop="category" width="100">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <dict-tag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="scope.row.category" />
52 52 </template>
53 53 </el-table-column>
54 54 <el-table-column label="表单信息" align="center" prop="formType" width="200">
55   - <template slot-scope="scope">
  55 + <template v-slot="scope">
56 56 <el-button v-if="scope.row.formId" type="text" @click="handleFormDetail(scope.row)">
57 57 <span>{{ scope.row.formName }}</span>
58 58 </el-button>
... ... @@ -63,31 +63,31 @@
63 63 </template>
64 64 </el-table-column>
65 65 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
66   - <template slot-scope="scope">
  66 + <template v-slot="scope">
67 67 <span>{{ parseTime(scope.row.createTime) }}</span>
68 68 </template>
69 69 </el-table-column>
70 70 <el-table-column label="最新部署的流程定义" align="center">
71 71 <el-table-column label="流程版本" align="center" prop="processDefinition.version" width="80">
72   - <template slot-scope="scope">
  72 + <template v-slot="scope">
73 73 <el-tag size="medium" v-if="scope.row.processDefinition">v{{ scope.row.processDefinition.version }}</el-tag>
74 74 <el-tag size="medium" type="warning" v-else>未部署</el-tag>
75 75 </template>
76 76 </el-table-column>
77 77 <el-table-column label="激活状态" align="center" prop="processDefinition.version" width="80">
78   - <template slot-scope="scope">
  78 + <template v-slot="scope">
79 79 <el-switch v-if="scope.row.processDefinition" v-model="scope.row.processDefinition.suspensionState"
80 80 :active-value="1" :inactive-value="2" @change="handleChangeState(scope.row)" />
81 81 </template>
82 82 </el-table-column>
83 83 <el-table-column label="部署时间" align="center" prop="deploymentTime" width="180">
84   - <template slot-scope="scope">
  84 + <template v-slot="scope">
85 85 <span v-if="scope.row.processDefinition">{{ parseTime(scope.row.processDefinition.deploymentTime) }}</span>
86 86 </template>
87 87 </el-table-column>
88 88 </el-table-column>
89 89 <el-table-column label="操作" align="center" width="450" fixed="right">
90   - <template slot-scope="scope">
  90 + <template v-slot="scope">
91 91 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
92 92 v-hasPermi="['bpm:model:update']">修改流程</el-button>
93 93 <el-button size="mini" type="text" icon="el-icon-setting" @click="handleDesign(scope.row)"
... ...
yudao-ui-admin/src/views/bpm/oa/leave/index.vue
... ... @@ -41,33 +41,33 @@
41 41 <el-table v-loading="loading" :data="list">
42 42 <el-table-column label="申请编号" align="center" prop="id" />
43 43 <el-table-column label="状态" align="center" prop="result">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT" :value="scope.row.result"/>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="开始时间" align="center" prop="startTime" width="180">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <span>{{ parseTime(scope.row.startTime) }}</span>
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="结束时间" align="center" prop="endTime" width="180">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <span>{{ parseTime(scope.row.endTime) }}</span>
56 56 </template>
57 57 </el-table-column>
58 58 <el-table-column label="请假类型" align="center" prop="type">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <dict-tag :type="DICT_TYPE.BPM_OA_LEAVE_TYPE" :value="scope.row.type"/>
61 61 </template>
62 62 </el-table-column>
63 63 <el-table-column label="原因" align="center" prop="reason" />
64 64 <el-table-column label="申请时间" align="center" prop="applyTime" width="180">
65   - <template slot-scope="scope">
  65 + <template v-slot="scope">
66 66 <span>{{ parseTime(scope.row.createTime) }}</span>
67 67 </template>
68 68 </el-table-column>
69 69 <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
70   - <template slot-scope="scope">
  70 + <template v-slot="scope">
71 71 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleCancel(scope.row)"
72 72 v-hasPermi="['bpm:oa-leave:create']" v-if="scope.row.result === 1">取消请假</el-button>
73 73 <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)"
... ...
yudao-ui-admin/src/views/bpm/processInstance/create.vue
... ... @@ -4,25 +4,25 @@
4 4 <div v-if="!selectProcessInstance">
5 5 <el-table v-loading="loading" :data="list">
6 6 <el-table-column label="流程名称" align="center" prop="name" width="200">
7   - <template slot-scope="scope">
  7 + <template v-slot="scope">
8 8 <el-button type="text" @click="handleBpmnDetail(scope.row)">
9 9 <span>{{ scope.row.name }}</span>
10 10 </el-button>
11 11 </template>
12 12 </el-table-column>
13 13 <el-table-column label="流程分类" align="center" prop="category" width="100">
14   - <template slot-scope="scope">
  14 + <template v-slot="scope">
15 15 <dict-tag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="scope.row.category" />
16 16 </template>
17 17 </el-table-column>
18 18 <el-table-column label="流程版本" align="center" prop="processDefinition.version" width="80">
19   - <template slot-scope="scope">
  19 + <template v-slot="scope">
20 20 <el-tag size="medium" v-if="scope.row">v{{ scope.row.version }}</el-tag>
21 21 </template>
22 22 </el-table-column>
23 23 <el-table-column label="流程描述" align="center" prop="description" width="300" show-overflow-tooltip />
24 24 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
25   - <template slot-scope="scope">
  25 + <template v-slot="scope">
26 26 <el-button type="text" size="small" icon="el-icon-plus" @click="handleSelect(scope.row)">选择</el-button>
27 27 </template>
28 28 </el-table-column>
... ...
yudao-ui-admin/src/views/bpm/processInstance/index.vue
... ... @@ -52,39 +52,39 @@
52 52 <el-table-column label="编号" align="center" prop="id" width="320" />
53 53 <el-table-column label="流程名" align="center" prop="name" />
54 54 <el-table-column label="流程分类" align="center" prop="category">
55   - <template slot-scope="scope">
  55 + <template v-slot="scope">
56 56 <dict-tag :type="DICT_TYPE.BPM_MODEL_CATEGORY" :value="scope.row.category" />
57 57 </template>
58 58 </el-table-column>
59 59 <el-table-column label="当前审批任务" align="center" prop="tasks">
60   - <template slot-scope="scope">
  60 + <template v-slot="scope">
61 61 <el-button v-for="task in scope.row.tasks" :key="task.id" type="text" @click="handleFormDetail(task.id)">
62 62 <span>{{ task.name }}</span>
63 63 </el-button>
64 64 </template>
65 65 </el-table-column>
66 66 <el-table-column label="状态" align="center" prop="status">
67   - <template slot-scope="scope">
  67 + <template v-slot="scope">
68 68 <dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value="scope.row.status" />
69 69 </template>
70 70 </el-table-column>
71 71 <el-table-column label="结果" align="center" prop="result">
72   - <template slot-scope="scope">
  72 + <template v-slot="scope">
73 73 <dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT" :value="scope.row.result"/>
74 74 </template>
75 75 </el-table-column>
76 76 <el-table-column label="提交时间" align="center" prop="createTime" width="180">
77   - <template slot-scope="scope">
  77 + <template v-slot="scope">
78 78 <span>{{ parseTime(scope.row.createTime) }}</span>
79 79 </template>
80 80 </el-table-column>
81 81 <el-table-column label="结束时间" align="center" prop="createTime" width="180">
82   - <template slot-scope="scope">
  82 + <template v-slot="scope">
83 83 <span>{{ parseTime(scope.row.endTime) }}</span>
84 84 </template>
85 85 </el-table-column>
86 86 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
87   - <template slot-scope="scope">
  87 + <template v-slot="scope">
88 88 <el-button type="text" size="small" icon="el-icon-delete" v-if="scope.row.result === 1"
89 89 v-hasPermi="['bpm:process-instance:cancel']" @click="handleCancel(scope.row)">取消</el-button>
90 90 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDetail(scope.row)"
... ...
yudao-ui-admin/src/views/bpm/task/done.vue
... ... @@ -24,28 +24,28 @@
24 24 <el-table-column label="所属流程" align="center" prop="processInstance.name" width="200" />
25 25 <el-table-column label="流程发起人" align="center" prop="processInstance.startUserNickname" width="120" />
26 26 <el-table-column label="结果" align="center" prop="result">
27   - <template slot-scope="scope">
  27 + <template v-slot="scope">
28 28 <dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT" :value="scope.row.result"/>
29 29 </template>
30 30 </el-table-column>
31 31 <el-table-column label="审批意见" align="center" prop="reason" width="200" />
32 32 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
33   - <template slot-scope="scope">
  33 + <template v-slot="scope">
34 34 <span>{{ parseTime(scope.row.createTime) }}</span>
35 35 </template>
36 36 </el-table-column>
37 37 <el-table-column label="审批时间" align="center" prop="endTime" width="180">
38   - <template slot-scope="scope">
  38 + <template v-slot="scope">
39 39 <span>{{ parseTime(scope.row.endTime) }}</span>
40 40 </template>
41 41 </el-table-column>
42 42 <el-table-column label="耗时" align="center" prop="durationInMillis" width="180">
43   - <template slot-scope="scope">
  43 + <template v-slot="scope">
44 44 <span>{{ getDateStar(scope.row.durationInMillis) }}</span>
45 45 </template>
46 46 </el-table-column>
47 47 <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
48   - <template slot-scope="scope">
  48 + <template v-slot="scope">
49 49 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleAudit(scope.row)"
50 50 v-hasPermi="['bpm:task:query']">详情</el-button>
51 51 </template>
... ...
yudao-ui-admin/src/views/bpm/task/todo.vue
... ... @@ -24,18 +24,18 @@
24 24 <el-table-column label="所属流程" align="center" prop="processInstance.name" />
25 25 <el-table-column label="流程发起人" align="center" prop="processInstance.startUserNickname" />
26 26 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
27   - <template slot-scope="scope">
  27 + <template v-slot="scope">
28 28 <span>{{ parseTime(scope.row.createTime) }}</span>
29 29 </template>
30 30 </el-table-column>
31 31 <el-table-column label="状态" align="center" prop="version" width="80">
32   - <template slot-scope="scope">
  32 + <template v-slot="scope">
33 33 <el-tag type="success" v-if="scope.row.suspensionState === 1">激活</el-tag>
34 34 <el-tag type="warning" v-if="scope.row.suspensionState === 2">挂起</el-tag>
35 35 </template>
36 36 </el-table-column>
37 37 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
38   - <template slot-scope="scope">
  38 + <template v-slot="scope">
39 39 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleAudit(scope.row)"
40 40 v-hasPermi="['bpm:task:update']">审批</el-button>
41 41 </template>
... ...
yudao-ui-admin/src/views/bpm/taskAssignRule/taskAssignRuleDialog.vue
... ... @@ -6,19 +6,19 @@
6 6 <el-table-column label="任务名" align="center" prop="taskDefinitionName" width="120" fixed />
7 7 <el-table-column label="任务标识" align="center" prop="taskDefinitionKey" width="120" show-tooltip-when-overflow />
8 8 <el-table-column label="规则类型" align="center" prop="type" width="120">
9   - <template slot-scope="scope">
  9 + <template v-slot="scope">
10 10 <dict-tag :type="DICT_TYPE.BPM_TASK_ASSIGN_RULE_TYPE" :value="scope.row.type" />
11 11 </template>
12 12 </el-table-column>
13 13 <el-table-column label="规则范围" align="center" prop="options" width="440px">
14   - <template slot-scope="scope">
  14 + <template v-slot="scope">
15 15 <el-tag size="medium" v-if="scope.row.options" :key="option" v-for="option in scope.row.options">
16 16 {{ getAssignRuleOptionName(scope.row.type, option) }}
17 17 </el-tag>
18 18 </template>
19 19 </el-table-column>
20 20 <el-table-column v-if="modelId" label="操作" align="center" width="80" fixed="right">
21   - <template slot-scope="scope">
  21 + <template v-slot="scope">
22 22 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdateTaskAssignRule(scope.row)"
23 23 v-hasPermi="['bpm:task-assign-rule:update']">修改</el-button>
24 24 </template>
... ...
yudao-ui-admin/src/views/infra/apiAccessLog/index.vue
... ... @@ -48,7 +48,7 @@
48 48 <el-table-column label="日志编号" align="center" prop="id" />
49 49 <el-table-column label="用户编号" align="center" prop="userId" />
50 50 <el-table-column label="用户类型" align="center" prop="userType">
51   - <template slot-scope="scope">
  51 + <template v-slot="scope">
52 52 <dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType"/>
53 53 </template>
54 54 </el-table-column>>
... ... @@ -56,22 +56,22 @@
56 56 <el-table-column label="请求方法名" align="center" prop="requestMethod" />
57 57 <el-table-column label="请求地址" align="center" prop="requestUrl" width="250" />
58 58 <el-table-column label="请求时间" align="center" prop="beginTime" width="180">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <span>{{ parseTime(scope.row.beginTime) }}</span>
61 61 </template>
62 62 </el-table-column>
63 63 <el-table-column label="执行时长" align="center" prop="startTime">
64   - <template slot-scope="scope">
  64 + <template v-slot="scope">
65 65 <span>{{ scope.row.duration }} ms</span>
66 66 </template>
67 67 </el-table-column>
68 68 <el-table-column label="操作结果" align="center" prop="status">
69   - <template slot-scope="scope">
  69 + <template v-slot="scope">
70 70 <span>{{ scope.row.resultCode === 0 ? '成功' : '失败(' + scope.row.resultMsg + ')' }}</span>
71 71 </template>
72 72 </el-table-column>
73 73 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
74   - <template slot-scope="scope">
  74 + <template v-slot="scope">
75 75 <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row,scope.index)"
76 76 v-hasPermi="['infra:api-access-log:query']">详细</el-button>
77 77 </template>
... ...
yudao-ui-admin/src/views/infra/apiErrorLog/index.vue
... ... @@ -48,7 +48,7 @@
48 48 <el-table-column label="日志编号" align="center" prop="id" />
49 49 <el-table-column label="用户编号" align="center" prop="userId" />
50 50 <el-table-column label="用户类型" align="center" prop="userType">
51   - <template slot-scope="scope">
  51 + <template v-slot="scope">
52 52 <dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType"/>
53 53 </template>
54 54 </el-table-column>>
... ... @@ -56,18 +56,18 @@
56 56 <el-table-column label="请求方法名" align="center" prop="requestMethod" />
57 57 <el-table-column label="请求地址" align="center" prop="requestUrl" width="250" />
58 58 <el-table-column label="异常发生时间" align="center" prop="exceptionTime" width="180">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <span>{{ parseTime(scope.row.exceptionTime) }}</span>
61 61 </template>
62 62 </el-table-column>
63 63 <el-table-column label="异常名" align="center" prop="exceptionName" width="250" />
64 64 <el-table-column label="处理状态" align="center" prop="processStatus">
65   - <template slot-scope="scope">
  65 + <template v-slot="scope">
66 66 <dict-tag :type="DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS" :value="scope.row.processStatus" />
67 67 </template>
68 68 </el-table-column>
69 69 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
70   - <template slot-scope="scope">
  70 + <template v-slot="scope">
71 71 <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row,scope.index)"
72 72 v-hasPermi="['infra:api-access-log:query']">详细</el-button>
73 73 <el-button type="text" size="mini" icon="el-icon-check"
... ...
yudao-ui-admin/src/views/infra/codegen/editTable.vue
... ... @@ -13,7 +13,7 @@
13 13 :show-overflow-tooltip="true"
14 14 />
15 15 <el-table-column label="字段描述" min-width="10%">
16   - <template slot-scope="scope">
  16 + <template v-slot="scope">
17 17 <el-input v-model="scope.row.columnComment"></el-input>
18 18 </template>
19 19 </el-table-column>
... ... @@ -24,7 +24,7 @@
24 24 :show-overflow-tooltip="true"
25 25 />
26 26 <el-table-column label="Java类型" min-width="11%">
27   - <template slot-scope="scope">
  27 + <template v-slot="scope">
28 28 <el-select v-model="scope.row.javaType">
29 29 <el-option label="Long" value="Long" />
30 30 <el-option label="String" value="String" />
... ... @@ -37,32 +37,32 @@
37 37 </template>
38 38 </el-table-column>
39 39 <el-table-column label="java属性" min-width="10%">
40   - <template slot-scope="scope">
  40 + <template v-slot="scope">
41 41 <el-input v-model="scope.row.javaField"></el-input>
42 42 </template>
43 43 </el-table-column>
44 44 <el-table-column label="插入" min-width="4%">
45   - <template slot-scope="scope">
  45 + <template v-slot="scope">
46 46 <el-checkbox true-label="true" false-label="false" v-model="scope.row.createOperation"></el-checkbox>
47 47 </template>
48 48 </el-table-column>
49 49 <el-table-column label="编辑" min-width="4%">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <el-checkbox true-label="true" false-label="false" v-model="scope.row.updateOperation"></el-checkbox>
52 52 </template>
53 53 </el-table-column>
54 54 <el-table-column label="列表" min-width="4%">
55   - <template slot-scope="scope">
  55 + <template v-slot="scope">
56 56 <el-checkbox true-label="true" false-label="false" v-model="scope.row.listOperationResult"></el-checkbox>
57 57 </template>
58 58 </el-table-column>
59 59 <el-table-column label="查询" min-width="4%">
60   - <template slot-scope="scope">
  60 + <template v-slot="scope">
61 61 <el-checkbox true-label="true" false-label="false" v-model="scope.row.listOperation"></el-checkbox>
62 62 </template>
63 63 </el-table-column>
64 64 <el-table-column label="查询方式" min-width="10%">
65   - <template slot-scope="scope">
  65 + <template v-slot="scope">
66 66 <el-select v-model="scope.row.listOperationCondition">
67 67 <el-option label="=" value="=" />
68 68 <el-option label="!=" value="!=" />
... ... @@ -76,12 +76,12 @@
76 76 </template>
77 77 </el-table-column>
78 78 <el-table-column label="允许空" min-width="5%">
79   - <template slot-scope="scope">
  79 + <template v-slot="scope">
80 80 <el-checkbox true-label="true" false-label="false" v-model="scope.row.nullable"></el-checkbox>
81 81 </template>
82 82 </el-table-column>
83 83 <el-table-column label="显示类型" min-width="12%">
84   - <template slot-scope="scope">
  84 + <template v-slot="scope">
85 85 <el-select v-model="scope.row.htmlType">
86 86 <el-option label="文本框" value="input" />
87 87 <el-option label="文本域" value="textarea" />
... ... @@ -96,7 +96,7 @@
96 96 </template>
97 97 </el-table-column>
98 98 <el-table-column label="字典类型" min-width="12%">
99   - <template slot-scope="scope">
  99 + <template v-slot="scope">
100 100 <el-select v-model="scope.row.dictType" clearable filterable placeholder="请选择">
101 101 <el-option
102 102 v-for="dict in dictOptions"
... ... @@ -108,7 +108,7 @@
108 108 </template>
109 109 </el-table-column>
110 110 <el-table-column label="示例" min-width="10%">
111   - <template slot-scope="scope">
  111 + <template v-slot="scope">
112 112 <el-input v-model="scope.row.example"></el-input>
113 113 </template>
114 114 </el-table-column>
... ...
yudao-ui-admin/src/views/infra/codegen/index.vue
... ... @@ -38,17 +38,17 @@
38 38 <el-table-column label="表描述" align="center" prop="tableComment" :show-overflow-tooltip="true" width="120"/>
39 39 <el-table-column label="实体" align="center" prop="className" width="200"/>
40 40 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <span>{{ parseTime(scope.row.createTime) }}</span>
43 43 </template>
44 44 </el-table-column>
45 45 <el-table-column label="更新时间" align="center" prop="createTime" width="180">
46   - <template slot-scope="scope">
  46 + <template v-slot="scope">
47 47 <span>{{ parseTime(scope.row.updateTime) }}</span>
48 48 </template>
49 49 </el-table-column>
50 50 <el-table-column label="操作" align="center" width="300px" class-name="small-padding fixed-width">
51   - <template slot-scope="scope">
  51 + <template v-slot="scope">
52 52 <el-button type="text" size="small" icon="el-icon-view" @click="handlePreview(scope.row)" v-hasPermi="['infra:codegen:preview']">预览</el-button>
53 53 <el-button type="text" size="small" icon="el-icon-edit" @click="handleEditTable(scope.row)" v-hasPermi="['infra:codegen:update']">编辑</el-button>
54 54 <el-button type="text" size="small" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['infra:codegen:delete']">删除</el-button>
... ...
yudao-ui-admin/src/views/infra/config/index.vue
... ... @@ -46,23 +46,23 @@
46 46 <el-table-column label="参数键名" align="center" prop="key" :show-overflow-tooltip="true" />
47 47 <el-table-column label="参数键值" align="center" prop="value" />
48 48 <el-table-column label="系统内置" align="center" prop="type">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <dict-tag :type="DICT_TYPE.INFRA_CONFIG_TYPE" :value="scope.row.type" />
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="是否可见" align="center" prop="visible">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <span>{{ scope.row.visible ? '是' : '否' }}</span>
56 56 </template>
57 57 </el-table-column>
58 58 <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
59 59 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
60   - <template slot-scope="scope">
  60 + <template v-slot="scope">
61 61 <span>{{ parseTime(scope.row.createTime) }}</span>
62 62 </template>
63 63 </el-table-column>
64 64 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
65   - <template slot-scope="scope">
  65 + <template v-slot="scope">
66 66 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
67 67 v-hasPermi="['infra:config:update']">修改</el-button>
68 68 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/infra/dataSourceConfig/index.vue
... ... @@ -15,12 +15,12 @@
15 15 <el-table-column label="数据源连接" align="center" prop="url" />
16 16 <el-table-column label="用户名" align="center" prop="username" />
17 17 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
18   - <template slot-scope="scope">
  18 + <template v-slot="scope">
19 19 <span>{{ parseTime(scope.row.createTime) }}</span>
20 20 </template>
21 21 </el-table-column>
22 22 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
23   - <template slot-scope="scope">
  23 + <template v-slot="scope">
24 24 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
25 25 v-hasPermi="['infra:data-source-config:update']">修改</el-button>
26 26 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/infra/file/index.vue
... ... @@ -32,7 +32,7 @@
32 32 <el-table-column label="文件大小" align="center" prop="size" min-width="120px" :formatter="sizeFormat"/>
33 33 <el-table-column label="文件类型" :show-overflow-tooltip="true" align="center" prop="type" width="180px"/>
34 34 <el-table-column label="文件内容" align="center" prop="content" min-width="150px">
35   - <template slot-scope="scope">
  35 + <template v-slot="scope">
36 36 <image-preview v-if="scope.row.type&&scope.row.type.indexOf('image/') === 0" :src="scope.row.url"
37 37 :width="'100px'"></image-preview>
38 38 <i v-else>无法预览,点击
... ... @@ -43,12 +43,12 @@
43 43 </template>
44 44 </el-table-column>
45 45 <el-table-column label="上传时间" align="center" prop="createTime" min-width="170px">
46   - <template slot-scope="scope">
  46 + <template v-slot="scope">
47 47 <span>{{ parseTime(scope.row.createTime) }}</span>
48 48 </template>
49 49 </el-table-column>
50 50 <el-table-column label="操作" align="center" class-name="small-padding fixed-width" min-width="100px">
51   - <template slot-scope="scope">
  51 + <template v-slot="scope">
52 52 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
53 53 v-hasPermi="['infra:file:delete']">删除
54 54 </el-button>
... ...
yudao-ui-admin/src/views/infra/fileConfig/index.vue
... ... @@ -36,23 +36,23 @@
36 36 <el-table-column label="编号" align="center" prop="id" />
37 37 <el-table-column label="配置名" align="center" prop="name" />
38 38 <el-table-column label="存储器" align="center" prop="storage">
39   - <template slot-scope="scope">
  39 + <template v-slot="scope">
40 40 <dict-tag :type="DICT_TYPE.INFRA_FILE_STORAGE" :value="scope.row.storage" />
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="备注" align="center" prop="remark" />
44 44 <el-table-column label="主配置" align="center" prop="primary">
45   - <template slot-scope="scope">
  45 + <template v-slot="scope">
46 46 <dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.master" />
47 47 </template>
48 48 </el-table-column>
49 49 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <span>{{ parseTime(scope.row.createTime) }}</span>
52 52 </template>
53 53 </el-table-column>
54 54 <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240">
55   - <template slot-scope="scope">
  55 + <template v-slot="scope">
56 56 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
57 57 v-hasPermi="['infra:file-config:update']">修改</el-button>
58 58 <el-button size="mini" type="text" icon="el-icon-attract" @click="handleMaster(scope.row)"
... ...
yudao-ui-admin/src/views/infra/job/index.vue
... ... @@ -43,7 +43,7 @@
43 43 <el-table-column label="任务编号" align="center" prop="id" />
44 44 <el-table-column label="任务名称" align="center" prop="name" />
45 45 <el-table-column label="任务状态" align="center" prop="status">
46   - <template slot-scope="scope">
  46 + <template v-slot="scope">
47 47 <dict-tag :type="DICT_TYPE.INFRA_JOB_STATUS" :value="scope.row.status" />
48 48 </template>
49 49 </el-table-column>>
... ... @@ -51,7 +51,7 @@
51 51 <el-table-column label="处理器的参数" align="center" prop="handlerParam" />
52 52 <el-table-column label="CRON 表达式" align="center" prop="cronExpression" />
53 53 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
56 56 v-hasPermi="['infra:job:update']">修改</el-button>
57 57 <el-button size="mini" type="text" icon="el-icon-check" @click="handleChangeStatus(scope.row, true)"
... ...
yudao-ui-admin/src/views/infra/job/log.vue
... ... @@ -41,22 +41,22 @@
41 41 <el-table-column label="处理器的参数" align="center" prop="handlerParam" />
42 42 <el-table-column label="第几次执行" align="center" prop="executeIndex" />
43 43 <el-table-column label="执行时间" align="center" width="180">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <span>{{ parseTime(scope.row.beginTime) + ' ~ ' + parseTime(scope.row.endTime) }}</span>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="执行时长" align="center" prop="duration">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <span>{{ scope.row.duration + ' 毫秒' }}</span>
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="任务状态" align="center" prop="status">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <dict-tag :type="DICT_TYPE.INFRA_JOB_LOG_STATUS" :value="scope.row.status" />
56 56 </template>
57 57 </el-table-column>
58 58 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row)" :loading="exportLoading"
61 61 v-hasPermi="['infra:job:query']">详细</el-button>
62 62 </template>
... ...
yudao-ui-admin/src/views/infra/redis/index.vue
... ... @@ -71,7 +71,7 @@
71 71 <el-table-column prop="keyType" label="Key 类型" width="100" />
72 72 <el-table-column prop="valueType" label="Value 类型" />
73 73 <el-table-column prop="timeoutType" label="超时时间" width="200">
74   - <template slot-scope="scope">
  74 + <template v-slot="scope">
75 75 <dict-tag
76 76 :type="DICT_TYPE.INFRA_REDIS_TIMEOUT_TYPE"
77 77 :value="scope.row.timeoutType"
... ... @@ -95,10 +95,10 @@
95 95 </div>
96 96 <el-table :data="cacheKeys" style="width: 100%" @row-click="handleKeyValue">
97 97 <el-table-column label="缓存键名" align="center" :show-overflow-tooltip="true">
98   - <template slot-scope="scope">{{ scope.row }}</template>
  98 + <template v-slot="scope">{{ scope.row }}</template>
99 99 </el-table-column>
100 100 <el-table-column label="操作" width="60" align="center" class-name="small-padding fixed-width">
101   - <template slot-scope="scope">
  101 + <template v-slot="scope">
102 102 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDeleteKey(scope.row)" />
103 103 </template>
104 104 </el-table-column>
... ...
yudao-ui-admin/src/views/infra/testDemo/index.vue
... ... @@ -54,12 +54,12 @@
54 54 <el-table-column label="分类" align="center" prop="category" />
55 55 <el-table-column label="备注" align="center" prop="remark" />
56 56 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
57   - <template slot-scope="scope">
  57 + <template v-slot="scope">
58 58 <span>{{ parseTime(scope.row.createTime) }}</span>
59 59 </template>
60 60 </el-table-column>
61 61 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
62   - <template slot-scope="scope">
  62 + <template v-slot="scope">
63 63 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
64 64 v-hasPermi="['infra:test-demo:update']">修改</el-button>
65 65 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/mall/CouponTemplete/index.vue
... ... @@ -66,17 +66,17 @@
66 66 <!-- todo 1-时间范围过期 2-领取之日固定日期后过期 3-领取次日固定日期后过期 -->
67 67 <el-table-column label="有效期限" align="center" prop="validityType" />
68 68 <!-- <el-table-column label="使用开始日期 过期类型1时必填" align="center" prop="startUseTime" width="180">-->
69   -<!-- <template slot-scope="scope">-->
  69 +<!-- <template v-slot="scope">-->
70 70 <!-- <span>{{ parseTime(scope.row.startUseTime) }}</span>-->
71 71 <!-- </template>-->
72 72 <!-- </el-table-column>-->
73 73 <!-- <el-table-column label="使用结束日期 过期类型1时必填" align="center" prop="endUseTime" width="180">-->
74   -<!-- <template slot-scope="scope">-->
  74 +<!-- <template v-slot="scope">-->
75 75 <!-- <span>{{ parseTime(scope.row.endUseTime) }}</span>-->
76 76 <!-- </template>-->
77 77 <!-- </el-table-column>-->
78 78 <!-- <el-table-column label="有效日期结束时间" align="center" prop="endTime" width="180">-->
79   -<!-- <template slot-scope="scope">-->
  79 +<!-- <template v-slot="scope">-->
80 80 <!-- <span>{{ parseTime(scope.row.endTime) }}</span>-->
81 81 <!-- </template>-->
82 82 <!-- </el-table-column>-->
... ...
yudao-ui-admin/src/views/mall/market/banner/index.vue
... ... @@ -37,7 +37,7 @@
37 37 <el-table-column label="标题" align="center" prop="title"/>
38 38  
39 39 <el-table-column label="缩略图" align="center" prop="picUrl">
40   - <template slot-scope="scope">
  40 + <template v-slot="scope">
41 41 <img v-if="scope.row.picUrl" :src="scope.row.picUrl" alt="缩略图片" class="img-height"/>
42 42 </template>
43 43 </el-table-column>
... ... @@ -45,17 +45,17 @@
45 45 <el-table-column label="排序" align="center" prop="sort"/>
46 46 <el-table-column label="描述" align="center" prop="memo"/>
47 47 <el-table-column label="状态" align="center" prop="status">
48   - <template slot-scope="scope">
  48 + <template v-slot="scope">
49 49 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
50 50 </template>
51 51 </el-table-column>
52 52 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
53   - <template slot-scope="scope">
  53 + <template v-slot="scope">
54 54 <span>{{ parseTime(scope.row.createTime) }}</span>
55 55 </template>
56 56 </el-table-column>
57 57 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
58   - <template slot-scope="scope">
  58 + <template v-slot="scope">
59 59 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
60 60 v-hasPermi="['market:banner:update']">修改
61 61 </el-button>
... ...
yudao-ui-admin/src/views/mall/product/brand/index.vue
... ... @@ -36,24 +36,24 @@
36 36 <el-table-column label="品牌编号" align="center" prop="id"/>
37 37 <el-table-column label="品牌名称" align="center" prop="name"/>
38 38 <el-table-column label="品牌图片" align="center" prop="picUrl">
39   - <template slot-scope="scope">
  39 + <template v-slot="scope">
40 40 <img v-if="scope.row.picUrl" :src="scope.row.picUrl" alt="分类图片" style="height: 100px;" />
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="品牌排序" align="center" prop="sort"/>
44 44 <el-table-column label="品牌描述" align="center" prop="description"/>
45 45 <el-table-column label="状态" align="center" prop="status">
46   - <template slot-scope="scope">
  46 + <template v-slot="scope">
47 47 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
48 48 </template>
49 49 </el-table-column>
50 50 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
51   - <template slot-scope="scope">
  51 + <template v-slot="scope">
52 52 <span>{{ parseTime(scope.row.createTime) }}</span>
53 53 </template>
54 54 </el-table-column>
55 55 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
56   - <template slot-scope="scope">
  56 + <template v-slot="scope">
57 57 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
58 58 v-hasPermi="['product:brand:update']">修改
59 59 </el-button>
... ...
yudao-ui-admin/src/views/mall/product/category/index.vue
... ... @@ -30,23 +30,23 @@
30 30 :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
31 31 <el-table-column label="分类名称" prop="name"/>
32 32 <el-table-column label="分类图片" align="center" prop="picUrl">
33   - <template slot-scope="scope">
  33 + <template v-slot="scope">
34 34 <img v-if="scope.row.picUrl" :src="scope.row.picUrl" alt="分类图片" style="height: 100px"/>
35 35 </template>
36 36 </el-table-column>
37 37 <el-table-column label="分类排序" align="center" prop="sort"/>
38 38 <el-table-column label="开启状态" align="center" prop="status">
39   - <template slot-scope="scope">
  39 + <template v-slot="scope">
40 40 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <span>{{ parseTime(scope.row.createTime) }}</span>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
51 51 v-hasPermi="['product:category:update']">修改
52 52 </el-button>
... ...
yudao-ui-admin/src/views/mall/product/property/index.vue
... ... @@ -35,22 +35,22 @@
35 35 <el-table v-loading="loading" :data="list">
36 36 <el-table-column label="规格名称" align="center" prop="name" />
37 37 <el-table-column label="规格名称" align="center" prop="propertyValueList">
38   - <template slot-scope="scope">
  38 + <template v-slot="scope">
39 39 <span>{{formatList(scope.row.propertyValueList)}}</span>
40 40 </template>
41 41 </el-table-column>
42 42 <el-table-column label="开启状态" align="center" prop="status">
43   - <template slot-scope="scope">
  43 + <template v-slot="scope">
44 44 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
45 45 </template>
46 46 </el-table-column>
47 47 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
48   - <template slot-scope="scope">
  48 + <template v-slot="scope">
49 49 <span>{{ parseTime(scope.row.createTime) }}</span>
50 50 </template>
51 51 </el-table-column>
52 52 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
53   - <template slot-scope="scope">
  53 + <template v-slot="scope">
54 54 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
55 55 v-hasPermi="['product:property:update']">修改</el-button>
56 56 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/mall/product/spu/index.vue
... ... @@ -50,7 +50,7 @@
50 50 <el-table-column label="商品名称" align="center" prop="name" />
51 51 <el-table-column label="分类id" align="center" prop="categoryId" />
52 52 <el-table-column label="商品主图地址" align="center" prop="picUrls">
53   - <template slot-scope="scope">
  53 + <template v-slot="scope">
54 54 <img
55 55 v-if="scope.row.picUrls"
56 56 :src="scope.row.picUrls[0]"
... ... @@ -64,17 +64,17 @@
64 64 <el-table-column label="价格区间" align="center" prop="price" />
65 65 <el-table-column label="总库存" align="center" prop="totalStock" />
66 66 <el-table-column label="状态" align="center" prop="status">
67   - <template slot-scope="scope">
  67 + <template v-slot="scope">
68 68 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
69 69 </template>
70 70 </el-table-column>
71 71 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
72   - <template slot-scope="scope">
  72 + <template v-slot="scope">
73 73 <span>{{ parseTime(scope.row.createTime) }}</span>
74 74 </template>
75 75 </el-table-column>
76 76 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
77   - <template slot-scope="scope">
  77 + <template v-slot="scope">
78 78 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
79 79 v-hasPermi="['product:spu:update']">修改</el-button>
80 80 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/mall/product/spu/save.vue
... ... @@ -70,20 +70,20 @@
70 70 <template v-if="ratesForm.spec == 2">
71 71 <el-table-column :key="index" v-for="(item, index) in dynamicSpec.filter(v => v.specName !== undefined)"
72 72 :label="item.specName">
73   - <template slot-scope="scope">
  73 + <template v-slot="scope">
74 74 <el-input v-if="scope.row.spec" v-model="scope.row.spec[index]" disabled />
75 75 </template>
76 76 </el-table-column>
77 77 </template>
78 78 <el-table-column label="规格图片" width="120px" :render-header="addRedStar" key="90">
79   - <template slot-scope="scope">
  79 + <template v-slot="scope">
80 80 <ImageUpload v-model="scope.row.picUrl" :limit="1" :isShowTip="false"
81 81 style="width: 100px; height: 50px"/>
82 82 </template>
83 83 </el-table-column>
84 84 <template v-if="ratesForm.spec === 2">
85 85 <el-table-column label="sku名称" :render-header="addRedStar" key="91">
86   - <template slot-scope="scope">
  86 + <template v-slot="scope">
87 87 <el-form-item :prop="'rates.'+ scope.$index + '.name'" :rules="[{required: true, trigger: 'change'}]">
88 88 <el-input v-model="scope.row.name" />
89 89 </el-form-item>
... ... @@ -91,7 +91,7 @@
91 91 </el-table-column>
92 92 </template>
93 93 <el-table-column label="市场价(元)" :render-header="addRedStar" key="92">
94   - <template slot-scope="scope">
  94 + <template v-slot="scope">
95 95 <el-form-item :prop="'rates.'+ scope.$index + '.marketPrice'" :rules="[{required: true, trigger: 'change'}]">
96 96 <el-input v-model="scope.row.marketPrice"
97 97 oninput="value= value.match(/\d+(\.\d{0,2})?/) ? value.match(/\d+(\.\d{0,2})?/)[0] : ''"/>
... ... @@ -99,14 +99,14 @@
99 99 </template>
100 100 </el-table-column>
101 101 <el-table-column label="销售价(元)" :render-header="addRedStar" key="93">
102   - <template slot-scope="scope">
  102 + <template v-slot="scope">
103 103 <el-form-item :prop="'rates.'+ scope.$index + '.price'" :rules="[{required: true, trigger: 'change'}]">
104 104 <el-input v-model="scope.row.price" oninput="value= value.match(/\d+(\.\d{0,2})?/) ? value.match(/\d+(\.\d{0,2})?/)[0] : ''"></el-input>
105 105 </el-form-item>
106 106 </template>
107 107 </el-table-column>
108 108 <el-table-column label="成本价" :render-header="addRedStar" key="94">
109   - <template slot-scope="scope">
  109 + <template v-slot="scope">
110 110 <el-form-item :prop="'rates.'+ scope.$index + '.costPrice'" :rules="[{required: true, trigger: 'change'}]">
111 111 <el-input
112 112 v-model="scope.row.costPrice"
... ... @@ -116,35 +116,35 @@
116 116 </template>
117 117 </el-table-column>
118 118 <el-table-column label="库存" :render-header="addRedStar" key="95">
119   - <template slot-scope="scope">
  119 + <template v-slot="scope">
120 120 <el-form-item :prop="'rates.'+ scope.$index + '.stock'" :rules="[{required: true, trigger: 'change'}]">
121 121 <el-input v-model="scope.row.stock" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input>
122 122 </el-form-item>
123 123 </template>
124 124 </el-table-column>
125 125 <el-table-column label="预警库存" key="96">
126   - <template slot-scope="scope">
  126 + <template v-slot="scope">
127 127 <el-input v-model="scope.row.warnStock" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"></el-input>
128 128 </template>
129 129 </el-table-column>
130 130 <el-table-column label="体积" key="97">
131   - <template slot-scope="scope">
  131 + <template v-slot="scope">
132 132 <el-input v-model="scope.row.volume" ></el-input>
133 133 </template>
134 134 </el-table-column>
135 135 <el-table-column label="重量" key="98">
136   - <template slot-scope="scope">
  136 + <template v-slot="scope">
137 137 <el-input v-model="scope.row.weight" ></el-input>
138 138 </template>
139 139 </el-table-column>
140 140 <el-table-column label="条码" key="99">
141   - <template slot-scope="scope">
  141 + <template v-slot="scope">
142 142 <el-input v-model="scope.row.barCode"></el-input>
143 143 </template>
144 144 </el-table-column>
145 145 <template v-if="ratesForm.spec === 2">
146 146 <el-table-column fixed="right" label="操作" width="50" key="100">
147   - <template slot-scope="scope">
  147 + <template v-slot="scope">
148 148 <el-button @click="scope.row.status = 1" type="text" size="small" v-show="scope.row.status == undefined || scope.row.status == 0 ">禁用</el-button>
149 149 <el-button @click="scope.row.status = 0" type="text" size="small" v-show="scope.row.status == 1">启用</el-button>
150 150 </template>
... ...
yudao-ui-admin/src/views/pay/app/index.vue
... ... @@ -47,20 +47,20 @@
47 47 <el-table-column label="应用编号" align="center" prop="id"/>
48 48 <el-table-column label="应用名" align="center" prop="name"/>
49 49 <el-table-column label="开启状态" align="center" prop="status">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <el-switch v-model="scope.row.status" :active-value="0" :inactive-value="1"
52 52 @change="handleStatusChange(scope.row)"/>
53 53 </template>
54 54 </el-table-column>
55 55 <el-table-column label="商户名称" align="center" prop="payMerchant.name"/>
56 56 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
57   - <template slot-scope="scope">
  57 + <template v-slot="scope">
58 58 <span>{{ parseTime(scope.row.createTime) }}</span>
59 59 </template>
60 60 </el-table-column>
61 61 <el-table-column label="支付宝配置" align="center">
62 62 <el-table-column :label="payChannelEnum.ALIPAY_APP.name" align="center">
63   - <template slot-scope="scope">
  63 + <template v-slot="scope">
64 64 <el-button type="success" icon="el-icon-check" circle
65 65 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.ALIPAY_APP.code)"
66 66 @click="handleUpdateChannel(scope.row,payChannelEnum.ALIPAY_APP.code,payType.ALIPAY)">
... ... @@ -72,7 +72,7 @@
72 72 </template>
73 73 </el-table-column>
74 74 <el-table-column :label="payChannelEnum.ALIPAY_PC.name" align="center">
75   - <template slot-scope="scope">
  75 + <template v-slot="scope">
76 76 <el-button type="success" icon="el-icon-check" circle
77 77 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.ALIPAY_PC.code)"
78 78 @click="handleUpdateChannel(scope.row,payChannelEnum.ALIPAY_PC.code,payType.ALIPAY)">
... ... @@ -84,7 +84,7 @@
84 84 </template>
85 85 </el-table-column>
86 86 <el-table-column :label="payChannelEnum.ALIPAY_WAP.name" align="center">
87   - <template slot-scope="scope">
  87 + <template v-slot="scope">
88 88 <el-button type="success" icon="el-icon-check" circle
89 89 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.ALIPAY_WAP.code)"
90 90 @click="handleUpdateChannel(scope.row,payChannelEnum.ALIPAY_WAP.code,payType.ALIPAY)">
... ... @@ -96,7 +96,7 @@
96 96 </template>
97 97 </el-table-column>
98 98 <el-table-column :label="payChannelEnum.ALIPAY_QR.name" align="center">
99   - <template slot-scope="scope">
  99 + <template v-slot="scope">
100 100 <el-button type="success" icon="el-icon-check" circle
101 101 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.ALIPAY_QR.code)"
102 102 @click="handleUpdateChannel(scope.row,payChannelEnum.ALIPAY_QR.code,payType.ALIPAY)">
... ... @@ -110,7 +110,7 @@
110 110 </el-table-column>
111 111 <el-table-column label="微信配置" align="center">
112 112 <el-table-column :label="payChannelEnum.WX_LITE.name" align="center">
113   - <template slot-scope="scope">
  113 + <template v-slot="scope">
114 114 <el-button type="success" icon="el-icon-check" circle
115 115 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.WX_LITE.code)"
116 116 @click="handleUpdateChannel(scope.row,payChannelEnum.WX_LITE.code,payType.WECHAT)">
... ... @@ -122,7 +122,7 @@
122 122 </template>
123 123 </el-table-column>
124 124 <el-table-column :label="payChannelEnum.WX_PUB.name" align="center">
125   - <template slot-scope="scope">
  125 + <template v-slot="scope">
126 126 <el-button type="success" icon="el-icon-check" circle
127 127 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.WX_PUB.code)"
128 128 @click="handleUpdateChannel(scope.row,payChannelEnum.WX_PUB.code,payType.WECHAT)">
... ... @@ -134,7 +134,7 @@
134 134 </template>
135 135 </el-table-column>
136 136 <el-table-column :label="payChannelEnum.WX_APP.name" align="center">
137   - <template slot-scope="scope">
  137 + <template v-slot="scope">
138 138 <el-button type="success" icon="el-icon-check" circle
139 139 v-if="judgeChannelExist(scope.row.channelCodes,payChannelEnum.WX_APP.code)"
140 140 @click="handleUpdateChannel(scope.row,payChannelEnum.WX_APP.code,payType.WECHAT)">
... ... @@ -147,7 +147,7 @@
147 147 </el-table-column>
148 148 </el-table-column>
149 149 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
150   - <template slot-scope="scope">
  150 + <template v-slot="scope">
151 151 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
152 152 v-hasPermi="['pay:app:update']">修改
153 153 </el-button>
... ...
yudao-ui-admin/src/views/pay/merchant/index.vue
... ... @@ -50,18 +50,18 @@
50 50 <el-table-column label="商户全称" align="center" prop="name" />
51 51 <el-table-column label="商户简称" align="center" prop="shortName" />
52 52 <el-table-column label="开启状态" align="center" prop="status" >
53   - <template slot-scope="scope">
  53 + <template v-slot="scope">
54 54 <el-switch v-model="scope.row.status" :active-value="0" :inactive-value="1" @change="handleStatusChange(scope.row)" />
55 55 </template>
56 56 </el-table-column>
57 57 <el-table-column label="备注" align="center" prop="remark" />
58 58 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <span>{{ parseTime(scope.row.createTime) }}</span>
61 61 </template>
62 62 </el-table-column>
63 63 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
64   - <template slot-scope="scope">
  64 + <template v-slot="scope">
65 65 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
66 66 v-hasPermi="['pay:merchant:update']">修改</el-button>
67 67 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/pay/order/index.vue
... ... @@ -94,48 +94,48 @@
94 94 <!-- <el-table-column label="渠道订单号" align="center" prop="channelOrderNo" width="140"/>-->
95 95 <el-table-column label="商品标题" align="center" prop="subject" width="180" :show-overflow-tooltip="true"/>
96 96 <el-table-column label="支付金额" align="center" prop="amount" width="100">
97   - <template slot-scope="scope">
  97 + <template v-slot="scope">
98 98 ¥{{ parseFloat(scope.row.amount / 100).toFixed(2) }}
99 99 </template>
100 100 </el-table-column>
101 101 <el-table-column label="手续金额" align="center" prop="channelFeeAmount" width="100">
102   - <template slot-scope="scope">
  102 + <template v-slot="scope">
103 103 ¥{{ parseFloat(scope.row.channelFeeAmount / 100).toFixed(2) }}
104 104 </template>
105 105 </el-table-column>
106 106 <el-table-column label="退款金额" align="center" prop="refundAmount" width="100">
107   - <template slot-scope="scope">
  107 + <template v-slot="scope">
108 108 ¥{{ parseFloat(scope.row.refundAmount / 100).toFixed(2) }}
109 109 </template>
110 110 </el-table-column>
111 111 <el-table-column label="支付状态" align="center" prop="status">
112   - <template slot-scope="scope">
  112 + <template v-slot="scope">
113 113 <dict-tag :type="DICT_TYPE.PAY_ORDER_STATUS" :value="scope.row.status" />
114 114 </template>
115 115  
116 116 </el-table-column>
117 117 <!-- <el-table-column label="退款状态" align="center" prop="refundStatus">-->
118   -<!-- <template slot-scope="scope">-->
  118 +<!-- <template v-slot="scope">-->
119 119 <!-- <span>{{ getDictDataLabel(DICT_TYPE.PAY_ORDER_REFUND_STATUS, scope.row.refundStatus) }}</span>-->
120 120 <!-- </template>-->
121 121 <!-- </el-table-column>-->
122 122 <el-table-column label="回调状态" align="center" prop="notifyStatus" width="100">
123   - <template slot-scope="scope">
  123 + <template v-slot="scope">
124 124 <dict-tag :type="DICT_TYPE.PAY_ORDER_NOTIFY_STATUS" :value="scope.row.notifyStatus" />
125 125 </template>
126 126 </el-table-column>
127 127 <el-table-column label="创建时间" align="center" prop="createTime" width="100">
128   - <template slot-scope="scope">
  128 + <template v-slot="scope">
129 129 <span>{{ parseTime(scope.row.createTime) }}</span>
130 130 </template>
131 131 </el-table-column>
132 132 <el-table-column label="支付时间" align="center" prop="successTime" width="100">
133   - <template slot-scope="scope">
  133 + <template v-slot="scope">
134 134 <span>{{ parseTime(scope.row.successTime) }}</span>
135 135 </template>
136 136 </el-table-column>
137 137 <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
138   - <template slot-scope="scope">
  138 + <template v-slot="scope">
139 139 <el-button size="mini" type="text" icon="el-icon-search" @click="handleQueryDetails(scope.row)"
140 140 v-hasPermi="['pay:order:query']">查看详情
141 141 </el-button>
... ...
yudao-ui-admin/src/views/pay/refund/index.vue
... ... @@ -68,7 +68,7 @@
68 68 <!-- <el-table-column label="商户名称" align="center" prop="merchantName" width="120"/>-->
69 69 <!-- <el-table-column label="应用名称" align="center" prop="appName" width="120"/>-->
70 70 <el-table-column label="支付渠道" align="center" width="130">
71   - <template slot-scope="scope">
  71 + <template v-slot="scope">
72 72 <el-popover trigger="hover" placement="top">
73 73 <p>商户名称: {{ scope.row.merchantName }}</p>
74 74 <p>应用名称: {{ scope.row.appName }}</p>
... ... @@ -82,7 +82,7 @@
82 82 <!-- <el-table-column label="交易订单号" align="center" prop="tradeNo" width="140"/>-->
83 83 <!-- <el-table-column label="商户订单编号" align="center" prop="merchantOrderId" width="140"/>-->
84 84 <el-table-column label="商户订单号" align="left" width="230">
85   - <template slot-scope="scope">
  85 + <template v-slot="scope">
86 86 <p class="order-font">
87 87 <el-tag size="mini">退款</el-tag>
88 88 {{ scope.row.merchantRefundNo }}
... ... @@ -94,7 +94,7 @@
94 94 </template>
95 95 </el-table-column>
96 96 <el-table-column label="支付订单号" align="center" prop="merchantRefundNo" width="250">
97   - <template slot-scope="scope">
  97 + <template v-slot="scope">
98 98 <p class="order-font">
99 99 <el-tag size="mini">交易</el-tag>
100 100 {{ scope.row.tradeNo }}
... ... @@ -106,7 +106,7 @@
106 106 </template>
107 107 </el-table-column>
108 108 <el-table-column label="支付金额(元)" align="center" prop="payAmount" width="100">
109   - <template slot-scope="scope" class="">
  109 + <template v-slot="scope" class="">
110 110 ¥{{ parseFloat(scope.row.payAmount / 100).toFixed(2) }}
111 111 </template>
112 112 </el-table-column>
... ... @@ -116,33 +116,33 @@
116 116 </template>
117 117 </el-table-column>
118 118 <el-table-column label="退款类型" align="center" prop="type" width="80">
119   - <template slot-scope="scope">
  119 + <template v-slot="scope">
120 120 <dict-tag :type="DICT_TYPE.PAY_REFUND_ORDER_TYPE" :value="scope.row.type" />
121 121 </template>
122 122 </el-table-column>
123 123 <el-table-column label="退款状态" align="center" prop="status">
124   - <template slot-scope="scope">
  124 + <template v-slot="scope">
125 125 <dict-tag :type="DICT_TYPE.PAY_REFUND_ORDER_STATUS" :value="scope.row.status" />
126 126 </template>
127 127 </el-table-column>
128 128 <el-table-column label="回调状态" align="center" prop="notifyStatus">
129   - <template slot-scope="scope">
  129 + <template v-slot="scope">
130 130 <dict-tag :type="DICT_TYPE.PAY_ORDER_NOTIFY_STATUS" :value="scope.row.notifyStatus" />
131 131 </template>
132 132 </el-table-column>
133 133 <el-table-column label="退款原因" align="center" prop="reason" width="140" :show-overflow-tooltip="true"/>
134 134 <el-table-column label="创建时间" align="center" prop="createTime" width="100">
135   - <template slot-scope="scope">
  135 + <template v-slot="scope">
136 136 <span>{{ parseTime(scope.row.createTime) }}</span>
137 137 </template>
138 138 </el-table-column>
139 139 <el-table-column label="退款成功时间" align="center" prop="successTime" width="100">
140   - <template slot-scope="scope">
  140 + <template v-slot="scope">
141 141 <span>{{ parseTime(scope.row.successTime) }}</span>
142 142 </template>
143 143 </el-table-column>
144 144 <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
145   - <template slot-scope="scope">
  145 + <template v-slot="scope">
146 146 <el-button size="mini" type="text" icon="el-icon-search" @click="handleQueryDetails(scope.row)"
147 147 v-hasPermi="['pay:order:query']">查看详情
148 148 </el-button>
... ... @@ -177,7 +177,7 @@
177 177 <el-tag class="tag-purple" size="mini">{{ parseFloat(refundDetail.refundAmount / 100).toFixed(2) }}</el-tag>
178 178 </el-descriptions-item>
179 179 <el-descriptions-item label="退款类型">
180   - <template slot-scope="scope">
  180 + <template v-slot="scope">
181 181 <dict-tag :type="DICT_TYPE.PAY_REFUND_ORDER_TYPE" :value="refundDetail.type" />
182 182 </template>
183 183 </el-descriptions-item>
... ...
yudao-ui-admin/src/views/system/dept/index.vue
... ... @@ -32,17 +32,17 @@
32 32 <el-table-column prop="leader" label="负责人" :formatter="userNicknameFormat" width="120"/>
33 33 <el-table-column prop="sort" label="排序" width="200"></el-table-column>
34 34 <el-table-column prop="status" label="状态" width="100">
35   - <template slot-scope="scope">
  35 + <template v-slot="scope">
36 36 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
37 37 </template>
38 38 </el-table-column>
39 39 <el-table-column label="创建时间" align="center" prop="createTime" width="200">
40   - <template slot-scope="scope">
  40 + <template v-slot="scope">
41 41 <span>{{ parseTime(scope.row.createTime) }}</span>
42 42 </template>
43 43 </el-table-column>
44 44 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
45   - <template slot-scope="scope">
  45 + <template v-slot="scope">
46 46 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
47 47 v-hasPermi="['system:dept:update']">修改</el-button>
48 48 <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)"
... ...
yudao-ui-admin/src/views/system/dict/data.vue
... ... @@ -38,7 +38,7 @@
38 38 <el-table-column label="字典键值" align="center" prop="value" />
39 39 <el-table-column label="字典排序" align="center" prop="sort" />
40 40 <el-table-column label="状态" align="center" prop="status">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
43 43 </template>
44 44 </el-table-column>
... ... @@ -46,12 +46,12 @@
46 46 <el-table-column label="CSS Class" align="center" prop="cssClass" />
47 47 <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
48 48 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <span>{{ parseTime(scope.row.createTime) }}</span>
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
56 56 v-hasPermi="['system:dict:update']">修改</el-button>
57 57 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/dict/index.vue
... ... @@ -38,25 +38,25 @@
38 38 <el-table-column label="字典编号" align="center" prop="id" />
39 39 <el-table-column label="字典名称" align="center" prop="name" :show-overflow-tooltip="true" />
40 40 <el-table-column label="字典类型" align="center" :show-overflow-tooltip="true">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <router-link :to="'/dict/type/data/' + scope.row.id" class="link-type">
43 43 <span>{{ scope.row.type }}</span>
44 44 </router-link>
45 45 </template>
46 46 </el-table-column>
47 47 <el-table-column label="状态" align="center" prop="status">
48   - <template slot-scope="scope">
  48 + <template v-slot="scope">
49 49 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
50 50 </template>
51 51 </el-table-column>
52 52 <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" />
53 53 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <span>{{ parseTime(scope.row.createTime) }}</span>
56 56 </template>
57 57 </el-table-column>
58 58 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
61 61 v-hasPermi="['system:dict:update']">修改</el-button>
62 62 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/errorCode/index.vue
... ... @@ -45,7 +45,7 @@
45 45 <el-table v-loading="loading" :data="list">
46 46 <el-table-column label="编号" align="center" prop="id" />
47 47 <el-table-column label="类型" align="center" prop="type" width="80">
48   - <template slot-scope="scope">
  48 + <template v-slot="scope">
49 49 <dict-tag :type="DICT_TYPE.SYSTEM_ERROR_CODE_TYPE" :value="scope.row.type" />
50 50 </template>
51 51 </el-table-column>
... ... @@ -54,12 +54,12 @@
54 54 <el-table-column label="错误码提示" align="center" prop="message" width="300" />
55 55 <el-table-column label="备注" align="center" prop="memo" width="200" />
56 56 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
57   - <template slot-scope="scope">
  57 + <template v-slot="scope">
58 58 <span>{{ parseTime(scope.row.createTime) }}</span>
59 59 </template>
60 60 </el-table-column>
61 61 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
62   - <template slot-scope="scope">
  62 + <template v-slot="scope">
63 63 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
64 64 v-hasPermi="['system:error-code:update']">修改</el-button>
65 65 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/loginlog/index.vue
... ... @@ -38,7 +38,7 @@
38 38 <el-table v-loading="loading" :data="list">
39 39 <el-table-column label="访问编号" align="center" prop="id" />
40 40 <el-table-column label="日志类型" align="center" prop="logType" width="120">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <dict-tag :type="DICT_TYPE.SYSTEM_LOGIN_TYPE" :value="scope.row.logType" />
43 43 </template>
44 44 </el-table-column>
... ... @@ -46,12 +46,12 @@
46 46 <el-table-column label="登录地址" align="center" prop="userIp" width="130" :show-overflow-tooltip="true" />
47 47 <el-table-column label="userAgent" align="center" prop="userAgent" width="400" :show-overflow-tooltip="true" />
48 48 <el-table-column label="结果" align="center" prop="status">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <dict-tag :type="DICT_TYPE.SYSTEM_LOGIN_RESULT" :value="scope.row.result" />
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="登录日期" align="center" prop="loginTime" width="180">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <span>{{ parseTime(scope.row.createTime) }}</span>
56 56 </template>
57 57 </el-table-column>
... ...
yudao-ui-admin/src/views/system/menu/index.vue
... ... @@ -33,7 +33,7 @@
33 33 :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
34 34 <el-table-column prop="name" label="菜单名称" :show-overflow-tooltip="true" width="250"></el-table-column>
35 35 <el-table-column prop="icon" label="图标" align="center" width="100">
36   - <template slot-scope="scope">
  36 + <template v-slot="scope">
37 37 <svg-icon :icon-class="scope.row.icon" />
38 38 </template>
39 39 </el-table-column>
... ... @@ -41,17 +41,17 @@
41 41 <el-table-column prop="permission" label="权限标识" :show-overflow-tooltip="true"></el-table-column>
42 42 <el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column>
43 43 <el-table-column prop="status" label="状态" width="80">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="创建时间" align="center" prop="createTime">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <span>{{ parseTime(scope.row.createTime) }}</span>
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
54   - <template slot-scope="scope">
  54 + <template v-slot="scope">
55 55 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
56 56 v-hasPermi="['system:menu:update']">修改</el-button>
57 57 <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)"
... ...
yudao-ui-admin/src/views/system/notice/index.vue
... ... @@ -30,23 +30,23 @@
30 30 <el-table-column label="序号" align="center" prop="id" width="100" />
31 31 <el-table-column label="公告标题" align="center" prop="title" :show-overflow-tooltip="true"/>
32 32 <el-table-column label="公告类型" align="center" prop="type" width="100">
33   - <template slot-scope="scope">
  33 + <template v-slot="scope">
34 34 <dict-tag :type="DICT_TYPE.SYSTEM_NOTICE_TYPE" :value="scope.row.type"/>
35 35 </template>
36 36 </el-table-column>
37 37 <el-table-column label="状态" align="center" prop="status" width="100">
38   - <template slot-scope="scope">
  38 + <template v-slot="scope">
39 39 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
40 40 </template>
41 41 </el-table-column>
42 42 <el-table-column label="创建者" align="center" prop="createBy" width="100" />
43 43 <el-table-column label="创建时间" align="center" prop="createTime" width="100">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
51 51 v-hasPermi="['system:notice:update']">修改</el-button>
52 52 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/oauth2/client/index.vue
... ... @@ -33,35 +33,35 @@
33 33 <el-table-column label="客户端密钥" align="center" prop="secret" />
34 34 <el-table-column label="应用名" align="center" prop="name" />
35 35 <el-table-column label="应用图标" align="center" prop="logo">
36   - <template slot-scope="scope">
  36 + <template v-slot="scope">
37 37 <img width="40px" height="40px" :src="scope.row.logo">
38 38 </template>
39 39 </el-table-column>
40 40 <el-table-column label="状态" align="center" prop="status">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
43 43 </template>
44 44 </el-table-column>
45 45 <el-table-column label="访问令牌的有效期" align="center" prop="accessTokenValiditySeconds">
46   - <template slot-scope="scope">{{ scope.row.accessTokenValiditySeconds }} 秒</template>
  46 + <template v-slot="scope">{{ scope.row.accessTokenValiditySeconds }} 秒</template>
47 47 </el-table-column>
48 48 <el-table-column label="刷新令牌的有效期" align="center" prop="refreshTokenValiditySeconds">
49   - <template slot-scope="scope">{{ scope.row.refreshTokenValiditySeconds }} 秒</template>
  49 + <template v-slot="scope">{{ scope.row.refreshTokenValiditySeconds }} 秒</template>
50 50 </el-table-column>
51 51 <el-table-column label="授权类型" align="center" prop="authorizedGrantTypes">
52   - <template slot-scope="scope">
  52 + <template v-slot="scope">
53 53 <el-tag :disable-transitions="true" :key="index" v-for="(authorizedGrantType, index) in scope.row.authorizedGrantTypes" :index="index">
54 54 {{ authorizedGrantType }}
55 55 </el-tag>
56 56 </template>
57 57 </el-table-column>
58 58 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
59   - <template slot-scope="scope">
  59 + <template v-slot="scope">
60 60 <span>{{ parseTime(scope.row.createTime) }}</span>
61 61 </template>
62 62 </el-table-column>
63 63 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
64   - <template slot-scope="scope">
  64 + <template v-slot="scope">
65 65 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
66 66 v-hasPermi="['system:oauth2-client:update']">修改</el-button>
67 67 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/oauth2/token/index.vue
... ... @@ -23,22 +23,22 @@
23 23 <el-table-column label="刷新令牌" align="center" prop="refreshToken" width="300" />
24 24 <el-table-column label="用户编号" align="center" prop="userId" />
25 25 <el-table-column label="用户类型" align="center" prop="userType" width="100">
26   - <template slot-scope="scope">
  26 + <template v-slot="scope">
27 27 <dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType"/>
28 28 </template>
29 29 </el-table-column>
30 30 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
31   - <template slot-scope="scope">
  31 + <template v-slot="scope">
32 32 <span>{{ parseTime(scope.row.createTime) }}</span>
33 33 </template>
34 34 </el-table-column>
35 35 <el-table-column label="过期时间" align="center" prop="expiresTime" width="180">
36   - <template slot-scope="scope">
  36 + <template v-slot="scope">
37 37 <span>{{ parseTime(scope.row.expiresTime) }}</span>
38 38 </template>
39 39 </el-table-column>
40 40 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
41   - <template slot-scope="scope">
  41 + <template v-slot="scope">
42 42 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleForceLogout(scope.row)"
43 43 v-hasPermi="['system:oauth2-token:delete']">强退</el-button>
44 44 </template>
... ...
yudao-ui-admin/src/views/system/operatelog/index.vue
... ... @@ -46,28 +46,28 @@
46 46 <el-table-column label="操作模块" align="center" prop="module" />
47 47 <el-table-column label="操作名" align="center" prop="name" width="180" />
48 48 <el-table-column label="操作类型" align="center" prop="type">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <dict-tag :type="DICT_TYPE.SYSTEM_OPERATE_TYPE" :value="scope.row.type"/>
51 51 </template>
52 52 </el-table-column>
53 53 <el-table-column label="操作人" align="center" prop="userNickname" />
54 54 <el-table-column label="操作结果" align="center" prop="status">
55   - <template slot-scope="scope">
  55 + <template v-slot="scope">
56 56 <span>{{ scope.row.resultCode === 0 ? '成功' : '失败' }}</span>
57 57 </template>
58 58 </el-table-column>
59 59 <el-table-column label="操作日期" align="center" prop="startTime" width="180">
60   - <template slot-scope="scope">
  60 + <template v-slot="scope">
61 61 <span>{{ parseTime(scope.row.startTime) }}</span>
62 62 </template>
63 63 </el-table-column>
64 64 <el-table-column label="执行时长" align="center" prop="startTime">
65   - <template slot-scope="scope">
  65 + <template v-slot="scope">
66 66 <span>{{ scope.row.duration }} ms</span>
67 67 </template>
68 68 </el-table-column>
69 69 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
70   - <template slot-scope="scope">
  70 + <template v-slot="scope">
71 71 <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row,scope.index)"
72 72 v-hasPermi="['system:operate-log:query']">详细</el-button>
73 73 </template>
... ...
yudao-ui-admin/src/views/system/post/index.vue
... ... @@ -36,17 +36,17 @@
36 36 <el-table-column label="岗位名称" align="center" prop="name" />
37 37 <el-table-column label="岗位排序" align="center" prop="sort" />
38 38 <el-table-column label="状态" align="center" prop="status">
39   - <template slot-scope="scope">
  39 + <template v-slot="scope">
40 40 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <span>{{ parseTime(scope.row.createTime) }}</span>
46 46 </template>
47 47 </el-table-column>
48 48 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
51 51 v-hasPermi="['system:post:update']">修改</el-button>
52 52 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/role/index.vue
... ... @@ -43,23 +43,23 @@
43 43 <el-table-column label="角色名称" prop="name" :show-overflow-tooltip="true" width="150" />
44 44 <el-table-column label="角色标识" prop="code" :show-overflow-tooltip="true" width="150" />
45 45 <el-table-column label="角色类型" prop="type" width="80">
46   - <template slot-scope="scope">
  46 + <template v-slot="scope">
47 47 <dict-tag :type="DICT_TYPE.SYSTEM_ROLE_TYPE" :value="scope.row.type"/>
48 48 </template>
49 49 </el-table-column>
50 50 <el-table-column label="显示顺序" prop="sort" width="100" />
51 51 <el-table-column label="状态" align="center" width="100">
52   - <template slot-scope="scope">
  52 + <template v-slot="scope">
53 53 <el-switch v-model="scope.row.status" :active-value="0" :inactive-value="1" @change="handleStatusChange(scope.row)"></el-switch>
54 54 </template>
55 55 </el-table-column>
56 56 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
57   - <template slot-scope="scope">
  57 + <template v-slot="scope">
58 58 <span>{{ parseTime(scope.row.createTime) }}</span>
59 59 </template>
60 60 </el-table-column>
61 61 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
62   - <template slot-scope="scope">
  62 + <template v-slot="scope">
63 63 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
64 64 v-hasPermi="['system:role:update']">修改</el-button>
65 65 <el-button size="mini" type="text" icon="el-icon-circle-check" @click="handleMenu(scope.row)"
... ...
yudao-ui-admin/src/views/system/sensitiveWord/index.vue
... ... @@ -47,25 +47,25 @@
47 47 <el-table-column label="编号" align="center" prop="id"/>
48 48 <el-table-column label="敏感词" align="center" prop="name"/>
49 49 <el-table-column label="状态" align="center" prop="status">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
52 52 </template>
53 53 </el-table-column>
54 54 <el-table-column label="描述" align="center" prop="description"/>
55 55 <el-table-column label="标签" align="center" prop="tags">
56   - <template slot-scope="scope">
  56 + <template v-slot="scope">
57 57 <el-tag :disable-transitions="true" :key="index" v-for="(tag, index) in scope.row.tags" :index="index">
58 58 {{ tag }}
59 59 </el-tag>
60 60 </template>
61 61 </el-table-column>
62 62 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
63   - <template slot-scope="scope">
  63 + <template v-slot="scope">
64 64 <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
65 65 </template>
66 66 </el-table-column>
67 67 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
68   - <template slot-scope="scope">
  68 + <template v-slot="scope">
69 69 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
70 70 v-hasPermi="['system:sensitive-word:update']">修改
71 71 </el-button>
... ...
yudao-ui-admin/src/views/system/sms/smsChannel.vue
... ... @@ -36,12 +36,12 @@
36 36 <el-table-column label="编号" align="center" prop="id" />
37 37 <el-table-column label="短信签名" align="center" prop="signature" />
38 38 <el-table-column label="渠道编码" align="center" prop="code">
39   - <template slot-scope="scope">
  39 + <template v-slot="scope">
40 40 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE" :value="scope.row.code"/>
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="启用状态" align="center" prop="status">
44   - <template slot-scope="scope">
  44 + <template v-slot="scope">
45 45 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
46 46 </template>
47 47 </el-table-column>>
... ... @@ -50,12 +50,12 @@
50 50 <el-table-column label="短信 API 的密钥" align="center" prop="apiSecret" />
51 51 <el-table-column label="短信发送回调 URL" align="center" prop="callbackUrl" />
52 52 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
53   - <template slot-scope="scope">
  53 + <template v-slot="scope">
54 54 <span>{{ parseTime(scope.row.createTime) }}</span>
55 55 </template>
56 56 </el-table-column>
57 57 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
58   - <template slot-scope="scope">
  58 + <template v-slot="scope">
59 59 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
60 60 v-hasPermi="['system:sms-channel:update']">修改</el-button>
61 61 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/sms/smsLog.vue
... ... @@ -55,12 +55,12 @@
55 55 <el-table v-loading="loading" :data="list">
56 56 <el-table-column label="编号" align="center" prop="id" />
57 57 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
58   - <template slot-scope="scope">
  58 + <template v-slot="scope">
59 59 <span>{{ parseTime(scope.row.createTime) }}</span>
60 60 </template>
61 61 </el-table-column>
62 62 <el-table-column label="手机号" align="center" prop="mobile" width="120">
63   - <template slot-scope="scope">
  63 + <template v-slot="scope">
64 64 <div>{{ scope.row.mobile }}</div>
65 65 <div v-if="scope.row.userType && scope.row.userId">
66 66 <dict-tag :type="DICT_TYPE.USER_TYPE" :value="scope.row.userType"/>{{ '(' + scope.row.userId + ')' }}
... ... @@ -69,31 +69,31 @@
69 69 </el-table-column>
70 70 <el-table-column label="短信内容" align="center" prop="templateContent" width="300" />
71 71 <el-table-column label="发送状态" align="center" width="180">
72   - <template slot-scope="scope">
  72 + <template v-slot="scope">
73 73 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_SEND_STATUS" :value="scope.row.sendStatus"/>
74 74 <div>{{ parseTime(scope.row.sendTime) }}</div>
75 75 </template>
76 76 </el-table-column>
77 77 <el-table-column label="接收状态" align="center" width="180">
78   - <template slot-scope="scope">
  78 + <template v-slot="scope">
79 79 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS" :value="scope.row.receiveStatus"/>
80 80 <div>{{ parseTime(scope.row.receiveTime) }}</div>
81 81 </template>
82 82 </el-table-column>
83 83 <el-table-column label="短信渠道" align="center" width="120">
84   - <template slot-scope="scope">
  84 + <template v-slot="scope">
85 85 <div>{{ formatChannelSignature(scope.row.channelId) }}</div>
86 86 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE" :value="scope.row.channelCode"/>
87 87 </template>
88 88 </el-table-column>
89 89 <el-table-column label="模板编号" align="center" prop="templateId" />
90 90 <el-table-column label="短信类型" align="center" prop="templateType">
91   - <template slot-scope="scope">
  91 + <template v-slot="scope">
92 92 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE" :value="scope.row.templateType"/>
93 93 </template>
94 94 </el-table-column>
95 95 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
96   - <template slot-scope="scope">
  96 + <template v-slot="scope">
97 97 <el-button size="mini" type="text" icon="el-icon-view" @click="handleView(scope.row,scope.index)"
98 98 v-hasPermi="['system:sms-log:query']">详细</el-button>
99 99 </template>
... ...
yudao-ui-admin/src/views/system/sms/smsTemplate.vue
... ... @@ -57,30 +57,30 @@
57 57 <el-table-column label="模板名称" align="center" prop="name" />
58 58 <el-table-column label="模板内容" align="center" prop="content" width="300" />
59 59 <el-table-column label="短信类型" align="center" prop="type">
60   - <template slot-scope="scope">
  60 + <template v-slot="scope">
61 61 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE" :value="scope.row.type"/>
62 62 </template>
63 63 </el-table-column>
64 64 <el-table-column label="开启状态" align="center" prop="status">
65   - <template slot-scope="scope">
  65 + <template v-slot="scope">
66 66 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
67 67 </template>
68 68 </el-table-column>
69 69 <el-table-column label="备注" align="center" prop="remark" />
70 70 <el-table-column label="短信 API 的模板编号" align="center" prop="apiTemplateId" width="180" />
71 71 <el-table-column label="短信渠道" align="center" width="120">
72   - <template slot-scope="scope">
  72 + <template v-slot="scope">
73 73 <div>{{ formatChannelSignature(scope.row.channelId) }}</div>
74 74 <dict-tag :type="DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE" :value="scope.row.channelCode"/>
75 75 </template>
76 76 </el-table-column>
77 77 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
78   - <template slot-scope="scope">
  78 + <template v-slot="scope">
79 79 <span>{{ parseTime(scope.row.createTime) }}</span>
80 80 </template>
81 81 </el-table-column>
82 82 <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
83   - <template slot-scope="scope">
  83 + <template v-slot="scope">
84 84 <el-button size="mini" type="text" icon="el-icon-share" @click="handleSendSms(scope.row)"
85 85 v-hasPermi="['system:sms-template:send-sms']">测试</el-button>
86 86 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
... ...
yudao-ui-admin/src/views/system/tenant/index.vue
... ... @@ -46,7 +46,7 @@
46 46 <el-table-column label="租户编号" align="center" prop="id" />
47 47 <el-table-column label="租户名" align="center" prop="name" />
48 48 <el-table-column label="租户套餐" align="center" prop="packageId">
49   - <template slot-scope="scope">
  49 + <template v-slot="scope">
50 50 <el-tag v-if="scope.row.packageId === 0" type="danger">系统租户</el-tag>
51 51 <el-tag v-else> {{getPackageName(scope.row.packageId)}} </el-tag>
52 52 </template>
... ... @@ -54,28 +54,28 @@
54 54 <el-table-column label="联系人" align="center" prop="contactName" />
55 55 <el-table-column label="联系手机" align="center" prop="contactMobile" />
56 56 <el-table-column label="账号额度" align="center" prop="accountCount">
57   - <template slot-scope="scope">
  57 + <template v-slot="scope">
58 58 <el-tag> {{scope.row.accountCount}} </el-tag>
59 59 </template>
60 60 </el-table-column>
61 61 <el-table-column label="过期时间" align="center" prop="expireTime" width="180">
62   - <template slot-scope="scope">
  62 + <template v-slot="scope">
63 63 <span>{{ parseTime(scope.row.expireTime) }}</span>
64 64 </template>
65 65 </el-table-column>
66 66 <el-table-column label="绑定域名" align="center" prop="domain" width="180" />
67 67 <el-table-column label="租户状态" align="center" prop="status">
68   - <template slot-scope="scope">
  68 + <template v-slot="scope">
69 69 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status"/>
70 70 </template>
71 71 </el-table-column>
72 72 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
73   - <template slot-scope="scope">
  73 + <template v-slot="scope">
74 74 <span>{{ parseTime(scope.row.createTime) }}</span>
75 75 </template>
76 76 </el-table-column>
77 77 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
78   - <template slot-scope="scope">
  78 + <template v-slot="scope">
79 79 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
80 80 v-hasPermi="['system:tenant:update']">修改</el-button>
81 81 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/tenantPackage/index.vue
... ... @@ -36,18 +36,18 @@
36 36 <el-table-column label="套餐编号" align="center" prop="id" width="120" />
37 37 <el-table-column label="套餐名" align="center" prop="name" />
38 38 <el-table-column label="状态" align="center" prop="status" width="100">
39   - <template slot-scope="scope">
  39 + <template v-slot="scope">
40 40 <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
41 41 </template>
42 42 </el-table-column>
43 43 <el-table-column label="备注" align="center" prop="remark" />
44 44 <el-table-column label="创建时间" align="center" prop="createTime" width="180">
45   - <template slot-scope="scope">
  45 + <template v-slot="scope">
46 46 <span>{{ parseTime(scope.row.createTime) }}</span>
47 47 </template>
48 48 </el-table-column>
49 49 <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
50   - <template slot-scope="scope">
  50 + <template v-slot="scope">
51 51 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
52 52 v-hasPermi="['system:tenant-package:update']">修改</el-button>
53 53 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
... ...
yudao-ui-admin/src/views/system/user/index.vue
... ... @@ -64,17 +64,17 @@
64 64 <el-table-column label="部门" align="center" key="deptName" prop="dept.name" v-if="columns[3].visible" :show-overflow-tooltip="true" />
65 65 <el-table-column label="手机号码" align="center" key="mobile" prop="mobile" v-if="columns[4].visible" width="120" />
66 66 <el-table-column label="状态" key="status" v-if="columns[5].visible" align="center">
67   - <template slot-scope="scope">
  67 + <template v-slot="scope">
68 68 <el-switch v-model="scope.row.status" :active-value="0" :inactive-value="1" @change="handleStatusChange(scope.row)" />
69 69 </template>
70 70 </el-table-column>
71 71 <el-table-column label="创建时间" align="center" prop="createTime" v-if="columns[6].visible" width="160">
72   - <template slot-scope="scope">
  72 + <template v-slot="scope">
73 73 <span>{{ parseTime(scope.row.createTime) }}</span>
74 74 </template>
75 75 </el-table-column>
76 76 <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
77   - <template slot-scope="scope">
  77 + <template v-slot="scope">
78 78 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
79 79 v-hasPermi="['system:user:update']">修改</el-button>
80 80 <el-dropdown @command="(command) => handleCommand(command, scope.$index, scope.row)"
... ...
yudao-ui-admin/src/views/system/user/profile/userSocial.vue
1 1 <template>
2 2 <el-table :data="socialUsers" :show-header="false">
3 3 <el-table-column label="社交平台" align="left" width="120">
4   - <template slot-scope="scope">
  4 + <template v-slot="scope">
5 5 <img style="height:20px;vertical-align: middle;" :src="scope.row.img" /> {{ scope.row.title }}
6 6 </template>
7 7 </el-table-column>
8 8 <el-table-column label="操作" align="left" >
9   - <template slot-scope="scope">
  9 + <template v-slot="scope">
10 10 <div v-if="scope.row.openid">
11 11 已绑定
12 12 <el-button size="large" type="text" @click="unbind(scope.row)">(解绑)</el-button>
... ...