|
- <template>
- <div>
- search
- </div>
- </template>
-
- <script>
-
- // import { saveLocalModel, getModelInfoByName, modifyModel } from '~/apis/modules/modelmanage';
- import { getUrlSearchParams } from '~/utils';
- // import { MODEL_ENGINES } from '~/const'
-
- export default {
- data() {
- return {
- type: '0', // 1-修改,其它-新增
- loading: false,
- state: {
- type: 0,
- name: '',
- version: '0.0.1',
- engine: '0',
- label: '',
- description: '',
- },
- nameErr: false,
- isShowVersion: false,
- };
- },
- components: {},
- methods: {
- checkName() {
- this.nameErr = !this.state.name;
- return !this.nameErr;
- },
- submit() {
-
- },
- cancel() {
-
- },
- goDetail() {
-
- }
- },
- mounted() {
- const urlParams = getUrlSearchParams();
- if (urlParams.type == '1' && urlParams.name && urlParams.id) {
-
- }
- },
- beforeDestroy() {
- },
- };
- </script>
-
- <style scoped lang="less">
-
- </style>
|