随手拍
This commit is contained in:
@@ -2,14 +2,19 @@
|
|||||||
<div class="Transfer">
|
<div class="Transfer">
|
||||||
<div class="contents">
|
<div class="contents">
|
||||||
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
<u-form :model="forms" ref="uForm" label-width="auto" :border-bottom="false">
|
||||||
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right">
|
<u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form" v-if="status == 1">
|
||||||
|
<u-input v-model="forms.status" placeholder="请选择转交对象" @click="toSelectUser" disabled />
|
||||||
|
|
||||||
|
<!-- <AiTreePicker :ops="treeList" v-model="forms.status" @select="handerSelect"> </AiTreePicker> -->
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="事件分类" prop="groupName" required :border-bottom="false" right-icon="arrow-right" v-if="status != 1">
|
||||||
<u-input v-model="forms.groupName" placeholder="请选择事件分类" @click="show = true" />
|
<u-input v-model="forms.groupName" placeholder="请选择事件分类" @click="show = true" />
|
||||||
|
|
||||||
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
|
<u-select v-model="show" :list="myList" value-name="id" label-name="groupName" @confirm="selectStatus"></u-select>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<u-form-item :label="number == 3 ? '办结意见' : number == 2 ? '拒绝受理意见' : '办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
<u-form-item :label="status == 3 ? '办结意见' : status == 2 ? '拒绝受理意见' : '办理意见'" prop="content" required :border-bottom="false" label-position="top" class="contents">
|
||||||
<u-input v-model="forms.content" :placeholder="number == 2 ? '请写下拒绝受理意见…' : '请写下你的办结意见...'" type="textarea" auto-height height="100" maxlength="500" />
|
<u-input v-model="forms.content" :placeholder="status == 2 ? '请写下拒绝受理意见…' : '请写下你的办结意见...'" type="textarea" auto-height height="100" maxlength="500" />
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
@@ -18,24 +23,19 @@
|
|||||||
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
<AiUploader :def.sync="forms.files" multiple placeholder="上传图片" :limit="9" action="/admin/file/add2"></AiUploader>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<!-- <u-form-item label="转交给" prop="status" required :border-bottom="false" right-icon="arrow-right" class="first-form">
|
|
||||||
<u-input v-model="forms.status" placeholder="请选择转交对象" @click="toSelectUser" disabled />
|
|
||||||
|
|
||||||
<AiTreePicker :ops="treeList" v-model="forms.status" @select="handerSelect"> </AiTreePicker>
|
|
||||||
</u-form-item> -->
|
|
||||||
</u-form>
|
</u-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn" v-if="this.number == 1" @click="submit3">
|
<div class="btn" v-if="this.status == 1" @click="submit3">
|
||||||
<span>转交事件</span>
|
<span>转交事件</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn" v-if="this.number == 2" @click="submit2">
|
<div class="btn" v-if="this.status == 2" @click="submit2">
|
||||||
<span>拒绝受理</span>
|
<span>拒绝受理</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn" v-if="this.number == 3" @click="submit3">
|
<div class="btn" v-if="this.status == 3" @click="submit3">
|
||||||
<span>我来受理</span>
|
<span>我已办结</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -55,23 +55,16 @@ export default {
|
|||||||
},
|
},
|
||||||
flag: false,
|
flag: false,
|
||||||
show: false,
|
show: false,
|
||||||
number: '',
|
status: '', //1转交 2拒绝受理 3我已办结
|
||||||
|
|
||||||
myList: [],
|
myList: [],
|
||||||
groupName: '',
|
|
||||||
groupId: '',
|
|
||||||
id: '',
|
id: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(o) {
|
onLoad(option) {
|
||||||
console.log(o)
|
this.status = option.status
|
||||||
this.groupName = o.groupName
|
this.id = option.id
|
||||||
this.groupId = o.groupId
|
this.forms.groupId = option.groupId
|
||||||
this.number = o.number
|
this.forms.groupName = option.groupName
|
||||||
this.id = o.id
|
|
||||||
|
|
||||||
this.forms.groupId = this.groupId
|
|
||||||
this.forms.groupName = this.groupName
|
|
||||||
this.typeList()
|
this.typeList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -84,13 +77,13 @@ export default {
|
|||||||
|
|
||||||
this.$refs.uForm.validate((valid) => {
|
this.$refs.uForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.number == 2 || this.number == 3) {
|
if (this.status == 2 || this.status == 3) {
|
||||||
if (!this.forms.groupName) {
|
if (!this.forms.groupName) {
|
||||||
return this.$u.toast('请选择事件分类')
|
return this.$u.toast('请选择事件分类')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.forms.content) {
|
if (!this.forms.content) {
|
||||||
return this.$u.toast(this.number == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
|
return this.$u.toast(this.status == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,13 +126,13 @@ export default {
|
|||||||
|
|
||||||
this.$refs.uForm.validate((valid) => {
|
this.$refs.uForm.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.number == 2 || this.number == 3) {
|
if (this.status == 2 || this.status == 3) {
|
||||||
if (!this.forms.groupName) {
|
if (!this.forms.groupName) {
|
||||||
return this.$u.toast('请选择事件分类')
|
return this.$u.toast('请选择事件分类')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.forms.content) {
|
if (!this.forms.content) {
|
||||||
return this.$u.toast(this.number == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
|
return this.$u.toast(this.status == 2 ? '请输入拒绝受理意见' : '请输入你的办结意见')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
<div class="cardes-msg-top" v-if="item.doExplain">{{ item.doExplain }}</div>
|
<div class="cardes-msg-top" v-if="item.doExplain">{{ item.doExplain }}</div>
|
||||||
|
|
||||||
<div class="imgs">
|
<div class="imgs">
|
||||||
<img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" />
|
<img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" @click="previewImage(item.files, e.url)" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -168,8 +168,8 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
toContent(number) {
|
toContent(status) {
|
||||||
uni.navigateTo({ url: `./Content?number=${number}&groupId=${this.data.groupId}&groupName=${this.data.groupName}&id=${this.id}` })
|
uni.navigateTo({ url: `./Content?status=${status}&groupId=${this.data.groupId}&groupName=${this.data.groupName}&id=${this.id}` })
|
||||||
},
|
},
|
||||||
previewImage(images, img) {
|
previewImage(images, img) {
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
|
|||||||
Reference in New Issue
Block a user