12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <template>
- <toolbar-container :fields="fields" v-on="$listeners" />
- </template>
- <script>
- import { setStatus } from '@/utils';
- export default {
- name: 'UpdateListToolbar',
- data() {
- return {
- fields: [
- {
- type: 'text',
- name: 'platform',
- label: '平台'
- },
- {
- type: 'text',
- name: 'productName',
- label: '版本名'
- },
- {
- type: 'text',
- name: 'versionNumber',
- label: '版本号'
- },
- {
- type: 'select',
- name: 'isForceUpgrade',
- label: '强制更新',
- options: setStatus(['开启', '关闭'], [true, false]),
- format: val => (val !== null && val !== '' ? !!val : null)
- },
- {
- type: 'select',
- name: 'isShow',
- label: '状态',
- options: setStatus(['运行', '停止'], [true, false]),
- format: val => (val !== null && val !== '' ? !!val : null)
- }
- ]
- };
- }
- };
- </script>
- <style type="scss" scoped></style>
|