修改bug
This commit is contained in:
parent
0d42134f8c
commit
a7c11a3ec6
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Tinymce v-bind="bindProps" @change="onChange" />
|
<Tinymce v-bind="bindProps" @change="onChange" style="margin-top: 40px;" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
|
|
@ -1,20 +1,12 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="prefixCls" :style="{ width: containerWidth }">
|
<div :class="prefixCls" :style="{ width: containerWidth }">
|
||||||
<ImgUpload
|
|
||||||
:fullscreen="fullscreen"
|
|
||||||
@uploading="handleImageUploading"
|
|
||||||
@done="handleDone"
|
|
||||||
v-if="showImageUpload"
|
|
||||||
v-show="editorRef"
|
|
||||||
:disabled="disabled"
|
|
||||||
/>
|
|
||||||
<textarea :id="tinymceId" ref="elRef" :style="{ visibility: 'hidden' }" v-if="!initOptions.inline"></textarea>
|
<textarea :id="tinymceId" ref="elRef" :style="{ visibility: 'hidden' }" v-if="!initOptions.inline"></textarea>
|
||||||
<slot v-else></slot>
|
<slot v-else></slot>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { Editor, RawEditorSettings } from 'tinymce2';
|
import type { Editor, RawEditorSettings } from 'tinymce';
|
||||||
import tinymce from 'tinymce/tinymce';
|
import tinymce from 'tinymce/tinymce';
|
||||||
import { defineComponent, computed, nextTick, ref, unref, watch, onDeactivated, onBeforeUnmount } from 'vue';
|
import { defineComponent, computed, nextTick, ref, unref, watch, onDeactivated, onBeforeUnmount } from 'vue';
|
||||||
import ImgUpload from './ImgUpload.vue';
|
import ImgUpload from './ImgUpload.vue';
|
||||||
|
@ -39,11 +31,11 @@
|
||||||
|
|
||||||
toolbar: {
|
toolbar: {
|
||||||
type: [Array as PropType<string[]>, String],
|
type: [Array as PropType<string[]>, String],
|
||||||
default: toolbar,
|
default: simpleToolbar,
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
type: Array as PropType<string[]>,
|
type: Array as PropType<string[]>,
|
||||||
default: plugins,
|
default: simplePlugins,
|
||||||
},
|
},
|
||||||
menubar: {
|
menubar: {
|
||||||
type: [Object, String],
|
type: [Object, String],
|
||||||
|
|
|
@ -27,7 +27,7 @@ export const plugins = [
|
||||||
// 'fullscreen code preview | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight|subscript superscript blockquote| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl';
|
// 'fullscreen code preview | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight|subscript superscript blockquote| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl';
|
||||||
|
|
||||||
export const toolbar =
|
export const toolbar =
|
||||||
'bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl';
|
'bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify ';
|
||||||
// fullscreen code preview | undo redo |
|
// fullscreen code preview | undo redo |
|
||||||
|
|
||||||
export const simplePlugins = ['lists image link media table textcolor wordcount contextmenu fullscreen'];
|
export const simplePlugins = ['lists image link media table textcolor wordcount contextmenu fullscreen'];
|
||||||
|
|
|
@ -26,11 +26,12 @@ export const plugins = [
|
||||||
// export const toolbar =
|
// export const toolbar =
|
||||||
// 'fullscreen code preview | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight|subscript superscript blockquote| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl';
|
// 'fullscreen code preview | undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent lineheight|subscript superscript blockquote| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | insertfile image media pageembed link anchor codesample insertdatetime hr| a11ycheck ltr rtl';
|
||||||
|
|
||||||
export const toolbar =
|
export const toolbar =
|
||||||
'';
|
'bold italic underline strikethrough | insertfile image media pageembed link | alignleft aligncenter alignright alignjustify | outdent indent lineheight| numlist bullist checklist | forecolor backcolor casechange permanentpen formatpainter removeformat | pagebreak | charmap emoticons | anchor codesample insertdatetime hr| a11ycheck ltr rtl';
|
||||||
|
|
||||||
// fullscreen code preview | undo redo |
|
// fullscreen code preview | undo redo |
|
||||||
|
|
||||||
export const simplePlugins = ['lists image link media table textcolor wordcount contextmenu fullscreen'];
|
export const simplePlugins = ['lists insertfile image link table textcolor wordcount contextmenu fullscreen'];
|
||||||
|
|
||||||
export const simpleToolbar = [
|
export const simpleToolbar = [
|
||||||
'lists link unlink image media table removeformat fullscreen',
|
'lists link unlink image media table removeformat fullscreen',
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
>
|
>
|
||||||
<a-col :span="8" style="color: #f56c6c; display: flex; flex-direction: column; text-align: left; font-size: 12px"
|
<a-col :span="8" style="color: #f56c6c; display: flex; flex-direction: column; text-align: left; font-size: 12px"
|
||||||
><span style="font-weight: bold; font-size: 20px; margin-left: 5px">{{ item.dcrs }}</span
|
><span style="font-weight: bold; font-size: 20px; margin-left: 5px">{{ item.dcrs }}</span
|
||||||
>{{ item.wjType != '8' ? '未批阅人数' : '答错人数' }}</a-col
|
>{{ item.wjType != '8' ? '答错人数' : '未批阅人数' }}</a-col
|
||||||
>
|
>
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -62,15 +62,15 @@
|
||||||
@change="emitChange(item)"
|
@change="emitChange(item)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="text-align: center; margin-top: 20px">
|
||||||
|
<a-button type="primary" @click="submitForm">保存</a-button>
|
||||||
|
<a-button type="primary" @click="submitNextForm" style="margin-left: 10px">保存并下一个</a-button>
|
||||||
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: center; margin-top: 20px">
|
|
||||||
<a-button type="primary" @click="submitForm">保存</a-button>
|
|
||||||
<a-button type="primary" @click="submitNextForm" style="margin-left: 10px">保存并下一个</a-button>
|
|
||||||
</div>
|
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|
|
@ -231,6 +231,8 @@ function handleBaocuo(item) {
|
||||||
|
|
||||||
const listTkjlApi = (params) => defHttp.get({ url: '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId', params });
|
const listTkjlApi = (params) => defHttp.get({ url: '/kcTingke/kcTingke/findTingKeZuJiBytingketimeAndUserId', params });
|
||||||
function funpingjia(record) {
|
function funpingjia(record) {
|
||||||
|
console.log('11111--------->',record)
|
||||||
|
console.log('222--------->',record.szkc)
|
||||||
var item = { ketangbiaoid: record.id };
|
var item = { ketangbiaoid: record.id };
|
||||||
let userid = getUserId();
|
let userid = getUserId();
|
||||||
listTkjlApi({ userid: userid, ketangbiaoid: item.ketangbiaoid }).then((res) => {
|
listTkjlApi({ userid: userid, ketangbiaoid: item.ketangbiaoid }).then((res) => {
|
||||||
|
@ -250,11 +252,11 @@ function funpingjia(record) {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// tingKeZuJiAddModal.value.view(item);
|
// tingKeZuJiAddModal.value.view(item);
|
||||||
tingKeZuJiAddModal.view({ ketangbiaoid: route.query.ktId })
|
tingKeZuJiAddModal.value.view({ ketangbiaoid: route.query.ktId,szkc:record.szkc })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// tingKeZuJiAddModal.value.view(item);
|
// tingKeZuJiAddModal.value.view(item);
|
||||||
tingKeZuJiAddModal.view({ ketangbiaoid: route.query.ktId })
|
tingKeZuJiAddModal.value.view({ ketangbiaoid: route.query.ktId,szkc:record.szkc })
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue