|
|
@ -23,7 +23,8 @@
|
|
|
|
import ElButton from '@/components/extra/ElButton.vue';
|
|
|
|
import ElButton from '@/components/extra/ElButton.vue';
|
|
|
|
import ElInput from '@/components/extra/ElInput.vue';
|
|
|
|
import ElInput from '@/components/extra/ElInput.vue';
|
|
|
|
import ElSwitch from '@/components/extra/ElSwitch.vue';
|
|
|
|
import ElSwitch from '@/components/extra/ElSwitch.vue';
|
|
|
|
import { ElTimePicker } from 'element-plus';
|
|
|
|
import { ElTimePicker } from 'element-plus/es/components/time-picker/index';
|
|
|
|
|
|
|
|
import 'element-plus/es/components/time-picker/style/css';
|
|
|
|
const route = useRoute();
|
|
|
|
const route = useRoute();
|
|
|
|
const router = useRouter();
|
|
|
|
const router = useRouter();
|
|
|
|
const store = useStore();
|
|
|
|
const store = useStore();
|
|
|
@ -153,14 +154,14 @@
|
|
|
|
default: ({ row }) => (
|
|
|
|
default: ({ row }) => (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<ElButton
|
|
|
|
<ElButton
|
|
|
|
disabled={row.state !== 1 && !row.edit}
|
|
|
|
disabled={row.state === 2 && !row.edit}
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
onClick={() => handleUpdate(row)}
|
|
|
|
onClick={() => handleUpdate(row)}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{row.edit ? '保存' : '编辑'}
|
|
|
|
{row.edit ? '保存' : '编辑'}
|
|
|
|
</ElButton>
|
|
|
|
</ElButton>
|
|
|
|
<ElButton
|
|
|
|
<ElButton
|
|
|
|
disabled={row.state !== 1 && !row.edit}
|
|
|
|
disabled={row.state === 2 && !row.edit}
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
onClick={() => handleRemove([row])}
|
|
|
|
onClick={() => handleRemove([row])}
|
|
|
|
>
|
|
|
|
>
|
|
|
|