|
|
|
@ -23,7 +23,8 @@
|
|
|
|
|
import ElButton from '@/components/extra/ElButton.vue';
|
|
|
|
|
import ElInput from '@/components/extra/ElInput.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 router = useRouter();
|
|
|
|
|
const store = useStore();
|
|
|
|
@ -153,14 +154,14 @@
|
|
|
|
|
default: ({ row }) => (
|
|
|
|
|
<div>
|
|
|
|
|
<ElButton
|
|
|
|
|
disabled={row.state !== 1 && !row.edit}
|
|
|
|
|
disabled={row.state === 2 && !row.edit}
|
|
|
|
|
type="text"
|
|
|
|
|
onClick={() => handleUpdate(row)}
|
|
|
|
|
>
|
|
|
|
|
{row.edit ? '保存' : '编辑'}
|
|
|
|
|
</ElButton>
|
|
|
|
|
<ElButton
|
|
|
|
|
disabled={row.state !== 1 && !row.edit}
|
|
|
|
|
disabled={row.state === 2 && !row.edit}
|
|
|
|
|
type="text"
|
|
|
|
|
onClick={() => handleRemove([row])}
|
|
|
|
|
>
|
|
|
|
|