Commit a0077cde by zhaopanyu

zpy 7.20

parent b32e66f7
......@@ -10,10 +10,11 @@ export function addStudio(data) {
}
// 查看录播室列表
export function getStudio() {
export function getStudio(query) {
return request({
url: "/studio/list",
method: "get",
params: query,
});
}
......
......@@ -161,8 +161,10 @@
<el-form-item label="分管领导" prop="leadershipName">
<el-input :value="postForm.leadershipName" placeholder="请选择分管领导"
@focus="openSelect('选择分管领导', 'leaderList', 2)"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
......@@ -243,7 +245,7 @@
<tr>
<td rowspan="2" class="btntxt">附件</td>
<td colspan="3">
<td colspan="6">
<p v-for="(item, index) in fileList" :key="index">
<el-link :underline="false" :href="item.fjlj" type="primary" target="_blank">
{{ item.fjmc }}
......@@ -420,6 +422,7 @@ export default {
fjmc: "",
fjlj: "",
leadershipId: "",
leadershipName: "",
},
// 分管领导id
......@@ -457,9 +460,7 @@ export default {
activityArea: [
{ required: true, message: "活动场地不能为空", trigger: "blur" }
],
activityTime: [
{ required: true, message: "活动不能为空", trigger: "blur" }
],
specificUserName: [
{ required: true, message: "具体负责人不能为空", trigger: "blur" }
......@@ -488,9 +489,9 @@ export default {
{ required: true, message: "是否需要大屏不能为空", trigger: "blur" }
],
// leadershipName: [
// { required: true, message: "分管领导不能为空", trigger: "change" }
// ],
leadershipName: [
{ required: true, message: "分管领导不能为空", trigger: "change" }
],
fjmc: [
{ required: true, message: "流程单附件不能为空", trigger: "blur" }
......@@ -508,6 +509,7 @@ export default {
},
created() {
this.getList();
const rules = JSON.parse('[{ "required": true, "message": "请选择分管领导" }]');
......@@ -702,15 +704,6 @@ export default {
},
// getFormatDate(timeDate) {
// let date = new Date(timeDate);
// let year = date.getFullYear();
// let month = date.getMonth() + 1;
// let day = date.getDate();
// return [year, '-', month, '-', day].join('');
// },
readNodes(nodes = [], arr = []) {
for (let item of nodes) {
......@@ -726,16 +719,20 @@ export default {
this.selectHandles.title = title;
this.selectHandles.method = method;
this.selectHandles.type = type;
console.log('this.selectHandles', this.selectHandles);
},
// 选择处理人
selectUser(select) {
console.log('select', select);
console.log('this.postForm', this.postForm);
// 这种写法存在一定危险,后续最好是可以有更好的字段名对应
this.$set(this.form, `handUserName${this.selectHandles.type}`, select.name);
this.$set(this.form, `handUserId${this.selectHandles.type}`, select.id);
// this.$set(this.postForm, leadershipName, select.name);
// this.$set(this.postForm, leadershipId, select.id);
this.postForm.leadershipName = select.name;
this.postForm.leadershipId = select.id;
console.log('this.postForm', this.postForm);
},
......@@ -875,6 +872,7 @@ export default {
leadershipId: "",
pageNum: 1,
pageSize: 10,
leadershipName: ""
};
this.resetForm("postForm");
},
......
......@@ -154,6 +154,7 @@ export default {
},
/** 选项选中发生变化 */
selectionChange(selections) {
console.log('seselections', selections);
this.selectUser = selections[0];
},
/** 点击选中、取消 */
......
......@@ -34,8 +34,8 @@
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" /> -->
<!-- 新增/修改弹窗 -->
<el-dialog :title="title" :visible.sync="open" width="1200px">
<el-form ref="form" :model="form" label-width="114px" :rules="rules">
......@@ -90,12 +90,7 @@ export default {
return {
studioStatu: "",
queryParams: {
id: "",
studioName: "",
studioStatu: "",
studioArea: '',
pageNum: 1,
pageSize: 10,
studioArea: "",
},
title: "",
rules: {
......@@ -125,7 +120,7 @@ export default {
methods: {
/** 查询 */
getList() {
getStudio(this.queryParams.studioArea).then((response) => {
getStudio(this.queryParams).then((response) => {
this.tableData = response.rows;
this.loading = false;
console.log(111, response.rows);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment