From beba42aa1204efae58283196656aae7d6a0d3cfe Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期日, 02 四月 2023 14:14:11 +0800
Subject: [PATCH] /family1/bignote1修改为了/family1/bignote
---
ruoyi-ui/src/views/bignote/index.vue | 91 ++++++++++++++++++++++-----------------------
1 files changed, 45 insertions(+), 46 deletions(-)
diff --git a/ruoyi-ui/src/views/bignote/index.vue b/ruoyi-ui/src/views/bignote/index.vue
index b4eeb2f..444c419 100644
--- a/ruoyi-ui/src/views/bignote/index.vue
+++ b/ruoyi-ui/src/views/bignote/index.vue
@@ -11,7 +11,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
-
+
<el-form-item label="浜虹墿" prop="people">
<el-input
v-model="queryParams.people"
@@ -29,7 +29,7 @@
style="width: 240px"
@keyup.enter.native="handleQuery"
/>
-
+
</el-form-item>
<el-form-item label="鏃堕棿">
<el-date-picker
@@ -47,7 +47,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
</el-form-item>
</el-form>
-
+
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
@@ -59,7 +59,7 @@
v-hasPermi="['system:role:add']"
>鏂板</el-button>
</el-col>
-
+
<el-col :span="1.5">
<el-button
type="danger"
@@ -97,7 +97,7 @@
<el-table-column label="浜虹墿" prop="people" sortable width="100" />
<el-table-column label="鍦扮偣" prop="address" sortable width="100" />
<el-table-column label="澶т簨鏍囬" prop="title" sortable :show-overflow-tooltip="true" width="150" />
-
+
<el-table-column label="澶囨敞" prop="remark" sortable width="100" />
<el-table-colum label="鐢靛瓙鏂囦欢" prop="fujian" sortable width="100"/>
<el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width">
@@ -118,12 +118,12 @@
>鍒犻櫎</el-button>
<el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']">
<el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">鏌ョ湅璇︽儏</el-button>
-
+
</el-dropdown>
</template>
</el-table-column>
</el-table>
-
+
<pagination
v-show="total>0"
:total="total"
@@ -131,16 +131,16 @@
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
-
+
<!-- 娣诲姞鎴栦慨鏀硅祫浜т俊鎭厤缃璇濇 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px">
-
-
+
+
<el-form-item label="澶т簨鏍囬" prop="title">
<el-input v-model="formDat.title" placeholder="璇疯緭鍏ュぇ浜嬫爣棰�" clearable :style="{width: '100%'}" ></el-input>
</el-form-item>
-
+
<el-form-item label="浜虹墿" prop="people">
<el-input v-model="formDat.holder" placeholder="璇疯緭鍏ヤ汉鐗�" clearable :style="{width: '100%'}" >
</el-input>
@@ -152,7 +152,7 @@
<el-form-item label="澶囨敞" prop="remark">
<el-input v-model="formDat.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" ></el-input>
</el-form-item>
-
+
<h4 class="form-header">鐩稿叧鍥剧墖 </h4>
<el-upload
action="#"
@@ -178,7 +178,7 @@
>
<i class="el-icon-zoom-in"></i>
</span>
-
+
<span
v-if="!disabled"
class="el-upload-list__item-delete"
@@ -187,8 +187,8 @@
<i class="el-icon-delete"></i>
</span>
</span>
-
-
+
+
</div>
</el-upload>
<h4 class="form-header">鍏朵粬闄勪欢 </h4>
@@ -197,7 +197,7 @@
:file-list="fileListOther"
class="upload-demo"
multiple
-
+
:on-remove="handleRemove"
:http-request="requestUpload"
:show-file-list="true"
@@ -208,30 +208,30 @@
</div>
</template>
</el-upload>
-
+
</el-form>
<h4 class="form-header"> </h4>
-
+
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitDataScope">纭� 瀹�</el-button>
<el-button @click="cancelData">鍙� 娑�</el-button>
</div>
</el-dialog>
-
+
<!-- 鍒嗛厤瑙掕壊鏁版嵁鏉冮檺瀵硅瘽妗� -->
<el-dialog :title="title" :visible.sync="openDataScope" width="500px" append-to-body>
-
+
</el-dialog>
-
+
</div>
</template>
-
+
<script>
import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role";
import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
-
-
-
+
+
+
//鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜�
import {listFamilyevent , getFamilyeventInfo , delFamilyevent , addFamilyevent , uploadPic} from "@/api/bignote/index";
export default {
@@ -241,7 +241,7 @@
return {
// 閬僵灞�
disabled: false,
-
+
loading: true,
formData:[],
// 閫変腑鏁扮粍
@@ -273,7 +273,7 @@
fileList:[
],
fileListOther:[
-
+
],
dsb:true,
btn:false,
@@ -312,7 +312,7 @@
message: '璇疯緭鍏ュぇ浜嬫爣棰�',
trigger: 'blur'
}],
-
+
people: [{
required: true,
message: '璇疯緭鍏ヤ汉鐗�',
@@ -340,7 +340,7 @@
created() {
this.getList();
// this.getCateInfor()
-
+
},
methods: {
// 鍙栨秷鎸夐挳
@@ -349,7 +349,7 @@
this.reset();
},
- /** 鏌ヨ瑙掕壊鍒楄〃 */
+ /** 鏌ヨ瑙掕壊鍒楄〃 */
//鍒楄〃鏄剧ず瀹跺ぇ浜嬭
getList() {
@@ -360,7 +360,7 @@
// alert(123)
// console.log(response.data)
this.familyList = response.data.data;
-
+
this.total = response.data.total;
this.loading = false;
}
@@ -418,7 +418,7 @@
this.single = selection.length!=1
this.multiple = !selection.length
},
-
+
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
this.reset();
@@ -430,29 +430,29 @@
/** 鏌ョ湅璇︾粏淇℃伅 */
handleCheck(row){
const id = row.id;
- this.$router.push("/family1/bignote1/familyeventInfo/" + id);
+ this.$router.push("/family1/bignote/familyeventInfo/" + id);
},
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate(row) {
const id = row.id;
let jd = true
-
+
this.$router.push({
- path:"/family1/bignote1/familyeventInfo/" + id,
+ path:"/family1/bignote/familyeventInfo/" + id,
query:{
detail:jd
}
});
},
-
-
+
+
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
this.dialogVisible = true;
},
/** 鎻愪氦鎸夐挳锛堟暟鎹潈闄愶級 */
submitDataScope: function() {
-
+
let ul = this.fileList.map(function (elem){
return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
}).join(",")
@@ -462,7 +462,7 @@
this.formDat.url = ul+","+uls
this.$refs["elForm"].validate(valid => {
if (valid) {
-
+
addFamilyevent(this.formDat).then(response => {
this.$modal.msgSuccess("鏂板鎴愬姛");
this.open = false;
@@ -477,22 +477,22 @@
var formData = new FormData();
formData.append('uploadFile', file);
let _this = this
-
+
uploadPic(formData).then(response => {
let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
-
+
if(_this.fot.includes(pth) === true)
{
_this.fileList.push({name:response.data.fileName, "url":response.data.url})
-
+
}
-
+
else{
_this.fileListOther.push({name:response.data.fileName, url:response.data.url})
-
+
}
})
-
+
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
@@ -513,4 +513,3 @@
}
};
</script>
-
\ No newline at end of file
--
Gitblit v1.9.1