|
@@ -197,6 +197,7 @@
|
|
|
<!-- <Button @click="choiceImg" icon="ios-cloud-upload-outline" type="primary">选择文件</Button> -->
|
|
|
<!-- <input ref="filElem" type="file" class="upload-file" @change="addFile" /> -->
|
|
|
<el-upload
|
|
|
+ ref="upload"
|
|
|
class="uploadItems"
|
|
|
action="/v1/common/upfile"
|
|
|
:limit="1"
|
|
@@ -208,6 +209,15 @@
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <div class="ques" v-for="(item, index) in dialog3Content">
|
|
|
+ <span v-exchangeHtml:foo="item.tx"></span>
|
|
|
+ <span v-exchangeHtml:foo="item.tg"></span>
|
|
|
+ <span v-exchangeHtml:foo="item.da"></span>
|
|
|
+ <span v-exchangeHtml:foo="item.zsd"></span>
|
|
|
+ <span v-exchangeHtml:foo="item.nd"></span>
|
|
|
+ <span v-exchangeHtml:foo="item.jx"></span>
|
|
|
+ </div>
|
|
|
</el-form>
|
|
|
</cloudDialog>
|
|
|
<!-- <cloudDialog ref="dialog2" :config="dialogConfig2" :beforeClose="beforeClose2" @close="resetForm2">
|
|
@@ -220,6 +230,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import axios from "axios";
|
|
|
import { resourceApi } from "@/api/resource";
|
|
|
import Clickoutside from "element-ui/src/utils/clickoutside";
|
|
|
export default {
|
|
@@ -356,7 +367,7 @@ export default {
|
|
|
// 新增资源
|
|
|
dialogConfig: {
|
|
|
top: "8vh",
|
|
|
- width: "600px",
|
|
|
+ width: "900px",
|
|
|
title: "新增资源信息",
|
|
|
center: true,
|
|
|
btnTxt: ["取消", "保存"],
|
|
@@ -390,6 +401,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ dialog3Content: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -554,6 +566,32 @@ export default {
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
this.dialogForm.name = file.name;
|
|
|
this.dialogForm.attach_url = [res.data];
|
|
|
+ this.clickup(file);
|
|
|
+ },
|
|
|
+ clickup(file) {
|
|
|
+ this.dataTable.loading = true;
|
|
|
+ var formData = new FormData();
|
|
|
+ formData.append("file", file);
|
|
|
+ // let fileList = new FormData();
|
|
|
+ var token = this.Cookies.get("www-authenticate");
|
|
|
+ axios({
|
|
|
+ url: "http://127.0.0.1:19882/parsedocx.aspx",
|
|
|
+ // url: "http://10.10.153.242:19882/parsedocx.aspx",
|
|
|
+ method: "post",
|
|
|
+ data: formData,
|
|
|
+ headers: {
|
|
|
+ Authorization: `Bearer ${token}`,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.dataTable.loading = false;
|
|
|
+ // this.open3();
|
|
|
+ this.dialog3Content = res.data;
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
addItems() {
|
|
|
this.dialogForm = {
|