Commit ef4261ab7f365ffda18f7e04b23834a188e5002e

Authored by fengwotao
1 parent b7ac2581

pref:TCP 调整脚本位置,鉴权脚本在上

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