|
@@ -173,7 +173,7 @@
|
|
|
class="ibps-mr-5"
|
|
class="ibps-mr-5"
|
|
|
:color="button.type | optionsFilter(colorOptions,'color','type')"
|
|
:color="button.type | optionsFilter(colorOptions,'color','type')"
|
|
|
:text-color="button.type | optionsFilter(colorOptions,'textColor','type')"
|
|
:text-color="button.type | optionsFilter(colorOptions,'textColor','type')"
|
|
|
- @click.stop="handleActionEvent(button)"
|
|
|
|
|
|
|
+ @click.stop="handleActionEvent(button,j)"
|
|
|
>
|
|
>
|
|
|
{{ button.label }}</van-tag>
|
|
{{ button.label }}</van-tag>
|
|
|
</template>
|
|
</template>
|
|
@@ -247,6 +247,12 @@
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</van-popup>
|
|
</van-popup>
|
|
|
|
|
+ <component
|
|
|
|
|
+ :is="dialogTemplate"
|
|
|
|
|
+ v-if="dialogTemplate"
|
|
|
|
|
+ ref="dialogTemplate"
|
|
|
|
|
+ v-bind="dialogTemplateAtts"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -257,7 +263,8 @@ import { hasPermission } from '../constants/buttonTypes'
|
|
|
import { colorOptions } from '@/constants/btnColor'
|
|
import { colorOptions } from '@/constants/btnColor'
|
|
|
import clickoutside from '@/utils/clickoutside'
|
|
import clickoutside from '@/utils/clickoutside'
|
|
|
|
|
|
|
|
-import JForm from '../utils/JForm'// 自定义脚本
|
|
|
|
|
|
|
+const JForm = window.JForm
|
|
|
|
|
+// import JForm from '../utils/JForm'// 自定义脚本
|
|
|
const COLLAPSE_NAME_KEY = 'table_'
|
|
const COLLAPSE_NAME_KEY = 'table_'
|
|
|
export default {
|
|
export default {
|
|
|
name: 'form-table',
|
|
name: 'form-table',
|
|
@@ -331,7 +338,8 @@ export default {
|
|
|
dialogFormIndex: -1,
|
|
dialogFormIndex: -1,
|
|
|
|
|
|
|
|
importTableDialogVisible: false,
|
|
importTableDialogVisible: false,
|
|
|
-
|
|
|
|
|
|
|
+ dialogTemplate: null,
|
|
|
|
|
+ dialogTemplateAtts: {},
|
|
|
inputValue: '',
|
|
inputValue: '',
|
|
|
toggle: this._getItem(),
|
|
toggle: this._getItem(),
|
|
|
colorOptions
|
|
colorOptions
|