|
@@ -15,19 +15,8 @@
|
|
<TableAction
|
|
<TableAction
|
|
:actions="[
|
|
:actions="[
|
|
{
|
|
{
|
|
- icon: 'mdi:information-outline',
|
|
|
|
- label: t('common.details'),
|
|
|
|
- onClick: () => {
|
|
|
|
- go(`/order/list/detail/${record.orderNo}`);
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- icon: 'mdi:printer-outline',
|
|
|
|
- label: t('common.print'),
|
|
|
|
- color: 'error',
|
|
|
|
- onClick: () => {
|
|
|
|
- createMessage.info(t('common.notConnect'));
|
|
|
|
- },
|
|
|
|
|
|
+ label: t('routes.staff.resetPassword'),
|
|
|
|
+ onClick: handleResetPassword.bind(null, record),
|
|
},
|
|
},
|
|
]"
|
|
]"
|
|
/>
|
|
/>
|
|
@@ -36,7 +25,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
- import { defineComponent } from 'vue';
|
|
|
|
|
|
+ import { defineComponent, computed } from 'vue';
|
|
import { BasicTable, useTable, BasicColumn, FormProps, TableAction } from '/@/components/Table';
|
|
import { BasicTable, useTable, BasicColumn, FormProps, TableAction } from '/@/components/Table';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { uploadApi } from '/@/api/sys/upload';
|
|
import { uploadApi } from '/@/api/sys/upload';
|
|
@@ -46,32 +35,11 @@
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
// import { useCopyToClipboard } from '/@/hooks/web/useCopyToClipboard';
|
|
// import { useCopyToClipboard } from '/@/hooks/web/useCopyToClipboard';
|
|
import { useGo } from '/@/hooks/web/usePage';
|
|
import { useGo } from '/@/hooks/web/usePage';
|
|
- // import { Time } from '/@/components/Time';
|
|
|
|
-
|
|
|
|
- // appid: null
|
|
|
|
- // companyId: 1107
|
|
|
|
- // companyName: "南山居"
|
|
|
|
- // createTime: 1644801035000
|
|
|
|
- // createUser: "11111111111"
|
|
|
|
- // fdkkPassword: null
|
|
|
|
- // fdkkUser: null
|
|
|
|
- // head: null
|
|
|
|
- // id: 20356
|
|
|
|
- // memoName: "顶顶顶顶"
|
|
|
|
- // message: null
|
|
|
|
- // nickName: "用户13822221234"
|
|
|
|
- // phone: "13822221234"
|
|
|
|
- // roleIdList: null
|
|
|
|
- // roleList: null
|
|
|
|
- // roleName: "公司员工"
|
|
|
|
- // state: null
|
|
|
|
- // token: null
|
|
|
|
- // type: 1
|
|
|
|
- // updateTime: 1644801035000
|
|
|
|
- // updateUser: "11111111111"
|
|
|
|
- // userName: "13822221234"
|
|
|
|
- // userPassword: "2a22bac40f44af4d3b5fdc20ea706fc5"
|
|
|
|
|
|
+ import { useLocaleStore } from '/@/store/modules/locale';
|
|
|
|
+ const localeStore = useLocaleStore();
|
|
|
|
|
|
|
|
+ // import { Time } from '/@/components/Time';
|
|
|
|
+ const isJA = computed(() => localeStore.getLocale === 'ja');
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: { BasicTable, TableAction },
|
|
components: { BasicTable, TableAction },
|
|
setup() {
|
|
setup() {
|
|
@@ -121,13 +89,13 @@
|
|
// slots: { customRender: 'createTime' },
|
|
// slots: { customRender: 'createTime' },
|
|
width: 130,
|
|
width: 130,
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // title: '操作',
|
|
|
|
- // dataIndex: '',
|
|
|
|
- // slots: { customRender: 'action' },
|
|
|
|
- // fixed: 'right',
|
|
|
|
- // width: 140,
|
|
|
|
- // },
|
|
|
|
|
|
+ {
|
|
|
|
+ title: t('common.operating'),
|
|
|
|
+ dataIndex: '',
|
|
|
|
+ slots: { customRender: 'action' },
|
|
|
|
+ fixed: 'right',
|
|
|
|
+ width: isJA.value ? 150 : 100,
|
|
|
|
+ },
|
|
];
|
|
];
|
|
|
|
|
|
const searchForm: Partial<FormProps> = {
|
|
const searchForm: Partial<FormProps> = {
|
|
@@ -180,6 +148,9 @@
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ function handleResetPassword(record: Recordable) {
|
|
|
|
+ console.log('record', record);
|
|
|
|
+ }
|
|
|
|
|
|
return {
|
|
return {
|
|
registerTable,
|
|
registerTable,
|
|
@@ -189,6 +160,7 @@
|
|
renderRoleType,
|
|
renderRoleType,
|
|
renderStatus,
|
|
renderStatus,
|
|
uploadApi: uploadApi as any,
|
|
uploadApi: uploadApi as any,
|
|
|
|
+ handleResetPassword,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
});
|
|
});
|