Showing
1 changed file
with
12 additions
and
12 deletions
1 | 1 | <template> |
2 | 2 | <div> |
3 | 3 | <BasicForm :showResetButton="false" :showSubmitButton="false" @register="register"> |
4 | - <template #upScriptId="{ model, field }"> | |
4 | + <template #authScriptId="{ model, field }"> | |
5 | 5 | <div style="display: flex; align-items: center"> |
6 | 6 | <div> |
7 | 7 | <Select |
8 | - @change="handleUpChange" | |
8 | + @change="handleAuthChange" | |
9 | 9 | placeholder="请选择" |
10 | 10 | v-model:value="model[field]" |
11 | 11 | style="width: 305px" |
12 | 12 | show-search |
13 | - :options="selectUpOptions" | |
14 | - :filter-option="handleSearch" | |
13 | + :options="selectAuthOptions" | |
14 | + :filter-option="handleAuthSearch" | |
15 | 15 | allowClear |
16 | 16 | /> |
17 | 17 | </div> |
18 | 18 | <div> |
19 | 19 | <span |
20 | - @click="handleCreateOrEdit('add')" | |
20 | + @click="handleCreateOrEditAuth('add')" | |
21 | 21 | class="ml-2" |
22 | 22 | style="color: #409eff; cursor: pointer" |
23 | 23 | size="small" |
... | ... | @@ -25,27 +25,27 @@ |
25 | 25 | > |
26 | 26 | </div> |
27 | 27 | </div> |
28 | - <a-button @click="handleCreateOrEdit('test')" class="mt-4" type="primary" | |
28 | + <a-button @click="handleCreateOrEditAuth('test')" class="mt-4" type="primary" | |
29 | 29 | >测试脚本</a-button |
30 | 30 | > |
31 | 31 | </template> |
32 | - <template #authScriptId="{ model, field }"> | |
32 | + <template #upScriptId="{ model, field }"> | |
33 | 33 | <div style="display: flex; align-items: center"> |
34 | 34 | <div> |
35 | 35 | <Select |
36 | - @change="handleAuthChange" | |
36 | + @change="handleUpChange" | |
37 | 37 | placeholder="请选择" |
38 | 38 | v-model:value="model[field]" |
39 | 39 | style="width: 305px" |
40 | 40 | show-search |
41 | - :options="selectAuthOptions" | |
42 | - :filter-option="handleAuthSearch" | |
41 | + :options="selectUpOptions" | |
42 | + :filter-option="handleSearch" | |
43 | 43 | allowClear |
44 | 44 | /> |
45 | 45 | </div> |
46 | 46 | <div> |
47 | 47 | <span |
48 | - @click="handleCreateOrEditAuth('add')" | |
48 | + @click="handleCreateOrEdit('add')" | |
49 | 49 | class="ml-2" |
50 | 50 | style="color: #409eff; cursor: pointer" |
51 | 51 | size="small" |
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | > |
54 | 54 | </div> |
55 | 55 | </div> |
56 | - <a-button @click="handleCreateOrEditAuth('test')" class="mt-4" type="primary" | |
56 | + <a-button @click="handleCreateOrEdit('test')" class="mt-4" type="primary" | |
57 | 57 | >测试脚本</a-button |
58 | 58 | > |
59 | 59 | </template> | ... | ... |